From 0ba4ba69d0500b2333e3c3d9f83e7638e334c14b Mon Sep 17 00:00:00 2001 From: mch <1332099529@qq.com> Date: Fri, 4 Aug 2023 18:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=9C=E8=89=B2=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic-dictionary/ResultStatus.vue | 7 +--- .../basic-dictionary/SampleContainer.vue | 35 +++++++++---------- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/src/views/basic-dictionary/ResultStatus.vue b/src/views/basic-dictionary/ResultStatus.vue index 4a3c821..926ae5e 100644 --- a/src/views/basic-dictionary/ResultStatus.vue +++ b/src/views/basic-dictionary/ResultStatus.vue @@ -62,7 +62,7 @@ :visible.sync="dialogVisible" width="55%" :before-close="handleClose" - :close-on-click-modal="false" + :close-on-click-modal="false" > @@ -105,7 +105,6 @@ prop="reportBackgroundColor" > @@ -130,7 +129,6 @@ @@ -87,7 +87,7 @@ @@ -227,7 +227,7 @@ export default { containerColorName: "", containerColor: "", }, - curRow:{}, + curRow: {}, }; }, created() { @@ -302,7 +302,7 @@ export default { }, //置低 toppings() { - this.form={...this.curRow} + this.form = { ...this.curRow }; if (this.form.id == undefined) { this.$message.success("请点击选择操作的数据"); } else { @@ -314,7 +314,7 @@ export default { }, //置顶 topping() { - this.form={...this.curRow} + this.form = { ...this.curRow }; if (this.form.id == undefined) { this.$message.warning("请点击选择操作的数据"); } else { @@ -326,7 +326,7 @@ export default { }, //删除 delsrts() { - this.form={...this.curRow} + this.form = { ...this.curRow }; if (this.form.id == undefined) { this.$message.warning("请选择删除的数据"); } else { @@ -352,14 +352,14 @@ export default { }, //编辑弹框 editpopup() { - this.resetFields() - this.form={...this.curRow} + this.resetFields(); + this.form = { ...this.curRow }; if (this.form.id == undefined) { this.$message.warning("请点击选择操作的数据"); } else { this.dialogVisible = true; this.title = 2; - this.getFocus() + this.getFocus(); Containerid(this.form.id).then((res) => { console.log(res); this.form = res.data; @@ -369,11 +369,10 @@ export default { //点击列表通过id查询 rowick(row) { Containerid(row.id).then((res) => { - this.curRow={...res.data} + this.curRow = { ...res.data }; // console.log(res); // this.form = res.data; }); - }, //确定新增或者编辑 addoredit() { @@ -408,19 +407,19 @@ export default { this.title = 1; this.dialogVisible = true; this.form = {}; - this.getFocus() - this.resetFields() + this.getFocus(); + this.resetFields(); }, - getFocus(){ + getFocus() { this.$nextTick(() => { this.$refs.refinput.focus(); - }); + }); }, - resetFields(){ + resetFields() { this.$nextTick(() => { this.$refs.form.resetFields(); - }); + }); }, getlist() { containerlist(this.pages).then((res) => {