|
|
|
@ -216,11 +216,11 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: 0px;"> |
|
|
|
<el-form-item prop="operatorName" :rules="rules.operatorNameType"> |
|
|
|
<span slot="label" @click="getOperatorList()"><a>计划执行人员</a></span> |
|
|
|
<span slot="label" @click="getOperatorList"><a>计划执行人员</a></span> |
|
|
|
<el-input v-model="modalData.operatorName" style="width: 260px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="checkerName" :rules="rules.checkerNameType"> |
|
|
|
<span slot="label" @click="getCheckerList()"><a>选择审核人员</a></span> |
|
|
|
<span slot="label" @click="getCheckerList"><a>选择审核人员</a></span> |
|
|
|
<el-input v-model="modalData.checkerName" style="width: 260px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -370,11 +370,11 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: 0px;"> |
|
|
|
<el-form-item prop="operatorName" :rules="rules.operatorNameType"> |
|
|
|
<span slot="label" @click="getOperatorList()"><a>计划执行人员</a></span> |
|
|
|
<span slot="label" @click="getOperatorList"><a>计划执行人员</a></span> |
|
|
|
<el-input v-model="modalData.operatorName" style="width: 260px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="checkerName" :rules="rules.checkerNameType"> |
|
|
|
<span slot="label" @click="getCheckerList()"><a>选择审核人员</a></span> |
|
|
|
<span slot="label" @click="getCheckerList"><a>选择审核人员</a></span> |
|
|
|
<el-input v-model="modalData.checkerName" style="width: 260px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -386,7 +386,7 @@ |
|
|
|
<div style="text-align: center ;font-size: 11px"> |
|
|
|
<span> ----------------------------------------------------选择设备----------------------------------------------------</span> |
|
|
|
</div> |
|
|
|
<el-button type="primary" @click="addPlanDetail()">设备编辑</el-button> |
|
|
|
<el-button type="primary" @click="addPlanDetail">设备编辑</el-button> |
|
|
|
<el-table |
|
|
|
:height="200" |
|
|
|
:data="updateObjectList" |
|
|
|
@ -587,27 +587,27 @@ |
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
|
|
|
|
<!-- 机修人员清单 --> |
|
|
|
<el-dialog title="执行人员清单" @close="closeDialog" :close-on-click-modal="false" v-drag :visible.sync="operatorModelFlag" width="820px"> |
|
|
|
<el-dialog title="执行人员清单" :close-on-click-modal="false" v-drag :visible.sync="operatorModelFlag" width="820px"> |
|
|
|
<div class="rq"> |
|
|
|
<el-form :inline="true" label-position="top" :model="operatorData"> |
|
|
|
<el-form-item :label="'所属角色'"> |
|
|
|
<el-select value="roleName" v-model="operatorData.roleName" clearable placeholder="请选择" style="width: 120px"> |
|
|
|
<el-select v-model="operatorData.roleId" placeholder="请选择" style="width: 120px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in roleList" |
|
|
|
:key = "i.roleID" |
|
|
|
:key = "i.roleId" |
|
|
|
:label = "i.roleName" |
|
|
|
:value = "i.roleName"> |
|
|
|
:value = "i.roleId"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'用户账号'"> |
|
|
|
<el-input v-model="operatorData.adminID" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="operatorData.adminID" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'用户名称'"> |
|
|
|
<el-input v-model="operatorData.adminName" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="operatorData.adminName" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="getOperatorList()">查询</el-button> |
|
|
|
<el-button type="primary" @click="getOperatorList2">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
@ -653,23 +653,23 @@ |
|
|
|
<div class="rq"> |
|
|
|
<el-form :inline="true" label-position="top" :model="checkerData"> |
|
|
|
<el-form-item :label="'所属角色'"> |
|
|
|
<el-select value="roleName" v-model="checkerData.roleName" clearable placeholder="请选择" style="width: 120px"> |
|
|
|
<el-select v-model="checkerData.roleId" placeholder="请选择" style="width: 120px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in roleList" |
|
|
|
:key = "i.roleID" |
|
|
|
:key = "i.roleId" |
|
|
|
:label = "i.roleName" |
|
|
|
:value = "i.roleName"> |
|
|
|
:value = "i.roleId"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'人员编码'"> |
|
|
|
<el-input v-model="checkerData.adminID" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="checkerData.adminID" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'人员姓名'"> |
|
|
|
<el-input v-model="checkerData.adminName" style="width: 120px"></el-input> |
|
|
|
<el-input v-model="checkerData.adminName" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="getCheckerList()">查询</el-button> |
|
|
|
<el-button type="primary" @click="getCheckerList2">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
@ -823,7 +823,8 @@ |
|
|
|
addObject, // 添加设备 |
|
|
|
delObject, // 移除设备 |
|
|
|
planObjectSearch, // 查询该计划的设备 |
|
|
|
getSiteAndBuByUserName |
|
|
|
getSiteAndBuByUserName, |
|
|
|
getUserRoleList |
|
|
|
} from "@/api/eam/eam.js" |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist_eam' |
|
|
|
@ -1551,7 +1552,7 @@ |
|
|
|
bu: '', |
|
|
|
adminID: '', |
|
|
|
adminName: '', |
|
|
|
roleID: '', |
|
|
|
roleId: '', |
|
|
|
roleName: '', |
|
|
|
}, |
|
|
|
checkerData: { |
|
|
|
@ -1559,7 +1560,7 @@ |
|
|
|
bu: '', |
|
|
|
adminID: '', |
|
|
|
adminName: '', |
|
|
|
roleID: '', |
|
|
|
roleId: '', |
|
|
|
roleName: '', |
|
|
|
}, |
|
|
|
updateDetailData: { |
|
|
|
@ -1691,6 +1692,8 @@ |
|
|
|
// 动态列 |
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table2',2) |
|
|
|
// 获取用户角色 |
|
|
|
this.getUserRoleList() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
@ -1884,14 +1887,22 @@ |
|
|
|
// 获取机修人员列表 |
|
|
|
getOperatorList () { |
|
|
|
this.operatorData.bu = this.modalData.bu |
|
|
|
this.operatorData.site = this.$store.state.user.site |
|
|
|
this.getRoleNameList() |
|
|
|
if (this.roleList.length > 0) { |
|
|
|
let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
|
if (filterList.length > 0) { |
|
|
|
this.operatorData.roleId = filterList[0].roleId |
|
|
|
} else { |
|
|
|
this.operatorData.roleId = this.roleList[0].roleId |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.operatorData.roleId = '' |
|
|
|
} |
|
|
|
getOperatorList(this.operatorData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.operatorList = data.rows |
|
|
|
this.modalData.operatorName = '' |
|
|
|
this.modalData.operator = '' |
|
|
|
this.operatorModelFlag = true; |
|
|
|
this.operatorModelFlag = true |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -1900,36 +1911,86 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取数据列表 |
|
|
|
getRoleNameList () { |
|
|
|
this.dataListLoading = true |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl('/sys/role/list2'), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams({ |
|
|
|
'page': this.pageIndex, |
|
|
|
'limit': this.pageSize, |
|
|
|
}) |
|
|
|
}).then(({data}) => { |
|
|
|
let temp = [] |
|
|
|
// 查询机修人员列表 |
|
|
|
getOperatorList2 () { |
|
|
|
getOperatorList(this.operatorData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.roleList = data.page.list |
|
|
|
temp = this.roleList[0] |
|
|
|
this.roleList[0] = this.roleList[1] |
|
|
|
this.roleList[1] = temp |
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
this.operatorList = data.rows |
|
|
|
} else { |
|
|
|
this.operatorList = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取用户角色 |
|
|
|
getUserRoleList () { |
|
|
|
getUserRoleList().then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.roleList = data.rows |
|
|
|
} else { |
|
|
|
this.roleList = [] |
|
|
|
this.totalPage = 0 |
|
|
|
} |
|
|
|
this.dataListLoading = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// // 获取机修人员列表 |
|
|
|
// getOperatorList () { |
|
|
|
// this.operatorData.bu = this.modalData.bu |
|
|
|
// this.operatorData.site = this.$store.state.user.site |
|
|
|
// this.getRoleNameList() |
|
|
|
// getOperatorList(this.operatorData).then(({data}) => { |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.operatorList = data.rows |
|
|
|
// this.modalData.operatorName = '' |
|
|
|
// this.modalData.operator = '' |
|
|
|
// this.operatorModelFlag = true; |
|
|
|
// } else { |
|
|
|
// this.$alert(data.msg, '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
// |
|
|
|
// // 获取数据列表 |
|
|
|
// getRoleNameList () { |
|
|
|
// this.dataListLoading = true |
|
|
|
// this.$http({ |
|
|
|
// url: this.$http.adornUrl('/sys/role/list2'), |
|
|
|
// method: 'get', |
|
|
|
// params: this.$http.adornParams({ |
|
|
|
// 'page': this.pageIndex, |
|
|
|
// 'limit': this.pageSize, |
|
|
|
// }) |
|
|
|
// }).then(({data}) => { |
|
|
|
// let temp = [] |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.roleList = data.page.list |
|
|
|
// temp = this.roleList[0] |
|
|
|
// this.roleList[0] = this.roleList[1] |
|
|
|
// this.roleList[1] = temp |
|
|
|
// this.totalPage = data.page.totalCount |
|
|
|
// } else { |
|
|
|
// this.roleList = [] |
|
|
|
// this.totalPage = 0 |
|
|
|
// } |
|
|
|
// this.dataListLoading = false |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
|
|
|
|
// 获取审核人员 |
|
|
|
getCheckerList () { |
|
|
|
this.checkerData.bu = this.modalData.bu |
|
|
|
this.getRoleNameList() |
|
|
|
if (this.roleList.length > 0) { |
|
|
|
let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
|
if (filterList.length > 0) { |
|
|
|
this.checkerData.roleId = filterList[0].roleId |
|
|
|
} else { |
|
|
|
this.checkerData.roleId = this.roleList[0].roleId |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.checkerData.roleId = '' |
|
|
|
} |
|
|
|
getCheckerList(this.checkerData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.checkerList = data.rows |
|
|
|
@ -1944,6 +2005,35 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询机修人员列表 |
|
|
|
getCheckerList2 () { |
|
|
|
getCheckerList(this.checkerData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.checkerList = data.rows |
|
|
|
} else { |
|
|
|
this.checkerList = [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// // 获取审核人员 |
|
|
|
// getCheckerList () { |
|
|
|
// this.checkerData.bu = this.modalData.bu |
|
|
|
// this.getRoleNameList() |
|
|
|
// getCheckerList(this.checkerData).then(({data}) => { |
|
|
|
// if (data && data.code === 0) { |
|
|
|
// this.checkerList = data.rows |
|
|
|
// this.modalData.checkerName = '' |
|
|
|
// this.modalData.checker = '' |
|
|
|
// this.checkerModelFlag = true |
|
|
|
// } else { |
|
|
|
// this.$alert(data.msg, '错误', { |
|
|
|
// confirmButtonText: '确定' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
|
|
|
|
// 多选 |
|
|
|
selectionChangeHandle2 (val) { |
|
|
|
this.dataListSelections2 = val |
|
|
|
|