|
@@ -145,7 +145,7 @@
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="text"
|
|
type="text"
|
|
|
icon="el-icon-edit-outline"
|
|
icon="el-icon-edit-outline"
|
|
|
- v-if="activeName !== 'fsu'"
|
|
|
|
|
|
|
+ v-if="canEdict(scope.row)"
|
|
|
@click="editDevice(scope.row)"
|
|
@click="editDevice(scope.row)"
|
|
|
>编辑
|
|
>编辑
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -436,6 +436,9 @@ export default {
|
|
|
showDetail(row) {
|
|
showDetail(row) {
|
|
|
this.$refs.detailInfo.show(row.id, row.deviceType);
|
|
this.$refs.detailInfo.show(row.id, row.deviceType);
|
|
|
},
|
|
},
|
|
|
|
|
+ canEdict(row) {
|
|
|
|
|
+ return this.activeName !='fsu' && ['1','4','23','24'].includes(row.deviceType);
|
|
|
|
|
+ },
|
|
|
editDevice(row, other = {}) {
|
|
editDevice(row, other = {}) {
|
|
|
if (this.activeName == 'dvs') {
|
|
if (this.activeName == 'dvs') {
|
|
|
this.$refs.addDvrHostDialog.show(row.id, row.orgId, '监控主机', other = {});
|
|
this.$refs.addDvrHostDialog.show(row.id, row.orgId, '监控主机', other = {});
|