|
@@ -5,6 +5,12 @@
|
|
|
<span style="margin-top: 5px">数据列表</span>
|
|
|
<el-button
|
|
|
class="btn-add"
|
|
|
+ @click="handleImportProductCate()"
|
|
|
+ size="mini">
|
|
|
+ 导入
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ class="btn-add"
|
|
|
@click="handleAddProductCate()"
|
|
|
size="mini">
|
|
|
添加
|
|
@@ -15,15 +21,29 @@
|
|
|
style="width: 100%"
|
|
|
:data="list"
|
|
|
v-loading="listLoading" border>
|
|
|
- <el-table-column label="编号" width="100" align="center">
|
|
|
+ <el-table-column label="序号" width="100" align="center">
|
|
|
<template slot-scope="scope">{{ scope.$index + 1 + (listQuery.current - 1) * listQuery.size }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="分类名称" align="center">
|
|
|
+ <el-table-column label="产品类别图" width="120" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-image v-if="scope.row.systemFileList && scope.row.systemFileList.length>0" style="height: 80px" :preview-src-list="scope.row.systemFileList.map(item=>{return $commonJS.getFile(item.guid)})" :src="$commonJS.getFile(scope.row.systemFileList[0].guid)"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="类别名称" align="center">
|
|
|
<template slot-scope="scope">{{scope.row.name}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="级别" width="100" align="center">
|
|
|
<template slot-scope="scope">{{scope.row.level | levelFilter}}</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="路径" align="center">
|
|
|
+ <template slot-scope="scope">{{scope.row.path}}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="关键词" align="center">
|
|
|
+ <template slot-scope="scope">{{scope.row.searchCondition}}</template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="描述" align="center">
|
|
|
+ <template slot-scope="scope">{{scope.row.description}}</template>
|
|
|
+ </el-table-column>
|
|
|
<!-- <el-table-column label="是否显示" width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch
|
|
@@ -34,14 +54,14 @@
|
|
|
</el-switch>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column label="排序" width="100" align="center">
|
|
|
+ <!-- <el-table-column label="排序" width="100" align="center">
|
|
|
<template slot-scope="scope">{{scope.row.sort }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="设置" width="200" align="center">
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column label="设置" width="120" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
- :disabled="scope.row.level | disableNextLevel"
|
|
|
+ :disabled="!scope.row.ifChild"
|
|
|
@click="handleShowNextLevel(scope.$index, scope.row)">查看下级
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -115,6 +135,9 @@
|
|
|
handleAddProductCate() {
|
|
|
this.$router.push('/pms/addProductCate');
|
|
|
},
|
|
|
+ //导入产品类别
|
|
|
+ handleImportProductCate(){},
|
|
|
+
|
|
|
//获取产品类别列表
|
|
|
getList() {
|
|
|
var params = {
|
|
@@ -191,13 +214,7 @@
|
|
|
return '二级';
|
|
|
}
|
|
|
},
|
|
|
- disableNextLevel(value) {
|
|
|
- if (value === 0) {
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|