mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 05:16:45 +08:00
课程库bug
This commit is contained in:
@@ -337,7 +337,10 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
projectName: {
|
||||||
|
type: String,
|
||||||
|
default: null,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
const options = ref([]);
|
const options = ref([]);
|
||||||
|
|||||||
@@ -1870,12 +1870,13 @@
|
|||||||
<span style="margin-right: 3px">完成规则</span>
|
<span style="margin-right: 3px">完成规则</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="b_input">
|
<div class="b_input">
|
||||||
|
<!--
|
||||||
<a-checkbox
|
<a-checkbox
|
||||||
v-model:checked="regisCom"
|
v-model:checked="regisCom"
|
||||||
@click="regisCom = !regisCom"
|
@click="regisCom = !regisCom"
|
||||||
>
|
>
|
||||||
<span style="color: #6d7584">报名即完成</span>
|
<span style="color: #6d7584">报名即完成</span>
|
||||||
</a-checkbox>
|
</a-checkbox> -->
|
||||||
<a-checkbox v-model:checked="signCom" @click="signCom = !signCom">
|
<a-checkbox v-model:checked="signCom" @click="signCom = !signCom">
|
||||||
<span style="color: #6d7584">签到即完成</span>
|
<span style="color: #6d7584">签到即完成</span>
|
||||||
</a-checkbox>
|
</a-checkbox>
|
||||||
@@ -2638,7 +2639,7 @@ const columns1 = [
|
|||||||
case "1":
|
case "1":
|
||||||
return "线上";
|
return "线上";
|
||||||
case "2":
|
case "2":
|
||||||
return "线下";
|
return "面授";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -3052,7 +3053,7 @@ export default defineComponent({
|
|||||||
// OwnPower,
|
// OwnPower,
|
||||||
// Corpowerlist,
|
// Corpowerlist,
|
||||||
Editor,
|
Editor,
|
||||||
Toolbar,
|
Toolbar,filesList
|
||||||
// StuAdd,
|
// StuAdd,
|
||||||
|
|
||||||
ProjOwnerShip,
|
ProjOwnerShip,
|
||||||
@@ -4458,6 +4459,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
//
|
||||||
const getTea = async () => {
|
const getTea = async () => {
|
||||||
console.log("获取授课教师信息");
|
console.log("获取授课教师信息");
|
||||||
const item1 = await getMemberInfoApi({
|
const item1 = await getMemberInfoApi({
|
||||||
@@ -4525,14 +4527,24 @@ export default defineComponent({
|
|||||||
options4CurId.value = item.teacherId;
|
options4CurId.value = item.teacherId;
|
||||||
state.qdms_inputV5 = null;
|
state.qdms_inputV5 = null;
|
||||||
state.qdms_inputV6 = item.intro;
|
state.qdms_inputV6 = item.intro;
|
||||||
if (item.attach.indexOf(",")) {
|
if(item.attach==""){
|
||||||
|
state.imgList =[];
|
||||||
|
}else{
|
||||||
|
if(item.attach==""){
|
||||||
|
|
||||||
|
}else{
|
||||||
|
if (item.attach.indexOf(",")) {
|
||||||
const arr = item.attach.split(",");
|
const arr = item.attach.split(",");
|
||||||
arr.forEach((item) => {
|
arr.forEach((item) => {
|
||||||
state.imgList.push({ img: item });
|
state.imgList.push({ img: item });
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
state.imgList = [{ img: item.attach }];
|
state.imgList = [{ img: item.attach }];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
valueHtml.value = item.outline;
|
valueHtml.value = item.outline;
|
||||||
|
|
||||||
getTea();
|
getTea();
|
||||||
@@ -4658,7 +4670,7 @@ export default defineComponent({
|
|||||||
getTableDate2();
|
getTableDate2();
|
||||||
};
|
};
|
||||||
|
|
||||||
const beforeUpload3 = (file) => {
|
const beforeUpload4 = (file) => {
|
||||||
const fileType = [
|
const fileType = [
|
||||||
"jpg",
|
"jpg",
|
||||||
"jpeg",
|
"jpeg",
|
||||||
@@ -4690,6 +4702,52 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
const beforeUpload3 = (file) => {
|
||||||
|
console.log(6765555);
|
||||||
|
console.log(file);
|
||||||
|
const fileType = [
|
||||||
|
"jpg",
|
||||||
|
"jpeg",
|
||||||
|
"png",
|
||||||
|
"gif",
|
||||||
|
"pdf",
|
||||||
|
"ppt",
|
||||||
|
"pptx",
|
||||||
|
"doc",
|
||||||
|
"docx",
|
||||||
|
"xls",
|
||||||
|
"xlsx",
|
||||||
|
"zip",
|
||||||
|
];
|
||||||
|
if (!fileType.includes(file.name.split(".")[1])) {
|
||||||
|
message.error(
|
||||||
|
"仅支持.pdf,.ppt,.pptx,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.zip格式!"
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// let isLt1M = file.size / 10240 / 10240 <= 1;
|
||||||
|
// if (!isLt1M) {
|
||||||
|
// this.$message.error("图片大小超过10MB!");
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append("file", file);
|
||||||
|
console.log(file);
|
||||||
|
fileUp(formData).then((res) => {
|
||||||
|
if (res.data.code === 200) {
|
||||||
|
state.filesList.push({
|
||||||
|
img: res.data.data,
|
||||||
|
name: file.name,
|
||||||
|
size: file.size,
|
||||||
|
});
|
||||||
|
console.log(state.imgList);
|
||||||
|
// state.hasImgName = res.data.data;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
const handleGuan22 = (item) => {
|
const handleGuan22 = (item) => {
|
||||||
console.log(787666);
|
console.log(787666);
|
||||||
@@ -5109,7 +5167,7 @@ export default defineComponent({
|
|||||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top:-100%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
.of_header {
|
.of_header {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Reference in New Issue
Block a user