|
@@ -24,6 +24,9 @@
|
|
<template #status>
|
|
<template #status>
|
|
<el-option v-for="i in statusList" :key="i.label" :label="i.label" :value="i.value"></el-option>
|
|
<el-option v-for="i in statusList" :key="i.label" :label="i.label" :value="i.value"></el-option>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template #source>
|
|
|
|
+ <el-option v-for="i in sourceList" :key="i.label" :label="i.label" :value="i.value"></el-option>
|
|
|
|
+ </template>
|
|
</data-form>
|
|
</data-form>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -46,6 +49,8 @@ export default {
|
|
// info部分
|
|
// info部分
|
|
infoFields: [
|
|
infoFields: [
|
|
{ label: '用户', model: 'customer', custom: true },
|
|
{ label: '用户', model: 'customer', custom: true },
|
|
|
|
+ { label: '信息来源', model: 'source', type: 'select' },
|
|
|
|
+ // { label: '来源id', model: 'source_id' },
|
|
{ label: '发送时间', model: 'time', type: 'datetime' },
|
|
{ label: '发送时间', model: 'time', type: 'datetime' },
|
|
{ label: '内容', model: 'content', type: 'textarea' },
|
|
{ label: '内容', model: 'content', type: 'textarea' },
|
|
{ label: '状态', model: 'status', type: 'select' },
|
|
{ label: '状态', model: 'status', type: 'select' },
|
|
@@ -59,8 +64,10 @@ export default {
|
|
loading: false,
|
|
loading: false,
|
|
// 远程搜索团长列表
|
|
// 远程搜索团长列表
|
|
customerList: [],
|
|
customerList: [],
|
|
- // 规格列表
|
|
|
|
|
|
+ // 状态列表
|
|
statusList: [],
|
|
statusList: [],
|
|
|
|
+ // 来源列表
|
|
|
|
+ sourceList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -108,8 +115,12 @@ export default {
|
|
// 查询其他信息
|
|
// 查询其他信息
|
|
async searchOthers() {
|
|
async searchOthers() {
|
|
let res;
|
|
let res;
|
|
|
|
+ // 信息状态
|
|
res = await this.dictQuery({ code: 'notice_status' });
|
|
res = await this.dictQuery({ code: 'notice_status' });
|
|
if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
|
|
|
|
+ // 信息来源
|
|
|
|
+ res = await this.dictQuery({ code: 'notice_source' });
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `sourceList`, res.data);
|
|
// 团长列表
|
|
// 团长列表
|
|
res = await this.usersQuery({ is_leader: '0' });
|
|
res = await this.usersQuery({ is_leader: '0' });
|
|
if (this.$checkRes(res)) this.$set(this, `customerList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `customerList`, res.data);
|