mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
Merge branch 'develop' of ssh://gitlab.dongwu-inc.com:10022/BOE/fe-manage into develop
This commit is contained in:
@@ -43,7 +43,7 @@ export default defineComponent({
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const isLogin = ref(false);
|
const isLogin = ref(false);
|
||||||
// console.log("router", router.getRoutes(), route);
|
// console.log("router", router.getRoutes(), route);
|
||||||
console.log("版本0.9.1------------");
|
console.log("版本0.9.2------------");
|
||||||
const routes = computed(() => {
|
const routes = computed(() => {
|
||||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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-06 09:02:40
|
* @LastEditTime: 2022-12-06 17:14:47
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
@@ -55,10 +55,10 @@ http.interceptors.response.use(
|
|||||||
if (code === 0 || code === 200) {
|
if (code === 0 || code === 200) {
|
||||||
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);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ import dayjs from "dayjs";
|
|||||||
import AssessmentList from "../drawers/ AssessmentList.vue";
|
import AssessmentList from "../drawers/ AssessmentList.vue";
|
||||||
// import { toDate } from "../../api/method";、
|
// import { toDate } from "../../api/method";、
|
||||||
import {addTempTask} from "../../api/indexTaskadd";
|
import {addTempTask} from "../../api/indexTaskadd";
|
||||||
import ProjectManager from "@/components/project/ProjectManager";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AddFaceteach",
|
name: "AddFaceteach",
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ import dayjs from "dayjs";
|
|||||||
import { fileUp } from "../../api/indexEval";
|
import { fileUp } from "../../api/indexEval";
|
||||||
import AssessmentList from "../drawers/ AssessmentList.vue";
|
import AssessmentList from "../drawers/ AssessmentList.vue";
|
||||||
import { debounce } from "lodash-es";
|
import { debounce } from "lodash-es";
|
||||||
import ProjectManager from "@/components/project/ProjectManager";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
|
|
||||||
// import { useRouter } from "vue-router";
|
// import { useRouter } from "vue-router";
|
||||||
function getBase64(img, callback) {
|
function getBase64(img, callback) {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_notice">
|
<div class="main_notice" v-if="!edit">
|
||||||
<div class="mntc_left">
|
<div class="mntc_left">
|
||||||
<div class="notice_icon"></div>
|
<div class="notice_icon"></div>
|
||||||
<span style="color: rgba(0, 0, 0, 0.65); margin-right: 17px"
|
<span style="color: rgba(0, 0, 0, 0.65); margin-right: 17px"
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
};
|
};
|
||||||
const handelChangePage = (page) => {
|
const handelChangePage = (page) => {
|
||||||
state.currentPage = page;
|
state.currentPage = page;
|
||||||
state.selectedRowKeys = []
|
state.selectedRowKeys = [];
|
||||||
getAllOnlineText();
|
getAllOnlineText();
|
||||||
};
|
};
|
||||||
const getTableDate = (tableData) => {
|
const getTableDate = (tableData) => {
|
||||||
@@ -365,9 +365,12 @@ export default {
|
|||||||
state.tableDataTotal = res.data.data.count;
|
state.tableDataTotal = res.data.data.count;
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
console.log("获取在线课列表数据", res);
|
console.log("获取在线课列表数据", res);
|
||||||
for(let i=0;i<res.data.data.list.length;i++){
|
for (let i = 0; i < res.data.data.list.length; i++) {
|
||||||
if(Number(res.data.data.list[i].onlineClassesId) == props.EditOnlineId){
|
if (
|
||||||
state.selectedRowKeys = [i+1]
|
Number(res.data.data.list[i].onlineClassesId) ==
|
||||||
|
props.EditOnlineId
|
||||||
|
) {
|
||||||
|
state.selectedRowKeys = [i + 1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getTableDate(arr);
|
getTableDate(arr);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"
|
"
|
||||||
v-model:value="managerArray"
|
v-model:value="managerArray"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:filterOption="true"
|
:filterOption="false"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:options="options"
|
:options="options"
|
||||||
allowClear
|
allowClear
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@popupScroll="memberScroll"
|
@popupScroll="memberScroll"
|
||||||
@search="searchMember"
|
@search="searchMember"
|
||||||
|
:open="isOpen"
|
||||||
@change="change"
|
@change="change"
|
||||||
>
|
>
|
||||||
<template v-if="loading" #notFoundContent>
|
<template v-if="loading" #notFoundContent>
|
||||||
@@ -27,7 +28,6 @@
|
|||||||
import {computed, defineEmits, defineProps, onMounted, ref, watch} from "vue";
|
import {computed, defineEmits, defineProps, onMounted, ref, watch} from "vue";
|
||||||
import {scrollLoad, throttle} from "@/api/method";
|
import {scrollLoad, throttle} from "@/api/method";
|
||||||
import * as api1 from "@/api/index1";
|
import * as api1 from "@/api/index1";
|
||||||
import {useStore} from "vuex";
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
value: {
|
value: {
|
||||||
@@ -42,15 +42,15 @@ const props = defineProps({
|
|||||||
placeholder: String,
|
placeholder: String,
|
||||||
mode: String
|
mode: String
|
||||||
})
|
})
|
||||||
const store = useStore();
|
|
||||||
|
|
||||||
const managerArray = computed(() => {
|
|
||||||
return props.mode === 'select' ? props.value : props.value.split(',')
|
const options = ref([])
|
||||||
})
|
|
||||||
|
const managerArray = computed(() => props.mode === 'select' ? props.value : (props.value ? props.value.split(',') : []))
|
||||||
|
|
||||||
const emit = defineEmits({})
|
const emit = defineEmits({})
|
||||||
|
|
||||||
const options = ref([])
|
const isOpen = ref(false)
|
||||||
|
|
||||||
const memberParam = ref({keyWord: '', pageNo: 1, pageSize: 10})
|
const memberParam = ref({keyWord: '', pageNo: 1, pageSize: 10})
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
@@ -58,44 +58,45 @@ const loading = ref(false)
|
|||||||
|
|
||||||
watch(() => memberParam.value.keyWord, throttle(getSearchMember, 500))
|
watch(() => memberParam.value.keyWord, throttle(getSearchMember, 500))
|
||||||
watch(() => memberParam.value.pageNo, throttle(getPageMember, 500))
|
watch(() => memberParam.value.pageNo, throttle(getPageMember, 500))
|
||||||
|
watch(props, init)
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
props.value && (options.value = props.value.split(',').map((e, i) => ({
|
||||||
|
value: e,
|
||||||
|
label: props.name.split(',')[i]
|
||||||
|
})))
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log('onMounted')
|
console.log('onMounted')
|
||||||
const memberOptions = store.state.memberInitInfo.map(e => ({
|
init()
|
||||||
label: e.realName,
|
|
||||||
value: e.id
|
|
||||||
}))
|
|
||||||
if (props.value) {
|
|
||||||
options.value = [...(props.value + '').split(',').map((value, i) => ({
|
|
||||||
label: (props.name + '').split(',')[i],
|
|
||||||
value
|
|
||||||
})), ...memberOptions]
|
|
||||||
} else options.value = memberOptions
|
|
||||||
})
|
})
|
||||||
|
|
||||||
function getSearchMember() {
|
function getSearchMember() {
|
||||||
loading.value = true
|
console.log('getSearchMember')
|
||||||
options.value = []
|
options.value && options.value.length && (options.value = [])
|
||||||
getMemberData()
|
getMemberData()
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPageMember() {
|
function getPageMember() {
|
||||||
loading.value = true
|
console.log('getPageMember')
|
||||||
getMemberData()
|
getMemberData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function getMemberData() {
|
function getMemberData() {
|
||||||
|
isOpen.value = true
|
||||||
|
loading.value = true
|
||||||
api1.getMemberInfo(memberParam.value).then((res) => {
|
api1.getMemberInfo(memberParam.value).then((res) => {
|
||||||
|
if (!res.data.data.rows || !res.data.data.rows.length) {
|
||||||
|
isOpen.value = false
|
||||||
|
return;
|
||||||
|
}
|
||||||
const list = res.data.data.rows.filter(e => !(props.value + '').includes(e.id)).map(e => ({
|
const list = res.data.data.rows.filter(e => !(props.value + '').includes(e.id)).map(e => ({
|
||||||
label: e.realName,
|
label: e.realName,
|
||||||
value: e.id
|
value: e.id
|
||||||
}));
|
}));
|
||||||
if (memberParam.value.pageNo === 1 && props.value) {
|
memberParam.value.pageNo === 1 && props.value ? (options.value = list) : options.value.push(...list)
|
||||||
const arrManagerId = (props.value + '').split(',')
|
|
||||||
const arrManager = props.name.split(',')
|
|
||||||
options.value = [...arrManager.map((e, i) => ({label: e, value: arrManagerId[i]})), ...list]
|
|
||||||
} else options.value.push(...list)
|
|
||||||
loading.value = false
|
loading.value = false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -109,17 +110,28 @@ const memberScroll = (e) => {
|
|||||||
|
|
||||||
//搜索学员
|
//搜索学员
|
||||||
const searchMember = (keyWord) => {
|
const searchMember = (keyWord) => {
|
||||||
|
console.log('searchMember', keyWord)
|
||||||
|
options.value = []
|
||||||
|
isOpen.value = true
|
||||||
keyWord && (memberParam.value = {keyWord, pageNo: 1, pageSize: 10});
|
keyWord && (memberParam.value = {keyWord, pageNo: 1, pageSize: 10});
|
||||||
};
|
};
|
||||||
|
|
||||||
function change(e, l) {
|
function change(e, l) {
|
||||||
console.log('change', l)
|
console.log('change', l)
|
||||||
|
isOpen.value = false
|
||||||
if (Array.isArray(l)) {
|
if (Array.isArray(l)) {
|
||||||
emit('update:value', l.map(t => t.value).join(','))
|
// const selectIds = l.filter(t => t.value).map(t => t.value).join(',')
|
||||||
|
// const arr = props.value ? props.value.split(',').filter(e => !selectIds.includes(e)).map((e, i) => ({
|
||||||
|
// value: e,
|
||||||
|
// name: props.name.split(',')[i]
|
||||||
|
// })) : []
|
||||||
|
// l.push(...arr)
|
||||||
|
// l=l.filter(t => t.label)
|
||||||
emit('update:name', l.map(t => t.label).join(','))
|
emit('update:name', l.map(t => t.label).join(','))
|
||||||
|
emit('update:value', l.map(t => t.value).join(','))
|
||||||
} else {
|
} else {
|
||||||
emit('update:value', l.value)
|
|
||||||
emit('update:name', l.label)
|
emit('update:name', l.label)
|
||||||
|
emit('update:value', l.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -695,7 +695,11 @@
|
|||||||
<div class="btn btn6" v-if="isEdit == 1">
|
<div class="btn btn6" v-if="isEdit == 1">
|
||||||
<div class="btnText">未提交</div>
|
<div class="btnText">未提交</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn btn6" @click="reviewClick">
|
<div
|
||||||
|
class="btn btn6"
|
||||||
|
v-if="statusTingQi == 1"
|
||||||
|
@click="reviewClick"
|
||||||
|
>
|
||||||
<div class="btnText">提交审核</div>
|
<div class="btnText">提交审核</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -3093,7 +3097,7 @@ import * as api1 from "../../api/index1";
|
|||||||
|
|
||||||
import "@wangeditor/editor/dist/css/style.css";
|
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/ProjectManager";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
|
|
||||||
import SeeModal from "./components/seeModal.vue";
|
import SeeModal from "./components/seeModal.vue";
|
||||||
|
|
||||||
@@ -3761,6 +3765,7 @@ export default defineComponent({
|
|||||||
valueE2: "",
|
valueE2: "",
|
||||||
//确定面授
|
//确定面授
|
||||||
ft_eidt: false,
|
ft_eidt: false,
|
||||||
|
statusTingQi: 1,
|
||||||
qdms_inputV1: "",
|
qdms_inputV1: "",
|
||||||
qdms_inputV2: "",
|
qdms_inputV2: "",
|
||||||
qdms_inputV3: "",
|
qdms_inputV3: "",
|
||||||
@@ -3892,23 +3897,6 @@ export default defineComponent({
|
|||||||
if (editor == null) return;
|
if (editor == null) return;
|
||||||
editor.destroy();
|
editor.destroy();
|
||||||
});
|
});
|
||||||
watch(
|
|
||||||
() => state,
|
|
||||||
(newVal) => {
|
|
||||||
console.log("newVal3333333333333333333");
|
|
||||||
console.log(newVal.ft_hs);
|
|
||||||
if (!newVal.ft_hs) {
|
|
||||||
console.log("newVal.ft_hs11111111111111");
|
|
||||||
// const editor = editorRef.value;
|
|
||||||
// if (editor == null) return;
|
|
||||||
// editor.destroy();
|
|
||||||
// router.go(0);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
deep: true,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
// 富文本 eeeeeeeeeeeeee
|
// 富文本 eeeeeeeeeeeeee
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@@ -4567,6 +4555,7 @@ export default defineComponent({
|
|||||||
state.hideshow = true;
|
state.hideshow = true;
|
||||||
|
|
||||||
state.offcourseId = null;
|
state.offcourseId = null;
|
||||||
|
state.statusTingQi = 1;
|
||||||
state.qdms_inputV1 = "";
|
state.qdms_inputV1 = "";
|
||||||
state.imageUrl = "";
|
state.imageUrl = "";
|
||||||
state.qdms_inputV2 = "";
|
state.qdms_inputV2 = "";
|
||||||
@@ -5165,11 +5154,20 @@ export default defineComponent({
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.data.code === 200) return res.data.data;
|
if (res.data.code === 200) return res.data.data;
|
||||||
});
|
});
|
||||||
console.log("res");
|
console.log("res33333333333");
|
||||||
console.log(item);
|
console.log(item);
|
||||||
console.log(options2.value);
|
console.log(options2.value);
|
||||||
console.log(options3.value);
|
console.log(options3.value);
|
||||||
|
|
||||||
|
if (Number(item.auditStatus) === 2 && Number(item.status) === 1) {
|
||||||
|
state.statusTingQi = 1;
|
||||||
|
}
|
||||||
|
if (Number(item.auditStatus) === 2 && Number(item.status) === 0) {
|
||||||
|
state.statusTingQi = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("res3333333444444444444433333");
|
||||||
|
console.log(state.statusTingQi);
|
||||||
state.qdms_inputV1 = item.name;
|
state.qdms_inputV1 = item.name;
|
||||||
// state.imageUrl = item.picUrl;
|
// state.imageUrl = item.picUrl;
|
||||||
state.feng_mian_1 = item.picUrl;
|
state.feng_mian_1 = item.picUrl;
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ import { useStore } from "vuex";
|
|||||||
import ProjectClass from "@/components/project/ProjectClass";
|
import ProjectClass from "@/components/project/ProjectClass";
|
||||||
import TrainClass from "@/components/project/TrainClass";
|
import TrainClass from "@/components/project/TrainClass";
|
||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
import ProjectManager from "@/components/project/ProjectManager";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import ProjectLevel from "@/components/project/ProjectLevel";
|
import ProjectLevel from "@/components/project/ProjectLevel";
|
||||||
import { scrollLoad } from "@/api/method";
|
import { scrollLoad } from "@/api/method";
|
||||||
|
|
||||||
|
|||||||
@@ -806,7 +806,7 @@ import ProjCheckShip from "../../components/drawers/ProjCheckPower";
|
|||||||
import * as api from "../../api/index";
|
import * as api from "../../api/index";
|
||||||
import * as api1 from "../../api/index1";
|
import * as api1 from "../../api/index1";
|
||||||
import {storage} from "../../api/storage";
|
import {storage} from "../../api/storage";
|
||||||
import ProjectManager from "@/components/project/ProjectManager";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import ProjectClass from "@/components/project/ProjectClass";
|
import ProjectClass from "@/components/project/ProjectClass";
|
||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
|||||||
@@ -1832,7 +1832,7 @@ import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
|||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import ProjectLevel from "@/components/project/ProjectLevel";
|
import ProjectLevel from "@/components/project/ProjectLevel";
|
||||||
import TrainClass from "@/components/project/TrainClass";
|
import TrainClass from "@/components/project/TrainClass";
|
||||||
import ProjectManager from "@/components/project/ProjectManager";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
export default {
|
export default {
|
||||||
name: "taskPage",
|
name: "taskPage",
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
Reference in New Issue
Block a user