From aab50e5a786fce447764be8b6ce658f253c0b1c3 Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Mon, 30 May 2022 16:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=A8=A1=E5=9D=97=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/device/index.vue | 8 +--- vue/src/views/iot/product/index.vue | 8 +--- .../views/iot/product/product-authorize.vue | 12 ++--- vue/src/views/iot/product/product-edit.vue | 45 +++++++++---------- .../iot/product/product-things-model.vue | 4 +- 5 files changed, 32 insertions(+), 45 deletions(-) diff --git a/vue/src/views/iot/device/index.vue b/vue/src/views/iot/device/index.vue index f7392723..39717e11 100644 --- a/vue/src/views/iot/device/index.vue +++ b/vue/src/views/iot/device/index.vue @@ -70,12 +70,6 @@
- - - - - -
@@ -238,7 +232,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 12, deviceName: null, productId: null, groupId: null, diff --git a/vue/src/views/iot/product/index.vue b/vue/src/views/iot/product/index.vue index 121f8b99..8faf0a14 100644 --- a/vue/src/views/iot/product/index.vue +++ b/vue/src/views/iot/product/index.vue @@ -62,12 +62,6 @@
- - - - - -
@@ -129,7 +123,7 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 10, + pageSize: 12, productName: null, categoryId: null, categoryName: null, diff --git a/vue/src/views/iot/product/product-authorize.vue b/vue/src/views/iot/product/product-authorize.vue index 181205d6..ae7db8af 100644 --- a/vue/src/views/iot/product/product-authorize.vue +++ b/vue/src/views/iot/product/product-authorize.vue @@ -21,13 +21,13 @@ 生成授权码 - 修改 + 修改 - 删除 + 删除 - 注意:绑定设备之后不可以删除。 Tips:双击可以复制授权码。 + Tips:双击可以复制授权码。 @@ -147,8 +147,8 @@ export default { title: "", // 是否显示弹出层 open: false, - // 新增个数 - createNum: 1, + // 新增授权码个数 + createNum: 10, // 查询参数 queryParams: { pageNum: 1, @@ -241,7 +241,7 @@ export default { addProductAuthorizeByNum(_addData).then(response => { this.$modal.msgSuccess("新增授权码成功"); this.getList(); - this.createNum = 1; + this.createNum = 10; }); } }).catch(() => { diff --git a/vue/src/views/iot/product/product-edit.vue b/vue/src/views/iot/product/product-edit.vue index b0f7c9be..93385c9d 100644 --- a/vue/src/views/iot/product/product-edit.vue +++ b/vue/src/views/iot/product/product-edit.vue @@ -7,23 +7,23 @@ - + - + - + - - + + - + @@ -58,7 +58,7 @@ - + @@ -76,7 +76,7 @@ - + 授权码 @@ -170,10 +170,10 @@ export default { trigger: "blur" }] }, - // 查询参数 - queryParams: { - tenantName: null, - }, + // 查询参数 + queryParams: { + tenantName: null, + }, }; }, @@ -187,15 +187,15 @@ export default { this.init(); }, methods: { - init(){ - if (this.$store.state.user.roles.indexOf("admin") === -1){ - this.queryParams.tenantName = this.$store.state.user.name - } - // 获取简短分类列表 - listShortCategory1(this.queryParams).then(response => { - this.categoryShortList = response.data; - }) - }, + init() { + if (this.$store.state.user.roles.indexOf("admin") === -1) { + this.queryParams.tenantName = this.$store.state.user.name + } + // 获取简短分类列表 + listShortCategory1(this.queryParams).then(response => { + this.categoryShortList = response.data; + }) + }, /** 返回按钮 */ goBack() { const obj = { @@ -308,8 +308,7 @@ export default { // 授权码状态修改 changeIsAuthorize() { let text = this.form.isAuthorize == "1" ? "启用" : "停用"; - this.$modal.confirm('确认要' + text + '授权码吗?').then(function () { - }).catch(() => { + this.$modal.confirm('确认要' + text + '授权码吗?').then(function () {}).catch(() => { this.form.isAuthorize = 0; }); } diff --git a/vue/src/views/iot/product/product-things-model.vue b/vue/src/views/iot/product/product-things-model.vue index 9b671012..a42597ec 100644 --- a/vue/src/views/iot/product/product-things-model.vue +++ b/vue/src/views/iot/product/product-things-model.vue @@ -46,8 +46,8 @@