| | |
| | | <el-table-column prop="name" label="类别名称" min-width="100px"></el-table-column> |
| | | <el-table-column prop="categoryName" label="类型" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.type == 0">自建</span> |
| | | <span v-else>拉取</span> |
| | | <span v-if="row.type == 0">自定义</span> |
| | | <span v-else>系统</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="sortnum" label="排序码(升序)" min-width="100px"></el-table-column> |
| | |
| | | type: '' |
| | | }, |
| | | typeList: [ |
| | | { name: '自建', id: 0 }, |
| | | { name: '拉取', id: 1 } |
| | | { name: '自定义', id: 0 }, |
| | | { name: '系统', id: 1 } |
| | | ] |
| | | } |
| | | }, |
| | |
| | | platCateId: res.platCateId, |
| | | tableData: res.paramList.map(item => { |
| | | return { |
| | | id: item.id, |
| | | name: item.name, |
| | | isselect: item.isselect, |
| | | isshow: item.isshow |
| | |
| | | }), |
| | | fileList: res.imgurl ? [{ url: res.prefixUrl + res.imgurl }] : [] |
| | | } |
| | | console.log(obj) |
| | | this.$refs.operaCategoryWindow.open('编辑类别', obj) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |