|
|
|
|
|
|
|
|
// 选择栏目/频道 |
|
|
// 选择栏目/频道 |
|
|
let section_list = ref<Object[]>([]) |
|
|
let section_list = ref<Object[]>([]) |
|
|
const sectionSearch = (val : Object) => { |
|
|
const sectionSearch = (val : Object) => { |
|
|
listSection(val).then((res : object) => { |
|
|
|
|
|
|
|
|
listSection({keyword:val, pagesize: 999}).then((res : object) => { |
|
|
const data = res.data.sections.map((item : object) => ({ |
|
|
const data = res.data.sections.map((item : object) => ({ |
|
|
label: item.name, |
|
|
label: item.name, |
|
|
value: item.id, |
|
|
value: item.id, |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
const getSectionValue = (val : Object) => { |
|
|
const getSectionValue = (val : Object) => { |
|
|
createForm.value.parent_id = val.key; |
|
|
|
|
|
|
|
|
createForm.value.section_id = val.key; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 富文本 |
|
|
// 富文本 |