diff --git a/vue/src/api/iot/category.js b/vue/src/api/iot/category.js index db2ebf88..311fa618 100644 --- a/vue/src/api/iot/category.js +++ b/vue/src/api/iot/category.js @@ -16,14 +16,6 @@ export function listShortCategory() { method: 'get', }) } -// 查询产品简短分类列表 -export function listShortCategory1(query) { - return request({ - url: '/iot/category/shortlist', - method: 'get', - params: query - }) -} // 查询产品分类详细 export function getCategory(categoryId) { diff --git a/vue/src/views/index.vue b/vue/src/views/index.vue index 5bd3c664..0b7e1d3d 100644 --- a/vue/src/views/index.vue +++ b/vue/src/views/index.vue @@ -49,7 +49,7 @@ -
+
diff --git a/vue/src/views/iot/device/product-list.vue b/vue/src/views/iot/device/product-list.vue index 51555959..eb98d22d 100644 --- a/vue/src/views/iot/device/product-list.vue +++ b/vue/src/views/iot/device/product-list.vue @@ -20,9 +20,16 @@ - + + + + + @@ -30,7 +37,7 @@ - + @@ -53,7 +60,7 @@ import { export default { name: "Product", - dicts: [ 'iot_product_status', 'iot_network_method'], + dicts: ['iot_vertificate_method', 'iot_network_method'], props: { productId: { type: Number, @@ -95,10 +102,6 @@ export default { /** 查询产品列表 */ getList() { this.loading = true; - // 判断是否是admin角色 - if (this.$store.state.user.roles.indexOf("admin") === -1){ - this.queryParams.tenantName = this.$store.state.user.name - } listProduct(this.queryParams).then(response => { this.productList = response.rows; this.total = response.total; diff --git a/vue/src/views/iot/product/product-edit.vue b/vue/src/views/iot/product/product-edit.vue index c2d54972..c5eb1f5f 100644 --- a/vue/src/views/iot/product/product-edit.vue +++ b/vue/src/views/iot/product/product-edit.vue @@ -33,7 +33,7 @@ - + @@ -122,7 +122,6 @@ import productAuthorize from "./product-authorize" import imageUpload from "../../../components/ImageUpload/index" import { listShortCategory, - listShortCategory1 } from "@/api/iot/category"; import { getProduct, @@ -188,11 +187,8 @@ export default { }, methods: { init() { - if (this.$store.state.user.roles.indexOf("admin") === -1) { - this.queryParams.tenantName = this.$store.state.user.name - } // 获取简短分类列表 - listShortCategory1(this.queryParams).then(response => { + listShortCategory().then(response => { this.categoryShortList = response.data; }) }, diff --git a/vue/src/views/iot/product/product-select-template.vue b/vue/src/views/iot/product/product-select-template.vue index 5456d966..269cb7b2 100644 --- a/vue/src/views/iot/product/product-select-template.vue +++ b/vue/src/views/iot/product/product-select-template.vue @@ -71,7 +71,6 @@ export default { pageSize: 10, templateName: null, type: null, - tenantName:'' }, }; }, @@ -83,9 +82,6 @@ export default { /** 查询通用物模型列表 */ getList() { this.loading = true; - if (this.$store.state.user.roles.indexOf("admin") === -1){ - this.queryParams.tenantName = this.$store.state.user.name - } listTemplate(this.queryParams).then((response) => { this.templateList = response.rows; this.total = response.total;