|
|
@ -171,12 +171,13 @@ |
|
|
fixed="right" |
|
|
fixed="right" |
|
|
header-align="center" |
|
|
header-align="center" |
|
|
align="center" |
|
|
align="center" |
|
|
width="160" |
|
|
|
|
|
|
|
|
width="200" |
|
|
label="操作"> |
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link style="cursor: pointer" @click="editNodeModal(scope.row)">编辑</el-link> |
|
|
<el-link style="cursor: pointer" @click="editNodeModal(scope.row)">编辑</el-link> |
|
|
<el-link style="cursor: pointer" @click="subDetailModal(scope.row)">出口配置</el-link> |
|
|
<el-link style="cursor: pointer" @click="subDetailModal(scope.row)">出口配置</el-link> |
|
|
<el-link style="cursor: pointer" @click="authorityModal(scope.row)">权限配置</el-link> |
|
|
<el-link style="cursor: pointer" @click="authorityModal(scope.row)">权限配置</el-link> |
|
|
|
|
|
<el-link style="cursor: pointer" @click="processControlModal(scope.row)">特殊管控</el-link> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -373,7 +374,36 @@ |
|
|
<el-button type="primary" @click="nodeModalFlag = false">关闭</el-button> |
|
|
<el-button type="primary" @click="nodeModalFlag = false">关闭</el-button> |
|
|
</el-footer> |
|
|
</el-footer> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<el-dialog width="700px" title="特殊管控" :close-on-click-modal="false" :visible.sync="controlFlag"> |
|
|
|
|
|
<el-table |
|
|
|
|
|
:data="controlList" |
|
|
|
|
|
border |
|
|
|
|
|
:height="400" |
|
|
|
|
|
v-loading="false" |
|
|
|
|
|
ref="controlTable" |
|
|
|
|
|
@selection-change="handleSelectionChange"> |
|
|
|
|
|
style="width: 100%;"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
type="selection" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="center" |
|
|
|
|
|
:selectable="selectFlag" |
|
|
|
|
|
width="50"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="remark" |
|
|
|
|
|
header-align="center" |
|
|
|
|
|
align="left" |
|
|
|
|
|
min-width="600" |
|
|
|
|
|
label="描述"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="saveControl">保存</el-button> |
|
|
|
|
|
<el-button type="primary" @click="controlFlag = false">关闭</el-button> |
|
|
|
|
|
</el-footer> |
|
|
|
|
|
</el-dialog> |
|
|
<!-- chooseList模态框 --> |
|
|
<!-- chooseList模态框 --> |
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
</div> |
|
|
</div> |
|
|
@ -394,6 +424,8 @@ |
|
|
getAuthorityFieldList, // 获取权限字段集合 |
|
|
getAuthorityFieldList, // 获取权限字段集合 |
|
|
saveAuthorityList, // 保存节点权限 |
|
|
saveAuthorityList, // 保存节点权限 |
|
|
editNodeInfo, // 修改节点 |
|
|
editNodeInfo, // 修改节点 |
|
|
|
|
|
getProcessControlList, |
|
|
|
|
|
saveProcessControlList, |
|
|
} from '@/api/processManagement/processManagement.js' |
|
|
} from '@/api/processManagement/processManagement.js' |
|
|
import {getChooselistData, verifyData} from "@/api/chooselist/chooselist.js" |
|
|
import {getChooselistData, verifyData} from "@/api/chooselist/chooselist.js" |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
import Chooselist from '@/views/modules/common/Chooselist' |
|
|
@ -919,7 +951,16 @@ |
|
|
modalFlag: false, |
|
|
modalFlag: false, |
|
|
authorityFlag: false, |
|
|
authorityFlag: false, |
|
|
nodeModalFlag: false, |
|
|
nodeModalFlag: false, |
|
|
nodeModalDisableFlag: false |
|
|
|
|
|
|
|
|
nodeModalDisableFlag: false, |
|
|
|
|
|
controlFlag: false, |
|
|
|
|
|
controlList:[], |
|
|
|
|
|
controlSelection:[], |
|
|
|
|
|
controlData:{ |
|
|
|
|
|
site:'', |
|
|
|
|
|
workflowId:'', |
|
|
|
|
|
nodeId:'', |
|
|
|
|
|
detailData:'', |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -1027,7 +1068,50 @@ |
|
|
}) |
|
|
}) |
|
|
this.authorityFlag = true |
|
|
this.authorityFlag = true |
|
|
}, |
|
|
}, |
|
|
|
|
|
processControlModal(row){ |
|
|
|
|
|
this.controlData.site=row.site |
|
|
|
|
|
this.controlData.workflowId=row.workflowId |
|
|
|
|
|
this.controlData.nodeId=row.nodeId |
|
|
|
|
|
getProcessControlList(this.controlData).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.controlList=data.rows |
|
|
|
|
|
this.controlSelection=data.select |
|
|
|
|
|
// this.$refs.controlTable.toggleAllSelection() |
|
|
|
|
|
this.controlList.forEach(val => { |
|
|
|
|
|
// 回显选中 |
|
|
|
|
|
for (let i = 0; i <this.controlSelection.length ; i++) { |
|
|
|
|
|
if(this.controlSelection[i].roleId===val.roleId){ |
|
|
|
|
|
this.$nextTick(() => this.$refs.controlTable.toggleRowSelection(val, true)) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
this.controlFlag=true |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
saveControl(){ |
|
|
|
|
|
this.controlData.detailData=this.controlSelection |
|
|
|
|
|
saveProcessControlList(this.controlData).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.controlFlag=false |
|
|
|
|
|
this.$message.success( '操作成功') |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
handleSelectionChange(val) { |
|
|
|
|
|
this.controlSelection = val; |
|
|
|
|
|
}, |
|
|
// 表改变事件 |
|
|
// 表改变事件 |
|
|
tableChange3 () { |
|
|
tableChange3 () { |
|
|
getAuthorityFieldList(this.authorityData).then(({data}) => { |
|
|
getAuthorityFieldList(this.authorityData).then(({data}) => { |
|
|
|