|
@@ -43,6 +43,21 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="投放渠道" prop="showChannel">
|
|
|
+ <el-select
|
|
|
+ v-model="form.showChannel"
|
|
|
+ placeholder="投放渠道"
|
|
|
+ clearable
|
|
|
+ style="width: 240px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.tiktok_showChannel"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<el-table
|
|
@@ -98,7 +113,7 @@
|
|
|
import { pushById } from "@/api/otaMr/tiktok";
|
|
|
export default {
|
|
|
name: "dataEdit",
|
|
|
- dicts: ['tiktok_category','tiktok_scheduling_status'],
|
|
|
+ dicts: ['tiktok_category','tiktok_scheduling_status','tiktok_showChannel'],
|
|
|
data() {
|
|
|
return {
|
|
|
title: "编辑",
|
|
@@ -110,6 +125,7 @@ export default {
|
|
|
rules: {
|
|
|
poiId: [{ required: true, message: "请输入门店POIID", trigger: ["change","blur"] }],
|
|
|
categoryId: [{ required: true, message: "请选择商品类目ID", trigger: ["change","blur"] }],
|
|
|
+ showChannel: [{ required: true, message: "请选择投放渠道", trigger: ["change","blur"] }]
|
|
|
},
|
|
|
multipleSelection: []
|
|
|
};
|
|
@@ -124,6 +140,9 @@ export default {
|
|
|
openDialog(title, obj, type) {
|
|
|
this.open = true;
|
|
|
this.multipleSelection = []
|
|
|
+ if(obj.showChannel || obj.showChannel === 0) {
|
|
|
+ obj.showChannel = obj.showChannel.toString()
|
|
|
+ }
|
|
|
this.form = JSON.parse(JSON.stringify(obj))
|
|
|
|
|
|
let list = []
|