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,
|
||||
default: null,
|
||||
},
|
||||
|
||||
projectName: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const options = ref([]);
|
||||
|
||||
@@ -1870,12 +1870,13 @@
|
||||
<span style="margin-right: 3px">完成规则</span>
|
||||
</div>
|
||||
<div class="b_input">
|
||||
<!--
|
||||
<a-checkbox
|
||||
v-model:checked="regisCom"
|
||||
@click="regisCom = !regisCom"
|
||||
>
|
||||
<span style="color: #6d7584">报名即完成</span>
|
||||
</a-checkbox>
|
||||
</a-checkbox> -->
|
||||
<a-checkbox v-model:checked="signCom" @click="signCom = !signCom">
|
||||
<span style="color: #6d7584">签到即完成</span>
|
||||
</a-checkbox>
|
||||
@@ -2638,7 +2639,7 @@ const columns1 = [
|
||||
case "1":
|
||||
return "线上";
|
||||
case "2":
|
||||
return "线下";
|
||||
return "面授";
|
||||
}
|
||||
},
|
||||
},
|
||||
@@ -3052,7 +3053,7 @@ export default defineComponent({
|
||||
// OwnPower,
|
||||
// Corpowerlist,
|
||||
Editor,
|
||||
Toolbar,
|
||||
Toolbar,filesList
|
||||
// StuAdd,
|
||||
|
||||
ProjOwnerShip,
|
||||
@@ -4458,6 +4459,7 @@ export default defineComponent({
|
||||
}
|
||||
});
|
||||
};
|
||||
//
|
||||
const getTea = async () => {
|
||||
console.log("获取授课教师信息");
|
||||
const item1 = await getMemberInfoApi({
|
||||
@@ -4525,14 +4527,24 @@ export default defineComponent({
|
||||
options4CurId.value = item.teacherId;
|
||||
state.qdms_inputV5 = null;
|
||||
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(",");
|
||||
arr.forEach((item) => {
|
||||
state.imgList.push({ img: item });
|
||||
});
|
||||
} else {
|
||||
state.imgList = [{ img: item.attach }];
|
||||
} else {
|
||||
state.imgList = [{ img: item.attach }];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
valueHtml.value = item.outline;
|
||||
|
||||
getTea();
|
||||
@@ -4658,7 +4670,7 @@ export default defineComponent({
|
||||
getTableDate2();
|
||||
};
|
||||
|
||||
const beforeUpload3 = (file) => {
|
||||
const beforeUpload4 = (file) => {
|
||||
const fileType = [
|
||||
"jpg",
|
||||
"jpeg",
|
||||
@@ -4690,6 +4702,52 @@ export default defineComponent({
|
||||
});
|
||||
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) => {
|
||||
console.log(787666);
|
||||
@@ -5109,7 +5167,7 @@ export default defineComponent({
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
top:-100%;
|
||||
transform: translate(-50%, -50%);
|
||||
.of_header {
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user