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 @@ 重置 该功能暂不可用,后面版本发布 + + 新增 + - - - 新增 - - - 修改 - - - 删除 - - - 导出 - - - - -