项目详情的各个工程师的数据获取
This commit is contained in:
@@ -8,16 +8,18 @@
|
|||||||
<span>{{$t('standard')}}</span>
|
<span>{{$t('standard')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||||
v-model="queryParam.standard"></a-input>
|
v-model="queryParam.serialNumber"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('areaOfResponsibility')">
|
<div class="title-text" style="width: 64px" :title="$t('areaOfResponsibility')">
|
||||||
<span>{{$t('areaOfResponsibility')}}</span>
|
<span>{{$t('areaOfResponsibility')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('areaOfResponsibility')"
|
<j-dict-select-tag class="box-input" v-model="queryParam.dutyTerritory"
|
||||||
v-model="queryParam.title"></a-input>
|
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'region'"/>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
@@ -164,7 +166,7 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'CurrentProjectStatusEvaluation',
|
dataIndex: 'CurrentProjectStatusEvaluation',
|
||||||
scopedSlots: { customRender: 'CurrentProjectStatusEvaluation' }
|
scopedSlots: { customRender: 'CurrentProjectStatusEvaluation' }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
@@ -188,9 +190,9 @@
|
|||||||
handleExport() {
|
handleExport() {
|
||||||
|
|
||||||
},
|
},
|
||||||
CertificationDirectory(){
|
CertificationDirectory() {
|
||||||
|
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -198,66 +200,6 @@
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@assets/less/common.less';
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
.doc-detail {
|
|
||||||
background: #fff;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
.Virtual-detail-header {
|
|
||||||
width: 100%;
|
|
||||||
height: 68px;
|
|
||||||
line-height: 68px;
|
|
||||||
padding: 0 32px 0 32px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
border-bottom: 2px #eff1f3 solid;
|
|
||||||
background: #fff;
|
|
||||||
|
|
||||||
.Virtual-detail-title {
|
|
||||||
display: inline-block;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #040B29;
|
|
||||||
line-height: 68px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.doc-detail-right {
|
|
||||||
width: 800px;
|
|
||||||
line-height: 68px;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.Virtual-detail-content {
|
|
||||||
padding: 0 38px 0 38px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-size: 16px;
|
|
||||||
|
|
||||||
.box-title-text-add {
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title-text-add {
|
|
||||||
display: inline-block;
|
|
||||||
font-weight: 500;
|
|
||||||
margin-right: 16px;
|
|
||||||
height: 42px;
|
|
||||||
line-height: 42px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-text {
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 400;
|
|
||||||
height: 60px;
|
|
||||||
color: #000F16;
|
|
||||||
line-height: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.box-title-text {
|
.box-title-text {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -266,8 +208,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title-text {
|
.title-text {
|
||||||
width: 20%;
|
width: 32px;
|
||||||
min-width: 110px;
|
|
||||||
color: #000F16;
|
color: #000F16;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -198,8 +198,8 @@
|
|||||||
<a-select-option v-for="(item, key) in regulatoryEngineerList"
|
<a-select-option v-for="(item, key) in regulatoryEngineerList"
|
||||||
:key="key"
|
:key="key"
|
||||||
:value="item.value">
|
:value="item.value">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
<span style="display: inline-block;width: 100%" :title=" item.name">
|
||||||
{{ item.text || item.label }}
|
{{ item.name }}
|
||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -218,11 +218,11 @@
|
|||||||
<a-select :placeholder="$t('PleaseSelect')+$t('certifiedEngineer')"
|
<a-select :placeholder="$t('PleaseSelect')+$t('certifiedEngineer')"
|
||||||
:disabled="formInline.roleCode == 0 ? false : true"
|
:disabled="formInline.roleCode == 0 ? false : true"
|
||||||
v-model="formInline.homologationEngineerId">
|
v-model="formInline.homologationEngineerId">
|
||||||
<a-select-option v-for="(item, key) in regulatoryEngineerList"
|
<a-select-option v-for="(item, key) in certificationEngineerList"
|
||||||
:key="key"
|
:key="key"
|
||||||
:value="item.value">
|
:value="item.value">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
<span style="display: inline-block;width: 100%" :title=" item.name ">
|
||||||
{{ item.text || item.label }}
|
{{ item.name}}
|
||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -239,11 +239,11 @@
|
|||||||
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
|
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"
|
||||||
:disabled="formInline.roleCode == 0 ? false : true"
|
:disabled="formInline.roleCode == 0 ? false : true"
|
||||||
v-model="formInline.engineeringInterfacePerson">
|
v-model="formInline.engineeringInterfacePerson">
|
||||||
<a-select-option v-for="(item, key) in regulatoryEngineerList"
|
<a-select-option v-for="(item, key) in engineeringInterfacePersonList"
|
||||||
:key="key"
|
:key="key"
|
||||||
:value="item.value">
|
:value="item.value">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
<span style="display: inline-block;width: 100%" :title=" item.name ">
|
||||||
{{ item.text || item.label }}
|
{{ item.name }}
|
||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
@@ -569,14 +569,30 @@
|
|||||||
rules: {},
|
rules: {},
|
||||||
formInline: {},
|
formInline: {},
|
||||||
regulatoryEngineerList: [],
|
regulatoryEngineerList: [],
|
||||||
|
engineeringInterfacePersonList: [],
|
||||||
|
certificationEngineerList: [],
|
||||||
disabled: false
|
disabled: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
queryPersonByProject(row) {
|
||||||
|
let query = {
|
||||||
|
projectId: this.$route.query.id,
|
||||||
|
dutyTerritory: row.dutyTerritory
|
||||||
|
}
|
||||||
|
getAction(this.url.queryPersonByProject, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.regulatoryEngineerList = res.result.lawEngineerList
|
||||||
|
this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList
|
||||||
|
this.certificationEngineerList = res.result.certificationEngineerList
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
editModel(item) {
|
editModel(item) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.queryPersonByProject(item)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.rules = {}
|
this.rules = {}
|
||||||
this.formInline = item
|
this.formInline = item
|
||||||
@@ -680,7 +696,7 @@
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid){
|
if (valid) {
|
||||||
let formInline = JSON.parse(JSON.stringify(this.formInline))
|
let formInline = JSON.parse(JSON.stringify(this.formInline))
|
||||||
Object.keys(formInline).forEach(res => {
|
Object.keys(formInline).forEach(res => {
|
||||||
if (formInline[res] && formInline[res] instanceof Array) {
|
if (formInline[res] && formInline[res] instanceof Array) {
|
||||||
|
|||||||
@@ -484,7 +484,8 @@
|
|||||||
deleteBatch: '/project/projectLawsInventoryEO/deleteBatch',
|
deleteBatch: '/project/projectLawsInventoryEO/deleteBatch',
|
||||||
deleteOne: '/project/projectLawsInventoryEO/delete',
|
deleteOne: '/project/projectLawsInventoryEO/delete',
|
||||||
updateStatusBatch: '/project/projectLawsInventoryEO/updateStatusBatch',
|
updateStatusBatch: '/project/projectLawsInventoryEO/updateStatusBatch',
|
||||||
matchRelevantPeople: '/project/projectLawsInventoryEO/matchRelevantPeople'
|
matchRelevantPeople: '/project/projectLawsInventoryEO/matchRelevantPeople',
|
||||||
|
queryPersonByProject: '/project/projectRelatedPersonnel/queryPersonByProjectId'
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
dataSource: []
|
dataSource: []
|
||||||
|
|||||||
Reference in New Issue
Block a user