mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
feat:投票删除编辑
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user