diff --git a/console-web/src/utils/dict.js b/console-web/src/utils/dict.js index bb00cf2c..f796cd0c 100644 --- a/console-web/src/utils/dict.js +++ b/console-web/src/utils/dict.js @@ -84,7 +84,11 @@ const dict = { } this.dataListLoading = false }) + }, + remove: function(name) { + storage.remove(name) } + } export default dict \ No newline at end of file diff --git a/console-web/src/views/modules/pub/buidct-add-or-update.vue b/console-web/src/views/modules/pub/buidct-add-or-update.vue index 37ecd944..81e18857 100755 --- a/console-web/src/views/modules/pub/buidct-add-or-update.vue +++ b/console-web/src/views/modules/pub/buidct-add-or-update.vue @@ -7,42 +7,42 @@ - + - + - + - + - + - + - 添加 + 添加 - + - + - + @@ -67,7 +67,7 @@ 取消 - 确定 + 确定 @@ -78,6 +78,7 @@ export default { data () { return { + readonly: false, visible: false, dataForm: { id: 0, @@ -209,6 +210,7 @@ let fldhlpListStr = this.dataForm.fldhlp.map(item => item.fld_val + '=' + item.fld_exp).join('&') this.$refs['dataForm'].validate((valid) => { if (valid) { + this.dict.remove(this.dataForm.dct_nm) this.$http({ url: this.$http.adornUrl(`/buipubbpc1/buiDct${!this.dataForm.id ? 'Add' : 'Update'}.do`), method: 'post', diff --git a/console-web/src/views/modules/pub/buidct.vue b/console-web/src/views/modules/pub/buidct.vue index 98d0bb1d..b78b5054 100755 --- a/console-web/src/views/modules/pub/buidct.vue +++ b/console-web/src/views/modules/pub/buidct.vue @@ -77,6 +77,7 @@ width="150" label="操作"> @@ -175,6 +176,14 @@ addOrUpdateHandle (id) { this.addOrUpdateVisible = true this.$nextTick(() => { + this.$refs.addOrUpdate.readonly = false + this.$refs.addOrUpdate.init(id) + }) + }, + queryHandle(id) { + this.addOrUpdateVisible = true + this.$nextTick(() => { + this.$refs.addOrUpdate.readonly = true this.$refs.addOrUpdate.init(id) }) },