From ba296fa0cc7711ea745564bda80b2d1d8a3a09f0 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 13 十一月 2023 19:00:37 +0800 Subject: [PATCH] modified: src/views/basic/param/index.vue modified: src/views/common/param-mergeTemplate.vue --- src/views/basic/param/index.vue | 23 ++++++++++------------- 1 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/views/basic/param/index.vue b/src/views/basic/param/index.vue index 42a7e3a..48d6a1c 100644 --- a/src/views/basic/param/index.vue +++ b/src/views/basic/param/index.vue @@ -17,7 +17,7 @@ <el-form-item class="btn-group"> <el-button type="" @click="onSearch">鏌ヨ</el-button> <el-button type="primary" @click="addOrUpdateHandle">鏂板</el-button> - <el-button @click="showImportDialog">瀵煎叆</el-button> + <el-button type="primary" @click="showImportDialog">瀵煎叆</el-button> </el-form-item> </el-col> </el-row> @@ -173,16 +173,16 @@ ...mapGetters(['permissions']) }, created() { + this.loading = true this.getData() this.getParamType() - }, - beforeUpdate() { - console.log("updated"); this.rowSort() this.rowCalc() - this.loading = false }, - watch: {}, + beforeUpdate() { + this.rowSort() + this.rowCalc() + }, methods: { //涓嬭浇妯℃澘 downloadTemplate() { @@ -287,8 +287,6 @@ this.$refs.crud.rowDel(row, index) }, updateParam(row, index, done, loading) { - // console.log(row); - // this.formDisabled = true let data = { dict: '', id: '', @@ -316,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("鏇存柊鎴愬姛") @@ -370,7 +366,6 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { - console.log("1111",row); this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(row == null ? null : row.id) @@ -389,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() { @@ -460,9 +457,9 @@ </script> <style> -.grid-header { +/* .grid-header { display: none; -} +} */ .param-basic { margin: 0 10px; -- Gitblit v1.9.3