mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
--fix 字典修改
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -67,6 +67,7 @@ export default defineComponent({
|
||||
initDict("pathmapPic");
|
||||
initDict("projectClass");
|
||||
initDict("projectPic");
|
||||
initDict("sysType");
|
||||
getMemberInfo();
|
||||
getOrgTree();
|
||||
}
|
||||
@@ -128,14 +129,7 @@ export default defineComponent({
|
||||
store.commit("SET_DICT", { key, data: list });
|
||||
}
|
||||
|
||||
const getDictList = (param) =>
|
||||
api1
|
||||
.getDict({
|
||||
pageNo: 1,
|
||||
pageSize: 20,
|
||||
setCode: param,
|
||||
})
|
||||
.then((res) => res.data.data.rows);
|
||||
const getDictList = (param) => api1.getDictTree({setCode: param,}).then((res) => res.data.data);
|
||||
//获取组织树
|
||||
const getOrgTree = () => {
|
||||
api.getOrgTreeInfo().then((res) => {
|
||||
|
||||
@@ -102,6 +102,7 @@ export const billboard = (obj) => http.post("/admin/project/billboard", obj);
|
||||
//公共信息---------------------------------------------------
|
||||
// 获取字典信息
|
||||
export const getDict = (obj) => http.post('/dict/getList', obj)
|
||||
export const getDictTree = (params) => http.get('/dict/getTree', {params})
|
||||
//获取组织树一级列表
|
||||
export const getOrgTree = (obj) => http.post('/admin/router/orgList', obj)
|
||||
//根据id获取组织树一级元素下所有子元素
|
||||
|
||||
@@ -39,15 +39,6 @@
|
||||
</a-select>
|
||||
</div>
|
||||
<div class="select">
|
||||
<!-- <a-select
|
||||
v-model:value="categoryId"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 200px"
|
||||
placeholder="请选择内容分类"
|
||||
:options="options2"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select> -->
|
||||
<a-tree-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
@@ -61,12 +52,13 @@
|
||||
placeholder="请选择内容分类"
|
||||
allow-clear
|
||||
tree-default-expand-all
|
||||
:tree-data="options2222"
|
||||
:fieldNames="{
|
||||
children: 'children',
|
||||
label: 'name',
|
||||
value: 'dictName',
|
||||
}"
|
||||
:tree-data="sysTypeOptions"
|
||||
>
|
||||
<template #title="{ value: val, title }">
|
||||
<b v-if="val === '11111'" style="color: #08c">sss</b>
|
||||
<template v-else>{{ title }}</template>
|
||||
</template>
|
||||
</a-tree-select>
|
||||
</div>
|
||||
<div class="select">
|
||||
@@ -2298,7 +2290,7 @@ import {
|
||||
shallowRef,
|
||||
onMounted,
|
||||
onBeforeUnmount,
|
||||
watch,
|
||||
watch, computed,
|
||||
} from "vue";
|
||||
|
||||
import * as api from "../../api/indexInvist.js";
|
||||
@@ -2359,6 +2351,7 @@ import AddTest from "../../components/drawers/AddTest.vue";
|
||||
import TableStudent from "@/components/student/TableStudent";
|
||||
import FJUpload from "@/components/common/FJUpload";
|
||||
import { updateStudent } from "@/api/indexProjStu";
|
||||
import {useStore} from "vuex";
|
||||
//列表表格
|
||||
const columns1 = [
|
||||
// {
|
||||
@@ -2992,6 +2985,7 @@ export default defineComponent({
|
||||
},
|
||||
setup() {
|
||||
const CourseModalRef = ref(null);
|
||||
const store = useStore();
|
||||
|
||||
const state = reactive({
|
||||
//新加
|
||||
@@ -3550,6 +3544,8 @@ export default defineComponent({
|
||||
state.viewpowervisible = true;
|
||||
};
|
||||
|
||||
const sysTypeOptions = computed(() => store.state.sysType);
|
||||
|
||||
// 富文本 sssssssssssssss
|
||||
// 编辑器实例,必须用 shallowRef
|
||||
const editorRef = shallowRef();
|
||||
@@ -5557,6 +5553,7 @@ export default defineComponent({
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
sysTypeOptions,
|
||||
CourseModalRef,
|
||||
auditStudent,
|
||||
getdateToDateFn,
|
||||
|
||||
Reference in New Issue
Block a user