From 40df27ac2743083ed196d4cc91d285716a3fb660 Mon Sep 17 00:00:00 2001 From: heimawl <1785969728@qq.com> Date: 星期二, 01 八月 2023 10:33:37 +0800 Subject: [PATCH] 11 --- src/views/system/label/index.vue | 25 ++----------------------- 1 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/views/system/label/index.vue b/src/views/system/label/index.vue index 7419008..513af3e 100644 --- a/src/views/system/label/index.vue +++ b/src/views/system/label/index.vue @@ -325,7 +325,6 @@ </template> <script> -import { addUser, updateUser } from "@/api/system/user"; import { toamendtag, addapitag, @@ -638,7 +637,7 @@ // 鏍囩鐘舵�佷慨鏀� handleStatusChange(row) { console.log(row.isupload); - let text = row.isupload === "0" ? "鍚敤" : "鍋滅敤"; + let text = row.isupload == 0 ? "鍋滅敤" : "鍚敤"; this.$modal .confirm('纭瑕�"' + text + '""' + row.tagname + '"鏍囩鍚楋紵') .then(function () { @@ -648,7 +647,7 @@ this.$modal.msgSuccess(text + "鎴愬姛"); }) .catch(function () { - row.isupload = row.isupload === "0" ? "1" : "0"; + row.isupload = row.isupload == 0 ? 1 : 0; }); }, /** 鎼滅储鎸夐挳鎿嶄綔 */ @@ -671,26 +670,6 @@ this.multiple = !selection.length; }, - /** 鏇存柊/淇敼鎻愪氦鎸夐挳 */ - submitForm: function () { - this.$refs["form"].validate((valid) => { - if (valid) { - if (this.form.userId != undefined) { - updateUser(this.form).then((response) => { - this.$modal.msgSuccess("淇敼鎴愬姛"); - this.open = false; - this.getList(); - }); - } else { - addUser(this.form).then((response) => { - this.$modal.msgSuccess("鏂板鎴愬姛"); - this.open = false; - this.getList(); - }); - } - } - }); - }, /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { console.log(row, "鍒犻櫎寮圭獥"); -- Gitblit v1.9.3