mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # src/views/courselibrary/CoursewareManage.vue
This commit is contained in:
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
const store = useStore();
|
||||
const isLogin = ref(false);
|
||||
// console.log("router", router.getRoutes(), route);
|
||||
console.log("版本0.9.5------------");
|
||||
console.log("版本0.9.6------------");
|
||||
const routes = computed(() => {
|
||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2022-11-21 14:32:52
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2022-12-08 08:48:26
|
||||
* @LastEditTime: 2022-12-08 15:47:05
|
||||
* @FilePath: /fe-manage/src/api/config.js
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
|
||||
@@ -5,6 +5,8 @@ export const getTask = (obj) => http.get('/admin/project/detail', { params: obj
|
||||
//项目里的新建或编辑阶段任务
|
||||
export const addTask = (obj) => http.post('/admin/project/editTask', obj)
|
||||
|
||||
//模板库项目里的新建或编辑阶段任务
|
||||
export const addTaskTemplate = (obj) => http.post('/admin/project/template/editTask', obj)
|
||||
|
||||
//项目里的删除任务
|
||||
export const deleteTask = (obj) => http.delete('/admin/project/deleteTask', { params: obj })
|
||||
|
||||
BIN
src/assets/images/coursewareManage/docpic.png
Normal file
BIN
src/assets/images/coursewareManage/docpic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/images/coursewareManage/pdfpic.png
Normal file
BIN
src/assets/images/coursewareManage/pdfpic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/images/coursewareManage/pngpic.png
Normal file
BIN
src/assets/images/coursewareManage/pngpic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
BIN
src/assets/images/coursewareManage/pptpic.png
Normal file
BIN
src/assets/images/coursewareManage/pptpic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/coursewareManage/xlspic.png
Normal file
BIN
src/assets/images/coursewareManage/xlspic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/images/coursewareManage/zippic.png
Normal file
BIN
src/assets/images/coursewareManage/zippic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -7,7 +7,7 @@
|
||||
:closable="closableQR"
|
||||
wrapClassName="codeModal"
|
||||
style="margin-top: 400px"
|
||||
:zIndex="999"
|
||||
:zIndex="9999"
|
||||
@cancel="qr_exit"
|
||||
>
|
||||
<div id="qrcode" class="QR">
|
||||
|
||||
@@ -315,7 +315,7 @@ export default {
|
||||
} else if (props.isLevel == 3) {
|
||||
for (let i = 0; i < state.apiTaskList.length; i++) {
|
||||
apiTask
|
||||
.addTask({
|
||||
.addTaskTemplate({
|
||||
courseId: Number(state.apiTaskList[i].casesId),
|
||||
name: state.apiTaskList[i].title,
|
||||
projectTaskId: props.projectTaskId,
|
||||
|
||||
@@ -214,7 +214,7 @@ export default {
|
||||
await addTempTask({
|
||||
courseId: Number(value.evaluationId),
|
||||
name: value.evaluationName,
|
||||
projectTemplateId: props.projectTemplateId,
|
||||
projectTemplateId: Number(localStorage.getItem("projectTemplateId")),
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 10,
|
||||
|
||||
@@ -103,7 +103,7 @@ export default {
|
||||
return message.warning("请输入公告内容");
|
||||
} else {
|
||||
let obj = {
|
||||
notice: state.noticeContent1,
|
||||
notice: state.noticeContent,
|
||||
projectId: props.projectId,
|
||||
title: "",
|
||||
};
|
||||
@@ -147,7 +147,7 @@ export default {
|
||||
.noticeTitle {
|
||||
margin-left: 32px;
|
||||
margin-right: 32px;
|
||||
// padding-top: 20px;
|
||||
margin-bottom: 100px;
|
||||
.notitle {
|
||||
height: 55px;
|
||||
border-bottom: 1px solid #ededed;
|
||||
|
||||
@@ -116,7 +116,8 @@
|
||||
</div>
|
||||
<div class="setc_name"><span>审核意见:</span></div>
|
||||
<div class="setc_main">
|
||||
<a-textarea v-model:value="valueSuggest" :rows="4"/>
|
||||
<a-textarea v-model:value="valueSuggest" :rows="4" show-count
|
||||
:maxlength="20"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
<div class="main_item" style="margin-bottom: 24px; margin-left: 29px">
|
||||
<div class="signbox">
|
||||
<div class="sign">
|
||||
<img
|
||||
@@ -118,17 +118,11 @@
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 3px">基础投票数:</span>
|
||||
<span style="margin-right: 3px">基础投票数设置</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<!-- <a-upload
|
||||
@change="handleChange"
|
||||
:before-upload="beforeUpload"
|
||||
:multiple="true"
|
||||
:max-count="1"
|
||||
action="/manageApi/vote/baseVoteupload"
|
||||
v-model:file-list="fileList"
|
||||
> -->
|
||||
|
||||
<!-- <div class="btnbox">
|
||||
|
||||
<a-upload :before-upload="beforeUpload" :max-count="1">
|
||||
<button class="xkbtn">点击上传</button>
|
||||
<template #itemRender="{ file, actions }">
|
||||
@@ -155,14 +149,75 @@
|
||||
</div>
|
||||
<button class="xkbtn" @click="downloadTemplate">下载模板
|
||||
</button>
|
||||
</div> -->
|
||||
</div>
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 64px;
|
||||
margin-bottom: 24px;
|
||||
"
|
||||
>
|
||||
<div>参与数:</div>
|
||||
<div style="width: 159px">
|
||||
<a-input-number
|
||||
style="width: 159px"
|
||||
id="inputNumber"
|
||||
v-model:value="partakeNum"
|
||||
:min="0"
|
||||
:max="99999"
|
||||
:precision="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item" style="margin-top: -25px">
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 64px;
|
||||
margin-bottom: 24px;
|
||||
"
|
||||
>
|
||||
<div>总票数:</div>
|
||||
<div style="width: 159px">
|
||||
<a-input-number
|
||||
style="width: 159px"
|
||||
id="inputNumber"
|
||||
v-model:value="totalVoteNum"
|
||||
:min="0"
|
||||
:max="99999"
|
||||
:precision="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 64px;
|
||||
margin-bottom: 24px;
|
||||
"
|
||||
>
|
||||
<div>浏览数:</div>
|
||||
<div style="width: 159px">
|
||||
<a-input-number
|
||||
style="width: 159px"
|
||||
id="inputNumber"
|
||||
v-model:value="browseNum"
|
||||
:min="0"
|
||||
:max="99999"
|
||||
:precision="0"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="main_item" style="margin-top: -25px">
|
||||
<div class="signbox"></div>
|
||||
<div class="btnbox">
|
||||
<span style="color: #999999">支持:xls.xlsx</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="main_item2">
|
||||
<div class="signbox">
|
||||
<span style="margin-right: 3px">投票说明:</span>
|
||||
@@ -272,15 +327,23 @@ export default {
|
||||
fileList: [],
|
||||
voteCount: null,
|
||||
projectTemplateId: null,
|
||||
|
||||
partakeNum: 0, //参与数
|
||||
totalVoteNum: 0, //总票数
|
||||
browseNum: 0, //浏览数
|
||||
});
|
||||
const closeDrawer = () => {
|
||||
(state.inputV1 = ""),
|
||||
(state.textV1 = ""),
|
||||
(state.time = undefined),
|
||||
(state.basevote = ""),
|
||||
(state.ballotId = ""),
|
||||
ctx.emit("update:addvoteVisible", false);
|
||||
state.inputV1 = "";
|
||||
state.textV1 = "";
|
||||
state.time = undefined;
|
||||
state.basevote = "";
|
||||
state.ballotId = "";
|
||||
ctx.emit("update:addvoteVisible", false);
|
||||
ctx.emit("update:edit", false);
|
||||
|
||||
state.partakeNum = 0; //参与数
|
||||
state.totalVoteNum = 0; //总票数
|
||||
state.browseNum = 0; //浏览数
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
if (props.edit && bool) {
|
||||
@@ -337,6 +400,9 @@ export default {
|
||||
dayjs(res.data.data.voteStartTime, "YYYY-MM-DD"),
|
||||
dayjs(res.data.data.voteEndTime, "YYYY-MM-DD"),
|
||||
];
|
||||
state.totalVoteNum = res.data.data.votesTotal; //总票数
|
||||
state.partakeNum = res.data.data.numberOfInvolved; //参与数
|
||||
state.browseNum = res.data.data.numberOfBrowse; //浏览数
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取投票信息失败", err);
|
||||
@@ -411,9 +477,9 @@ export default {
|
||||
message.destroy();
|
||||
return message.warning("请输入直播时间");
|
||||
}
|
||||
if (!state.basevote) {
|
||||
return message.warning("请上传投票基数");
|
||||
}
|
||||
// if (!state.basevote) {
|
||||
// return message.warning("请上传投票基数");
|
||||
// }
|
||||
if (state.time != undefined) {
|
||||
state.startTime = dayjs(state.time[0]).format("YYYY-MM-DD");
|
||||
state.endTime = dayjs(state.time[1]).format("YYYY-MM-DD");
|
||||
@@ -427,6 +493,9 @@ export default {
|
||||
ballotId: state.ballotId,
|
||||
baseVote: state.basevote,
|
||||
voteExplain: state.textV1,
|
||||
votesTotal: state.totalVoteNum, //总票数
|
||||
numberOfInvolved: state.partakeNum, //参与数
|
||||
numberOfBrowse: state.browseNum, //浏览数
|
||||
};
|
||||
if (props.edit) {
|
||||
api
|
||||
@@ -469,7 +538,7 @@ export default {
|
||||
};
|
||||
|
||||
function downloadTemplate() {
|
||||
window.open('/manageApi/投票基础数据模版.xlsx')
|
||||
window.open("/manageApi/投票基础数据模版.xlsx");
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -160,7 +160,48 @@
|
||||
:key="index"
|
||||
>
|
||||
<div class="file_img">
|
||||
<img :src="item.img" />
|
||||
<img
|
||||
v-if="
|
||||
item.indexOf('jpg') !== -1 ||
|
||||
item.indexOf('jpeg') !== -1 ||
|
||||
item.indexOf('png') !== -1
|
||||
"
|
||||
src="@/assets/images/coursewareManage/pngpic.png"
|
||||
/>
|
||||
<div v-else>
|
||||
<img
|
||||
v-if="item.indexOf('doc') !== -1"
|
||||
src="@/assets/images/coursewareManage/docpic.png"
|
||||
/>
|
||||
<div v-else>
|
||||
<img
|
||||
v-if="item.indexOf('xls') !== -1"
|
||||
src="@/assets/images/coursewareManage/xlspic.png"
|
||||
/>
|
||||
<div v-else>
|
||||
<img
|
||||
v-if="item.indexOf('ppt') !== -1"
|
||||
src="@/assets/images/coursewareManage/pptpic.png"
|
||||
/>
|
||||
<div v-else>
|
||||
<img
|
||||
v-if="item.indexOf('pdf') !== -1"
|
||||
src="@/assets/images/coursewareManage/pdfpic.png"
|
||||
/>
|
||||
<div v-else>
|
||||
<img
|
||||
v-if="item.indexOf('zip') !== -1"
|
||||
src="@/assets/images/coursewareManage/zippic.png"
|
||||
/>
|
||||
<img
|
||||
v-else
|
||||
src="@/assets/images/coursewareManage/docpic.png"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="file_detail">
|
||||
<div class="file_name">
|
||||
@@ -650,7 +691,9 @@ export default defineComponent({
|
||||
.fotarea {
|
||||
width: calc(100% - 150px);
|
||||
position: relative;
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.fuwenben {
|
||||
width: 90%;
|
||||
height: 20px;
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
<!-- 确定新建面授课弹窗 -->
|
||||
<template>
|
||||
<a-modal
|
||||
v-model:visible="ft_hs"
|
||||
title="Title"
|
||||
:footer="null"
|
||||
:closable="false"
|
||||
wrapClassName="modalStyle facteachModal"
|
||||
width="80%"
|
||||
@cancel="visibleClose"
|
||||
@ok="handlePush"
|
||||
v-model:visible="ft_hs"
|
||||
title="Title"
|
||||
:footer="null"
|
||||
:closable="false"
|
||||
wrapClassName="modalStyle facteachModal"
|
||||
width="80%"
|
||||
@cancel="visibleClose"
|
||||
@ok="handlePush"
|
||||
>
|
||||
<div class="modalHeader">
|
||||
<div class="headerLeft">
|
||||
<img
|
||||
style="width: 17px; height: 18px; margin-right: 8px"
|
||||
src="@/assets/images/basicinfo/add.png"
|
||||
style="width: 17px; height: 18px; margin-right: 8px"
|
||||
src="@/assets/images/basicinfo/add.png"
|
||||
/>
|
||||
<span v-if="ft_eidt" class="headerLeftText">编辑面授课</span>
|
||||
<span v-else class="headerLeftText">新建面授课</span>
|
||||
</div>
|
||||
<div style="margin-right: 57px; cursor: pointer">
|
||||
<img
|
||||
@click="visibleClose"
|
||||
style="width: 22px; height: 22px"
|
||||
src="@/assets/images/basicinfo/close22.png"
|
||||
@click="visibleClose"
|
||||
style="width: 22px; height: 22px"
|
||||
src="@/assets/images/basicinfo/close22.png"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
<!-- 审核理由 -->
|
||||
<div v-if="statusJuJue" class="statusJuJue">
|
||||
<span>审核意见:</span>
|
||||
<span>-</span>
|
||||
<span>{{ auditDescription }}</span>
|
||||
</div>
|
||||
<div class="faceteach" :style="{ display: ft_hs ? 'block' : 'none' }">
|
||||
<div class="ft_main">
|
||||
@@ -42,8 +42,8 @@
|
||||
<div class="item_nam">
|
||||
<div class="asterisk_icon">
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt="asterisk"
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt="asterisk"
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 14px">课程名称</span>
|
||||
@@ -51,10 +51,10 @@
|
||||
<div class="item_inp">
|
||||
<div class="i1_input">
|
||||
<a-input
|
||||
v-model:value="qdms_inputV1"
|
||||
maxlength="90"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入课程名称"
|
||||
v-model:value="qdms_inputV1"
|
||||
maxlength="90"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入课程名称"
|
||||
/>
|
||||
<div class="inp_num">
|
||||
<span style="color: #c7cbd2">
|
||||
@@ -70,19 +70,19 @@
|
||||
<span style="color: #999ba3">课程命名规则</span>
|
||||
</div>
|
||||
<div
|
||||
class="i2_right"
|
||||
@click="hideShow"
|
||||
style="cursor: pointer"
|
||||
class="i2_right"
|
||||
@click="hideShow"
|
||||
style="cursor: pointer"
|
||||
>
|
||||
<div
|
||||
class="b_zk"
|
||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
||||
class="b_zk"
|
||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
||||
>
|
||||
<span style="color: #4ea6ff">收起</span>
|
||||
</div>
|
||||
<div
|
||||
class="b_sq"
|
||||
:style="{ display: hideshow ? 'none' : 'block' }"
|
||||
class="b_sq"
|
||||
:style="{ display: hideshow ? 'none' : 'block' }"
|
||||
>
|
||||
<span style="color: #4ea6ff">展开</span>
|
||||
</div>
|
||||
@@ -90,14 +90,14 @@
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="i2_detail"
|
||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
||||
class="i2_detail"
|
||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
||||
>
|
||||
<span style="color: #999ba3">
|
||||
1、课程名称统一不加书名号。<br/>
|
||||
1、课程名称统一不加书名号。<br />
|
||||
2、项目名称、属地等信息如需体现在课程名称中,请放在课程名称信息
|
||||
之后,如“时间管理(GROW180项目)”或“时间管理(B*)”确保首先
|
||||
看到的是课程内容主题。<br/>
|
||||
看到的是课程内容主题。<br />
|
||||
3、同一课程如先后有多个版本,原则上仅开放最新版本,旧版本应停用
|
||||
版本如必须以年份标明,请以“沟通技巧(2022年)”的方式呈现。
|
||||
</span>
|
||||
@@ -107,32 +107,32 @@
|
||||
<div class="item_nam">
|
||||
<div class="asterisk_icon">
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 14px">封面图</span>
|
||||
</div>
|
||||
<div class="item_inp">
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="feng_mian_1"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="optionsUrl"
|
||||
allowClear
|
||||
showSearch
|
||||
v-model:value="feng_mian_1"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="optionsUrl"
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
<img
|
||||
class="i_upload_img"
|
||||
v-if="feng_mian_1"
|
||||
:src="feng_mian_1"
|
||||
alt="avatar"
|
||||
class="i_upload_img"
|
||||
v-if="feng_mian_1"
|
||||
:src="feng_mian_1"
|
||||
alt="avatar"
|
||||
/>
|
||||
<div class="i_bottom">
|
||||
<span style="color: #999ba3">
|
||||
@@ -145,9 +145,9 @@
|
||||
<div class="item_nam">
|
||||
<div class="asterisk_icon">
|
||||
<img
|
||||
style="width: 10px; height: 10px"
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
style="width: 10px; height: 10px"
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 14px">目标人群</span>
|
||||
@@ -155,10 +155,10 @@
|
||||
<div class="item_inp">
|
||||
<div class="i1_input">
|
||||
<a-input
|
||||
v-model:value="qdms_inputV2"
|
||||
maxlength="50"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入目标人群"
|
||||
v-model:value="qdms_inputV2"
|
||||
maxlength="50"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入目标人群"
|
||||
/>
|
||||
<div class="inp_num">
|
||||
<span style="color: #c7cbd2">
|
||||
@@ -175,10 +175,10 @@
|
||||
<div class="item_inp">
|
||||
<div class="i1_input">
|
||||
<a-input
|
||||
v-model:value="qdms_inputV3"
|
||||
maxlength="200"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入课程价值"
|
||||
v-model:value="qdms_inputV3"
|
||||
maxlength="200"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入课程价值"
|
||||
/>
|
||||
<div class="inp_num">
|
||||
<span style="color: #c7cbd2">
|
||||
@@ -192,8 +192,8 @@
|
||||
<div class="item_nam">
|
||||
<div class="asterisk_icon">
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt="asterisk"
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt="asterisk"
|
||||
/>
|
||||
</div>
|
||||
<span style="margin-right: 14px">内容分类</span>
|
||||
@@ -201,18 +201,18 @@
|
||||
<div class="item_inp">
|
||||
<div class="select i6_input">
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="fen_lei"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="options2"
|
||||
allowClear
|
||||
showSearch
|
||||
v-model:value="fen_lei"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="options2"
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -224,18 +224,18 @@
|
||||
<div class="item_inp">
|
||||
<div class="select i7_input">
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="chang_jin"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="options3"
|
||||
allowClear
|
||||
showSearch
|
||||
v-model:value="chang_jin"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="options3"
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -246,17 +246,17 @@
|
||||
</div>
|
||||
<div class="item_inp">
|
||||
<a-input
|
||||
v-model:value="tags_val_single"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入按回车键创建成功"
|
||||
@pressEnter="handleTagChange"
|
||||
v-model:value="tags_val_single"
|
||||
style="width: 440px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入按回车键创建成功"
|
||||
@pressEnter="handleTagChange"
|
||||
/>
|
||||
<div class="tag-content">
|
||||
<a-tag
|
||||
v-for="(item, index) in tags_val"
|
||||
:key="index"
|
||||
closable
|
||||
@close="handleTagClose(item)"
|
||||
v-for="(item, index) in tags_val"
|
||||
:key="index"
|
||||
closable
|
||||
@close="handleTagClose(item)"
|
||||
>
|
||||
{{ item }}
|
||||
</a-tag>
|
||||
@@ -269,8 +269,8 @@
|
||||
<div class="item_nam">
|
||||
<div class="asterisk_icon">
|
||||
<img
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt="asterisk"
|
||||
src="@/assets/images/coursewareManage/asterisk.png"
|
||||
alt="asterisk"
|
||||
/>
|
||||
</div>
|
||||
<!-- 授课教师1 -->
|
||||
@@ -279,8 +279,8 @@
|
||||
<div class="item_inp">
|
||||
<div class="i1_input">
|
||||
<ProjectManager
|
||||
v-model:value="member.value"
|
||||
v-model:name="member.name"
|
||||
v-model:value="member.value"
|
||||
v-model:name="member.name"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -292,10 +292,10 @@
|
||||
<div class="item_inp">
|
||||
<div class="i10_textarea">
|
||||
<a-textarea
|
||||
v-model:value="qdms_inputV6"
|
||||
maxlength="150"
|
||||
style="width: 440px; height: 100px; border-radius: 8px"
|
||||
placeholder="请输入"
|
||||
v-model:value="qdms_inputV6"
|
||||
maxlength="150"
|
||||
style="width: 440px; height: 100px; border-radius: 8px"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
<div class="inp_num">
|
||||
<span style="color: #c7cbd2">
|
||||
@@ -310,7 +310,7 @@
|
||||
<span style="margin-right: 10px">附件</span>
|
||||
</div>
|
||||
<div class="item_inp">
|
||||
<FJUpload v-model:value="attach"></FJUpload>
|
||||
<FJUpload v-model:value="attach" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -322,17 +322,17 @@
|
||||
<div class="fotarea">
|
||||
<div style="border: 1px solid #ccc">
|
||||
<Toolbar
|
||||
style="border-bottom: 1px solid #ccc"
|
||||
:editor="editorRef"
|
||||
:defaultConfig="toolbarConfig"
|
||||
:mode="mode"
|
||||
style="border-bottom: 1px solid #ccc"
|
||||
:editor="editorRef"
|
||||
:defaultConfig="toolbarConfig"
|
||||
:mode="mode"
|
||||
/>
|
||||
<Editor
|
||||
style="height: 250px; overflow-y: hidden"
|
||||
v-model="valueHtml"
|
||||
:defaultConfig="editorConfig"
|
||||
:mode="mode"
|
||||
@onCreated="handleCreated"
|
||||
style="height: 250px; overflow-y: hidden"
|
||||
v-model="valueHtml"
|
||||
:defaultConfig="editorConfig"
|
||||
:mode="mode"
|
||||
@onCreated="handleCreated"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -360,19 +360,19 @@ import {
|
||||
defineComponent,
|
||||
ref,
|
||||
shallowRef,
|
||||
onMounted,
|
||||
// onMounted,
|
||||
onBeforeUnmount,
|
||||
} from "vue";
|
||||
import {message} from "ant-design-vue";
|
||||
import {edit, detail, handle} from "@/api/indexCourse";
|
||||
import {fileUp} from "../../api/indexEval";
|
||||
import { message } from "ant-design-vue";
|
||||
import { edit, detail, handle } from "@/api/indexCourse";
|
||||
import { fileUp } from "../../api/indexEval";
|
||||
import * as api1 from "../../api/index1";
|
||||
import "@wangeditor/editor/dist/css/style.css";
|
||||
import {Editor, Toolbar} from "@wangeditor/editor-for-vue";
|
||||
import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import FJUpload from "@/components/common/FJUpload";
|
||||
import * as moment from "moment";
|
||||
|
||||
import * as api2 from "../../api/indexAudit";
|
||||
export default defineComponent({
|
||||
components: {
|
||||
Editor,
|
||||
@@ -380,15 +380,16 @@ export default defineComponent({
|
||||
FJUpload,
|
||||
ProjectManager,
|
||||
},
|
||||
setup(props, {expose, emit}) {
|
||||
setup(props, { expose, emit }) {
|
||||
const state = reactive({
|
||||
hideshow: true,
|
||||
attach: '',
|
||||
ft_eidt: false,
|
||||
attach: "",
|
||||
ft_hs: false,
|
||||
addLoading: false,
|
||||
statusJuJue: 0,
|
||||
statusTingQi: 1,
|
||||
member: {name: "", value: ""},
|
||||
member: { name: "", value: "" },
|
||||
|
||||
offcourseId: null,
|
||||
qdms_inputV1: "",
|
||||
@@ -401,15 +402,20 @@ export default defineComponent({
|
||||
tags_val: [],
|
||||
qdms_inputV6: "",
|
||||
imgList: [],
|
||||
auditDescription: "",
|
||||
});
|
||||
|
||||
const visibleOpen = (offcourseId) => {
|
||||
const visibleOpen = (offcourseId, name) => {
|
||||
state.offcourseId = offcourseId;
|
||||
|
||||
if (state.offcourseId) {
|
||||
state.ft_hs = true;
|
||||
state.ft_eidt = true;
|
||||
handleEditInfo(state.offcourseId);
|
||||
} else {
|
||||
state.ft_hs = true;
|
||||
state.ft_eidt = false;
|
||||
state.qdms_inputV1 = name;
|
||||
}
|
||||
};
|
||||
const visibleClose = () => {
|
||||
@@ -429,7 +435,7 @@ export default defineComponent({
|
||||
state.addLoading = false;
|
||||
state.statusJuJue = 0;
|
||||
state.statusTingQi = 1;
|
||||
state.member = {name: "", value: ""};
|
||||
state.member = { name: "", value: "" };
|
||||
|
||||
state.offcourseId = null;
|
||||
state.qdms_inputV1 = "";
|
||||
@@ -442,7 +448,7 @@ export default defineComponent({
|
||||
state.tags_val = [];
|
||||
state.qdms_inputV6 = "";
|
||||
state.imgList = [];
|
||||
state.attach = '';
|
||||
state.attach = "";
|
||||
|
||||
valueHtml.value = "";
|
||||
};
|
||||
@@ -453,22 +459,24 @@ export default defineComponent({
|
||||
// 内容 HTML
|
||||
const valueHtml = ref("");
|
||||
// // 模拟 ajax 异步获取内容
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
// valueHtml.value = "<p>模拟 Ajax 异步设置内容</p>";
|
||||
console.log("toolbar222222222222222");
|
||||
console.log(editorRef.value);
|
||||
// const toolbar = DomEditor.getToolbar(editorRef.value);
|
||||
// const menu = editorRef.value.getAllMenuKeys();
|
||||
// const bar = toolbar.getConfig().toolbarKeys;
|
||||
// console.log(menu);
|
||||
// console.log(bar);
|
||||
}, 3500);
|
||||
});
|
||||
// onMounted(() => {
|
||||
// console.log("toolbar222222222222222111111");
|
||||
// console.log(editorRef.value);
|
||||
// setTimeout(() => {
|
||||
// // valueHtml.value = "<p>模拟 Ajax 异步设置内容</p>";
|
||||
// console.log("toolbar22222222222222222222222233");
|
||||
// console.log(editorRef.value);
|
||||
// // const toolbar = DomEditor.getToolbar(editorRef.value);
|
||||
// // const menu = editorRef.value.getAllMenuKeys();
|
||||
// // const bar = toolbar.getConfig().toolbarKeys;
|
||||
// // console.log(menu);
|
||||
// // console.log(bar);
|
||||
// }, 3500);
|
||||
// });
|
||||
const toolbarConfig = {
|
||||
excludeKeys: ["insertVideo", "insertImage"],
|
||||
};
|
||||
const editorConfig = {placeholder: "请输入内容...", MENU_CONF: {}};
|
||||
const editorConfig = { placeholder: "请输入内容...", MENU_CONF: {} };
|
||||
editorConfig.MENU_CONF["uploadImage"] = {
|
||||
// 自定义上传
|
||||
async customUpload(file, insertFn) {
|
||||
@@ -483,13 +491,19 @@ export default defineComponent({
|
||||
},
|
||||
};
|
||||
const handleCreated = (editor) => {
|
||||
console.log(4545454544);
|
||||
console.log(editor);
|
||||
editorRef.value = editor; // 记录 editor 实例,重要!
|
||||
};
|
||||
// 组件销毁时,也及时销毁编辑器
|
||||
onBeforeUnmount(() => {
|
||||
const handleDestory = () => {
|
||||
const editor = editorRef.value;
|
||||
if (editor == null) return;
|
||||
editor.destroy();
|
||||
};
|
||||
// 组件销毁时,也及时销毁编辑器
|
||||
onBeforeUnmount(() => {
|
||||
console.log(78787866666666666666);
|
||||
// handleDestory();
|
||||
});
|
||||
// 富文本 eeeeeeeeeeeeee
|
||||
|
||||
@@ -505,48 +519,48 @@ export default defineComponent({
|
||||
setCode: param,
|
||||
};
|
||||
api1
|
||||
.getDict(obj)
|
||||
.then((res) => {
|
||||
console.log("获取字典成功", res);
|
||||
if (res.data.code === 200) {
|
||||
if (param === "faceclassPic") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictValue,
|
||||
label: item.dictName,
|
||||
});
|
||||
.getDict(obj)
|
||||
.then((res) => {
|
||||
console.log("获取字典成功", res);
|
||||
if (res.data.code === 200) {
|
||||
if (param === "faceclassPic") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictValue,
|
||||
label: item.dictName,
|
||||
});
|
||||
optionsUrl.value = newArr;
|
||||
}
|
||||
if (param === "faceclassClass") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictCode,
|
||||
label: item.dictName,
|
||||
});
|
||||
});
|
||||
options2.value = newArr;
|
||||
}
|
||||
if (param === "faceclassScene") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictCode,
|
||||
label: item.dictName,
|
||||
});
|
||||
});
|
||||
options3.value = newArr;
|
||||
}
|
||||
});
|
||||
optionsUrl.value = newArr;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取字典失败", err);
|
||||
});
|
||||
if (param === "faceclassClass") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictCode,
|
||||
label: item.dictName,
|
||||
});
|
||||
});
|
||||
options2.value = newArr;
|
||||
}
|
||||
if (param === "faceclassScene") {
|
||||
let arr = res.data.data.rows;
|
||||
let newArr = [];
|
||||
arr.forEach((item) => {
|
||||
newArr.push({
|
||||
value: item.dictCode,
|
||||
label: item.dictName,
|
||||
});
|
||||
});
|
||||
options3.value = newArr;
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取字典失败", err);
|
||||
});
|
||||
};
|
||||
getDictList("faceclassClass");
|
||||
getDictList("faceclassScene");
|
||||
@@ -618,7 +632,9 @@ export default defineComponent({
|
||||
if (param === "review") {
|
||||
//新建时点击审核按钮
|
||||
submitReview(res.data.data.offcourseId);
|
||||
}else visibleClose();
|
||||
} else {
|
||||
visibleClose();
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -639,6 +655,22 @@ export default defineComponent({
|
||||
if (Number(item.auditStatus) === 2 && Number(item.status) === 0) {
|
||||
state.statusTingQi = 0;
|
||||
}
|
||||
if (Number(item.auditStatus) === -1) {
|
||||
let obj = {
|
||||
offcourseId: offcourseId,
|
||||
type: 2,
|
||||
pageNo: 1,
|
||||
pageSize: 1,
|
||||
};
|
||||
api2.auditList(obj).then((res) => {
|
||||
if (res.data.data.rows && res.data.data.rows.length > 0) {
|
||||
state.auditDescription = res.data.data.rows[0].description
|
||||
? res.data.data.rows[0].description
|
||||
: "-";
|
||||
console.log("state.auditDescription", state.auditDescription);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
state.qdms_inputV1 = item.name;
|
||||
state.feng_mian_1 = item.picUrl;
|
||||
@@ -648,10 +680,9 @@ export default defineComponent({
|
||||
state.chang_jin = String(item.sceneId);
|
||||
state.tags_val = item.tips ? item.tips.split(",") : [];
|
||||
state.qdms_inputV6 = item.intro;
|
||||
state.member = {value: item.teacherId, name: item.teacher};
|
||||
state.member = { value: item.teacherId, name: item.teacher };
|
||||
valueHtml.value = item.outline;
|
||||
state.attach = item.attach;
|
||||
state.ft_hs = true;
|
||||
};
|
||||
|
||||
const handleTagChange = () => {
|
||||
@@ -701,15 +732,16 @@ export default defineComponent({
|
||||
visibleClose,
|
||||
handleTagChange,
|
||||
handleTagClose,
|
||||
handleCreated,
|
||||
handlePush,
|
||||
submitReview,
|
||||
reviewClick,
|
||||
|
||||
editorRef,
|
||||
valueHtml,
|
||||
mode: "simple", // 或 'simple'
|
||||
toolbarConfig,
|
||||
editorConfig,
|
||||
handleCreated,
|
||||
handleDestory,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
@@ -125,7 +125,8 @@
|
||||
</div>
|
||||
<div class="left">审核意见:</div>
|
||||
<div class="rig">
|
||||
<a-textarea v-model:value="valueSugg" :rows="4" />
|
||||
<a-textarea v-model:value="valueSugg" :rows="4" show-count
|
||||
:maxlength="20"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -418,6 +418,10 @@
|
||||
<a-button class="pubtn2" @click="releaseLearnPath">发布</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 加载动画 -->
|
||||
<div class="aeLoading" :style="{ display: pubLoading ? 'flex' : 'none' }">
|
||||
<a-spin :spinning="pubLoading" />
|
||||
</div>
|
||||
</a-modal>
|
||||
<!-- 复制路径弹窗 -->
|
||||
<a-modal
|
||||
@@ -723,6 +727,7 @@ export default {
|
||||
// learnPathBg: null, //创建路径选择的路径图背景
|
||||
// learnPathBg2: null, //编辑路径选择的路径图背景
|
||||
pub: false, //发布弹窗
|
||||
pubLoading: false, //发布loading
|
||||
checked: false, //发布弹窗switch
|
||||
checkedTeacher: false, //发布弹窗勾选
|
||||
checkStu: false, //发布弹窗勾选
|
||||
@@ -853,6 +858,7 @@ export default {
|
||||
const showPub = (router) => {
|
||||
console.log("router", router);
|
||||
state.pub = true;
|
||||
state.pubLoading = true;
|
||||
state.releasePathId = router.id;
|
||||
state.releasePathName = router.manager;
|
||||
api
|
||||
@@ -860,7 +866,7 @@ export default {
|
||||
.then((res) => {
|
||||
console.log("获取关卡、任务、学员统计数据", res.data);
|
||||
if (res.status === 200) {
|
||||
state.routeStudentsNum = res.data.students;
|
||||
// state.routeStudentsNum = res.data.students;
|
||||
state.routeChapters = res.data.chapters;
|
||||
state.routeTasks = res.data.tasks;
|
||||
}
|
||||
@@ -868,6 +874,24 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log("err", err);
|
||||
});
|
||||
//获取学员列表
|
||||
let stuobj = {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
routerId: router.id,
|
||||
};
|
||||
api
|
||||
.getStudent(stuobj)
|
||||
.then((res) => {
|
||||
console.log("获取学员列表", res.data.data.total);
|
||||
if (res.data.code === 200) {
|
||||
state.routeStudentsNum = res.data.data.total;
|
||||
state.pubLoading = false;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取学员列表失败", err);
|
||||
});
|
||||
};
|
||||
//确定发布
|
||||
const releaseLearnPath = () => {
|
||||
@@ -897,6 +921,11 @@ export default {
|
||||
|
||||
const closePub = () => {
|
||||
state.pub = false;
|
||||
state.releasePathId = null;
|
||||
state.releasePathName = null;
|
||||
state.routeChapters = null;
|
||||
state.routeTasks = null;
|
||||
state.routeStudentsNum = null;
|
||||
};
|
||||
//显示复制窗口
|
||||
const showCopyModal = () => {
|
||||
@@ -1544,8 +1573,8 @@ export default {
|
||||
.getRouterDetail(id)
|
||||
.then((res) => {
|
||||
if (res.data.code === 200) {
|
||||
console.log("获取学习路径详情成功", res.data.data);
|
||||
let detail = res.data.data.routerInfo;
|
||||
// console.log("获取详情成功", detail);
|
||||
state.pathName = detail.name;
|
||||
state.pathBg = detail.picUrl;
|
||||
state.pathBgId = "";
|
||||
|
||||
@@ -1143,6 +1143,10 @@
|
||||
<a-button class="pubtn2" @click="releaseLearnPath">发布</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 加载动画 -->
|
||||
<div class="aeLoading" :style="{ display: pubLoading ? 'flex' : 'none' }">
|
||||
<a-spin :spinning="pubLoading" />
|
||||
</div>
|
||||
</a-modal>
|
||||
<!-- 撤回路径弹窗 -->
|
||||
<a-modal
|
||||
@@ -1303,6 +1307,7 @@ export default {
|
||||
action: null,
|
||||
act: null,
|
||||
pub: false, //发布弹窗
|
||||
pubLoading: false, //发布loading
|
||||
backModal: false, //撤回弹窗
|
||||
dcopyModal: false, //复制弹窗
|
||||
closeBack: false,
|
||||
@@ -1443,7 +1448,7 @@ export default {
|
||||
addAuthList: [],
|
||||
|
||||
codevisible: false, //二维码是否显示
|
||||
codeInfo: null, //二维码标题
|
||||
codeInfo: null, //二维码内容
|
||||
});
|
||||
|
||||
const levelList = reactive({
|
||||
@@ -1813,13 +1818,14 @@ export default {
|
||||
//显示发布弹窗
|
||||
const showPub = () => {
|
||||
state.pub = true;
|
||||
state.pubLoading = true;
|
||||
// state.releasePathId = routerId;
|
||||
api
|
||||
.getLearnCount(state.routerId)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
// console.log("获取关卡、任务、学员统计数据", res.data);
|
||||
state.routeStudentsNum = res.data.students;
|
||||
// state.routeStudentsNum = res.data.students;
|
||||
state.routeChapters = res.data.chapters;
|
||||
state.routeTasks = res.data.tasks;
|
||||
}
|
||||
@@ -1827,6 +1833,24 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log("err", err);
|
||||
});
|
||||
//获取学员列表
|
||||
let stuobj = {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
routerId: state.routerId,
|
||||
};
|
||||
api
|
||||
.getStudent(stuobj)
|
||||
.then((res) => {
|
||||
console.log("获取学员列表", res.data.data.total);
|
||||
if (res.data.code === 200) {
|
||||
state.routeStudentsNum = res.data.data.total;
|
||||
state.pubLoading = false;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("获取学员列表失败", err);
|
||||
});
|
||||
};
|
||||
//显示撤回弹窗
|
||||
const showBackModal = () => {
|
||||
|
||||
@@ -279,34 +279,43 @@
|
||||
<div class="ntc_body">
|
||||
<div class="ntc_switch">
|
||||
<a-switch
|
||||
size="small"
|
||||
v-model:checked="checked"
|
||||
@click="changeopclo"
|
||||
size="small"
|
||||
v-model:checked="checked"
|
||||
@click="changeopclo"
|
||||
/>
|
||||
<div
|
||||
class="opclo"
|
||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
||||
>
|
||||
<div v-if="(checked==true)"
|
||||
class="opclo">
|
||||
<span>关闭</span>
|
||||
</div>
|
||||
<div
|
||||
class="opclo"
|
||||
:style="{ display: hideshow ? 'none' : 'block' }"
|
||||
>
|
||||
<div v-if="(checked==false)"
|
||||
class="opclo" >
|
||||
<span>开启</span>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="ntc_content"
|
||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
||||
>
|
||||
<div class="ntcc_tit">公告内容</div>
|
||||
<div v-if="(checked==true)"
|
||||
class="ntc_content">
|
||||
<div class="ntcc_tit">当前公告内容:</div>
|
||||
<div class="textarea">
|
||||
{{noticeContent==""?"暂无公告":noticeContent}}
|
||||
<div v-if="(editFlag == false)" class="btnarea" >
|
||||
<div> </div>
|
||||
<div class="area_btn" @click="editNotice">
|
||||
|
||||
<div class="btnText">编辑</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<template v-if="(editFlag==true)">
|
||||
<div> </div>
|
||||
<div class="ntcc_tit" >编辑公告:</div>
|
||||
<div class="textarea">
|
||||
<a-textarea
|
||||
v-model:value="projectInfo.notice"
|
||||
placeholder="公告信息最多输入150个字。"
|
||||
:maxlength="textnum"
|
||||
allow-clear
|
||||
v-model:value="projectInfo.notice"
|
||||
placeholder="公告信息最多输入150个字。"
|
||||
:maxlength="textnum"
|
||||
allow-clear
|
||||
/>
|
||||
<div class="btnarea">
|
||||
<div> </div>
|
||||
@@ -315,13 +324,15 @@
|
||||
<div class="btnText">发布</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-tab-pane>
|
||||
|
||||
<a-tab-pane key="3" tab="项目积分">
|
||||
<div class="split"></div>
|
||||
<div class="projectscore">
|
||||
@@ -852,29 +863,25 @@ export default defineComponent({
|
||||
],
|
||||
isEdit: false, // 是否处于编辑状态
|
||||
// 基本信息
|
||||
projectInfo: {
|
||||
beginTime: null,
|
||||
endTime: null,
|
||||
name: null,
|
||||
manager: null,
|
||||
notice: null,
|
||||
sourceBelongId: null,
|
||||
remark: "",
|
||||
courseSyncFlag: false,
|
||||
level: null,
|
||||
systemId: null,
|
||||
boeFlag: false,
|
||||
status: null,
|
||||
picUrl: null,
|
||||
noticeFlag: null,
|
||||
},
|
||||
projectInfo: { },
|
||||
noticeContent:"",
|
||||
editFlag:false,
|
||||
});
|
||||
const value = ref("");
|
||||
const textnum = "150";
|
||||
const routered = useRouter();
|
||||
const changeopclo = () => {
|
||||
state.hideshow = !state.hideshow;
|
||||
state.projectInfo.noticeFlag = state.checked?1:0;
|
||||
api
|
||||
.templateEdit( state.projectInfo)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
};
|
||||
|
||||
const changecheck2 = () => {
|
||||
state.checked2 = !state.checked2;
|
||||
};
|
||||
@@ -906,6 +913,10 @@ export default defineComponent({
|
||||
state.isEdit = false;
|
||||
getDetail();
|
||||
};
|
||||
const editNotice =()=>{
|
||||
state.editFlag = true ;
|
||||
}
|
||||
|
||||
const checkType = (type) => {
|
||||
let typeRules = [
|
||||
"",
|
||||
@@ -933,30 +944,16 @@ export default defineComponent({
|
||||
api
|
||||
.templateDetail(localStorage.getItem("projectTemplateId"))
|
||||
.then((res) => {
|
||||
console.log("get model list ----->", res, res.data.data.stageList);
|
||||
console.log("get model list ----->", res, res.data.data.stageList);
|
||||
|
||||
state.taskSyllabus = [];
|
||||
console.log(res);
|
||||
state.projectInfo.name = res.data.data.projectTemplateInfo.name;
|
||||
state.projectInfo.beginTime = res.data.data.projectTemplateInfo.beginTime;
|
||||
state.projectInfo.endTime = res.data.data.projectTemplateInfo.endTime;
|
||||
state.projectInfo.manager = res.data.data.projectTemplateInfo.manager;
|
||||
state.projectInfo.notice = res.data.data.projectTemplateInfo.notice;
|
||||
state.projectInfo.sourceBelongId = res.data.data.projectTemplateInfo.sourceBelongId;
|
||||
state.projectInfo.managerId = res.data.data.projectTemplateInfo.managerId;
|
||||
state.projectInfo.remark = res.data.data.projectTemplateInfo.remark;
|
||||
state.projectInfo.courseSyncFlag = res.data.data.projectTemplateInfo.courseSyncFlag;
|
||||
state.projectInfo.level = res.data.data.projectTemplateInfo.level;
|
||||
state.projectInfo.systemId = res.data.data.projectTemplateInfo.systemId;
|
||||
state.projectInfo.boeFlag = res.data.data.projectTemplateInfo.boeFlag;
|
||||
state.projectInfo.noticeFlag = res.data.data.projectTemplateInfo.noticeFlag;
|
||||
state.projectInfo.remark = res.data.data.projectTemplateInfo.remark;
|
||||
state.projectInfo.status = res.data.data.projectTemplateInfo.status;
|
||||
state.projectInfo.picUrl = res.data.data.projectTemplateInfo.picUrl;
|
||||
state.picUrl = res.data.data.projectTemplateInfo.picUrl;
|
||||
state.projectInfo.attach = res.data.data.projectTemplateInfo.attach;
|
||||
state.projectInfo.category = res.data.data.projectTemplateInfo.category;
|
||||
state.projectId = res.data.data.projectTemplateInfo.projectTemplateId;
|
||||
state.projectInfo = res.data.data.projectTemplateInfo;
|
||||
|
||||
state.noticeContent = state.projectInfo.notice;
|
||||
state.checked = state.projectInfo.noticeFlag==1?true:false;
|
||||
console.log("res.data.data.projectTemplateInfo",res.data.data.projectTemplateInfo);
|
||||
|
||||
try{
|
||||
state.fileList = JSON.parse(res.data.data.projectTemplateInfo.attach);
|
||||
}catch{
|
||||
@@ -967,7 +964,10 @@ export default defineComponent({
|
||||
console.log("data=====", data);
|
||||
for (let i in data) {
|
||||
console.log("what ------ > ", i, data);
|
||||
state.taskSyllabus.push({ text: data[i].name?data[i].name:'无阶段任务', children: [] });
|
||||
if(data[i].taskList.length!==0){
|
||||
state.taskSyllabus.push({ text: data[i].name?data[i].name:'无阶段任务', children: [] });
|
||||
}
|
||||
|
||||
for (let j in data[i].taskList) {
|
||||
state.taskSyllabus[i].children.push({
|
||||
course: checkType(data[i].taskList[j].type),
|
||||
@@ -987,31 +987,16 @@ export default defineComponent({
|
||||
});
|
||||
};
|
||||
|
||||
// 发布公告
|
||||
const addNotice = () => {
|
||||
console.log("ok====s");
|
||||
let obj = {
|
||||
name: state.projectInfo.name,
|
||||
category: state.projectInfo.category,
|
||||
picUrl: state.projectInfo.picUrl,
|
||||
manager: state.projectInfo.manager,
|
||||
managerId: state.projectInfo.managerId || 0,
|
||||
sourceBelongId: state.projectInfo.sourceBelongId,
|
||||
level: state.projectInfo.level,
|
||||
systemId: state.projectInfo.systemId,
|
||||
boeFlag: state.projectInfo.boeFlag ? 1 : 0,
|
||||
courseSyncFlag: state.projectInfo.courseSyncFlag ? 1 : 0,
|
||||
notice: state.projectInfo.notice,
|
||||
noticeFlag: state.projectInfo.noticeFlag,
|
||||
projectTemplateId: localStorage.getItem("projectTemplateId"),
|
||||
remark: state.projectInfo.remark,
|
||||
status: state.projectInfo.status,
|
||||
attach: state.projectInfo.attach,
|
||||
};
|
||||
console.log("obj======", obj);
|
||||
// 发布公告
|
||||
const addNotice = () => {
|
||||
// state.projectInfo.notice=
|
||||
if(!state.projectInfo.notice){
|
||||
return message.warning("请输入公告内容");
|
||||
}
|
||||
api
|
||||
.templateEdit(obj)
|
||||
.templateEdit( state.projectInfo)
|
||||
.then((res) => {
|
||||
state.noticeContent = state.projectInfo.notice;
|
||||
message.success("公告发布成功");
|
||||
console.log(res);
|
||||
})
|
||||
@@ -1019,7 +1004,9 @@ export default defineComponent({
|
||||
message.error("公告发布失败" + err);
|
||||
console.log(err);
|
||||
});
|
||||
state.editFlag =false;
|
||||
};
|
||||
|
||||
// 删除阶段
|
||||
const stateDel = (id) => {
|
||||
api
|
||||
@@ -1051,12 +1038,12 @@ export default defineComponent({
|
||||
routered.push({
|
||||
path: "/templateAdd",
|
||||
query: {
|
||||
projectId: state.projectId,
|
||||
name: state.name,
|
||||
projectTemplateId: state.projectInfo.projectTemplateId,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
// 新建或编辑阶段
|
||||
const stateEdit = () => {
|
||||
let obj = {
|
||||
@@ -1289,7 +1276,8 @@ export default defineComponent({
|
||||
editRule,
|
||||
handleChange2,
|
||||
scoresum,
|
||||
checkedClose
|
||||
checkedClose,
|
||||
editNotice
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
<div class="projectAdd">
|
||||
<div class="header">
|
||||
<span class="title"
|
||||
>{{ projectInfo.parentId ? "编辑" : "创建" }}项目</span
|
||||
>{{ projectInfo.parentId ? "编辑" : "创建" }}项目</span
|
||||
>
|
||||
<div
|
||||
@click="backPage"
|
||||
style="cursor: pointer"
|
||||
to="/projectmanage"
|
||||
class="goback"
|
||||
@click="backPage"
|
||||
style="cursor: pointer"
|
||||
to="/projectmanage"
|
||||
class="goback"
|
||||
>
|
||||
<span class="return"></span><span class="returntext">返回</span>
|
||||
</div>
|
||||
@@ -19,8 +19,8 @@
|
||||
<div class="name" v-if="projectInfo.parentName">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">项目归属</div>
|
||||
</div>
|
||||
@@ -33,26 +33,26 @@
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">项目名称</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-input
|
||||
v-model:value="projectInfo.name"
|
||||
placeholder="请输入项目名称"
|
||||
show-count
|
||||
:maxlength="30"
|
||||
:disabled="viewDetail ? true : false"
|
||||
v-model:value="projectInfo.name"
|
||||
placeholder="请输入项目名称"
|
||||
show-count
|
||||
:maxlength="30"
|
||||
:disabled="viewDetail ? true : false"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">分类</div>
|
||||
</div>
|
||||
@@ -61,92 +61,97 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="name flex-top">
|
||||
<div class="namebox" style="margin-top:10px">
|
||||
<div class="namebox" style="margin-top: 10px">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">封面图</div>
|
||||
</div>
|
||||
<div class="in select" style="flex:1">
|
||||
<div class="in select" style="flex: 1">
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="picUrlName"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="projectPic"
|
||||
@change="handleChangeSelect"
|
||||
allowClear
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="picUrlName"
|
||||
dropdownClassName="dropdown-style"
|
||||
style="width: 440px"
|
||||
placeholder="请选择"
|
||||
:options="projectPic"
|
||||
@change="handleChangeSelect"
|
||||
allowClear
|
||||
></a-select>
|
||||
<img
|
||||
style="width:100px;height:100px;margin-top:20px;border-radius: 8px"
|
||||
v-if="projectInfo.picUrl"
|
||||
:src="projectInfo.picUrl"
|
||||
alt="avatar"
|
||||
style="
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-top: 20px;
|
||||
border-radius: 8px;
|
||||
"
|
||||
v-if="projectInfo.picUrl"
|
||||
:src="projectInfo.picUrl"
|
||||
alt="avatar"
|
||||
/>
|
||||
<div class="i_bottom">
|
||||
<span style="color: #999ba3">
|
||||
高宽比为16:9 (如:800*450) png或jpg图片
|
||||
</span>
|
||||
<span style="color: #999ba3">
|
||||
高宽比为16:9 (如:800*450) png或jpg图片
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">项目时间</div>
|
||||
</div>
|
||||
|
||||
<div class="in">
|
||||
<a-range-picker
|
||||
separator="至"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
v-model:value="projectInfo.rangeTime"
|
||||
style="width: 100%; height: 40px; border-radius: 5px"
|
||||
valueFormat="YYYY-MM-DD HH:mm:ss"
|
||||
@change="timeChange"
|
||||
:disabled="viewDetail ? true : false"
|
||||
separator="至"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
v-model:value="projectInfo.rangeTime"
|
||||
style="width: 100%; height: 40px; border-radius: 5px"
|
||||
valueFormat="YYYY-MM-DD HH:mm:ss"
|
||||
@change="timeChange"
|
||||
:disabled="viewDetail ? true : false"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">项目经理</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<ProjectManager
|
||||
v-model:value="projectInfo.managerId"
|
||||
v-model:name="projectInfo.manager"
|
||||
@onChange="managerChange"
|
||||
mode="multiple"
|
||||
v-model:value="projectInfo.managerId"
|
||||
v-model:name="projectInfo.manager"
|
||||
@onChange="managerChange"
|
||||
mode="multiple"
|
||||
></ProjectManager>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">资源归属</div>
|
||||
</div>
|
||||
|
||||
<div class="in select">
|
||||
<OrgClass
|
||||
v-model:value="projectInfo.sourceBelongId"
|
||||
v-model:name="projectInfo.sourceBelongName"
|
||||
v-model:value="projectInfo.sourceBelongId"
|
||||
v-model:name="projectInfo.sourceBelongName"
|
||||
></OrgClass>
|
||||
</div>
|
||||
</div>
|
||||
@@ -156,12 +161,12 @@
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-textarea
|
||||
v-model:value="projectInfo.remark"
|
||||
style="height: 80px"
|
||||
placeholder="请输入说明"
|
||||
show-count
|
||||
:maxlength="200"
|
||||
:disabled="viewDetail ? true : false"
|
||||
v-model:value="projectInfo.remark"
|
||||
style="height: 80px"
|
||||
placeholder="请输入说明"
|
||||
show-count
|
||||
:maxlength="200"
|
||||
:disabled="viewDetail ? true : false"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -171,16 +176,16 @@
|
||||
</div>
|
||||
<div class="in">
|
||||
<a-checkbox
|
||||
v-model:checked="courseSyncFlag"
|
||||
:disabled="viewDetail ? true : false"
|
||||
><span
|
||||
v-model:checked="courseSyncFlag"
|
||||
:disabled="viewDetail ? true : false"
|
||||
><span
|
||||
style="
|
||||
width: 100%;
|
||||
color: rgba(109, 117, 132, 1);
|
||||
font-size: 14px;
|
||||
"
|
||||
>同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span
|
||||
></a-checkbox
|
||||
>同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)</span
|
||||
></a-checkbox
|
||||
>
|
||||
<!-- <a-switch
|
||||
v-model:checked="projectInfo.courseSyncFlag"
|
||||
@@ -201,8 +206,8 @@
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">项目级别</div>
|
||||
</div>
|
||||
@@ -213,8 +218,8 @@
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">培训分类</div>
|
||||
</div>
|
||||
@@ -229,8 +234,8 @@
|
||||
<!-- src="../../assets/images/basicinfo/asterisk.png"-->
|
||||
<!-- />-->
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<div class="inname">是否BOEU实施</div>
|
||||
</div>
|
||||
@@ -242,8 +247,8 @@
|
||||
:disabled="viewDetail ? true : false"
|
||||
></a-switch> -->
|
||||
<a-radio-group
|
||||
v-model:value="projectInfo.boeFlag"
|
||||
:disabled="viewDetail ? true : false"
|
||||
v-model:value="projectInfo.boeFlag"
|
||||
:disabled="viewDetail ? true : false"
|
||||
>
|
||||
<a-radio :style="radioStyle" :value="1">是</a-radio>
|
||||
<a-radio :style="radioStyle" :value="0">否</a-radio>
|
||||
@@ -256,19 +261,19 @@
|
||||
<div class="inname" style="width: 50px">模版</div>
|
||||
<div class="in select" style="margin-left: 2px">
|
||||
<a-select
|
||||
:getPopupContainer="
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="classifySelect5"
|
||||
placeholder="请选择模版"
|
||||
:size="size"
|
||||
style="width: 100%"
|
||||
:options="classifyList5"
|
||||
@change="classificationChange5"
|
||||
@popupScroll="templateScroll"
|
||||
:fieldNames="{
|
||||
v-model:value="classifySelect5"
|
||||
placeholder="请选择模版"
|
||||
:size="size"
|
||||
style="width: 100%"
|
||||
:options="classifyList5"
|
||||
@change="classificationChange5"
|
||||
@popupScroll="templateScroll"
|
||||
:fieldNames="{
|
||||
label: 'name',
|
||||
value: 'projectTemplateId',
|
||||
}"
|
||||
@@ -281,7 +286,7 @@
|
||||
<div class="footer">
|
||||
<div class="btn">
|
||||
<a-button v-on:click="createProject" type="primary" class="btn1"
|
||||
>确定
|
||||
>确定
|
||||
</a-button>
|
||||
<a-button @click="backPage" class="btn2">取消</a-button>
|
||||
</div>
|
||||
@@ -289,18 +294,18 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {onMounted, reactive, toRefs, watch} from "vue";
|
||||
import {message} from "ant-design-vue";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import { onMounted, reactive, toRefs, watch } from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import * as api from "../../api/index";
|
||||
import {useStore} from "vuex";
|
||||
import { useStore } from "vuex";
|
||||
import ProjectClass from "@/components/project/ProjectClass";
|
||||
import TrainClass from "@/components/project/TrainClass";
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import ProjectLevel from "@/components/project/ProjectLevel";
|
||||
import {changeOwnership, scrollLoad} from "@/api/method";
|
||||
|
||||
import { changeOwnership, scrollLoad } from "@/api/method";
|
||||
import { storage } from "../../api/storage";
|
||||
export default {
|
||||
name: "projectAdd",
|
||||
components: {
|
||||
@@ -329,16 +334,19 @@ export default {
|
||||
},
|
||||
classifyList5: [],
|
||||
courseSyncFlag: false,
|
||||
picUrlName:'请选择封面图'
|
||||
picUrlName: "请选择封面图",
|
||||
});
|
||||
|
||||
// 封面图选择
|
||||
const handleChangeSelect = (value) => {
|
||||
console.log(value)
|
||||
state.projectInfo.picUrl= value
|
||||
}
|
||||
console.log(value);
|
||||
state.projectInfo.picUrl = value;
|
||||
};
|
||||
onMounted(() => {
|
||||
state.projectPic = store.state.projectPic.map((e) => ({value: e.dictValue, label: e.dictName}));
|
||||
state.projectPic = store.state.projectPic.map((e) => ({
|
||||
value: e.dictValue,
|
||||
label: e.dictName,
|
||||
}));
|
||||
state.viewDetail = routers.query.viewDetail;
|
||||
getProjectInfo();
|
||||
getTemplate();
|
||||
@@ -359,29 +367,32 @@ export default {
|
||||
return;
|
||||
}
|
||||
api
|
||||
.getProjectDetail({projectId: routers.query.projectId})
|
||||
.then((res) => {
|
||||
state.projectInfo = res.data.data.projectInfo;
|
||||
.getProjectDetail({ projectId: routers.query.projectId })
|
||||
.then((res) => {
|
||||
state.projectInfo = res.data.data.projectInfo;
|
||||
|
||||
console.log(res)
|
||||
let picurl = res.data.data.projectInfo.picUrl
|
||||
let dates = store.state.projectPic.map((e) => ({value: e.dictValue, label: e.dictName}));
|
||||
console.log(dates,picurl)
|
||||
for(let i=0;i<dates.length;i++){
|
||||
if(dates[i].value==picurl){
|
||||
state.picUrlName = dates[i].label
|
||||
}
|
||||
console.log(res);
|
||||
let picurl = res.data.data.projectInfo.picUrl;
|
||||
let dates = store.state.projectPic.map((e) => ({
|
||||
value: e.dictValue,
|
||||
label: e.dictName,
|
||||
}));
|
||||
console.log(dates, picurl);
|
||||
for (let i = 0; i < dates.length; i++) {
|
||||
if (dates[i].value == picurl) {
|
||||
state.picUrlName = dates[i].label;
|
||||
}
|
||||
}
|
||||
|
||||
state.projectInfo.rangeTime = [
|
||||
state.projectInfo.beginTime,
|
||||
state.projectInfo.endTime,
|
||||
];
|
||||
state.projectInfo.parentName = routers.query.parentName;
|
||||
state.courseSyncFlag = state.projectInfo.courseSyncFlag
|
||||
? true
|
||||
: false;
|
||||
});
|
||||
state.projectInfo.rangeTime = [
|
||||
state.projectInfo.beginTime,
|
||||
state.projectInfo.endTime,
|
||||
];
|
||||
state.projectInfo.parentName = routers.query.parentName;
|
||||
state.courseSyncFlag = state.projectInfo.courseSyncFlag
|
||||
? true
|
||||
: false;
|
||||
});
|
||||
}
|
||||
|
||||
const backPage = () => {
|
||||
@@ -466,19 +477,23 @@ export default {
|
||||
state.projectInfo.type = 3;
|
||||
state.projectInfo.courseSyncFlag = state.courseSyncFlag ? 1 : 0;
|
||||
api.createProject(state.projectInfo).then((res) => {
|
||||
state.projectInfo.projectId || changeOwnership(
|
||||
"project",
|
||||
res.data.data.projectId,
|
||||
[{id: res.data.data.createId, name: res.data.data.createName}]
|
||||
);
|
||||
state.projectInfo.projectId ||
|
||||
changeOwnership("project", res.data.data.projectId, [
|
||||
{ id: res.data.data.createId, name: res.data.data.createName },
|
||||
]);
|
||||
message.destroy();
|
||||
message.success("编辑成功");
|
||||
router.back();
|
||||
message.success(state.projectInfo.projectId ? "编辑成功" : "创建成功");
|
||||
// router.back();
|
||||
router.push({
|
||||
path: "/taskpage",
|
||||
query: { projectId: res.data.data.projectId },
|
||||
});
|
||||
storage.set("projectId", res.data.data.projectId);
|
||||
});
|
||||
};
|
||||
|
||||
function managerChange(e, l, d) {
|
||||
state.projectInfo.sourceBelongId = d
|
||||
state.projectInfo.sourceBelongId = d;
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -490,7 +505,7 @@ export default {
|
||||
createProject,
|
||||
backPage,
|
||||
templateScroll,
|
||||
handleChangeSelect
|
||||
handleChangeSelect,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,16 @@
|
||||
src="../../assets/images/leveladd/ma.png"
|
||||
@click="showCodeModel2()"
|
||||
/>
|
||||
<div class="line" v-if="action == 1 || action == 0"></div>
|
||||
<div
|
||||
class="line"
|
||||
v-if="
|
||||
action == 1 ||
|
||||
action == 2 ||
|
||||
action == 0 ||
|
||||
action == 3 ||
|
||||
action == -2
|
||||
"
|
||||
></div>
|
||||
<!-- 显示发布图标 -->
|
||||
<img
|
||||
v-if="action == 2"
|
||||
@@ -27,11 +36,11 @@
|
||||
<img
|
||||
v-if="action == 3"
|
||||
class="img2"
|
||||
src="../../assets/images/leveladd/pub.png"
|
||||
src="../../assets/images/project/finish.png"
|
||||
/>
|
||||
<!-- 显示审核图标 -->
|
||||
<img
|
||||
v-if="action == 0"
|
||||
v-if="action == 0 || action == -2"
|
||||
class="img2"
|
||||
src="../../assets/images/project/reviewsubmit.png"
|
||||
/>
|
||||
@@ -46,8 +55,8 @@
|
||||
<!-- 显示提交审核 -->
|
||||
<div
|
||||
class="pub"
|
||||
style="width: 56px"
|
||||
v-if="action == 0"
|
||||
style="width: 56px; color: #a497ff"
|
||||
v-if="action == 0 || action == -2"
|
||||
@click="submitExamine"
|
||||
>
|
||||
{{ act }}
|
||||
@@ -55,7 +64,7 @@
|
||||
<!-- 显示撤回审核 -->
|
||||
<div
|
||||
class="pub"
|
||||
style="width: 56px"
|
||||
style="width: 56px; color: #a497ff"
|
||||
v-if="action == 1"
|
||||
@click="showRecallReviewModal"
|
||||
>
|
||||
@@ -73,7 +82,7 @@
|
||||
<!-- 显示撤回发布 -->
|
||||
<div
|
||||
class="pub"
|
||||
style="width: 56px"
|
||||
style="width: 56px; color: #57c887"
|
||||
v-if="action == 3"
|
||||
@click="showBackModal"
|
||||
>
|
||||
@@ -1698,7 +1707,9 @@
|
||||
<div class="projectbox">
|
||||
<div class="promessage">
|
||||
<div class="messageme">项目信息</div>
|
||||
<div class="messagege">当前项目共0个阶段,0个任务</div>
|
||||
<div class="messagege">
|
||||
当前项目共{{ projectStages }}个阶段,{{ projectTasks }}个任务
|
||||
</div>
|
||||
</div>
|
||||
<div class="stumessage">
|
||||
<div class="messageme1">学员信息</div>
|
||||
@@ -1722,6 +1733,13 @@
|
||||
<a-button class="pubtn2" @click="releaseProject">发布</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 加载动画 -->
|
||||
<div
|
||||
class="aeLoading"
|
||||
:style="{ display: projectPubLoading ? 'flex' : 'none' }"
|
||||
>
|
||||
<a-spin :spinning="projectPubLoading" />
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
<!-- 撤回弹窗 -->
|
||||
@@ -2083,7 +2101,10 @@ export default {
|
||||
action: null,
|
||||
act: null,
|
||||
projectPub: false, //发布弹窗
|
||||
projectPubLoading: false, //发布loading
|
||||
projectStudentsNum: 0, //发布弹窗-学员人数
|
||||
projectStages: 0, //发布弹窗-阶段数
|
||||
projectTasks: 0, //任务数
|
||||
releaseProjectId: null, //发布的项目id
|
||||
releaseProjectName: null, //发布的项目名称
|
||||
releaseProjectTime: null, //发布的项目时间
|
||||
@@ -3884,10 +3905,17 @@ export default {
|
||||
//打开发布弹窗
|
||||
const showProjectPub = () => {
|
||||
state.projectPub = true;
|
||||
state.projectPubLoading = true;
|
||||
state.releaseProjectId = state.projectId;
|
||||
state.releaseProjectName = state.name;
|
||||
// state.releaseProjectTime = state.startTime;
|
||||
// console.log("object", object);
|
||||
apiproj.getProjectCount(state.projectId).then((res) => {
|
||||
console.log("获取关卡、任务、学员统计数据", res.data);
|
||||
// state.projectStudentsNum = res.data.students;
|
||||
state.projectStages = res.data.stages;
|
||||
state.projectTasks = res.data.tasks;
|
||||
});
|
||||
//获取学员总数
|
||||
let obj = {
|
||||
pageNo: 0,
|
||||
@@ -3897,11 +3925,12 @@ export default {
|
||||
apiproj
|
||||
.projectStudent(obj)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
if (res.data.code === 200) {
|
||||
// console.log("res", res.data);
|
||||
state.projectStudentsNum = res.data.data.total
|
||||
? res.data.data.total
|
||||
: 0;
|
||||
state.projectPubLoading = false;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
@@ -5170,7 +5199,7 @@ export default {
|
||||
.img2 {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
margin-right: 22px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.pub {
|
||||
|
||||
@@ -1407,9 +1407,18 @@ export default {
|
||||
state.level = [];
|
||||
// state.tableData = array[0]
|
||||
// 当无阶段任务出现时 显示当前数据
|
||||
getTableData(array[0].taskList)
|
||||
if(array[0].taskList.length!==0){
|
||||
getTableData(array[0].taskList)
|
||||
}
|
||||
|
||||
}else{
|
||||
state.level = array;
|
||||
let datearr = []
|
||||
for(let i=0;i<array.length;i++){
|
||||
if(array[i].id!==0&&array[i].taskList.length!==0){
|
||||
datearr.push(array[i])
|
||||
}
|
||||
}
|
||||
state.level = datearr;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user