Merge branch 'dongwu-master'

# Conflicts:
#	src/views/case/CaseManage.vue
This commit is contained in:
BOE\10867418
2023-08-27 16:46:12 +08:00
26 changed files with 145 additions and 89 deletions

View File

@@ -34,7 +34,7 @@ import {USER_PERMISSION, VALIDATE_TOKEN} from "@/api/apis";
const store = useStore(); const store = useStore();
const isLogin = ref(false); const isLogin = ref(false);
console.log("版本3.1.2------------"); console.log("版本3.3.1------------");
// 监听关闭浏览器 // 监听关闭浏览器

View File

@@ -16,4 +16,6 @@ export const ONLINE_PAGE = "/systemapi/xboe/m/course/manage/pagelist post formDa
export const LOGOUT = "/userbasic/logout post"; export const LOGOUT = "/userbasic/logout post";
export const REFRESH_TOKEN_API = "/userbasic/refreshToken"; export const REFRESH_TOKEN_API = "/userbasic/refreshToken";
export const COURSE_AUDIT = "/systemapi/xboe/m/course/manage/audit post formData";
export const OTHER_AUDIT = "/systemapi/xboe/m/course/audit/appoint post formData";
export const ONLINE_COURSE_DEL = (id, courseId) => `/systemapi/xboe/school/study/course/delete-signup?id=${id}&couserId=${courseId} post`; export const ONLINE_COURSE_DEL = (id, courseId) => `/systemapi/xboe/school/study/course/delete-signup?id=${id}&couserId=${courseId} post`;

View File

@@ -22,7 +22,7 @@
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
:src="iframeUrl + '/course/manages'" :src="iframeUrl + '/course/manages'"
name="myframe" name="myframe"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-scripts allow-downloads allow-same-origin allow-popups"
></iframe> ></iframe>
</a-modal> </a-modal>
</div> </div>

View File

