mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
t
This commit is contained in:
@@ -97,11 +97,8 @@
|
||||
</div>
|
||||
<EvList
|
||||
v-model:EvalListVisible="EvalListVisible"
|
||||
@getEvLsitDate="checkFinish"
|
||||
@getEvListData="checkFinish"
|
||||
/>
|
||||
<!-- v-model:evaluationTypeId="evaluationTypeId"
|
||||
v-model:evaluationTypeName="evaluationTypeName" -->
|
||||
|
||||
<!-- <div class="aeLoading" :style="{display:addLoading?'flex':'none'}">
|
||||
<a-spin :spinning="addLoading" tip="添加中..." />
|
||||
</div> -->
|
||||
@@ -166,11 +163,10 @@ export default {
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
inputV1: "",
|
||||
inputV2: "",
|
||||
time: undefined,
|
||||
EvalId: null,
|
||||
//子传回来的参数
|
||||
evaluationTypeId: null,
|
||||
evaluationTypeId: 0,
|
||||
evaluationTypeName: "",
|
||||
description: "",
|
||||
EvalListVisible: false,
|
||||
@@ -226,13 +222,13 @@ export default {
|
||||
} else if (props.isLevel == 2) {
|
||||
apitaskadd
|
||||
.addTask({
|
||||
// courseId: res.data.data.evaluationId,
|
||||
// name: res.data.data.evaluationName,
|
||||
duration: 0,
|
||||
flag: true,
|
||||
courseId: Number(value.evaluationId),
|
||||
name: value.evaluationName,
|
||||
projectId: props.projectId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId,
|
||||
evaluationTypeId: state.evaluationTypeId,
|
||||
evaluationTypeName: state.evaluationTypeName,
|
||||
type: 10,
|
||||
})
|
||||
.then(() => {
|
||||
@@ -330,15 +326,10 @@ export default {
|
||||
message.destroy();
|
||||
return message.info("请输入测评名称");
|
||||
}
|
||||
if (!state.inputV2) {
|
||||
if (!state.evaluationTypeId) {
|
||||
message.destroy();
|
||||
return message.info("请选择测评");
|
||||
}
|
||||
if (!state.time) {
|
||||
message.destroy();
|
||||
return message.warning("请输入直播时间");
|
||||
}
|
||||
|
||||
let obj = {
|
||||
evaluationName: state.inputV1,
|
||||
evaluationEndTime: dayjs(state.time[1]).format("YYYY-MM-DD"),
|
||||
@@ -346,6 +337,10 @@ export default {
|
||||
evaluationStartTime: dayjs(state.time[0]).format("YYYY-MM-DD"),
|
||||
evaluationTypeId: state.evaluationTypeId,
|
||||
evaluationTypeName: state.evaluationTypeName,
|
||||
evaluationFlag: "",
|
||||
evaluationPictureAddress: "",
|
||||
evaluationTag: "",
|
||||
updateTime: "",
|
||||
};
|
||||
api
|
||||
.createEvaluation(obj)
|
||||
@@ -434,6 +429,10 @@ export default {
|
||||
margin-left: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
.tag-style {
|
||||
color: rgb(113, 113, 237);
|
||||
background-color: #d7d1f7;
|
||||
}
|
||||
}
|
||||
}
|
||||
.main_item2 {
|
||||
|
||||
Reference in New Issue
Block a user