解决入库流程 提交单验证失败后不能选择国家/地区
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
<!-- </el-form-item>-->
|
||||
|
||||
|
||||
<el-form-item v-if="form.standInData=='1'"label="国家/地区" prop="" label-width="150px" class="add-form-item">
|
||||
<el-form-item label="国家/地区" prop="" label-width="150px" class="add-form-item">
|
||||
<el-select v-model="form.country" multiple filterable clearable>
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
@@ -1375,6 +1375,7 @@
|
||||
countryArr:'',
|
||||
form: {
|
||||
// 基础信息
|
||||
country:[],
|
||||
textStatus: '', // 文本状态
|
||||
standYear: '', // 标准年份
|
||||
standInData: '0', // 标准类型
|
||||
@@ -1530,7 +1531,7 @@
|
||||
watch:{
|
||||
'form.country': {
|
||||
handler (val) {
|
||||
console.log("val")
|
||||
console.log(val)
|
||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||
if (val instanceof Array) {
|
||||
this.countryArr = val.join(",");
|
||||
@@ -2322,12 +2323,13 @@
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
this.form.country=this.countryArr;
|
||||
// this.form.country=this.countryArr;
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$refs['userForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.form.country=this.countryArr;
|
||||
var json = Object.assign(this.form, this.roleForm)
|
||||
json.zrUserId = this.form.zrUserId
|
||||
json.jlUserId = this.form.jlUserId
|
||||
@@ -2395,7 +2397,7 @@
|
||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.countryOptions=res.data.COUNTRY//国家地区
|
||||
this.countryOptions=res.data.COUNTRY//国家地区
|
||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||
|
||||
Reference in New Issue
Block a user