@@ -208,7 +207,7 @@
- {{ attributeids }}
+ {{ attributeIdList }}
@@ -262,7 +261,7 @@ export default {
],
attributeTotal: 0,
attributeList: [],
- attributeids: [],
+ attributeIdList: [],
attribute: {
pageNum: 1,
pageSize: 6,
@@ -322,7 +321,7 @@ export default {
});
},
handleClose(index) {
- this.attributeids.splice(this.attributeids.indexOf(index), 1)
+ this.attributeIdList.splice(this.attributeIdList.indexOf(index), 1)
},
/** 查询商品属性列表 */
getList1() {
@@ -335,7 +334,6 @@ export default {
getList() {
this.loading = true;
listAttributeGroup(this.queryParams).then(response => {
- console.log(response)
this.attributeGroupList = response.data.rows;
this.total = response.data.total;
this.loading = false;
@@ -357,7 +355,7 @@ export default {
createTime: null,
updateBy: null,
updateTime: null,
- attributeids:null,
+ attributeIdList:null,
attributeIds:null,
};
this.resetForm("form");
@@ -389,11 +387,8 @@ export default {
this.reset();
const id = row.id || this.ids
getAttributeGroup(id).then(response => {
- console.log(response)
this.form = response.data;
- let str = response.data.attributeIds;
- this.attributeids = str.split(',').map(Number);
- console.log(this.form)
+ this.attributeIdList=response.data.attributeIdList
this.open = true;
this.title = "修改商品属性组";
});
@@ -403,8 +398,7 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
- let str = this.attributeids.join(',');
- this.form.attributeIds=str
+ this.form.attributeIdList=this.attributeIdList
updateAttributeGroup(this.form).then(response => {
console.log(this.form)
this.$modal.msgSuccess("修改成功");
@@ -412,18 +406,18 @@ export default {
this.getList();
this.reset();
this.form.attributeIds=''
- this.attributeids=[]
+ this.attributeIdList=[]
});
} else {
- let str = this.attributeids.join(',');
- this.form.attributeIds=str
+
+ this.form.attributeIdList=this.attributeIdList
addAttributeGroup(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
this.reset();
this.form.attributeIds=''
- this.attributeids=[]
+ this.attributeIdList=[]
});
}
}
diff --git a/src/views/product/brand/index.vue b/src/views/product/brand/index.vue
index 1f124de..e8404c7 100644
--- a/src/views/product/brand/index.vue
+++ b/src/views/product/brand/index.vue
@@ -10,12 +10,14 @@
/>
-
+
+
+
搜索
@@ -73,8 +75,16 @@
-
-
+
+
+
+
+
+
+
+
+
+
@@ -112,10 +122,16 @@
-
+
-
+
+ {{dict.label}}
+
@@ -137,6 +153,7 @@ import { listBrand, getBrand, delBrand, addBrand, updateBrand } from "@/api/prod
export default {
name: "Brand",
+ dicts: ['sys_yes_no'],
data() {
return {
// 遮罩层
@@ -177,7 +194,7 @@ export default {
{ required: true, message: "LOGO不能为空", trigger: "blur" }
],
start: [
- { required: true, message: "是否启用不能为空", trigger: "blur" }
+ { required: true, message: "是否启用不能为空", trigger: "change" }
],
createBy: [
{ required: true, message: "创建人不能为空", trigger: "blur" }
diff --git a/src/views/product/category/index.vue b/src/views/product/category/index.vue
index 2681d38..9741022 100644
--- a/src/views/product/category/index.vue
+++ b/src/views/product/category/index.vue
@@ -26,7 +26,7 @@
/>
- 搜索
+ 搜索
重置
@@ -40,7 +40,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['product:category:add']"
- >新增
+ >新增
+
展开/折叠
+ >展开/折叠
+
@@ -62,20 +64,20 @@
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
-
+
-
+
-
-
+
+
修改
+ >修改
+
新增
+ >新增
+
删除
+ >删除
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dict.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- {{dict.label}}
-
-
-
-
-
-
-
-