feat:修改面授课

This commit is contained in:
lixg
2023-02-26 15:27:58 +08:00
parent 096119df28
commit e800c515ef
8 changed files with 702 additions and 373 deletions

View File

@@ -593,9 +593,9 @@ export default defineComponent({
selectBandName: [],
selectBandId: [],
//资源归属
sourceBelongId: [],
sourceBelongName: [],
sourceBelongFullName: [],
sourceBelongId: null,
sourceBelongName: null,
sourceBelongFullName: null,
});
const store = useStore();
console.log(store, 666);
@@ -606,7 +606,12 @@ export default defineComponent({
const jobType = computed(() => store.state.job_type);
//获取band
const bandList = computed(() => store.state.band);
const userInfo = computed(() => store.state.userInfo);
console.log("jobTypebandList", jobType, bandList);
if (userInfo.value.departId && userInfo.value.departName) {
state.sourceBelongName = userInfo.value.departName;
state.sourceBelongId = userInfo.value.departId;
}
watch(
() => state.fen_lei,
() => {
@@ -718,9 +723,9 @@ export default defineComponent({
state.selectBandName = [];
state.selectBandId = [];
//资源归属
state.sourceBelongId = [];
state.sourceBelongName = [];
state.sourceBelongFullName = [];
state.sourceBelongId = null;
state.sourceBelongName = null;
state.sourceBelongFullName = null;
// valueHtml.value = "";
console.log("清空");
};
@@ -754,7 +759,15 @@ export default defineComponent({
fileUp(formData).then((res) => {
if (res.data.code === 200) {
// 最后插入图片 url alt href
insertFn(res.data.data, file.name, res.data.data);
console.log(
"上传图片结果",
process.env.VUE_APP_FILE_PATH + res.data.data
);
insertFn(
process.env.VUE_APP_FILE_PATH + res.data.data,
file.name,
res.data.data
);
}
});
},