mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
修复提交错误
This commit is contained in:
@@ -1870,13 +1870,12 @@
|
|||||||
<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>
|
||||||
@@ -3053,7 +3052,7 @@ export default defineComponent({
|
|||||||
// OwnPower,
|
// OwnPower,
|
||||||
// Corpowerlist,
|
// Corpowerlist,
|
||||||
Editor,
|
Editor,
|
||||||
Toolbar,filesList
|
Toolbar,
|
||||||
// StuAdd,
|
// StuAdd,
|
||||||
|
|
||||||
ProjOwnerShip,
|
ProjOwnerShip,
|
||||||
@@ -3978,6 +3977,7 @@ export default defineComponent({
|
|||||||
state.qdms_inputV6 = "";
|
state.qdms_inputV6 = "";
|
||||||
state.imgList = [];
|
state.imgList = [];
|
||||||
valueHtml.value = "";
|
valueHtml.value = "";
|
||||||
|
state.fileList =[];
|
||||||
};
|
};
|
||||||
const handlePush = (param) => {
|
const handlePush = (param) => {
|
||||||
console.log("state.imgList");
|
console.log("state.imgList");
|
||||||
@@ -4459,7 +4459,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
//
|
|
||||||
const getTea = async () => {
|
const getTea = async () => {
|
||||||
console.log("获取授课教师信息");
|
console.log("获取授课教师信息");
|
||||||
const item1 = await getMemberInfoApi({
|
const item1 = await getMemberInfoApi({
|
||||||
@@ -4530,10 +4529,7 @@ export default defineComponent({
|
|||||||
if(item.attach==""){
|
if(item.attach==""){
|
||||||
state.imgList =[];
|
state.imgList =[];
|
||||||
}else{
|
}else{
|
||||||
if(item.attach==""){
|
if (item.attach.indexOf(",")) {
|
||||||
|
|
||||||
}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 });
|
||||||
@@ -4541,8 +4537,6 @@ export default defineComponent({
|
|||||||
} else {
|
} else {
|
||||||
state.imgList = [{ img: item.attach }];
|
state.imgList = [{ img: item.attach }];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
valueHtml.value = item.outline;
|
valueHtml.value = item.outline;
|
||||||
@@ -4670,41 +4664,7 @@ export default defineComponent({
|
|||||||
getTableDate2();
|
getTableDate2();
|
||||||
};
|
};
|
||||||
|
|
||||||
const beforeUpload4 = (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;
|
|
||||||
}
|
|
||||||
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append("file", file);
|
|
||||||
console.log(file);
|
|
||||||
fileUp(formData).then((res) => {
|
|
||||||
if (res.data.code === 200) {
|
|
||||||
state.filesList.push(res.data.data);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
};
|
|
||||||
const beforeUpload3 = (file) => {
|
const beforeUpload3 = (file) => {
|
||||||
console.log(6765555);
|
|
||||||
console.log(file);
|
|
||||||
const fileType = [
|
const fileType = [
|
||||||
"jpg",
|
"jpg",
|
||||||
"jpeg",
|
"jpeg",
|
||||||
@@ -4726,18 +4686,12 @@ export default defineComponent({
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// let isLt1M = file.size / 10240 / 10240 <= 1;
|
|
||||||
// if (!isLt1M) {
|
|
||||||
// this.$message.error("图片大小超过10MB!");
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
console.log(file);
|
console.log(file);
|
||||||
fileUp(formData).then((res) => {
|
fileUp(formData).then((res) => {
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
state.filesList.push({
|
state.fileList.push({
|
||||||
img: res.data.data,
|
img: res.data.data,
|
||||||
name: file.name,
|
name: file.name,
|
||||||
size: file.size,
|
size: file.size,
|
||||||
|
|||||||
Reference in New Issue
Block a user