海外标准法规--编辑页面 国家地区多选(未完成)
This commit is contained in:
@@ -671,20 +671,37 @@
|
||||
</el-col>
|
||||
|
||||
<template v-if="index === 0" >
|
||||
<el-form-item label="国家/地区" prop="" label-width="150px" class="add-form-item">
|
||||
<el-select v-model="sarStandardsInfoEO.country" filterable clearable>
|
||||
<!-- <el-form-item label="国家/地区" prop="" label-width="150px" class="add-form-item">-->
|
||||
<!-- <el-select v-model="sarStandardsInfoEO.country" filterable clearable>-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in countryOptions"-->
|
||||
<!-- placeholder="请选择"-->
|
||||
<!-- :key="item.value"-->
|
||||
<!-- :value="item.value"-->
|
||||
<!-- :label="item.label"-->
|
||||
<!-- ></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
{{sarStandardsInfoEO.country}}
|
||||
<el-form-item label="国家/地区" prop="countryArea" class="search-item">
|
||||
<el-select
|
||||
v-model="sarStandardsInfoEO.country"
|
||||
multiple
|
||||
placeholder="请选择"
|
||||
filterable
|
||||
:disabled="false"
|
||||
class="wx-resolve"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in countryOptions"
|
||||
placeholder="请选择"
|
||||
:key="item.value"
|
||||
:value="item.value"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
></el-option>
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
|
||||
<el-form-item label="标准类别" prop="standSort" label-width="150px" class="add-form-item">
|
||||
<el-select v-model="sarStandardsInfoEO.standSort" filterable>
|
||||
<el-option
|
||||
@@ -2403,6 +2420,10 @@ export default {
|
||||
},
|
||||
// 编辑标准属性
|
||||
selectStandardPro (item, state) {
|
||||
// this.sarStandardsInfoEO.country=JSON.parse(item.country );
|
||||
|
||||
// console.log(this.sarStandardsInfoEO.country);
|
||||
|
||||
this.addOrUPdateFlag = 2
|
||||
this.modalshowtitle = '编辑海外标准'
|
||||
this.modalshowflag = true
|
||||
@@ -2414,6 +2435,10 @@ export default {
|
||||
console.log(formFieldList, 'AAAAAAAAAAAAAAAAAAAAA')
|
||||
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
|
||||
this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem];
|
||||
console.log(item.country);
|
||||
console.log("hello")
|
||||
this.sarStandardsInfoEO.country=item.country;
|
||||
console.log(this.sarStandardsInfoEO.country);
|
||||
this.sarStandardsInfoEO.standSort = item.standSort
|
||||
if (this.sarStandardsInfoEO.putTime != null && this.sarStandardsInfoEO.putTime !== '') {
|
||||
this.sarStandardsInfoEO.putTime = this.sarStandardsInfoEO.putTime.replace(new RegExp(/-/gm), '/')
|
||||
@@ -3088,6 +3113,8 @@ export default {
|
||||
this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => {
|
||||
if (flag) {
|
||||
// 时间格式修改
|
||||
this.sarStandardsInfoEO.country=JSON.stringify(this.sarStandardsInfoEO.country);
|
||||
console.groupCollapsed(this.sarStandardsInfoEO.country);
|
||||
let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
|
||||
if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') {
|
||||
nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss')
|
||||
|
||||
Reference in New Issue
Block a user