mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
-- 内容分类
This commit is contained in:
@@ -192,20 +192,33 @@
|
||||
</div>
|
||||
<div class="item_inp">
|
||||
<div class="select i6_input">
|
||||
<a-select
|
||||
<!-- <a-select-->
|
||||
<!-- :getPopupContainer="-->
|
||||
<!-- (triggerNode) => {-->
|
||||
<!-- return triggerNode.parentNode || document.body;-->
|
||||
<!-- }-->
|
||||
<!-- "-->
|
||||
<!-- v-model:value="fen_lei"-->
|
||||
<!-- dropdownClassName="dropdown-style"-->
|
||||
<!-- style="width: 440px"-->
|
||||
<!-- placeholder="请选择"-->
|
||||
<!-- :options="options2"-->
|
||||
<!-- allowClear-->
|
||||
<!-- showSearch-->
|
||||
<!-- />-->
|
||||
<a-tree-select
|
||||
style="width: 440px"
|
||||
placeholder="请选择内容分类"
|
||||
:treeDefaultExpandAll="true"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="fen_lei"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="options2"
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
:tree-data="contentClassify"
|
||||
>
|
||||
</a-tree-select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -385,6 +398,7 @@ import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import FJUpload from "@/components/common/FJUpload";
|
||||
import * as moment from "moment";
|
||||
import * as api2 from "../../api/indexAudit";
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
Editor,
|
||||
@@ -415,6 +429,7 @@ export default defineComponent({
|
||||
qdms_inputV6: "",
|
||||
imgList: [],
|
||||
auditDescription: "",
|
||||
contentClassify: []
|
||||
});
|
||||
|
||||
const visibleOpen = (offcourseId, name) => {
|
||||
@@ -576,15 +591,29 @@ export default defineComponent({
|
||||
});
|
||||
options3.value = newArr;
|
||||
}
|
||||
if (param === "contentClassify") {
|
||||
state.contentClassify = dealDickTree(res.data.data.rows) || []
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取字典失败", err);
|
||||
});
|
||||
};
|
||||
|
||||
function dealDickTree(data, level = 1) {
|
||||
return data?.filter(e => e.levelId == level).map(({dictName, dictCode}) => ({
|
||||
title: dictName,
|
||||
value: dictCode,
|
||||
key: dictCode,
|
||||
children: dealDickTree(data, dictCode)
|
||||
}))
|
||||
}
|
||||
|
||||
getDictList("faceclassClass");
|
||||
getDictList("faceclassScene");
|
||||
getDictList("faceclassPic");
|
||||
getDictList("contentClassify");
|
||||
//获取分类、场景、封面图、----------------字典配置---------------------------
|
||||
|
||||
const hideShow = () => {
|
||||
|
||||
Reference in New Issue
Block a user