@@ -572,7 +572,7 @@
<router-link to="/download">问答</router-link> <router-link to="/download">问答</router-link>
</a-menu-item> </a-menu-item>
<a-menu-item key="sub18" v-if="checkMenu('OldSystemManage')"> <a-menu-item key="sub18" v-if="checkMenu('OldSystemManage')">
<router-link to="/oldsystemmanage">旧版</router-link> <a target="_blank" :href="oldManage">旧版</a>
</a-menu-item> </a-menu-item>
<a-menu-item key="sub19" v-if="checkMenu('ReadingClubManage')"> <a-menu-item key="sub19" v-if="checkMenu('ReadingClubManage')">
<router-link to="/readingclubmanage">业务</router-link> <router-link to="/readingclubmanage">业务</router-link>
@@ -598,7 +598,7 @@ export default {
const store = useStore(); const store = useStore();
const state = reactive({ const state = reactive({
packup: false, packup: false,
screenHeight: document.body.clientHeight, // 屏幕高度 screenHeight: document.body.clientHeight, // 屏幕 高度
rootSubmenuKeys: [ rootSubmenuKeys: [
"sub1", "sub1",
"sub2", "sub2",

View File

@@ -41,7 +41,7 @@
:data="{ :data="{
targetId: Number(courseId), targetId: Number(courseId),
type: courseType, type: courseType,
userId: userInfo.id, userId: userInfo.userId,
userName: userInfo.realName, userName: userInfo.realName,
}" }"
:showUploadList="false" :showUploadList="false"

View File

@@ -25,7 +25,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
> >
</iframe> </iframe>
</div> </div>

View File

@@ -128,12 +128,12 @@ export default {
function getData() { function getData() {
console.log('我是请求的参数', { console.log('我是请求的参数', {
"courseId": props.courseID, "courseId": props.courseID,
"studentId": userInfo.value.id, "studentId": userInfo.value.userId,
"voteSubmitId": props.voteID "voteSubmitId": props.voteID
}) })
api.QueryVoteTaskDetailById({ api.QueryVoteTaskDetailById({
"courseId": props.courseID, "courseId": props.courseID,
"studentId": userInfo.value.id, "studentId": userInfo.value.userId,
"voteSubmitId": props.voteID "voteSubmitId": props.voteID
}).then(res=>{ }).then(res=>{
console.log(res) console.log(res)

View File

@@ -17,7 +17,7 @@
:src="`${iframeUrl}/course/manages?f=choose&refId=${props.id}&refType=${props.type}`" :src="`${iframeUrl}/course/manages?f=choose&refId=${props.id}&refType=${props.type}`"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</a-modal> </a-modal>
</template> </template>

View File

@@ -184,7 +184,7 @@ const initParams = {
keyword: "", keyword: "",
page: 1, page: 1,
size: 10, size: 10,
user_id: store.state.userInfo.id, user_id: store.state.userInfo.userId,
// orderAsc: true // orderAsc: true
}; };
const params = ref(initParams); const params = ref(initParams);

View File

@@ -83,7 +83,7 @@
style="width: 100%; height: 100%" style="width: 100%; height: 100%"
:src="iframeUrl + '/exam/papers?addnew=true'" :src="iframeUrl + '/exam/papers?addnew=true'"
name="myframe" name="myframe"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</a-modal> </a-modal>
</template> </template>

View File

@@ -17,7 +17,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -17,7 +17,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -4582,7 +4582,7 @@ export default defineComponent({
console.log(state.kk_inputV1); console.log(state.kk_inputV1);
console.log(state.kk_inputV2); console.log(state.kk_inputV2);
console.log(state.selectTime); console.log(state.selectTime);
state.pageSize222 = 1 state.pageSize222 = 10
state.currentPage1 = 1 state.currentPage1 = 1
getTableDate(); getTableDate();
getTableDate3(); getTableDate3();
@@ -4593,7 +4593,7 @@ export default defineComponent({
state.selectTime = ""; state.selectTime = "";
state.currentPage2 = 1; state.currentPage2 = 1;
state.tableDataTotal2 = []; state.tableDataTotal2 = [];
state.pageSize222 = 1 state.pageSize222 = 10
state.currentPage1 = 1 state.currentPage1 = 1
getTableDate(); getTableDate();
getTableDate3(); getTableDate3();

View File

@@ -17,7 +17,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
<OnlineClassModelStudent ref="stuRef" :type="13"></OnlineClassModelStudent> <OnlineClassModelStudent ref="stuRef" :type="13"></OnlineClassModelStudent>
</div> </div>

View File

@@ -17,7 +17,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -17,7 +17,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -17,7 +17,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -511,15 +511,16 @@ export default {
type: item.type == 1 ? "线上" : "线下", type: item.type == 1 ? "线上" : "线下",
content: sHX(item.sysTypeId), content: sHX(item.sysTypeId),
status: status:
item.auditStatus == 0 item.type == 2?
(item.status == 0
? "未提交" ? "未提交"
: item.auditStatus == 1 : item.status == 1
? "提交待审核" ? "待审核"
: item.auditStatus == 2 : item.status == 2
? "通过" ? "通过"
: item.auditStatus == -1 : item.status == -1
? "拒绝" ? "拒绝"
: "-", : "-"):(item.status == 1?'待审核':item.status == 2 ? "待审核":item.status == 5 ? "通过":item.status == 3?'拒绝':item.status == 9?'通过':'-'),
creater: item.createName, creater: item.createName,
time: item.createTime, time: item.createTime,
msg: item.description || "-", msg: item.description || "-",

View File

@@ -245,7 +245,7 @@
<a-modal v-model:visible="onlineClassesVisible" :footer="null" :closable="false" <a-modal v-model:visible="onlineClassesVisible" :footer="null" :closable="false"
wrapClassName="modalStyle onlineClassesStyle" :zIndex="9999"> wrapClassName="modalStyle onlineClassesStyle" :zIndex="9999">
<iframe id="iframe" style="width: 100%; height: 100%" :src="iframeUrl + 'course/noapproved'" name="myframe" <iframe id="iframe" style="width: 100%; height: 100%" :src="iframeUrl + 'course/noapproved'" name="myframe"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups"></iframe> sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"></iframe>
</a-modal> </a-modal>
</div> </div>
</template> </template>
@@ -259,6 +259,8 @@ import { iframeUrl } from "../../api/method";
import { editCourseRecord } from "../../api/indexAudit"; import { editCourseRecord } from "../../api/indexAudit";
import {useStore} from "vuex"; import {useStore} from "vuex";
import dayjs from "dayjs"; import dayjs from "dayjs";
import {boeRequest} from "@/api/request";
import {COURSE_AUDIT, OTHER_AUDIT} from "@/api/ThirdApi";
export default { export default {
name: "CoursereViewedN", name: "CoursereViewedN",
@@ -405,7 +407,10 @@ export default {
showAudit( showAudit(
value.record.createrId, value.record.createrId,
value.record.creater, value.record.creater,
value.record.offId value.record.offId,
value.record.type,
value.record.id,
value.record.courseId
); );
}} }}
> >
@@ -420,7 +425,10 @@ export default {
showInvitationAudit( showInvitationAudit(
value.record.createrId, value.record.createrId,
value.record.creater, value.record.creater,
value.record.offId value.record.offId,
value.record.type,
value.record.id,
value.record.courseId
) )
}}> }}>
邀请审核 邀请审核
@@ -713,8 +721,8 @@ export default {
// contentList11.find(e => e.dictCode == text)?.dictValue // contentList11.find(e => e.dictCode == text)?.dictValue
const searchList = () => { const searchList = () => {
console.log('searchParamsearchParamsearchParam', state.searchParam) // console.log('searchParamsearchParamsearchParam', state.searchParam)
console.log('searchParamsearchParamsearchParam', Math.ceil(new Date(state.searchParam[0]).getTime())) // console.log('searchParamsearchParamsearchParam', Math.ceiXXl(new Date(state.searchParam[0]).getTime()))
let objn = { let objn = {
auditStatus: 1, auditStatus: 1,
// categoryId: state.valueproj, // categoryId: state.valueproj,
@@ -764,10 +772,12 @@ export default {
let obj = { let obj = {
number: i + 1 + (state.currentPage - 1) * 10, number: i + 1 + (state.currentPage - 1) * 10,
name: item.name, name: item.name,
id: item.id,
courseId: item.courseId,
type: item.type == 1 ? "线上" : "线下", type: item.type == 1 ? "线上" : "线下",
content: sHX(item.sysTypeId), content: sHX(item.sysTypeId),
status: status:item.type == 2?
item.status == 0 (item.status == 0
? "未提交" ? "未提交"
: item.status == 1 : item.status == 1
? "待审核" ? "待审核"
@@ -775,7 +785,7 @@ export default {
? "通过" ? "通过"
: item.status == -1 : item.status == -1
? "拒绝" ? "拒绝"
: "-", : "-"):(item.status == 1?'待审核':item.status == 2 ? "待审核":item.status == 5 ? "通过":item.status == 3?'拒绝':item.status == 9?'通过':'-'),
change: "-", change: "-",
creater: item.createName, creater: item.createName,
time: item.processTime, time: item.processTime,
@@ -803,23 +813,32 @@ export default {
state.currentPage = pagina; state.currentPage = pagina;
getFaceList(); getFaceList();
}; };
const showAudit = (createId, creater, offId) => { const showAudit = (createId, creater, offId,type,id,courseId) => {
console.log("参数",createId, creater, offId) console.log("参数",createId, creater, offId)
state.courAuditModal = true; state.courAuditModal = true;
state.createId = createId; state.createId = createId;
state.chooseCreater = creater; state.chooseCreater = creater;
state.chooseOffId = offId; state.chooseOffId = offId;
state.type = type;
state.id = id;
state.courseId = courseId;
{/* 获取当前课程的审核记录 */} {/* 获取当前课程的审核记录 */}
getCourseRecord(offId); getCourseRecord(offId);
}; };
// 显示邀请审核弹框 // 显示邀请审核弹框
const showInvitationAudit = (createId, creater, offId) => { const showInvitationAudit = (createId, creater, offId,type,id,courseId) => {
console.log("参数",createId, creater, offId) console.log("参数",createId, creater, offId)
state.courInvitationAuditModal = true; state.courInvitationAuditModal = true;
state.inviteReview.offcourseId = offId; state.inviteReview.offcourseId = offId;
state.inviteReview.teacherId = createId; state.inviteReview.teacherId = createId;
state.inviteReview.teacherName = creater; state.inviteReview.teacherName = creater;
state.memberValue.value = '';
state.memberValue.label = '';
state.valueSuggInvitation='';
state.type = type;
state.id = id;
state.courseId = courseId;
}; };
// 关闭邀请审核弹框 // 关闭邀请审核弹框
const closeInvitationCourAuditModal = () => { const closeInvitationCourAuditModal = () => {
@@ -833,6 +852,7 @@ export default {
"teacherId": state.memberValue.value, "teacherId": state.memberValue.value,
"teacherName": state.memberValue.label "teacherName": state.memberValue.label
}) })
if(state.type=='线下'){
inviteAudit({ inviteAudit({
"inviteContent": state.valueSuggInvitation, "inviteContent": state.valueSuggInvitation,
"offcourseId": state.inviteReview.offcourseId, "offcourseId": state.inviteReview.offcourseId,
@@ -842,10 +862,25 @@ export default {
console.log(res) console.log(res)
getFaceList(); getFaceList();
state.courInvitationAuditModal = false; state.courInvitationAuditModal = false;
message.success("已经提交转审成功,请等待审核");
}).catch(err=>{ }).catch(err=>{
console.log(err) console.log(err)
state.courInvitationAuditModal = false; state.courInvitationAuditModal = false;
}) })
}else if (state.type=='线上'){
boeRequest(OTHER_AUDIT,{
auditId:state.id,
courseId:state.courseId,
teacherId:state.memberValue.value,
teacherName:state.memberValue.label,
remark:state.valueSuggInvitation,
}).then(()=>{
getFaceList();
state.courInvitationAuditModal = false;
message.success("已经提交转审成功,请等待审核");
})
}
} }
// 转审完成弹框 // 转审完成弹框
@@ -884,7 +919,7 @@ export default {
message.error("请输入审核意见"); message.error("请输入审核意见");
return; return;
} }
if(state.type=='线下'){
courseAuditView({ courseAuditView({
createId: state.createId, createId: state.createId,
createName: state.chooseCreater, createName: state.chooseCreater,
@@ -909,6 +944,24 @@ export default {
state.valuepass = "1"; state.valuepass = "1";
state.openDetailVisibie = false; state.openDetailVisibie = false;
}); });
}else if(state.type=='线上'){
boeRequest(COURSE_AUDIT,{
auditId:state.id,
courseId:state.courseId,
title:state.valueSugg,
remark:state.valueSugg,
pass:state.valuepass == "1" ? true : false,
}).then(()=>{
state.courAuditModal = false;
message.destroy();
message.success("审核提交成功");
state.valueSugg = null;
state.valuepass = "1";
getFaceList();
state.openDetailVisibie = false;
})
}
}; };
onMounted(async () => { onMounted(async () => {
getFaceList(); getFaceList();

View File

@@ -7,7 +7,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -7,7 +7,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -17,7 +17,7 @@
frameborder="0" frameborder="0"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -6,7 +6,7 @@
:src="`${BOE_URL}/pc/iframe/ugroup/manages`" :src="`${BOE_URL}/pc/iframe/ugroup/manages`"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -6,7 +6,7 @@
:src="`${BOE_URL}/platform/sys/dwdictionary`" :src="`${BOE_URL}/platform/sys/dwdictionary`"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -6,7 +6,7 @@
:src="`${BOE_URL}/resource/index.html`" :src="`${BOE_URL}/resource/index.html`"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>

View File

@@ -6,7 +6,7 @@
:src="`${BOE_URL}/train/manager/index.html`" :src="`${BOE_URL}/train/manager/index.html`"
name="myframe" name="myframe"
security="restricted" security="restricted"
sandbox="allow-forms allow-scripts allow-same-origin allow-popups" sandbox="allow-forms allow-downloads allow-scripts allow-same-origin allow-popups"
></iframe> ></iframe>
</div> </div>
</template> </template>