提交 2f13ad95 authored 作者: 潘鹏's avatar 潘鹏

attributes

上级 fa9dbdfa
...@@ -550,21 +550,22 @@ let vm = new Vue({ ...@@ -550,21 +550,22 @@ let vm = new Vue({
add: function () { add: function () {
window.sessionStorage.getItem('_copy_product_info') ? this.show_paste_btn = true : void (0); window.sessionStorage.getItem('_copy_product_info') ? this.show_paste_btn = true : void (0);
this.AttributeImgArr.length = 0; this.AttributeImgArr.length = 0;
this.paramster.length = 0; // this.paramster.length = 0;
this.paramster.push( // this.paramster.push(
{ // {
paramName: 'Style', // paramName: 'Style',
paramValue: '' // paramValue: ''
}, // },
{ // {
paramName: 'Material', // paramName: 'Material',
paramValue: '' // paramValue: ''
}, // },
{ // {
paramName: 'Fit Type', // paramName: 'Fit Type',
paramValue: '' // paramValue: ''
} // }
); // );
vm.getAttrName();
vm.showList = false; vm.showList = false;
vm.title = "新增"; vm.title = "新增";
vm.tbCfStationItem = {}; vm.tbCfStationItem = {};
...@@ -573,7 +574,6 @@ let vm = new Vue({ ...@@ -573,7 +574,6 @@ let vm = new Vue({
this.disabledChangeAttribute = false; this.disabledChangeAttribute = false;
// vm.tbCfStationItem.itemImg = ""; // vm.tbCfStationItem.itemImg = "";
UE.getEditor('itemDesc').setContent(""); UE.getEditor('itemDesc').setContent("");
vm.getAttrName();
}, },
update: function (event) { update: function (event) {
window.sessionStorage.getItem('_copy_product_info') ? this.show_paste_btn = true : void (0); window.sessionStorage.getItem('_copy_product_info') ? this.show_paste_btn = true : void (0);
...@@ -1248,6 +1248,7 @@ let vm = new Vue({ ...@@ -1248,6 +1248,7 @@ let vm = new Vue({
//商品参数 //商品参数
getAttrName(){ getAttrName(){
this.paramsters= []
$.get('../attributes/queryAttrNames', res => { $.get('../attributes/queryAttrNames', res => {
let Attr = JSON.parse(res).list let Attr = JSON.parse(res).list
Attr.forEach(item=>{ Attr.forEach(item=>{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论