diff --git a/flossom-ui/src/views/system/member/index.vue b/flossom-ui/src/views/system/member/index.vue index 9d108a5..9b32f2d 100644 --- a/flossom-ui/src/views/system/member/index.vue +++ b/flossom-ui/src/views/system/member/index.vue @@ -104,16 +104,16 @@ align="right"> - - - - - - - - - - + + + + + + @@ -313,7 +313,8 @@ - @@ -747,8 +748,14 @@ import { allAddRemark, getMiniProgramTagsTree, scriptTreeSelect, - editRemark, delRemark, - openOrCloseClock, openOrCloseActivity, uObtainUserScriptLog, delUserScriptLog, obtainUserIntegralLog, + editRemark, + delRemark, + openOrCloseClock, + openOrCloseActivity, + uObtainUserScriptLog, + delUserScriptLog, + obtainUserIntegralLog, + getAllInstrument, } from "@/api/system/member"; import Treeselect from "@riophae/vue-treeselect"; import {tagTreeSelect} from "@/api/system/wechatTab"; @@ -791,6 +798,8 @@ export default { userRegisterNum: 0, userDeviceNum: 0 }, + // 查询条件:仪器列表 + deviceList: [], // 查询条件,小程序二级标签 miniProgramTags: [], // 小程序标签树 @@ -935,7 +944,7 @@ export default { loginTime: null, status: null, // createTime: [], - devicesName: [], //仪器绑定 + devicesIdList: [], //仪器绑定 wecomTags: [], // 外部标签 miniProgramTags: [], // 小程序标签 purchaseChannels: [], // 购买渠道 @@ -1024,6 +1033,8 @@ export default { // 获取标签树 this.getDeptTree(); this.getScriptTree(); + // 获取仪器列表 + this.getAllInstrument(); }, methods: { /** 查询用户列表 */ @@ -1035,7 +1046,7 @@ export default { this.loading = false; }); }, - dateUtil(date){ + dateUtil(date) { // 获取年份、月份和日期 const year = date.getFullYear().toString(); // 四位数表示的年份 const months = (date.getMonth() + 1).toString().padStart(2, '0'); // 补零后的两位数表示的月份 @@ -1043,7 +1054,14 @@ export default { const hours = date.getHours().toString().padStart(2, '0'); // 补全两位数的小时 const minutes = date.getMinutes().toString().padStart(2, '0'); // 补全两位数的分钟 const seconds = date.getSeconds().toString().padStart(2, '0'); - return `${year}-${months}-${day} ${hours}:${minutes}:${seconds}`; + return `${year}-${months}-${day} ${hours}:${minutes}:${seconds}`; + }, + // 获取仪器列表 + getAllInstrument() { + getAllInstrument().then(Response => { + this.deviceList = Response.data; + console.log(this.deviceList); + }) }, getUserCount() { selectUserCount().then(Response => { @@ -1087,7 +1105,7 @@ export default { this.queryParams.cityId = null; this.queryParams.areaId = null; getRegionByPid(pid).then(Response => { - this.cityList = Response.data; + this.cityList = Response.data; }) }, getAreaByPid(pid) { @@ -1096,7 +1114,7 @@ export default { } this.queryParams.areaId = null; getRegionByPid(pid).then(Response => { - this.areaList = Response.data; + this.areaList = Response.data; }) }, // 查询条件-省市区清空