diff --git a/.env.development b/.env.development index 8c09030..2d88d40 100644 --- a/.env.development +++ b/.env.development @@ -3,11 +3,11 @@ ENV = 'development' # http://192.168.1.43:8324/admin # http://mer.crmeb.net/admin # base api -VUE_APP_BASE_API = 'http://192.168.1.24:8080' +VUE_APP_BASE_API = 'http://192.168.1.18:8080' # VUE_APP_BASE_API = 'https://api.tropjoin.com/' # socket 连接地址 -VUE_APP_WS_URL = 'ws://http://192.168.1.24:8080' +VUE_APP_WS_URL = 'ws://http://192.168.1.18:8080' # VUE_APP_WS_URL = 'ws://https://api.tropjoin.com/' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/src/views/product/productExamine/editAttr.vue b/src/views/product/productExamine/editAttr.vue index c33e58d..258a53c 100644 --- a/src/views/product/productExamine/editAttr.vue +++ b/src/views/product/productExamine/editAttr.vue @@ -197,7 +197,7 @@ - + 提交 @@ -450,6 +450,7 @@ export default { attrInfo: {}, detailStatus:true, attrList:[], + attrInfos:{}, oneFormBatch: [ { image: '', @@ -490,6 +491,29 @@ export default { }, methods: { + handleModet(row){ + // 生成 + let arr = this.attrFormat(this.attrList.map(res=>{ + return{ + value:res.title, + detail:res.detail.map(res=>res.value) + } + })) + // this.attrInfos = {} + // //存储 + // this.ManyAttrValue.forEach((val) => { + // if (val.detail !== 'undefined' && val.detail !== null) { + // this.attrInfos[val.unique] = val + // } + // }) + // //赋值 + // arr.forEach((val, index) => { + // const key = val.unique + // if (this.attrInfos[key]) arr[index] = this.attrInfos[key] + // val.image = this.formValidate.image + // }) + // console.log(arr) + }, handleMany(row,i,val){ if(row[i]){ this.detailStatus = false @@ -800,6 +824,7 @@ export default { this.ManyAttrValue = info.attrValue this.ManyAttrValue.forEach(val => { if (val.detail !== 'undefined' && val.detail !== null) { + console.log(val) this.attrInfo[ Object.values(val.detail) .sort()