修改禅道已知bug
This commit is contained in:
@@ -119,12 +119,18 @@
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('certifiedEngineer')">{{$t('certifiedEngineer')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" :prop="'certificationEngineerName'">
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'certificationEngineer',db_field_txt:$t('certifiedEngineer')}"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.certificationEngineerName"/>
|
||||
<a-form-model-item class="itemModel" :prop="'certificationEngineer'">
|
||||
<a-select allowClear
|
||||
v-model="formInline.certificationEngineer"
|
||||
:placeholder="$t('certifiedEngineer')+$t('areaOfResponsibility')">
|
||||
<a-select-option v-for="(item, key) in dictOptionsValue"
|
||||
:key="item.id"
|
||||
:value="item.id">
|
||||
<span class="itemOption" :title=" item.username ">
|
||||
{{ item.username }}
|
||||
</span>
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -211,7 +217,7 @@
|
||||
confirmLoading: false,
|
||||
formInline: {},
|
||||
rules: {
|
||||
certificationEngineerName: [
|
||||
certificationEngineer: [
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('certifiedEngineer') + this.$t('cannotEmpty'),
|
||||
@@ -274,9 +280,11 @@
|
||||
page: '/project/projectRelatedPersonnel/page',
|
||||
edit: '/project/projectRelatedPersonnel/edit',
|
||||
exportData: '/project/projectRelatedPersonnel/exportXls',
|
||||
importZipUrl: '/project/projectRelatedPersonnel/importExcel'
|
||||
importZipUrl: '/project/projectRelatedPersonnel/importExcel',
|
||||
queryCertificationEngineer: '/project/projectRelatedPersonnel/queryCertificationEngineer'
|
||||
},
|
||||
selectedRowKeys: []
|
||||
selectedRowKeys: [],
|
||||
dictOptionsValue: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -295,9 +303,19 @@
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
queryCertificationEngineer() {
|
||||
getAction(this.url.queryCertificationEngineer, { projectId: this.$route.query.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.dictOptionsValue = res.result
|
||||
} else {
|
||||
this.dictOptionsValue = []
|
||||
}
|
||||
})
|
||||
},
|
||||
getData() {
|
||||
this.visible = true
|
||||
this.getList()
|
||||
this.queryCertificationEngineer()
|
||||
},
|
||||
getPersonnelList() {
|
||||
this.getList()
|
||||
@@ -429,4 +447,13 @@
|
||||
text-align: right;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.itemOption {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user