修改法规清单筛选法规工程师时,按项目相关人员内信息筛选

This commit is contained in:
范强强
2023-04-07 09:22:37 +08:00
parent 39402540dd
commit d79fa72268
@@ -1127,12 +1127,6 @@
text: this.$t('areaOfResponsibility'), text: this.$t('areaOfResponsibility'),
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框 dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
}, },
{
type: 'Personnel',
value: 'regulationOwnerId',
valueName: 'regulationOwnerIdName',
text: this.$t('regulatoryEngineer')
},
{ {
type: 'Personnel', type: 'Personnel',
value: 'engineeringInterfacePerson', value: 'engineeringInterfacePerson',
@@ -1318,6 +1312,7 @@
mounted() { mounted() {
this.JLoading = true this.JLoading = true
this.getHeader() this.getHeader()
this.queryLawEngineerByProjectId()
this.getRoleByUserId(() => { this.getRoleByUserId(() => {
this.getAndUserId() this.getAndUserId()
}) })
@@ -1366,7 +1361,32 @@
handleToggleSearch() { handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus this.toggleSearchStatus = !this.toggleSearchStatus
}, },
queryLawEngineerByProjectId() {
let query = {
projectLibraryId: this.$route.query.id
}
getAction('/project/projectRelatedPersonnel/queryLawEngineerByProjectId', query).then((res) => {
if (res.success) {
let regulatoryEngineer = {
value: 'regulationOwnerId',
text: this.$t('regulatoryEngineer'),
options:[],
}
if (res.result && res.result.length > 0){
res.result.forEach(val=>{
regulatoryEngineer.options.push({
value: val.id,
key: val.id,
label: val.userName
})
})
}
this.fieldList.push(regulatoryEngineer)
} else {
}
})
},
//流程状态点击事件 //流程状态点击事件
designFlowStatusClick(row, name) { designFlowStatusClick(row, name) {
let query = {} let query = {}
@@ -2081,7 +2101,7 @@
projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
orderBy: this.orderBy, orderBy: this.orderBy,
orderByField: this.orderByField, orderByField: this.orderByField,
roleCode: roleCode, roleCode: roleCode
// pageNo: this.pageNo, // pageNo: this.pageNo,
// pageSize: this.pageSize // pageSize: this.pageSize
} }
@@ -3032,10 +3052,12 @@
height: 32px !important; height: 32px !important;
line-height: 32px !important; line-height: 32px !important;
} }
::v-deep .ant-table-thead > tr > th[colspan]:not([colspan='1']) { ::v-deep .ant-table-thead > tr > th[colspan]:not([colspan='1']) {
text-align: left; text-align: left;
padding-left: 16px !important; padding-left: 16px !important;
} }
.operator-text-title:last-child { .operator-text-title:last-child {
margin-bottom: 0; margin-bottom: 0;
} }