Skip to content

Commit

Permalink
fix: categoryname
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnwinterLiu committed Nov 8, 2022
1 parent d0bb89c commit 81105b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

* **equipmentCloud:** 产品默认位置 ([0c95658](https://github.com/dgiot/dgiot-dashboard/commit/0c95658e11747babaf7b8ceab921fab368cdfac1))
* **equipmentCloud:** config ([a7575d2](https://github.com/dgiot/dgiot-dashboard/commit/a7575d2f6f2aaa8fe60b542d28451833436a5dc0))
* location ([59f42aa](https://github.com/dgiot/dgiot-dashboard/commit/59f42aa8adc4095667e2837388938ec791d3b047))


### Features
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

* **equipmentCloud:** 产品默认位置 ([0c95658](https://github.com/dgiot/dgiot-dashboard/commit/0c95658e11747babaf7b8ceab921fab368cdfac1))
* **equipmentCloud:** config ([a7575d2](https://github.com/dgiot/dgiot-dashboard/commit/a7575d2f6f2aaa8fe60b542d28451833436a5dc0))
* location ([59f42aa](https://github.com/dgiot/dgiot-dashboard/commit/59f42aa8adc4095667e2837388938ec791d3b047))


### Features
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

* **equipmentCloud:** 产品默认位置 ([0c95658](https://github.com/dgiot/dgiot-dashboard/commit/0c95658e11747babaf7b8ceab921fab368cdfac1))
* **equipmentCloud:** config ([a7575d2](https://github.com/dgiot/dgiot-dashboard/commit/a7575d2f6f2aaa8fe60b542d28451833436a5dc0))
* location ([59f42aa](https://github.com/dgiot/dgiot-dashboard/commit/59f42aa8adc4095667e2837388938ec791d3b047))


### Features
Expand Down
6 changes: 4 additions & 2 deletions src/views/DeviceCloud/manage/product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
</el-input>
</el-col>
</el-row>
<span v-else>{{ product.category.name }}</span>
<span v-else>{{ form.categoryname }}</span>
</el-form-item>
<el-form-item
:label="$translateTitle('product.dynamicregistration')"
Expand Down Expand Up @@ -2484,7 +2484,9 @@
)
this.form.netType = row.netType
this.form.devType = row.devType
this.form.categoryname = row.category ? row.category.name : ''
const {name} = await getCategory(row.category.objectId)
// this.form.categoryname = name
this.$set(this.form, 'categoryname' ,name)
this.form.productSecret = row.productSecret
this.form.nodeType = row.nodeType
if (row.icon) {
Expand Down

1 comment on commit 81105b7

@vercel
Copy link

@vercel vercel bot commented on 81105b7 Nov 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dgiot-dashboard – ./

dgiot-dashboard-git-master-dgiot.vercel.app
dgiot-dashboard.vercel.app
dgiot-dashboard-dgiot.vercel.app

Please sign in to comment.