From cb2aa585c41e56496ba42b57f4a44db35adbede9 Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Sat, 4 Jun 2022 00:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=A7=9F=E6=88=B7=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/category/index.vue | 38 +++++--------- vue/src/views/iot/clientDetails/index.vue | 62 +++++++++-------------- vue/src/views/iot/firmware/index.vue | 38 +++++--------- vue/src/views/iot/group/index.vue | 20 ++------ vue/src/views/iot/template/index.vue | 34 ++++--------- 5 files changed, 61 insertions(+), 131 deletions(-) diff --git a/vue/src/views/iot/category/index.vue b/vue/src/views/iot/category/index.vue index 757aedaf..f2db0ad7 100644 --- a/vue/src/views/iot/category/index.vue +++ b/vue/src/views/iot/category/index.vue @@ -9,28 +9,14 @@ 搜索 重置 + + 新增 + - - - 新增 - - - 修改 - - - 删除 - - - 导出 - - - - - @@ -47,7 +33,7 @@ @@ -92,7 +78,7 @@ export default { data() { return { // 判断是否获取到修改权限 - canEdit:false, + canEdit: false, // 遮罩层 loading: true, // 选中数组 @@ -140,11 +126,11 @@ export default { this.init(); }, methods: { - init(){ - if (this.$store.state.user.roles.indexOf("admin") !== -1){ - this.canEdit = true - } - }, + init() { + if (this.$store.state.user.roles.indexOf("admin") !== -1) { + this.canEdit = true + } + }, /** 查询产品分类列表 */ getList() { this.loading = true; @@ -233,10 +219,10 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const categoryIds = row.categoryId || this.ids; - let msg=""; + let msg = ""; this.$modal.confirm('是否确认删除产品分类编号为"' + categoryIds + '"的数据项?').then(function () { return delCategory(categoryIds).then(response => { - msg=response.msg; + msg = response.msg; }); }).then(() => { this.getList(); diff --git a/vue/src/views/iot/clientDetails/index.vue b/vue/src/views/iot/clientDetails/index.vue index 5cbed3d5..d3dc833c 100644 --- a/vue/src/views/iot/clientDetails/index.vue +++ b/vue/src/views/iot/clientDetails/index.vue @@ -15,28 +15,14 @@ 重置 该功能暂不可用,后面版本发布 + + 新增 + - - - 新增 - - - 修改 - - - 删除 - - - 导出 - - - - -