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