feat:投票删除编辑

This commit is contained in:
dongwug
2022-11-03 15:41:38 +08:00
parent 5cfa72c80a
commit c4ecfd2f97
5 changed files with 77 additions and 26 deletions

View File

@@ -91,7 +91,7 @@
</div>
</a-upload>
<span style="padding-bottom: 20px; color: #878b92"
>图片格式为</span
>图片格式为JPG/PNG 图片大小不可超过1MB</span
>
</div>
</div>
@@ -179,9 +179,9 @@ export default {
const beforeUpload = (file) => {
const isJpgOrPng =
file.type === "image/jpeg" || file.type === "image/png";
file.type === "image/jpg" || file.type === "image/png";
if (!isJpgOrPng) {
message.error("You can only upload JPG file!");
message.error("You can upload JPG/PNG file!");
}
const isLt2M = file.size / 1024 / 1024 < 1;
if (!isLt2M) {
@@ -229,21 +229,21 @@ export default {
api
.createEvaluation(obj)
.then((res) => {
setTimeout(() => {
console.log("创建成功", res);
message.success("创建成功");
closeDrawer();
apitaskadd.addTask({
closeDrawer();
apitaskadd
.addTask({
courseId: 0,
duration: 0,
flag: true,
name: "",
name: obj.evaluationName,
projectId: 28,
projectTaskId: 0,
stageId: 3,
type: 10,
});
}, 1000);
},
);
})
.catch((err) => {
console.log("创建失败", err);