mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 08:16:46 +08:00
--demand 字典修改
This commit is contained in:
@@ -51,8 +51,8 @@
|
||||
tree-default-expand-all
|
||||
:fieldNames="{
|
||||
children: 'children',
|
||||
label: 'dictName',
|
||||
value: 'dictCode',
|
||||
label: 'name',
|
||||
value: 'code',
|
||||
}"
|
||||
:tree-data="sysTypeOptions"
|
||||
>
|
||||
@@ -2712,7 +2712,7 @@ export default defineComponent({
|
||||
state.viewpowervisible = true;
|
||||
};
|
||||
|
||||
const sysTypeOptions = computed(() => store.state.sysType);
|
||||
const sysTypeOptions = computed(() => store.state.content_type);
|
||||
|
||||
// console.log('12344', sysTypeOptions)
|
||||
|
||||
@@ -3211,63 +3211,6 @@ export default defineComponent({
|
||||
|
||||
//获取分类、场景、封面图、-----------字典配置-------------------------------
|
||||
const optionsUrl = ref([]);
|
||||
const getDictList = (param) => {
|
||||
let obj = {
|
||||
pageNo: 1,
|
||||
pageSize: 10000,
|
||||
setCode: param,
|
||||
};
|
||||
api1
|
||||
.getDict(obj)
|
||||
.then((res) => {
|
||||
console.log("获取字典成功", res);
|
||||
if (res.data.code === 200) {
|
||||
if (param === "faceclassPic") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictValue,
|
||||
label: item.dictName,
|
||||
});
|
||||
});
|
||||
optionsUrl.value = newArr;
|
||||
// if (res.data.data.rows.length > 0) {
|
||||
// state.imageUrl = res.data.data.rows[0].dictValue;
|
||||
// }
|
||||
}
|
||||
if (param === "faceclassClass") {
|
||||
// let arr = res.data.data.rows;
|
||||
// let newArr = [];
|
||||
// arr.forEach((item) => {
|
||||
// newArr.push({
|
||||
// value: item.dictCode,
|
||||
// label: item.dictName,
|
||||
// });
|
||||
// });
|
||||
// console.log(newArr)
|
||||
options2.value = state.options2222;
|
||||
}
|
||||
if (param === "faceclassScene") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictCode,
|
||||
label: item.dictName,
|
||||
});
|
||||
});
|
||||
options3.value = newArr;
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取字典失败", err);
|
||||
});
|
||||
};
|
||||
getDictList("faceclassClass");
|
||||
getDictList("faceclassScene");
|
||||
getDictList("faceclassPic");
|
||||
//获取分类、场景、封面图、----------------字典配置---------------------------
|
||||
|
||||
//渲染学员管理操作
|
||||
@@ -3584,8 +3527,6 @@ export default defineComponent({
|
||||
|
||||
state.qdms_inputV1 = state.xzinputV1;
|
||||
state.xzinputV1 = "";
|
||||
console.log("qdms_inputV1", state.qdms_inputV1);
|
||||
getDictList("faceclassPic");
|
||||
getTea();
|
||||
}
|
||||
if (state.bs_hs && state.valueE1 == 1) {
|
||||
|
||||
Reference in New Issue
Block a user