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