diff --git a/sgzb-ui/src/views/base/comeAndGo/people.vue b/sgzb-ui/src/views/base/comeAndGo/people.vue index ad4d1bbf..0f5c3bbb 100644 --- a/sgzb-ui/src/views/base/comeAndGo/people.vue +++ b/sgzb-ui/src/views/base/comeAndGo/people.vue @@ -591,19 +591,24 @@ export default { handleSave() { console.log(this.chosenUserId, 'chosenUserId') console.log(this.ids, 'ids') - let param = { - userId: this.chosenUserId, - unitId: this.ids[0] - } - unitPersonAll(param).then(response => { - if (response.code == 200) { - this.$message({ - message: '操作成功', - type: 'success' - }) - this.getList(); + if(this.chosenUserId){ + let param = { + userId: this.chosenUserId, + unitId: this.ids[0] } - }); + unitPersonAll(param).then(response => { + if (response.code == 200) { + this.$message({ + message: '操作成功', + type: 'success' + }) + this.getList(); + } + }); + }else{ + this.$modal.msgError("请先选择配置人员!"); + } + }, /** 修改按钮操作 */ diff --git a/sgzb-ui/src/views/store/label/labelBinding.vue b/sgzb-ui/src/views/store/label/labelBinding.vue index 0aa983c7..79b25c76 100644 --- a/sgzb-ui/src/views/store/label/labelBinding.vue +++ b/sgzb-ui/src/views/store/label/labelBinding.vue @@ -507,7 +507,7 @@ export default { codeId: true, isShowQrCode: -1, labelmaCode: '', - qrUrl:'http://112.29.103.165:21626/qrCode/qrCodePage?qrCode=', + qrUrl:'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode=', json_fields:{"二维码地址":'exportUrl',"标签编号":'labelCode',"设备编码":'maCode'}, }; }, diff --git a/sgzb-ui/src/views/store/label/labelBindingHistory.vue b/sgzb-ui/src/views/store/label/labelBindingHistory.vue index 954dd153..02636b3c 100644 --- a/sgzb-ui/src/views/store/label/labelBindingHistory.vue +++ b/sgzb-ui/src/views/store/label/labelBindingHistory.vue @@ -8,9 +8,9 @@ v-show="showSearch" label-width="68px" > - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - - - - @@ -320,7 +206,7 @@ export default { rowObj: {}, labelmaCode: '', uploadOpen: false, - qrUrl:'http://112.29.103.165:21626/qrCode/qrCodePage?qrCode=', + qrUrl:'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode=', }; }, created() { @@ -349,22 +235,6 @@ export default { } ); }, - // 取消按钮 - cancel() { - this.open = false; - this.reset(); - }, - // 表单重置 - reset() { - this.form = { - labelId: undefined, - labelType: undefined, - dictType: undefined, - status: "0", - remark: undefined - }; - this.resetForm("form"); - }, /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; @@ -376,48 +246,14 @@ export default { this.resetForm("queryForm"); this.handleQuery(); }, - /** 新增按钮操作 */ - handleAdd() { - this.reset(); - this.open = true; - this.title = "添加字典类型"; - }, + // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.labelId) this.single = selection.length != 1 this.multiple = !selection.length }, - /** 修改按钮操作 */ - handleUpdate(row) { - this.reset(); - const labelId = row.labelId || this.ids - getType(labelId).then(response => { - this.form = response.data; - this.open = true; - this.title = "修改字典类型"; - }); - }, - /** 提交按钮 */ - submitForm: function () { - this.$refs["form"].validate(valid => { - if (valid) { - if (this.form.labelId != undefined) { - updateType(this.form).then(response => { - this.$modal.msgSuccess("修改成功"); - this.open = false; - this.getList(); - }); - } else { - addType(this.form).then(response => { - this.$modal.msgSuccess("新增成功"); - this.open = false; - this.getList(); - }); - } - } - }); - }, + //二维码查看 labelUploadCode(row) { // if (row.maCode == null) { @@ -444,29 +280,13 @@ export default { // }); }, 500) }, - /** 删除按钮操作 */ - handleDelete(row) { - const labelIds = row.labelId || this.ids; - this.$modal.confirm('是否确认删除字典编号为"' + labelIds + '"的数据项?').then(function () { - return delType(labelIds); - }).then(() => { - this.getList(); - this.$modal.msgSuccess("删除成功"); - }).catch(() => { }); - }, /** 导出按钮操作 */ handleExport() { - // this.download('system/dict/type/export', { - // ...this.queryParams - // }, `type_${new Date().getTime()}.xlsx`) + this.download('base/maLabelBind/export', { + ...this.queryParams + }, `二维码绑定历史_${new Date().getTime()}.xlsx`) }, - /** 刷新缓存按钮操作 */ - handleRefreshCache() { - refreshCache().then(() => { - this.$modal.msgSuccess("刷新成功"); - this.$store.dispatch('dict/cleanDict'); - }); - } + } }; diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue index 176e36dc..94fa2651 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue @@ -317,8 +317,8 @@ export default { disabledDate(time) { if (that.maForm.purchaseTime) { return ( - time.getTime() < Date.now() || - time.getTime() < new Date(that.maForm.purchaseTime).getTime() + time.getTime() < Date.now()-8.64e7 || + time.getTime() < new Date(that.maForm.purchaseTime).getTime()-8.64e7 ); } return time.getTime() < Date.now(); //实现1效果 diff --git a/sgzb-ui/src/views/store/tools/devices.vue b/sgzb-ui/src/views/store/tools/devices.vue index d3d700fc..fc6f4d2d 100644 --- a/sgzb-ui/src/views/store/tools/devices.vue +++ b/sgzb-ui/src/views/store/tools/devices.vue @@ -384,7 +384,7 @@ export default { title: "", uploadOpen: false, qrCode: '', - qrUrl:'http://112.29.103.165:21626/qrCode/qrCodePage?qrCode=', + qrUrl:'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode=', rowObj:{}, // 是否显示弹出层 open: false,