|
@@ -29,7 +29,7 @@
|
|
|
<p class="page-submit-common-style-button"
|
|
|
style="float: right;"
|
|
|
@click="dialogOpen"
|
|
|
- v-hasPermiRouter="['demo:demo:add']"
|
|
|
+ v-hasPermiRouter="['iot:type:add']"
|
|
|
>新增</p>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -48,18 +48,21 @@
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="left" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column label="操作" align="left" class-name="small-padding fixed-width" v-if="tableButtonType">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="table-button-box">
|
|
|
<p class="table-button-null"></p>
|
|
|
<p class="table-button-p"
|
|
|
@click="tableButton(2,scope.row)"
|
|
|
+ v-hasPermiRouter="['iot:type:detail']"
|
|
|
>详情</p>
|
|
|
<p class="table-button-p"
|
|
|
@click="tableButton(3,scope.row)"
|
|
|
+ v-hasPermiRouter="['iot:type:edit']"
|
|
|
>编辑</p>
|
|
|
<p class="table-button-p"
|
|
|
@click="tableButton(4,scope.row)"
|
|
|
+ v-hasPermiRouter="['iot:type:del']"
|
|
|
>删除</p>
|
|
|
<p class="table-button-null"></p>
|
|
|
</div>
|
|
@@ -129,6 +132,7 @@
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
|
+ tableButtonType:this.hasPermiDom(['iot:type:detail','iot:type:edit','iot:type:del']),
|
|
|
loading:false,
|
|
|
pageType:1,
|
|
|
options:[{label:'启用',value:true},{label:'停用',value:false}],
|
|
@@ -252,6 +256,7 @@
|
|
|
//编辑
|
|
|
iotTypeDetail({id:row.typeId}).then(response => {
|
|
|
this.dialogFormReset();
|
|
|
+ this.$set(this,'dialogTitle','编辑');
|
|
|
this.$set(this,'dialogForm',JSON.parse(JSON.stringify(response.data)));
|
|
|
this.$set(this,'dialogType',true);
|
|
|
});
|