mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
feat:合并
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<a-drawer
|
||||
:visible="CCertificate"
|
||||
class="drawerStyle CreateCertificate"
|
||||
width="35%"
|
||||
width="800px"
|
||||
placement="right"
|
||||
@after-visible-change="afterVisibleChange"
|
||||
>
|
||||
@@ -40,14 +40,15 @@
|
||||
<div class="btnbox">
|
||||
<a-input
|
||||
v-model:value="inputV1"
|
||||
style="width: 400px; height: 40px; border-radius: 8px;"
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入证书名称"
|
||||
show-count :maxlength="20"
|
||||
show-count
|
||||
:maxlength="20"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="main_item" style="align-items:flex-start;">
|
||||
|
||||
<div class="main_item" style="align-items: flex-start">
|
||||
<div class="signbox">
|
||||
<div class="sign">
|
||||
<img
|
||||
@@ -57,26 +58,31 @@
|
||||
</div>
|
||||
<span style="margin-right: 3px">证书封面:</span>
|
||||
</div>
|
||||
<div class="btnbox" style="flex-direction:column;align-items:flex-start;">
|
||||
<div
|
||||
class="btnbox"
|
||||
style="flex-direction: column; align-items: flex-start"
|
||||
>
|
||||
<a-upload
|
||||
v-model:file-list="fileList"
|
||||
name="avatar"
|
||||
style="width:200px;"
|
||||
list-type="picture-card"
|
||||
class="avatar-uploader"
|
||||
:show-upload-list="false"
|
||||
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
|
||||
:before-upload="beforeUpload"
|
||||
@change="handleChange"
|
||||
v-model:file-list="fileList"
|
||||
name="avatar"
|
||||
style="width: 200px"
|
||||
list-type="picture-card"
|
||||
class="avatar-uploader"
|
||||
:show-upload-list="false"
|
||||
action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
|
||||
:before-upload="beforeUpload"
|
||||
@change="handleChange"
|
||||
>
|
||||
<img v-if="imageUrl" :src="imageUrl" alt="avatar" />
|
||||
<div v-else>
|
||||
<img v-if="imageUrl" :src="imageUrl" alt="avatar" />
|
||||
<div v-else>
|
||||
<loading-outlined v-if="loading"></loading-outlined>
|
||||
<plus-outlined v-else></plus-outlined>
|
||||
<div class="ant-upload-text">+</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-upload>
|
||||
<div style="font-size:14px;color:#666;">建议尺寸:750*348 格式支持jpg、gif、png、jpeg、svg、bmp</div>
|
||||
<div style="font-size: 14px; color: #666">
|
||||
建议尺寸:750*348 格式支持jpg、gif、png、jpeg、svg、bmp
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -84,13 +90,14 @@
|
||||
<div class="signbox">
|
||||
<span style="margin-right: 3px">证书说明:</span>
|
||||
</div>
|
||||
<div class="textarea" style="width:400px;">
|
||||
<div class="textarea" style="width: 400px">
|
||||
<a-textarea
|
||||
v-model:value="textV1"
|
||||
placeholder="请输入证书说明"
|
||||
allow-clear
|
||||
:rows="6"
|
||||
show-count :maxlength="200"
|
||||
show-count
|
||||
:maxlength="200"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -158,7 +165,7 @@ export default {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
projectTemplateId:{
|
||||
projectTemplateId: {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
@@ -169,7 +176,7 @@ export default {
|
||||
inputV2: "",
|
||||
textV1: "",
|
||||
title: null,
|
||||
isClick: false
|
||||
isClick: false,
|
||||
});
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:CCertificate", false);
|
||||
@@ -197,7 +204,7 @@ export default {
|
||||
};
|
||||
const updateTask = async (res) => {
|
||||
if (props.isLevel == 1) {
|
||||
if(!props.isactive){
|
||||
if (!props.isactive) {
|
||||
message.destroy();
|
||||
return message.warning("请先选中关卡");
|
||||
}
|
||||
@@ -216,7 +223,7 @@ export default {
|
||||
state.addLoading = false;
|
||||
})
|
||||
.catch(() => {
|
||||
// message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`);
|
||||
// message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 2) {
|
||||
apiTask
|
||||
@@ -229,7 +236,7 @@ export default {
|
||||
type: 7,
|
||||
})
|
||||
.then(() => {
|
||||
// message.success(`${props.EditTestId ? "编辑" : "新增"}阶段任务成功`);
|
||||
// message.success(`${props.EditTestId ? "编辑" : "新增"}阶段任务成功`);
|
||||
ctx.emit("changeData", false);
|
||||
closeDrawer();
|
||||
})
|
||||
@@ -237,11 +244,10 @@ export default {
|
||||
//message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
|
||||
addTempTask({
|
||||
courseId: res.data.data.linkId,
|
||||
name: res.data.data.linkName,
|
||||
projectTemplateId:props.projectTemplateId,
|
||||
projectTemplateId: props.projectTemplateId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 7,
|
||||
@@ -259,9 +265,9 @@ export default {
|
||||
//创建外链
|
||||
const updateRef = () => {
|
||||
let c = 1111;
|
||||
if(c>0){
|
||||
if (c > 0) {
|
||||
closeDrawer();
|
||||
return
|
||||
return;
|
||||
}
|
||||
if (!state.inputV1) return message.warning("请输入外链名称");
|
||||
if (!state.inputV2) {
|
||||
@@ -274,11 +280,11 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
if(state.isClick){
|
||||
message.destroy();
|
||||
message.error('请勿频繁点击')
|
||||
return
|
||||
}
|
||||
if (state.isClick) {
|
||||
message.destroy();
|
||||
message.error("请勿频繁点击");
|
||||
return;
|
||||
}
|
||||
state.isClick = true;
|
||||
|
||||
let obj = {
|
||||
|
||||
Reference in New Issue
Block a user