mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
Merge branch 'develop' of http://gitlab.dongwu-inc.com:10080/BOE/fe-manage into develop
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-11-21 14:32:52
|
* @Date: 2022-11-21 14:32:52
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-08 08:49:37
|
* @LastEditTime: 2022-12-08 08:48:26
|
||||||
* @FilePath: /fe-manage/src/api/config.js
|
* @FilePath: /fe-manage/src/api/config.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -56,7 +56,7 @@ http.interceptors.response.use(
|
|||||||
return response;
|
return response;
|
||||||
} else {
|
} else {
|
||||||
if (code === 1000) {
|
if (code === 1000) {
|
||||||
// window.open("https://u-pre.boe.com/web/", '_self');
|
window.open("https://u-pre.boe.com/web/", '_self');
|
||||||
// window.open("http://111.231.196.214:12013/manage/login", '_self');
|
// window.open("http://111.231.196.214:12013/manage/login", '_self');
|
||||||
}
|
}
|
||||||
console.log("api %o", msg);
|
console.log("api %o", msg);
|
||||||
|
|||||||
@@ -191,6 +191,7 @@
|
|||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span>授课形式</span>
|
<span>授课形式</span>
|
||||||
</div>
|
</div>
|
||||||
<a-radio-group v-model:value="valueE1">
|
<a-radio-group v-model:value="valueE1">
|
||||||
@@ -220,6 +221,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</div>
|
</div>
|
||||||
|
<!--
|
||||||
<div class="b_sup" :style="{ display: bs_hs ? 'block' : 'none' }">
|
<div class="b_sup" :style="{ display: bs_hs ? 'block' : 'none' }">
|
||||||
<div class="ofmb_items">
|
<div class="ofmb_items">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
@@ -229,6 +231,7 @@
|
|||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span>是否设置目录</span>
|
<span>是否设置目录</span>
|
||||||
</div>
|
</div>
|
||||||
<a-radio-group v-model:value="valueE2">
|
<a-radio-group v-model:value="valueE2">
|
||||||
@@ -254,7 +257,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="b_footer">
|
<div class="b_footer">
|
||||||
<div class="btn btn5" @click="of_exit1">
|
<div class="btn btn5" @click="of_exit1">
|
||||||
<div class="btnText">取消</div>
|
<div class="btnText">取消</div>
|
||||||
@@ -3381,7 +3384,7 @@ export default defineComponent({
|
|||||||
value4: "",
|
value4: "",
|
||||||
//选择线上还是面授
|
//选择线上还是面授
|
||||||
xzinputV1: "",
|
xzinputV1: "",
|
||||||
valueE1: "",
|
valueE1: 2,
|
||||||
valueE2: "",
|
valueE2: "",
|
||||||
//确定面授
|
//确定面授
|
||||||
ft_eidt: false,
|
ft_eidt: false,
|
||||||
@@ -4187,7 +4190,12 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const createft = () => {
|
const createft = () => {
|
||||||
if (state.bs_hs == false && state.valueE1 != "") {
|
if(!state.valueE1 || !state.xzinputV1){
|
||||||
|
message.destroy();
|
||||||
|
return message.warning("请输入必填项");
|
||||||
|
}
|
||||||
|
console.log(" state.valueE1", state.valueE1,!state.bs_hs && state.valueE1 == 2,state.bs_hs,state.valueE1 == 2);
|
||||||
|
if (state.bs_hs && state.valueE1 == 2) {
|
||||||
state.of_hs = false;
|
state.of_hs = false;
|
||||||
// state.ft_hs = true;
|
// state.ft_hs = true;
|
||||||
CourseModalRef.value.visibleOpen(null, state.xzinputV1);
|
CourseModalRef.value.visibleOpen(null, state.xzinputV1);
|
||||||
@@ -4195,12 +4203,14 @@ export default defineComponent({
|
|||||||
state.valueE1 = "";
|
state.valueE1 = "";
|
||||||
state.teacher = "";
|
state.teacher = "";
|
||||||
state.teacherName = "";
|
state.teacherName = "";
|
||||||
|
|
||||||
state.qdms_inputV1 = state.xzinputV1;
|
state.qdms_inputV1 = state.xzinputV1;
|
||||||
state.xzinputV1 = "";
|
state.xzinputV1 = "";
|
||||||
|
console.log("qdms_inputV1", state.qdms_inputV1 );
|
||||||
getDictList("faceclassPic");
|
getDictList("faceclassPic");
|
||||||
getTea();
|
getTea();
|
||||||
}
|
}
|
||||||
if (state.bs_hs && state.valueE1 != "") {
|
if (state.bs_hs && state.valueE1 == 1) {
|
||||||
state.addOnlineCoursevisible = true;
|
state.addOnlineCoursevisible = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<!-- 审核理由 -->
|
<!-- 审核理由 -->
|
||||||
<div v-if="statusJuJue" class="statusJuJue">
|
<div v-if="statusJuJue" class="statusJuJue">
|
||||||
<span>审核意见:</span>
|
<span>审核意见:</span>
|
||||||
<span>-</span>
|
<span>{{auditDescription}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="faceteach" :style="{ display: ft_hs ? 'block' : 'none' }">
|
<div class="faceteach" :style="{ display: ft_hs ? 'block' : 'none' }">
|
||||||
<div class="ft_main">
|
<div class="ft_main">
|
||||||
@@ -372,7 +372,7 @@ import { Editor, Toolbar } from "@wangeditor/editor-for-vue";
|
|||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import FJUpload from "@/components/common/FJUpload";
|
import FJUpload from "@/components/common/FJUpload";
|
||||||
import * as moment from "moment";
|
import * as moment from "moment";
|
||||||
|
import * as api2 from "../../api/indexAudit"
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
Editor,
|
Editor,
|
||||||
@@ -401,6 +401,7 @@ export default defineComponent({
|
|||||||
tags_val: [],
|
tags_val: [],
|
||||||
qdms_inputV6: "",
|
qdms_inputV6: "",
|
||||||
imgList: [],
|
imgList: [],
|
||||||
|
auditDescription:"",
|
||||||
});
|
});
|
||||||
|
|
||||||
const visibleOpen = (offcourseId, name) => {
|
const visibleOpen = (offcourseId, name) => {
|
||||||
@@ -640,6 +641,19 @@ export default defineComponent({
|
|||||||
if (Number(item.auditStatus) === 2 && Number(item.status) === 0) {
|
if (Number(item.auditStatus) === 2 && Number(item.status) === 0) {
|
||||||
state.statusTingQi = 0;
|
state.statusTingQi = 0;
|
||||||
}
|
}
|
||||||
|
if(Number(item.auditStatus) === -1 ){
|
||||||
|
let obj ={
|
||||||
|
offcourseId:offcourseId,
|
||||||
|
type:2,
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 1,
|
||||||
|
}
|
||||||
|
api2.auditList(obj).then((res)=>{
|
||||||
|
state.auditDescription = res.data.data.rows[0].description;
|
||||||
|
console.log("state.auditDescription",state.auditDescription);
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
state.qdms_inputV1 = item.name;
|
state.qdms_inputV1 = item.name;
|
||||||
state.feng_mian_1 = item.picUrl;
|
state.feng_mian_1 = item.picUrl;
|
||||||
|
|||||||
@@ -279,34 +279,43 @@
|
|||||||
<div class="ntc_body">
|
<div class="ntc_body">
|
||||||
<div class="ntc_switch">
|
<div class="ntc_switch">
|
||||||
<a-switch
|
<a-switch
|
||||||
size="small"
|
size="small"
|
||||||
v-model:checked="checked"
|
v-model:checked="checked"
|
||||||
@click="changeopclo"
|
@click="changeopclo"
|
||||||
/>
|
/>
|
||||||
<div
|
<div v-if="(checked==true)"
|
||||||
class="opclo"
|
class="opclo">
|
||||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
|
||||||
>
|
|
||||||
<span>关闭</span>
|
<span>关闭</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="(checked==false)"
|
||||||
class="opclo"
|
class="opclo" >
|
||||||
:style="{ display: hideshow ? 'none' : 'block' }"
|
|
||||||
>
|
|
||||||
<span>开启</span>
|
<span>开启</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-if="(checked==true)"
|
||||||
class="ntc_content"
|
class="ntc_content">
|
||||||
:style="{ display: hideshow ? 'block' : 'none' }"
|
<div class="ntcc_tit">当前公告内容:</div>
|
||||||
>
|
<div class="textarea">
|
||||||
<div class="ntcc_tit">公告内容</div>
|
{{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">
|
<div class="textarea">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
v-model:value="projectInfo.notice"
|
v-model:value="projectInfo.notice"
|
||||||
placeholder="公告信息最多输入150个字。"
|
placeholder="公告信息最多输入150个字。"
|
||||||
:maxlength="textnum"
|
:maxlength="textnum"
|
||||||
allow-clear
|
allow-clear
|
||||||
/>
|
/>
|
||||||
<div class="btnarea">
|
<div class="btnarea">
|
||||||
<div> </div>
|
<div> </div>
|
||||||
@@ -315,13 +324,15 @@
|
|||||||
<div class="btnText">发布</div>
|
<div class="btnText">发布</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
||||||
<a-tab-pane key="3" tab="项目积分">
|
<a-tab-pane key="3" tab="项目积分">
|
||||||
<div class="split"></div>
|
<div class="split"></div>
|
||||||
<div class="projectscore">
|
<div class="projectscore">
|
||||||
@@ -852,29 +863,25 @@ export default defineComponent({
|
|||||||
],
|
],
|
||||||
isEdit: false, // 是否处于编辑状态
|
isEdit: false, // 是否处于编辑状态
|
||||||
// 基本信息
|
// 基本信息
|
||||||
projectInfo: {
|
projectInfo: { },
|
||||||
beginTime: null,
|
noticeContent:"",
|
||||||
endTime: null,
|
editFlag:false,
|
||||||
name: null,
|
|
||||||
manager: null,
|
|
||||||
notice: null,
|
|
||||||
sourceBelongId: null,
|
|
||||||
remark: "",
|
|
||||||
courseSyncFlag: false,
|
|
||||||
level: null,
|
|
||||||
systemId: null,
|
|
||||||
boeFlag: false,
|
|
||||||
status: null,
|
|
||||||
picUrl: null,
|
|
||||||
noticeFlag: null,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
const value = ref("");
|
const value = ref("");
|
||||||
const textnum = "150";
|
const textnum = "150";
|
||||||
const routered = useRouter();
|
const routered = useRouter();
|
||||||
const changeopclo = () => {
|
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 = () => {
|
const changecheck2 = () => {
|
||||||
state.checked2 = !state.checked2;
|
state.checked2 = !state.checked2;
|
||||||
};
|
};
|
||||||
@@ -906,6 +913,10 @@ export default defineComponent({
|
|||||||
state.isEdit = false;
|
state.isEdit = false;
|
||||||
getDetail();
|
getDetail();
|
||||||
};
|
};
|
||||||
|
const editNotice =()=>{
|
||||||
|
state.editFlag = true ;
|
||||||
|
}
|
||||||
|
|
||||||
const checkType = (type) => {
|
const checkType = (type) => {
|
||||||
let typeRules = [
|
let typeRules = [
|
||||||
"",
|
"",
|
||||||
@@ -933,30 +944,16 @@ export default defineComponent({
|
|||||||
api
|
api
|
||||||
.templateDetail(localStorage.getItem("projectTemplateId"))
|
.templateDetail(localStorage.getItem("projectTemplateId"))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("get model list ----->", res, res.data.data.stageList);
|
console.log("get model list ----->", res, res.data.data.stageList);
|
||||||
|
|
||||||
state.taskSyllabus = [];
|
state.taskSyllabus = [];
|
||||||
console.log(res);
|
console.log(res);
|
||||||
state.projectInfo.name = res.data.data.projectTemplateInfo.name;
|
state.projectInfo = res.data.data.projectTemplateInfo;
|
||||||
state.projectInfo.beginTime = res.data.data.projectTemplateInfo.beginTime;
|
|
||||||
state.projectInfo.endTime = res.data.data.projectTemplateInfo.endTime;
|
state.noticeContent = state.projectInfo.notice;
|
||||||
state.projectInfo.manager = res.data.data.projectTemplateInfo.manager;
|
state.checked = state.projectInfo.noticeFlag==1?true:false;
|
||||||
state.projectInfo.notice = res.data.data.projectTemplateInfo.notice;
|
console.log("res.data.data.projectTemplateInfo",res.data.data.projectTemplateInfo);
|
||||||
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;
|
|
||||||
try{
|
try{
|
||||||
state.fileList = JSON.parse(res.data.data.projectTemplateInfo.attach);
|
state.fileList = JSON.parse(res.data.data.projectTemplateInfo.attach);
|
||||||
}catch{
|
}catch{
|
||||||
@@ -987,31 +984,16 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 发布公告
|
// 发布公告
|
||||||
const addNotice = () => {
|
const addNotice = () => {
|
||||||
console.log("ok====s");
|
// state.projectInfo.notice=
|
||||||
let obj = {
|
if(!state.projectInfo.notice){
|
||||||
name: state.projectInfo.name,
|
return message.warning("请输入公告内容");
|
||||||
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);
|
|
||||||
api
|
api
|
||||||
.templateEdit(obj)
|
.templateEdit( state.projectInfo)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
state.noticeContent = state.projectInfo.notice;
|
||||||
message.success("公告发布成功");
|
message.success("公告发布成功");
|
||||||
console.log(res);
|
console.log(res);
|
||||||
})
|
})
|
||||||
@@ -1019,7 +1001,9 @@ export default defineComponent({
|
|||||||
message.error("公告发布失败" + err);
|
message.error("公告发布失败" + err);
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
state.editFlag =false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 删除阶段
|
// 删除阶段
|
||||||
const stateDel = (id) => {
|
const stateDel = (id) => {
|
||||||
api
|
api
|
||||||
@@ -1051,12 +1035,12 @@ export default defineComponent({
|
|||||||
routered.push({
|
routered.push({
|
||||||
path: "/templateAdd",
|
path: "/templateAdd",
|
||||||
query: {
|
query: {
|
||||||
projectId: state.projectId,
|
projectTemplateId: state.projectInfo.projectTemplateId,
|
||||||
name: state.name,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// 新建或编辑阶段
|
// 新建或编辑阶段
|
||||||
const stateEdit = () => {
|
const stateEdit = () => {
|
||||||
let obj = {
|
let obj = {
|
||||||
@@ -1289,7 +1273,8 @@ export default defineComponent({
|
|||||||
editRule,
|
editRule,
|
||||||
handleChange2,
|
handleChange2,
|
||||||
scoresum,
|
scoresum,
|
||||||
checkedClose
|
checkedClose,
|
||||||
|
editNotice
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user