diff --git a/package.json b/package.json index 49a6cbf..2ab65fd 100644 --- a/package.json +++ b/package.json @@ -42,14 +42,17 @@ "core-js": "3.25.3", "echarts": "5.4.0", "element-ui": "2.15.14", - "file-saver": "2.0.5", + "file-saver": "^2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", + "html2canvas": "^1.4.1", "js-beautify": "1.13.0", "js-cookie": "3.0.1", "jsencrypt": "3.0.0-rc.1", + "jszip": "^3.10.1", "nprogress": "0.2.0", "qrcode": "^1.5.3", + "qrcodejs2": "^0.0.2", "quill": "1.3.7", "screenfull": "5.0.2", "sortablejs": "1.10.2", diff --git a/src/utils/request.js b/src/utils/request.js index 4f3d8f7..f3ed4f4 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -41,7 +41,7 @@ service.interceptors.request.use(config => { config.params = {}; config.url = url; } - console.log(config) + // console.log(config) if (!isRepeatSubmit && (config.method === 'post' || config.method === 'put')) { const requestObj = { @@ -72,7 +72,7 @@ service.interceptors.request.use(config => { } } } - console.log(config) + // console.log(config) if( config.headers['Content-Type']=='application/json;charset=utf-8'){ if(typeof (config.data)=='object'){ @@ -82,10 +82,10 @@ service.interceptors.request.use(config => { } //对下载请求进行数据参数拦截加密 if(config.headers['Content-Type']=='application/x-www-form-urlencoded'){ - console.log(config) - console.log(config.data) + // console.log(config) + // console.log(config.data) if(typeof (config.data)=='object'){ - console.log(config.data) + // console.log(config.data) let formData=tansParams(config.data); if(formData){ formData = formData.slice(0, -1); diff --git a/src/views/base/device/index.vue b/src/views/base/device/index.vue index 707defc..76e1f61 100644 --- a/src/views/base/device/index.vue +++ b/src/views/base/device/index.vue @@ -1,7 +1,7 @@ - + - + 导出数据 - + + + + - - + + - + + + {{ dict.type.sys_device_type[Number(scope.row.deviceType)].label }} + + @@ -83,17 +90,17 @@ size="mini" type="text" icon="el-icon-edit" - @click="handleQuertPage(scope.row)" + @click="labelUploadCode(scope.row)" v-hasPermi="['basic:device:query']" >查看 - - {{ stateList[Number(scope.row.deviceStatus)] }} - {{ stateList[Number(scope.row.deviceStatus)] }} - - + + {{ dict.type.sys_device_status[Number(scope.row.deviceStatus).label] }} + {{ dict.type.sys_device_status[Number(scope.row.deviceStatus)].label }} + + @@ -122,124 +129,12 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> - - - - - - - - - 查询 - - - - - - 绑定设备 - - - - - - - - - - - - - {{ stateList[Number(scope.row.deviceStatus)] }} - {{ stateList[Number(scope.row.deviceStatus)] }} - - - - - - 解除绑定 - - - - - - - - - - - - - - - - 查询 - 绑定 - - - - - - - - - - - - - - - - + - + - + - + + + + + + + + 设备编号:{{ rowObj.deviceCode }} + + + \ No newline at end of file