修改禅道已知bug

This commit is contained in:
qq787203167
2022-07-07 11:10:13 +08:00
parent 341a360565
commit f90fe16a43
3 changed files with 105 additions and 64 deletions
@@ -95,13 +95,13 @@
<span class="title-text-text"
:title="$t('engineer')">{{$t('engineer')}}</span>
</div>
<a-form-model-item class="itemModel" prop="userName">
<a-form-model-item class="itemModel" prop="userIdName">
<PersonnelSelection
:query="{db_field_name:'userId',db_field_txt:$t('engineer')}"
:personneQuery="formInline"
:distributionEngineerList="distributionEngineerList"
@change="PersonnelSelectionChange"
v-model="formInline.userName"/>
v-model="formInline.userIdName"/>
</a-form-model-item>
</div>
</a-col>
@@ -385,7 +385,7 @@
trigger: 'change'
}
],
userName: [
userIdName: [
{
required: true,
message: this.$t('engineer') + this.$t('cannotEmpty'),
@@ -623,8 +623,9 @@
})
}
this.formInline.userId = userId.join(',')
this.formInline.userName = userName.join(',')
this.formInline.userIdName = userName.join(',')
this.formInline = { ...this.formInline }
console.log(this.formInline)
}
this.loadingTable = false
} else {
@@ -682,7 +683,7 @@
this.formInline[value] = id
this.distributionEngineerList = []
if (id) {
this.formInline.userName.split(',').forEach((res, index) => {
this.formInline.userIdName.split(',').forEach((res, index) => {
this.distributionEngineerList.push({
deliveryInstructions: '',
name: res,
@@ -713,9 +714,9 @@
})
_this.distributionEngineerList.splice(num, 1)
_this.distributionEngineerList = [..._this.distributionEngineerList]
_this.formInline.userName = _this.formInline.userName.split(',')
_this.formInline.userName.splice(num, 1)
_this.formInline.userName = _this.formInline.userName.join(',')
_this.formInline.userIdName = _this.formInline.userIdName.split(',')
_this.formInline.userIdName.splice(num, 1)
_this.formInline.userIdName = _this.formInline.userIdName.join(',')
_this.formInline.userId = _this.formInline.userId.split(',')
_this.formInline.userId.splice(num, 1)
_this.formInline.userId = _this.formInline.userId.join(',')