mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
模板库添加各任务 待审核课程数据及各样式 面授课修改输入
This commit is contained in:
@@ -79,14 +79,14 @@
|
||||
<div class="btnbox">
|
||||
<a-form-item has-feedback label="选择试卷" name="choosedTest">
|
||||
<a-button
|
||||
type="primary"
|
||||
style="width: 100px; margin-left: 35px"
|
||||
class="outer"
|
||||
@click.prevent
|
||||
@click="selectTest()"
|
||||
>
|
||||
选择试卷
|
||||
</a-button>
|
||||
type="primary"
|
||||
style="width: 100px; margin-left: 35px"
|
||||
class="outer"
|
||||
@click.prevent
|
||||
@click="selectTest()"
|
||||
>
|
||||
选择试卷
|
||||
</a-button>
|
||||
<!-- <a-dropdown>
|
||||
<a-button
|
||||
type="primary"
|
||||
@@ -313,7 +313,7 @@
|
||||
<a-spin :spinning="addLoading" tip="添加中..." />
|
||||
</div>
|
||||
<!-- 选择考试抽屉 -->
|
||||
<s-test v-model:STvisible="STvisible" @getSTData="getData"/>
|
||||
<s-test v-model:STvisible="STvisible" @getSTData="getData" />
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
@@ -324,9 +324,9 @@ import {
|
||||
queryExaminationDetailById,
|
||||
updateExamination,
|
||||
} from "@/api/indexExam";
|
||||
import STest from "./SelectTest.vue"
|
||||
import STest from "./SelectTest.vue";
|
||||
import { ProjectEditTask, RouterEditTask } from "@/api/indexTask";
|
||||
|
||||
import { addTempTask } from "../../api/indexTaskadd";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
export default {
|
||||
@@ -411,9 +411,9 @@ export default {
|
||||
const state = reactive({
|
||||
addLoading: false,
|
||||
isOuter: 1, // 是否为外部考试
|
||||
STvisible:false, //选择试卷抽屉
|
||||
paperId:null, //试卷id 子组件传过来给考试抽屉创建考试信息需要
|
||||
paperName:"", //试卷名称 子组件传过来给考试抽屉选择试卷后框框用
|
||||
STvisible: false, //选择试卷抽屉
|
||||
paperId: null, //试卷id 子组件传过来给考试抽屉创建考试信息需要
|
||||
paperName: "", //试卷名称 子组件传过来给考试抽屉选择试卷后框框用
|
||||
choosedTestList: [
|
||||
{
|
||||
value: "提高核心竞争力",
|
||||
@@ -593,9 +593,9 @@ export default {
|
||||
}
|
||||
};
|
||||
|
||||
const selectTest = ()=> {
|
||||
state.STvisible = true
|
||||
}
|
||||
const selectTest = () => {
|
||||
state.STvisible = true;
|
||||
};
|
||||
|
||||
const queryTest = () => {
|
||||
state.addLoading = true;
|
||||
@@ -716,8 +716,26 @@ export default {
|
||||
.catch(() => {
|
||||
message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
console.log("");
|
||||
} else if (props.isLevel == 3) {
|
||||
console.log("");
|
||||
addTempTask({
|
||||
courseId: res.data.data.examinationId,
|
||||
duration: 0,
|
||||
name: res.data.data.examinationName,
|
||||
projectId: props.projectId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId,
|
||||
type: 5,
|
||||
})
|
||||
.then(() => {
|
||||
message.success(
|
||||
`${props.EditTestId ? "编辑" : "新增"}阶段任务成功`
|
||||
);
|
||||
ctx.emit("changeData", false);
|
||||
})
|
||||
.catch(() => {
|
||||
message.error(`${props.EditTestId ? "编辑" : "新增"}阶段任务失败`);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -757,10 +775,10 @@ export default {
|
||||
);
|
||||
state.choosedTestList = tags;
|
||||
};
|
||||
const getData = (value)=> {
|
||||
const getData = (value) => {
|
||||
state.paperId = value.paperId;
|
||||
state.paperName = value.testName;
|
||||
}
|
||||
};
|
||||
return {
|
||||
formState,
|
||||
afterVisibleChange,
|
||||
|
||||
Reference in New Issue
Block a user