|
@@ -22,6 +22,9 @@
|
|
<el-table-column label="类型名称" align="center">
|
|
<el-table-column label="类型名称" align="center">
|
|
<template slot-scope="scope">{{scope.row.name}}</template>
|
|
<template slot-scope="scope">{{scope.row.name}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="排序" align="center" width="100">
|
|
|
|
+ <template slot-scope="scope">{{scope.row.sort}}</template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="属性数量" width="200" align="center">
|
|
<el-table-column label="属性数量" width="200" align="center">
|
|
<template slot-scope="scope">{{scope.row.attributeCount==null?0:scope.row.attributeCount}}</template>
|
|
<template slot-scope="scope">{{scope.row.attributeCount==null?0:scope.row.attributeCount}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -76,6 +79,9 @@
|
|
<el-form-item label="类型名称" prop="name">
|
|
<el-form-item label="类型名称" prop="name">
|
|
<el-input v-model="productAttrCate.name" auto-complete="off"></el-input>
|
|
<el-input v-model="productAttrCate.name" auto-complete="off"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="排序值" prop="sort">
|
|
|
|
+ <el-input v-model.number="productAttrCate.sort" auto-complete="off"></el-input>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
@@ -157,6 +163,7 @@
|
|
this.dialogTitle = "编辑类型";
|
|
this.dialogTitle = "编辑类型";
|
|
this.productAttrCate.name = row.name;
|
|
this.productAttrCate.name = row.name;
|
|
this.productAttrCate.id = row.id;
|
|
this.productAttrCate.id = row.id;
|
|
|
|
+ this.productAttrCate.sort = row.sort;
|
|
},
|
|
},
|
|
getAttrList(index, row) {
|
|
getAttrList(index, row) {
|
|
this.$router.push({path: '/pms/productAttrList',query:{cid:row.id,cname:row.name,type:0}})
|
|
this.$router.push({path: '/pms/productAttrList',query:{cid:row.id,cname:row.name,type:0}})
|
|
@@ -170,7 +177,8 @@
|
|
// let data = new URLSearchParams();
|
|
// let data = new URLSearchParams();
|
|
// data.append("name",this.productAttrCate.name);
|
|
// data.append("name",this.productAttrCate.name);
|
|
let obj = {
|
|
let obj = {
|
|
- name:this.productAttrCate.name
|
|
|
|
|
|
+ name:this.productAttrCate.name,
|
|
|
|
+ sort:this.productAttrCate.sort
|
|
}
|
|
}
|
|
if(this.dialogTitle==="添加类型"){
|
|
if(this.dialogTitle==="添加类型"){
|
|
createProductAttrCate(obj).then(response=>{
|
|
createProductAttrCate(obj).then(response=>{
|