|
@@ -56,7 +56,8 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="分类描述" align="center" prop="describe" />
|
|
|
- <el-table-column label="状态" align="center" prop="status" />
|
|
|
+ <el-table-column label="权重" align="center" prop="weight" />
|
|
|
+ <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat"/>
|
|
|
<el-table-column fixed="right" width="150" label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['product:info:edit']">修改</el-button>
|
|
@@ -86,7 +87,7 @@
|
|
|
class="avatar-uploader"
|
|
|
:action="`${baseUrl}/open-api/common/file`"
|
|
|
:show-file-list="false"
|
|
|
- :data="{ fileType: 99 }"
|
|
|
+ :data="{ fileType: 99 , remark: '品类图标' }"
|
|
|
name="file"
|
|
|
:on-success="handleAvatarSuccess"
|
|
|
drag
|
|
@@ -98,6 +99,14 @@
|
|
|
<el-form-item label="分类描述" prop="describe">
|
|
|
<el-input v-model="form.describe" placeholder="请输入分类描述,该分类名称的描述" />
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="权重" prop="weight">
|
|
|
+ <el-input v-model="form.weight" placeholder="请输入图片名称" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="是否启用" prop="status">
|
|
|
+ <el-select v-model="form.status" placeholder="是否启用" clearable>
|
|
|
+ <el-option v-for="item in statusOptions" :key="item.dictCode" :label="item.dictLabel" :value="item.dictValue"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -159,7 +168,10 @@ export default {
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 小程序状态开关
|
|
|
+ statusOptions: [],
|
|
|
+ statusFormat: null
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -169,6 +181,12 @@ export default {
|
|
|
}).then(response => {
|
|
|
this.infoListFa = response.rows
|
|
|
})
|
|
|
+ this.getDicts('wx_open_status').then(response => {
|
|
|
+ this.statusOptions = response.data
|
|
|
+ this.statusFormat = (row, column) => {
|
|
|
+ return this.selectDictLabel(this.statusOptions, row.status)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
//图标上传成功返回函数
|