From c3148091b5adfde56ebb18898c3b44dfc8d38eb2 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期四, 16 十一月 2023 10:04:43 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/zs-mes-before --- src/views/basic/param/index.vue | 28 +++++----------------------- 1 files changed, 5 insertions(+), 23 deletions(-) diff --git a/src/views/basic/param/index.vue b/src/views/basic/param/index.vue index 32c34ef..48d6a1c 100644 --- a/src/views/basic/param/index.vue +++ b/src/views/basic/param/index.vue @@ -178,25 +178,10 @@ this.getParamType() this.rowSort() this.rowCalc() - this.loading = false }, - // beforeUpdate() { - // console.log("updated"); - // this.rowSort() - // this.rowCalc() - // this.loading = false - // }, - watch: { - tableData:{ - handler(old,newval){ - this.loading = true - // this.tableData=JSON.parse(JSON.stringify(this.tableTreeData)) - this.rowSort() - this.rowCalc() - this.loading = false - }, - deep: true - } + beforeUpdate() { + this.rowSort() + this.rowCalc() }, methods: { //涓嬭浇妯℃澘 @@ -302,8 +287,6 @@ this.$refs.crud.rowDel(row, index) }, updateParam(row, index, done, loading) { - // console.log(row); - // this.formDisabled = true let data = { dict: '', id: '', @@ -331,8 +314,6 @@ })[0] data.type=type.value } - // console.log(data); - // return putObj(data).then(res => { if (res.data.data.code == 0) { this.$message.success("鏇存柊鎴愬姛") @@ -385,7 +366,6 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { - console.log("1111",row); this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(row == null ? null : row.id) @@ -404,7 +384,9 @@ this.tableData = res.data.data.records this.page.total = res.data.data.total this.page.currentPage = res.data.data.records.pages + this.loading = false }) + }, //鍔ㄦ�佸悎骞舵柟娉� rowCalc() { -- Gitblit v1.9.3