From 05c15fc690062f72d3316404afbfeef5231795dd Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Thu, 14 Jul 2022 08:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=B1=BB=E7=AE=A1=E7=90=86=E9=98=B2?= =?UTF-8?q?=E6=AD=A22=E6=AC=A1=E6=8F=90=E4=BA=A4=E5=8F=8A=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../category/descriptionPreview/index.vue | 7 +- .../category/fileNoFormat/module/form.vue | 8 +- .../category/listBrowsing/module/form.vue | 8 +- .../category/orderingRule/module/form.vue | 7 +- src/views/storeManage/deviceManage/index.vue | 4 +- .../deviceManage/module/deviceDetail.vue | 115 +++++++++++------- 6 files changed, 94 insertions(+), 55 deletions(-) diff --git a/src/views/category/descriptionPreview/index.vue b/src/views/category/descriptionPreview/index.vue index 673b7c0..a9be811 100644 --- a/src/views/category/descriptionPreview/index.vue +++ b/src/views/category/descriptionPreview/index.vue @@ -44,7 +44,7 @@
@@ -91,7 +91,8 @@ export default { fieldsActive: 0, // 当前字段index thisFields: { dictionaryConfigId: { dicName: null, id: null }}, // 当前项字段内容 editField: {}, - isInputFields: [] + isInputFields: [], + loading: false } }, watch: { @@ -150,7 +151,9 @@ export default { if (!valid) { return } + this.loading = true edit(this.editField).then(() => { + this.loading = false this.$notify({ title: '保存成功', type: 'success', diff --git a/src/views/category/fileNoFormat/module/form.vue b/src/views/category/fileNoFormat/module/form.vue index 8de4c12..43bade4 100644 --- a/src/views/category/fileNoFormat/module/form.vue +++ b/src/views/category/fileNoFormat/module/form.vue @@ -20,7 +20,7 @@ @@ -33,11 +33,13 @@ export default { return { cuDialogVisible: false, formData: {}, - title: '新增字段' + title: '新增字段', + loading: false } }, methods: { save() { + this.loading = true if (this.title === '新增字段') { const addData = this.formData.fields.map((item) => { return { @@ -55,6 +57,7 @@ export default { duration: 2500 }) this.cuDialogVisible = false + this.loading = false this.$emit('refresh') }) } else { @@ -65,6 +68,7 @@ export default { duration: 2500 }) this.cuDialogVisible = false + this.loading = false this.$emit('refresh') }) } diff --git a/src/views/category/listBrowsing/module/form.vue b/src/views/category/listBrowsing/module/form.vue index d848a97..a19155e 100644 --- a/src/views/category/listBrowsing/module/form.vue +++ b/src/views/category/listBrowsing/module/form.vue @@ -28,7 +28,7 @@ @@ -55,13 +55,15 @@ export default { label: '靠右', value: 'right' } - ] + ], + loading: false } }, methods: { save() { this.$refs['formData'].validate((valid) => { if (valid) { + this.loading = true if (this.title === '新增字段') { add(this.formData.fields).then((res) => { this.$notify({ @@ -70,6 +72,7 @@ export default { duration: 2500 }) this.cuDialogVisible = false + this.loading = false this.$emit('refresh') }) } else { @@ -80,6 +83,7 @@ export default { duration: 2500 }) this.cuDialogVisible = false + this.loading = false this.$emit('refresh') }) } diff --git a/src/views/category/orderingRule/module/form.vue b/src/views/category/orderingRule/module/form.vue index d70720c..d03febb 100644 --- a/src/views/category/orderingRule/module/form.vue +++ b/src/views/category/orderingRule/module/form.vue @@ -23,7 +23,7 @@ @@ -36,17 +36,20 @@ export default { return { cuDialogVisible: false, formData: {}, - title: '' + title: '', + loading: false } }, methods: { save() { + this.loading = true edit(this.formData.fields).then((res) => { this.$notify({ title: '保存成功', type: 'success', duration: 2500 }) + this.loading = false this.cuDialogVisible = false this.$emit('refresh') }) diff --git a/src/views/storeManage/deviceManage/index.vue b/src/views/storeManage/deviceManage/index.vue index a3a8240..05013a6 100644 --- a/src/views/storeManage/deviceManage/index.vue +++ b/src/views/storeManage/deviceManage/index.vue @@ -124,8 +124,8 @@ export default { if (val) { this.crud.selectionChangeHandler([val]) this.$refs.deviceDetail.query.id = val.id - this.$refs.deviceDetail.storeroomId = val.id - this.$refs.deviceDetail.crud.toQuery() + this.$refs.deviceDetail.storeroomId = val + // this.$refs.deviceDetail.crud.toQuery() this.activeRightBtn = true } }, diff --git a/src/views/storeManage/deviceManage/module/deviceDetail.vue b/src/views/storeManage/deviceManage/module/deviceDetail.vue index 513968e..56e1b6c 100644 --- a/src/views/storeManage/deviceManage/module/deviceDetail.vue +++ b/src/views/storeManage/deviceManage/module/deviceDetail.vue @@ -8,6 +8,14 @@ @@ -18,7 +26,7 @@
- + @@ -50,23 +58,19 @@ - - 借出 - 归还 - 入库 - 出库 - + 借出 + 归还 + 入库 + 出库 - - 借出 - 归还 - 入库 - 出库 - + 借出 + 归还 + 入库 + 出库 - 通知 + 通知