|
@@ -69,9 +69,9 @@
|
|
|
:resizable="false"
|
|
:resizable="false"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="change(scope.row.isEnabled,scope.row.id)">修改状态</el-button>
|
|
|
|
|
- <el-button type="text" @click="editJS(scope.row.id)">编 辑</el-button>
|
|
|
|
|
- <el-button type="text" @click="delJS(scope.row.id)">删 除</el-button>
|
|
|
|
|
|
|
+ <el-button type="text" @click="change(scope.row.isEnabled,scope.row.id)" :disabled='scope.row.roleKey==="sys_admin"||scope.row.roleKey==="sys_user"'>修改状态</el-button>
|
|
|
|
|
+ <el-button type="text" @click="editJS(scope.row.id)" :disabled='scope.row.roleKey==="sys_admin"||scope.row.roleKey==="sys_user"'>编 辑</el-button>
|
|
|
|
|
+ <el-button type="text" @click="delJS(scope.row.id)" :disabled='scope.row.roleKey==="sys_admin"||scope.row.roleKey==="sys_user"'>删 除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -196,6 +196,7 @@ export default {
|
|
|
this.tableData.forEach((v) => {
|
|
this.tableData.forEach((v) => {
|
|
|
if (v.isEnabled === 1) v.isEnabled = '启用'
|
|
if (v.isEnabled === 1) v.isEnabled = '启用'
|
|
|
else if (v.isEnabled === 0) v.isEnabled = '停用'
|
|
else if (v.isEnabled === 0) v.isEnabled = '停用'
|
|
|
|
|
+ if (v.roleKey === 'sys_user' || v.roleKey === 'sys_admin') v.isEnabled = '-'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|