mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
修复提交错误
This commit is contained in:
@@ -1870,13 +1870,12 @@
|
||||
<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>
|
||||
@@ -3053,7 +3052,7 @@ export default defineComponent({
|
||||
// OwnPower,
|
||||
// Corpowerlist,
|
||||
Editor,
|
||||
Toolbar,filesList
|
||||
Toolbar,
|
||||
// StuAdd,
|
||||
|
||||
ProjOwnerShip,
|
||||
@@ -3978,6 +3977,7 @@ export default defineComponent({
|
||||
state.qdms_inputV6 = "";
|
||||
state.imgList = [];
|
||||
valueHtml.value = "";
|
||||
state.fileList =[];
|
||||
};
|
||||
const handlePush = (param) => {
|
||||
console.log("state.imgList");
|
||||
@@ -4459,7 +4459,6 @@ export default defineComponent({
|
||||
}
|
||||
});
|
||||
};
|
||||
//
|
||||
const getTea = async () => {
|
||||
console.log("获取授课教师信息");
|
||||
const item1 = await getMemberInfoApi({
|
||||
@@ -4530,10 +4529,7 @@ export default defineComponent({
|
||||
if(item.attach==""){
|
||||
state.imgList =[];
|
||||
}else{
|
||||
if(item.attach==""){
|
||||
|
||||
}else{
|
||||
if (item.attach.indexOf(",")) {
|
||||
if (item.attach.indexOf(",")) {
|
||||
const arr = item.attach.split(",");
|
||||
arr.forEach((item) => {
|
||||
state.imgList.push({ img: item });
|
||||
@@ -4541,8 +4537,6 @@ export default defineComponent({
|
||||
} else {
|
||||
state.imgList = [{ img: item.attach }];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
valueHtml.value = item.outline;
|
||||
@@ -4670,41 +4664,7 @@ export default defineComponent({
|
||||
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) => {
|
||||
console.log(6765555);
|
||||
console.log(file);
|
||||
const fileType = [
|
||||
"jpg",
|
||||
"jpeg",
|
||||
@@ -4726,18 +4686,12 @@ export default defineComponent({
|
||||
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({
|
||||
state.fileList.push({
|
||||
img: res.data.data,
|
||||
name: file.name,
|
||||
size: file.size,
|
||||
|
||||
Reference in New Issue
Block a user