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