|
@ -46,13 +46,13 @@ |
|
|
<el-table-column prop="description" |
|
|
<el-table-column prop="description" |
|
|
label="角色职责" |
|
|
label="角色职责" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center"> |
|
|
width="380"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<p>{{scope.row.description}}</p> |
|
|
<p>{{scope.row.description}}</p> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="操作"> |
|
|
<el-table-column width="450" |
|
|
|
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
|
<el-button type="primary" |
|
|
<el-button type="primary" |
|
@ -89,11 +89,20 @@ |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-press-escape="false" |
|
|
:close-on-press-escape="false" |
|
|
title="角色职责" |
|
|
title="角色职责" |
|
|
|
|
|
width="30%" |
|
|
@closed="handleDutyClosed"> |
|
|
@closed="handleDutyClosed"> |
|
|
<div class="d-textarea" |
|
|
<div class="div_duty" |
|
|
v-if="dutyShow"> |
|
|
v-if="dutyShow"> |
|
|
<el-input type="textarea" |
|
|
<el-input type="textarea" |
|
|
|
|
|
:rows="8" |
|
|
v-model="description"></el-input> |
|
|
v-model="description"></el-input> |
|
|
|
|
|
<div class="div_btn"> |
|
|
|
|
|
<el-button type="primary" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="saveDuty()">保存</el-button> |
|
|
|
|
|
<el-button size="small" |
|
|
|
|
|
@click="dutyShow=false">取消</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
@ -268,25 +277,26 @@ export default { |
|
|
|
|
|
|
|
|
//保存角色职责 |
|
|
//保存角色职责 |
|
|
async saveDuty () { |
|
|
async saveDuty () { |
|
|
|
|
|
console.log(this.description) |
|
|
const url = "/gov/access/govcustomermenu/getcustomerids" |
|
|
const url = "/gov/access/govcustomermenu/getcustomerids" |
|
|
const params = { |
|
|
// const params = { |
|
|
tableId: this.tableId |
|
|
// tableId: this.tableId |
|
|
} |
|
|
// } |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
// const { data, code, msg } = await requestPost(url, params) |
|
|
if (code === 0) { |
|
|
// if (code === 0) { |
|
|
this.menuList = data |
|
|
// this.menuList = data |
|
|
|
|
|
|
|
|
this.menuList.forEach(element => { |
|
|
// this.menuList.forEach(element => { |
|
|
if (this.customerIdList.indexOf(element) > -1) { |
|
|
// if (this.customerIdList.indexOf(element) > -1) { |
|
|
this.menuListShow.push(element) |
|
|
// this.menuListShow.push(element) |
|
|
} |
|
|
// } |
|
|
}); |
|
|
// }); |
|
|
|
|
|
|
|
|
this.handleCheckedCitiesChange(this.menuListShow) |
|
|
// this.handleCheckedCitiesChange(this.menuListShow) |
|
|
|
|
|
|
|
|
} else { |
|
|
// } else { |
|
|
this.$message.error(msg) |
|
|
// this.$message.error(msg) |
|
|
} |
|
|
// } |
|
|
}, |
|
|
}, |
|
|
//关闭功能配置弹出框 |
|
|
//关闭功能配置弹出框 |
|
|
handleDialogClosed () { |
|
|
handleDialogClosed () { |
|
@ -507,7 +517,14 @@ export default { |
|
|
.role-container .el-dialog__body { |
|
|
.role-container .el-dialog__body { |
|
|
padding: 0 20px 20px; |
|
|
padding: 0 20px 20px; |
|
|
} |
|
|
} |
|
|
.d-textarea { |
|
|
.div_duty { |
|
|
height: 500px; |
|
|
height: 300px; |
|
|
|
|
|
position: relative; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.div_btn { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
bottom: 30px; |
|
|
|
|
|
right: 15px; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|