mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
feat:合并
This commit is contained in:
29
src/App.vue
29
src/App.vue
@@ -1,27 +1,27 @@
|
||||
<template>
|
||||
<div id="container" v-if="!isLogin">
|
||||
<nav-top />
|
||||
<nav-top/>
|
||||
<div style="display: flex">
|
||||
<nav-left />
|
||||
<nav-left/>
|
||||
<div style="flex: 1; display: flex; flex-direction: column; width: 0">
|
||||
<open-pages />
|
||||
<bread-crumb />
|
||||
<open-pages/>
|
||||
<bread-crumb/>
|
||||
<main>
|
||||
<a-config-provider :locale="zhCN">
|
||||
<router-view />
|
||||
<router-view/>
|
||||
</a-config-provider>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container" v-if="isLogin">
|
||||
<router-view />
|
||||
<router-view/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { computed, defineComponent, ref, watch } from "vue";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import { useStore } from "vuex";
|
||||
import {computed, defineComponent, ref, watch} from "vue";
|
||||
import {useRouter, useRoute} from "vue-router";
|
||||
import {useStore} from "vuex";
|
||||
import NavLeft from "@/components/NavLeft";
|
||||
import NavTop from "@/components/NavTop";
|
||||
import OpenPages from "@/components/OpenPages";
|
||||
@@ -29,6 +29,7 @@ import BreadCrumb from "@/components/BreadCrumb";
|
||||
import zhCN from "ant-design-vue/es/locale/zh_CN";
|
||||
import * as api from "./api/index1";
|
||||
import * as api1 from "@/api/index1";
|
||||
import * as api2 from "@/api/index";
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
@@ -59,6 +60,7 @@ export default defineComponent({
|
||||
|
||||
function init() {
|
||||
console.log(store);
|
||||
getUserInfo();
|
||||
initDict("faceclassPic");
|
||||
initDict("faceclassClass");
|
||||
initDict("faceclassScene");
|
||||
@@ -70,15 +72,20 @@ export default defineComponent({
|
||||
getOrgTree();
|
||||
}
|
||||
|
||||
async function getUserInfo() {
|
||||
const userInfo = await api2.userInfo()
|
||||
store.commit("SET_USER", userInfo);
|
||||
}
|
||||
|
||||
async function initDict(key) {
|
||||
let list = localStorage.getItem(key);
|
||||
if (list) {
|
||||
store.commit("SET_DICT", { key, data: JSON.parse(list) });
|
||||
store.commit("SET_DICT", {key, data: JSON.parse(list)});
|
||||
return;
|
||||
}
|
||||
list = await getDictList(key);
|
||||
localStorage.setItem(key, JSON.stringify(list));
|
||||
store.commit("SET_DICT", { key, data: list });
|
||||
store.commit("SET_DICT", {key, data: list});
|
||||
}
|
||||
|
||||
const getDictList = (param) =>
|
||||
|
||||
@@ -52,7 +52,7 @@ export const createProject = (obj) => http.post('/admin/project/edit', obj)
|
||||
export const getProjectList = (obj) => http.post('/admin/project/list', obj)
|
||||
|
||||
// 获取项目详情信息(包含阶段及任务列表)
|
||||
export const getProjectDetail = (obj) => http.get('/admin/project/detail', { params: obj })
|
||||
export const getProjectDetail = (obj) => http.get('/admin/project/detail', {params: obj})
|
||||
//发布项目
|
||||
export const releaseProject = (obj) => http.post('/admin/project/publish', obj)
|
||||
//获取项目学员
|
||||
@@ -70,10 +70,11 @@ export const getDiscussDetail = (obj) => http.post('/discuss/getDiscussDetail',
|
||||
//获取模版列表
|
||||
export const getTemplate = (obj) => http.post('/admin/project/template/list', obj)
|
||||
//获取模版详细信息
|
||||
export const getTemplateDetail = (obj) => http.get('/admin/project/template/detail', { params: obj })
|
||||
export const getTemplateDetail = (obj) => http.get('/admin/project/template/detail', {params: obj})
|
||||
|
||||
//获取项目统计
|
||||
export const getProjectCount = (projectId) => http.get('/admin/project/projectCount', { params: { projectId: projectId } })
|
||||
export const getProjectCount = (projectId) => http.get('/admin/project/projectCount', {params: {projectId: projectId}})
|
||||
|
||||
export const login = (obj) => http.post('/admin/CheckUser/userLogin', obj)
|
||||
export const userInfo = () => http.get('/admin/CheckUser/userInfo')
|
||||
|
||||
|
||||
BIN
src/assets/images/leveladd/pinggu.png
Normal file
BIN
src/assets/images/leveladd/pinggu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/images/leveladd/xiangmu.png
Normal file
BIN
src/assets/images/leveladd/xiangmu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 785 B |
@@ -55,12 +55,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<down-load v-model:downloadVisible="visible" />
|
||||
<down-load v-model:downloadVisible="visible"/>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
import {reactive, toRefs} from "vue";
|
||||
import DownLoad from "../components/drawers/DownLoad";
|
||||
import * as api from "../api/index1";
|
||||
|
||||
export default {
|
||||
name: "NavTop",
|
||||
components: {
|
||||
@@ -118,6 +119,14 @@ export default {
|
||||
getUser();
|
||||
|
||||
const logOut = () => {
|
||||
localStorage.removeItem('faceclassPic');
|
||||
localStorage.removeItem('faceclassClass');
|
||||
localStorage.removeItem('faceclassScene');
|
||||
localStorage.removeItem('projectLevel');
|
||||
localStorage.removeItem('projectSys');
|
||||
localStorage.removeItem('pathmapPic');
|
||||
localStorage.removeItem('projectClass');
|
||||
localStorage.removeItem('projectPic');
|
||||
window.open("https://u-pre.boe.com/web/", "_self");
|
||||
};
|
||||
return {
|
||||
@@ -142,9 +151,11 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
|
||||
.navTopRight {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.role {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -154,6 +165,7 @@ export default {
|
||||
line-height: 36px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
|
||||
.roleArrow {
|
||||
width: 13px;
|
||||
height: 7px;
|
||||
@@ -161,6 +173,7 @@ export default {
|
||||
background-image: url(../assets/images/navtop/down.png);
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
.roleItems {
|
||||
width: 109px;
|
||||
height: 90px;
|
||||
@@ -174,22 +187,27 @@ export default {
|
||||
display: none;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.roleItem {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: rgba(79, 81, 86, 1);
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
.roleItem:hover {
|
||||
color: #4ea6ff;
|
||||
}
|
||||
}
|
||||
|
||||
.role:hover .roleItems {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.role:hover .roleArrow {
|
||||
background-image: url(../assets/images/navtop/up.png);
|
||||
}
|
||||
|
||||
.user {
|
||||
margin-left: 37px;
|
||||
display: flex;
|
||||
@@ -199,12 +217,14 @@ export default {
|
||||
color: #b3bdc4;
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
.signOutMain {
|
||||
cursor: pointer;
|
||||
margin-right: 29px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.signOut {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
|
||||
9
src/components/common/Upload.vue
Normal file
9
src/components/common/Upload.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div>12312</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import {reactive} from "vue";
|
||||
|
||||
const options = reactive([]);
|
||||
|
||||
</script>
|
||||
@@ -47,7 +47,11 @@
|
||||
expandRowByClick="true"
|
||||
@expand="expandTable"
|
||||
:pagination="false"
|
||||
:row-selection="rowSelection"
|
||||
:row-selection="{
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
onChange: onSelectChange,
|
||||
type: 'radio',
|
||||
}"
|
||||
filterMultiple:false
|
||||
/>
|
||||
|
||||
@@ -101,9 +105,10 @@ export default {
|
||||
tableDataTotal: 0,
|
||||
tableData: [],
|
||||
selectedRowKeys: [],
|
||||
assessmentId:null,
|
||||
assessmentId:null
|
||||
});
|
||||
const closeDrawer = () => {
|
||||
state.selectedRowKeys = [];
|
||||
ctx.emit("update:assessmentVisible", false);
|
||||
ctx.emit("update:titleTag", true);
|
||||
|
||||
@@ -165,6 +170,19 @@ export default {
|
||||
// state.selectedRowKeys = selectedRowKeys;
|
||||
// };
|
||||
|
||||
const onSelectChange = (selectedRowKeys, selectRow) => {
|
||||
console.log("selectedRowKeys changed: ", selectedRowKeys, selectRow);
|
||||
state.selectedRowKeys = selectedRowKeys;
|
||||
state.selectedRows = selectRow;
|
||||
console.log(selectRow)
|
||||
state.assessment =selectRow[0];
|
||||
state.assessmentId = selectRow[0].assessmentId;
|
||||
ctx.emit("checkedAss", state.assessment);
|
||||
ctx.emit("update:assessmentId", state.assessmentId);
|
||||
state.selectedRowKeys = [];
|
||||
closeDrawer();
|
||||
};
|
||||
|
||||
const handelChangePage = (page, pageSize) => {
|
||||
state.currentPage = page;
|
||||
state.pageSize = pageSize;
|
||||
@@ -222,6 +240,7 @@ export default {
|
||||
getAllInvistText,
|
||||
resetInvist,
|
||||
handelChangePage,
|
||||
onSelectChange
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -57,7 +57,8 @@
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-checkbox v-model:checked="checkedC1" @change="checkRadio"
|
||||
>允许评论</a-checkbox
|
||||
>允许评论
|
||||
</a-checkbox
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -71,12 +72,13 @@
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
import {reactive, toRefs} from "vue";
|
||||
import * as api from "../../api/indexDiscuss";
|
||||
import * as apiTask from "../../api/indexTaskadd";
|
||||
import { RouterEditTask } from "@/api/indexTask";
|
||||
import { message } from "ant-design-vue";
|
||||
import { addTempTask } from "../../api/indexTaskadd";
|
||||
import {RouterEditTask} from "@/api/indexTask";
|
||||
import {message} from "ant-design-vue";
|
||||
import {addTempTask} from "../../api/indexTaskadd";
|
||||
|
||||
export default {
|
||||
name: "AddDiscuss",
|
||||
props: {
|
||||
@@ -170,7 +172,7 @@ export default {
|
||||
if (props.edit) {
|
||||
//编辑讨
|
||||
api
|
||||
.getDiscussDetail({ discussId: props.EditDiscussId })
|
||||
.getDiscussDetail({discussId: props.EditDiscussId})
|
||||
.then((res) => {
|
||||
//更新讨论信息
|
||||
state.inputV1 = res.data.data.discussName;
|
||||
@@ -178,7 +180,8 @@ export default {
|
||||
state.checkedC1 =
|
||||
res.data.data.discussSettings == "true" ? true : false;
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {
|
||||
});
|
||||
}
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
@@ -186,9 +189,9 @@ export default {
|
||||
queryDiscuss();
|
||||
}
|
||||
};
|
||||
const updateTask = (res) => {
|
||||
const updateTask = async (res) => {
|
||||
if (props.isLevel == 1) {
|
||||
RouterEditTask({
|
||||
await RouterEditTask({
|
||||
chapterId: props.isactive,
|
||||
courseId: res.data.data.discussId,
|
||||
name: res.data.data.discussName,
|
||||
@@ -203,7 +206,7 @@ export default {
|
||||
//message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 2) {
|
||||
apiTask
|
||||
await apiTask
|
||||
.addTask({
|
||||
courseId: res.data.data.discussId,
|
||||
name: res.data.data.discussName,
|
||||
@@ -293,6 +296,7 @@ export default {
|
||||
.ant-table-striped :deep(.table-striped) td {
|
||||
background-color: #fafafa !important;
|
||||
}
|
||||
|
||||
.addrefDrawer {
|
||||
.drawerMain {
|
||||
.header {
|
||||
@@ -302,6 +306,7 @@ export default {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
@@ -310,35 +315,43 @@ export default {
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.contentMain {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.main_left {
|
||||
margin-top: 32px;
|
||||
padding-right: 30px;
|
||||
flex: 1;
|
||||
border-right: 1px solid #e8e8e8;
|
||||
|
||||
.main_item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 32px;
|
||||
margin-bottom: 32px;
|
||||
|
||||
.signbox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
align-items: center;
|
||||
|
||||
.sign {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.btnbox {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
|
||||
.ant-input {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.xkbtn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
@@ -351,32 +364,40 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main_item2 {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 32px;
|
||||
|
||||
.signbox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
align-items: center;
|
||||
|
||||
.sign {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.textarea {
|
||||
width: 423px;
|
||||
|
||||
.ant-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ant-input-textarea-show-count {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ant-input-textarea-show-count::after {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
.ant-input {
|
||||
border-radius: 8px;
|
||||
}
|
||||
@@ -384,6 +405,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main_btns {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
@@ -393,6 +415,7 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
@@ -402,6 +425,7 @@ export default {
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
|
||||
@@ -287,7 +287,7 @@ export default {
|
||||
})
|
||||
.catch(() => {
|
||||
message.destroy();
|
||||
message.success("创建测评失败");
|
||||
message.error("创建测评失败");
|
||||
});
|
||||
}
|
||||
//创建测评信息
|
||||
@@ -324,7 +324,7 @@ export default {
|
||||
})
|
||||
.catch(() => {
|
||||
message.destroy();
|
||||
message.success("创建测评失败");
|
||||
message.error("创建测评失败");
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -28,11 +28,15 @@
|
||||
</div>
|
||||
<span style="margin-right: 3px">选择课程:</span>
|
||||
</div>
|
||||
<div class="btnbox" @click="showDrawerSelFacet">
|
||||
<button class="xkbtn">
|
||||
{{ chooseCourse == null ? "选择" : "修改" }}面授课
|
||||
<div class="btnbox">
|
||||
<button class="xkbtn" @click="showDrawerSelFacet">
|
||||
<!--
|
||||
{{ chooseCourse == null ? "选择" : chooseCourseName }}面授课
|
||||
</button> -->
|
||||
|
||||
{{ chooseCourse == null ? "选择" : "重选" }}面授课
|
||||
</button>
|
||||
<div v-if="chooseCourse > 0">
|
||||
<div v-if="chooseCourse">
|
||||
<a-tag closable color="processing" @close="logC">
|
||||
<span style="font-size:14px;line-height: 33px;">删除课程</span>
|
||||
</a-tag>
|
||||
@@ -41,7 +45,7 @@
|
||||
</div>
|
||||
<!-- 选择面授侧弹窗 -->
|
||||
<div>
|
||||
<sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse"/>
|
||||
<sel-facet v-model:selfacetVisible="selfacetvisible" v-model:chooseCourse="chooseCourse" v-model:chooseCourseName="chooseCourseName"/>
|
||||
</div>
|
||||
<!-- 选择面授侧弹窗 -->
|
||||
</div>
|
||||
@@ -61,8 +65,9 @@
|
||||
<span style="margin-right: 3px">授课教师:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-auto-complete placeholder="选择老师" :value="memberValue.label" style="width: 364px"
|
||||
:options="options" @change="handleChange2" @search="handleSearch"></a-auto-complete>
|
||||
<!-- <a-auto-complete placeholder="选择老师" :value="memberValue.label" style="width: 364px"-->
|
||||
<!-- :options="options" @change="handleChange2" @search="handleSearch"></a-auto-complete>-->
|
||||
<ProjectManager v-model:value="memberValue.value" v-model:name="memberValue.label"></ProjectManager>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -278,6 +283,7 @@ import dayjs from "dayjs";
|
||||
import AssessmentList from "../drawers/ AssessmentList.vue";
|
||||
// import { toDate } from "../../api/method";、
|
||||
import {addTempTask} from "../../api/indexTaskadd";
|
||||
import ProjectManager from "@/components/project/ProjectManager";
|
||||
|
||||
export default {
|
||||
name: "AddFaceteach",
|
||||
@@ -286,6 +292,7 @@ export default {
|
||||
AddHomework,
|
||||
AddTest,
|
||||
AssessmentList,
|
||||
ProjectManager,
|
||||
},
|
||||
props: {
|
||||
addfaceteachVisible: {
|
||||
@@ -368,6 +375,7 @@ export default {
|
||||
chooseTime: [],
|
||||
fileList: [],
|
||||
chooseCourse: null, //选择的在线课程
|
||||
chooseCourseName: null, //选择的在线课程
|
||||
assessmentId: null,
|
||||
EditTestId: null,
|
||||
EditWorkId: null,
|
||||
@@ -416,6 +424,7 @@ export default {
|
||||
|
||||
const logC = e => {
|
||||
state.chooseCourse = null;
|
||||
state.chooseCourseName = null;
|
||||
console.log(e);
|
||||
};
|
||||
const logW = e => {
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
>
|
||||
<span class="title"
|
||||
>名称:
|
||||
<span class="data">{{ assessment1.createName }}</span>
|
||||
<span class="data">{{ assessment1.assessmentName }}</span>
|
||||
</span>
|
||||
<span class="title"
|
||||
>题数:
|
||||
@@ -184,6 +184,8 @@ export default {
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:addinvistVisible", false);
|
||||
ctx.emit("update:edit", false);
|
||||
state.assessment = null;
|
||||
state.assessment1 = null;
|
||||
state.inputV1 = "";
|
||||
// ctx.emit("changeData", false);
|
||||
localStorage.setItem("stageId", props.chooseStageId);
|
||||
@@ -205,6 +207,7 @@ export default {
|
||||
api
|
||||
.queryAppraiseDetailById({ assessmentId: props.EditInvistId })
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
//更新讨论信息
|
||||
state.assessment1 = res.data.data;
|
||||
})
|
||||
|
||||
@@ -106,18 +106,8 @@
|
||||
<span style="margin-right: 3px">授课老师:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-auto-complete
|
||||
:value="memberValue.label"
|
||||
show-search
|
||||
:not-found-content="fetching ? undefined : null"
|
||||
placeholder="Select a teacher"
|
||||
style="width: 364px"
|
||||
:options="options"
|
||||
@focus="handleFocus"
|
||||
@change="handleChange2"
|
||||
@popupScroll="templateScroll"
|
||||
@search="handleSearch"
|
||||
></a-auto-complete>
|
||||
<ProjectManager v-model:value="memberValue.value"
|
||||
v-model:name="memberValue.label"></ProjectManager>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mbl_items2">
|
||||
@@ -173,7 +163,7 @@
|
||||
<span style="margin-right: 3px">回放设置:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-switch v-model:checked="switchC1" @click="PlayBack" />
|
||||
<a-switch v-model:checked="switchC1"/>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="switchC1">
|
||||
@@ -198,7 +188,8 @@
|
||||
<a-checkbox
|
||||
v-model:checked="needEval"
|
||||
@click="needEval = !needEval"
|
||||
>需要评估</a-checkbox
|
||||
>需要评估
|
||||
</a-checkbox
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -206,8 +197,8 @@
|
||||
<div class="signbox"></div>
|
||||
<div class="btnbox">
|
||||
<button class="xkbtn" @click="showAssessment">选择评估</button>
|
||||
<div v-if="assessmentId > 0">
|
||||
<a-tag closable color="processing" @close="logA">
|
||||
<div v-if="(assessmentId !== '0')">
|
||||
<a-tag closable @close="removePG" color="processing">
|
||||
<span style="font-size: 14px; line-height: 33px"
|
||||
>删除评估</span
|
||||
>
|
||||
@@ -226,7 +217,9 @@
|
||||
</div>
|
||||
<div class="kqszbox">
|
||||
<div class="qdqtbox">
|
||||
<div class="qdbtn"><div class="btntext">签到</div></div>
|
||||
<div class="qdbtn">
|
||||
<div class="btntext">签到</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="setbox">
|
||||
<div class="timerbox">
|
||||
@@ -308,7 +301,8 @@
|
||||
<a-checkbox
|
||||
v-model:checked="switchC2"
|
||||
@onclick="switchC2 = !switchC2"
|
||||
>学员请假后记为任务完成</a-checkbox
|
||||
>学员请假后记为任务完成
|
||||
</a-checkbox
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -322,28 +316,32 @@
|
||||
</a-drawer>
|
||||
</template>
|
||||
<script>
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
import {reactive, toRefs, ref} from "vue";
|
||||
import {message} from "ant-design-vue";
|
||||
import * as api from "../../api/indexLiveBroadcast";
|
||||
import * as apiTask from "../../api/indexTaskadd";
|
||||
import { toDate } from "@/api/method";
|
||||
import { RouterEditTask } from "@/api/indexTask";
|
||||
import { addTempTask } from "../../api/indexTaskadd";
|
||||
import { getMemberInfo } from "@/api/index1";
|
||||
import {toDate} from "@/api/method";
|
||||
import {RouterEditTask} from "@/api/indexTask";
|
||||
import {addTempTask} from "../../api/indexTaskadd";
|
||||
import {getMemberInfo} from "@/api/index1";
|
||||
import dayjs from "dayjs";
|
||||
import { fileUp } from "../../api/indexEval";
|
||||
import {fileUp} from "../../api/indexEval";
|
||||
import AssessmentList from "../drawers/ AssessmentList.vue";
|
||||
import { debounce } from "lodash-es";
|
||||
import {debounce} from "lodash-es";
|
||||
import ProjectManager from "@/components/project/ProjectManager";
|
||||
|
||||
// import { useRouter } from "vue-router";
|
||||
function getBase64(img, callback) {
|
||||
const reader = new FileReader();
|
||||
reader.addEventListener("load", () => callback(reader.result));
|
||||
reader.readAsDataURL(img);
|
||||
}
|
||||
|
||||
export default {
|
||||
name: "AddLive",
|
||||
components: {
|
||||
AssessmentList,
|
||||
ProjectManager,
|
||||
},
|
||||
props: {
|
||||
addliveVisible: {
|
||||
@@ -480,8 +478,9 @@ export default {
|
||||
const queryLive = () => {
|
||||
let d = props.EditLiveId;
|
||||
api
|
||||
.getLiveBroadcastInfor({ liveId: d })
|
||||
.getLiveBroadcastInfor({liveId: d})
|
||||
.then((res) => {
|
||||
console.log("获取的数据",res)
|
||||
state.inputV1 = res.data.data.liveName;
|
||||
state.time = [
|
||||
dayjs(res.data.data.liveStartTime, "YYYY-MM-DD"),
|
||||
@@ -500,7 +499,10 @@ export default {
|
||||
//state.= res.data.data
|
||||
state.assessmentId = res.data.data.assessmentId;
|
||||
state.imageUrl = res.data.data.liveCover;
|
||||
state.switchC1 = res.data.data.livePlayback === '1' ? true : false;
|
||||
state.switchC2 = res.data.data.otherSettings == 1 ? true : false;
|
||||
state.needEval = res.data.data.isEvaluate == '1' ? true : false;
|
||||
state.memberValue = {value: res.data.data.liveTeacherId || '', label: res.data.data.liveTeacherName || ''};
|
||||
})
|
||||
.catch(() => {
|
||||
//message.error(`查询失败`);
|
||||
@@ -621,44 +623,50 @@ export default {
|
||||
state.obj = {
|
||||
afterSignIn: state.inputV6,
|
||||
beforeSignIn: state.inputV7,
|
||||
assessmentId: state.assessmentId == null ? 0 : state.assessmentId,
|
||||
assessmentId: state.assessmentId == null || state.assessmentId == "" ? 0 : Number(state.assessmentId),
|
||||
liveCover: state.imageUrl, //直播封面
|
||||
liveDuration: state.inputV2,
|
||||
liveDuration: Number(state.inputV2),
|
||||
liveEndTime: endTime,
|
||||
liveStartTime: startTime,
|
||||
liveExplain: state.textV1,
|
||||
liveFlag: "",
|
||||
liveId: props.edit ? props.EditLiveId : 0,
|
||||
liveId: props.edit ? Number(props.EditLiveId) : 0,
|
||||
liveLink: state.inputV4,
|
||||
liveName: state.inputV1,
|
||||
livePlayback: state.switchC1 ? "1" : "0",
|
||||
livePlaybackLink: state.switchC1 ? state.inputV5 : "",
|
||||
liveTeacherId: state.inputV3,
|
||||
liveTeacherId: Number(state.memberValue.value),
|
||||
liveTeacherName: state.memberValue.label,
|
||||
otherSettings: state.switchC2 ? "1" : "0", //1或0
|
||||
signOutTime: state.inputV8,
|
||||
standardSettings: state.radioV1, //1或2
|
||||
isEvaluate: state.needEval ? "1" : "0",
|
||||
};
|
||||
console.log('我是要更新的数据',state.obj )
|
||||
if (props.edit) {
|
||||
api
|
||||
.updateLiveBroadcastMessage(state.obj)
|
||||
.then(async(res) => {
|
||||
.then(async (res) => {
|
||||
console.log(res)
|
||||
message.destroy();
|
||||
message.success("提交成功");
|
||||
await updateTask(res);
|
||||
closeDrawer();
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
});
|
||||
} else {
|
||||
api
|
||||
.createLiveBroadcast(state.obj)
|
||||
.then(async(res) => {
|
||||
.then(async (res) => {
|
||||
message.destroy();
|
||||
message.success("提交成功");
|
||||
await updateTask(res);
|
||||
closeDrawer();
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {
|
||||
});
|
||||
}
|
||||
};
|
||||
const beforeUpload = (file) => {
|
||||
@@ -697,7 +705,7 @@ export default {
|
||||
};
|
||||
const templateScroll = (e) => {
|
||||
console.log("滚动", e);
|
||||
const { target } = e;
|
||||
const {target} = e;
|
||||
const scrllHeight = target.scrollHeight - target.scrollTop;
|
||||
const clientHeight = target.clientHeight;
|
||||
// console.log("scrllHeight", scrllHeight, clientHeight);
|
||||
@@ -762,6 +770,14 @@ export default {
|
||||
state.discussSettings = "false";
|
||||
}
|
||||
};
|
||||
|
||||
// 删除评估
|
||||
const removePG = () => {
|
||||
console.log("11111")
|
||||
state.assessmentId = "";
|
||||
state.isEvaluate = "0";
|
||||
}
|
||||
|
||||
return {
|
||||
...toRefs(state),
|
||||
afterVisibleChange,
|
||||
@@ -778,6 +794,7 @@ export default {
|
||||
templateScroll,
|
||||
handleSearch,
|
||||
showAssessment,
|
||||
removePG
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -786,6 +803,7 @@ export default {
|
||||
.ant-table-striped :deep(.table-striped) td {
|
||||
background-color: #fafafa !important;
|
||||
}
|
||||
|
||||
.addliveDrawer {
|
||||
.drawerMain {
|
||||
.header {
|
||||
@@ -795,6 +813,7 @@ export default {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
@@ -803,32 +822,39 @@ export default {
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.contentMain {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.main_left {
|
||||
padding-right: 30px;
|
||||
flex: 1;
|
||||
border-right: 1px solid #e8e8e8;
|
||||
margin-top: 32px;
|
||||
|
||||
.main_item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 32px;
|
||||
margin-bottom: 32px;
|
||||
|
||||
.signbox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
align-items: center;
|
||||
|
||||
.sign {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.btnbox {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
|
||||
.xkbtn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
@@ -841,24 +867,29 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main_item2 {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 32px;
|
||||
|
||||
.signbox {
|
||||
width: 120px;
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
align-items: center;
|
||||
|
||||
.sign {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.kqszbox {
|
||||
.qdqtbox {
|
||||
margin-left: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.qdbtn,
|
||||
.qtbtn {
|
||||
width: 75px;
|
||||
@@ -869,15 +900,18 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.btntext {
|
||||
color: #387df7;
|
||||
}
|
||||
}
|
||||
|
||||
.setbox {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 24px;
|
||||
|
||||
.timerbox {
|
||||
margin-top: 6px;
|
||||
margin-right: 32px;
|
||||
@@ -887,10 +921,12 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btnbox2 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
|
||||
.xkbtn {
|
||||
cursor: pointer;
|
||||
width: 130px;
|
||||
@@ -905,20 +941,24 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mbl_items2 {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
|
||||
.i_bottom {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.item_nam {
|
||||
width: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
white-space: nowrap;
|
||||
|
||||
.asterisk_icon {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
@@ -926,13 +966,16 @@ export default {
|
||||
margin-top: -15px;
|
||||
}
|
||||
}
|
||||
|
||||
.item_inp {
|
||||
flex: 1;
|
||||
|
||||
.i_upload_img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.i_upload {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
@@ -941,8 +984,10 @@ export default {
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
|
||||
.addimg {
|
||||
position: relative;
|
||||
|
||||
.heng {
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
@@ -950,6 +995,7 @@ export default {
|
||||
width: 50px;
|
||||
border: 1px solid #4ea6ff;
|
||||
}
|
||||
|
||||
.shu {
|
||||
position: absolute;
|
||||
top: 25px;
|
||||
@@ -963,6 +1009,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main_btns {
|
||||
height: 72px;
|
||||
width: 100%;
|
||||
@@ -972,6 +1019,7 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
@@ -981,6 +1029,7 @@ export default {
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
|
||||
@@ -114,26 +114,20 @@
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown> -->
|
||||
<span style="margin-left: 10px">
|
||||
<a-tag
|
||||
class="tag-style"
|
||||
v-if="paperName != ''"
|
||||
:closable="true"
|
||||
@close="delTag"
|
||||
>{{ paperName }}</a-tag
|
||||
>
|
||||
<!-- <a-tag
|
||||
class="tag-style"
|
||||
v-for="item in choosedTestList"
|
||||
:closable="true"
|
||||
@close="closeTag(item.key)"
|
||||
:key="item.key"
|
||||
>{{ item.value }}</a-tag
|
||||
> -->
|
||||
</span>
|
||||
|
||||
<a-tag v-if="paperName != ''" closable color="processing" @close="delTag">
|
||||
<span style="font-size:14px;line-height: 33px;">删除考试</span>
|
||||
</a-tag>
|
||||
|
||||
|
||||
</a-form-item>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="main_item">
|
||||
<div class="btnbox">
|
||||
<a-form-item has-feedback label="考试时间" name="choosedTime">
|
||||
@@ -721,9 +715,13 @@ export default {
|
||||
scoringModel: formState.scoringModel,
|
||||
showAnalysis: formState.showAnalysis,
|
||||
showAnswers: formState.showAnswers,
|
||||
examinationTestId: state.id,
|
||||
examinationTestName: state.testName,
|
||||
examinationTestId: state.paperId,
|
||||
examinationTestName: state.paperName,
|
||||
};
|
||||
if(!(state.paperId >0)){
|
||||
message.destroy();
|
||||
return message.error("请选择考试");
|
||||
}
|
||||
if (props.edit) {
|
||||
// 编辑任务
|
||||
updateExamination(obj)
|
||||
@@ -732,6 +730,7 @@ export default {
|
||||
closeDrawer();
|
||||
})
|
||||
.catch(() => {
|
||||
message.destroy();
|
||||
message.error(`编辑失败`);
|
||||
});
|
||||
} else {
|
||||
@@ -742,6 +741,7 @@ export default {
|
||||
closeDrawer();
|
||||
})
|
||||
.catch(() => {
|
||||
message.destroy();
|
||||
message.error(`创建失败`);
|
||||
});
|
||||
}
|
||||
@@ -852,6 +852,7 @@ export default {
|
||||
state.id = value.id;
|
||||
state.testName = value.testName;
|
||||
};
|
||||
|
||||
return {
|
||||
formState,
|
||||
afterVisibleChange,
|
||||
@@ -876,6 +877,7 @@ export default {
|
||||
chooseTest,
|
||||
closeTag,
|
||||
getData,
|
||||
|
||||
...toRefs(state),
|
||||
};
|
||||
},
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div class="mii_ipt">
|
||||
<div class="ipt_name">课程状态:</div>
|
||||
<div class="select fitems">
|
||||
@@ -44,6 +45,7 @@
|
||||
</a-select>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<div class="mi_btns">
|
||||
<div class="btn btn1" @click="search">
|
||||
@@ -113,9 +115,9 @@
|
||||
:loading="tableDataTotal === -1 ? true : false"
|
||||
:pagination="false"
|
||||
/>
|
||||
<div class="pa">
|
||||
<div class="pa" style="display:flex;justify-content:center;padding:20px;">
|
||||
<a-pagination
|
||||
v-if="total > 10"
|
||||
v-if="tableDataTotal > 10"
|
||||
showSizeChanger="true"
|
||||
showQuickJumper="true"
|
||||
hideOnSinglePage="true"
|
||||
@@ -134,11 +136,11 @@
|
||||
</template>
|
||||
<script>
|
||||
//import { ApiFilled } from "@ant-design/icons-vue";
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
import {reactive, toRefs, computed} from "vue";
|
||||
// import { planList } from "../../api/indexTaskadd";
|
||||
import {detail} from "../../api/indexCourse";
|
||||
import { list } from "../../api/indexTaskadd";
|
||||
import { toDate } from "../../api/method";
|
||||
// import {detail} from "../../api/indexCourse";
|
||||
import {list} from "../../api/indexTaskadd";
|
||||
import {toDate} from "../../api/method";
|
||||
|
||||
const columns1 = [
|
||||
{
|
||||
@@ -196,6 +198,10 @@ export default {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
chooseCourseName: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
titleTag: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
@@ -221,52 +227,68 @@ export default {
|
||||
valueContent: null, //内容分类
|
||||
selectedRows: [], //选择的数据
|
||||
selectedRowKeys: [],
|
||||
titleTag:false,
|
||||
offcourse:null,
|
||||
auditStatus:null,
|
||||
name:null,
|
||||
titleTag: false,
|
||||
offcourse: null,
|
||||
auditStatus: null,
|
||||
name: null,
|
||||
courseInfo:[]
|
||||
|
||||
});
|
||||
const rowSelection = {
|
||||
|
||||
const rowSelection = computed(() => {
|
||||
console.log(3333333333)
|
||||
console.log(state.selectedRows)
|
||||
return {
|
||||
type: "radio",
|
||||
selectedRowKeys: state.selectedRows,
|
||||
onSelect: (selectedRows) => {
|
||||
state.chooseCourse=selectedRows.num;
|
||||
console.log(selectedRows,"==========",state.chooseCourse);
|
||||
console.log('select')
|
||||
state.chooseCourse = selectedRows.num;
|
||||
state.chooseCourseName = selectedRows.name;
|
||||
console.log(selectedRows, "==========", state.chooseCourse);
|
||||
closeDrawer();
|
||||
},
|
||||
};
|
||||
onChange: (selectedRows) => {
|
||||
console.log('onChange')
|
||||
state.selectedRows = selectedRows
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
const closeDrawer = () => {
|
||||
ctx.emit("update:selfacetVisible", false);
|
||||
ctx.emit("update:chooseCourse", state.chooseCourse);
|
||||
state.chooseCourse && ctx.emit("update:chooseCourse", state.chooseCourse);
|
||||
state.chooseCourseName && ctx.emit("update:chooseCourseName", state.chooseCourseName);
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
if(bool){
|
||||
state.chooseCourse=props.chooseCourse;
|
||||
if (bool) {
|
||||
state.chooseCourse = props.chooseCourse;
|
||||
state.chooseCourseName = props.chooseCourseName;
|
||||
state.selectedRows = props.chooseCourse ? [props.chooseCourse] : [];
|
||||
getClassList();
|
||||
getFaceInfo();
|
||||
// getFaceInfo();
|
||||
}
|
||||
|
||||
};
|
||||
// const showDrawerSelFacet = () => {
|
||||
// state.selfacetvisible = true;
|
||||
// };
|
||||
const getFaceInfo =()=>{
|
||||
detail({offcourseId:36}).then((res) => {
|
||||
state.chooseCourse = res.data.data;
|
||||
}).catch();
|
||||
}
|
||||
// const getFaceInfo = () => {
|
||||
// detail({offcourseId: 36}).then((res) => {
|
||||
// state.courseInfo = res.data.data;
|
||||
// }).catch();
|
||||
// }
|
||||
//获取面授课列表
|
||||
const getClassList = (obj) => {
|
||||
let objn = obj || {
|
||||
auditStatus:state.auditStatus,
|
||||
name:state.name,
|
||||
pageNo:state.currentPage,
|
||||
pageSize:state.pageSize
|
||||
auditStatus:2,
|
||||
name: state.name,
|
||||
pageNo: state.currentPage,
|
||||
pageSize: state.pageSize
|
||||
};
|
||||
list(objn)
|
||||
.then((res) => {
|
||||
console.log(res.data.data.rows);
|
||||
console.log('面授课列表', res.data.data);
|
||||
let result = res.data.data;
|
||||
state.tableDataTotal = result.total;
|
||||
getClassData(result.rows);
|
||||
@@ -294,7 +316,7 @@ export default {
|
||||
});
|
||||
state.classTableData = array;
|
||||
};
|
||||
|
||||
/**
|
||||
const options1 = ref([
|
||||
{
|
||||
value: 0,
|
||||
@@ -308,11 +330,8 @@ export default {
|
||||
value: 2,
|
||||
label: "已审核",
|
||||
},
|
||||
{
|
||||
value: -1,
|
||||
label: "审核未通过",
|
||||
},
|
||||
]);
|
||||
|
||||
]);*/
|
||||
const handleChange = (value, option) => {
|
||||
console.log("改变了", value, option);
|
||||
console.log(state.valueContent);
|
||||
@@ -339,7 +358,7 @@ export default {
|
||||
// showDrawerSelFacet,
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
options1,
|
||||
|
||||
columns1,
|
||||
getClassData,
|
||||
handleChange,
|
||||
@@ -366,6 +385,7 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.headerTitle {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
@@ -374,6 +394,7 @@ export default {
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.contentMain {
|
||||
.main_items {
|
||||
display: flex;
|
||||
@@ -381,23 +402,28 @@ export default {
|
||||
margin-bottom: 12px;
|
||||
margin-top: 32px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.mi_ipts {
|
||||
display: flex;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.mii_ipt {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 24px;
|
||||
|
||||
.ipt_name {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mi_btns {
|
||||
display: flex;
|
||||
margin-left: 38px;
|
||||
margin-bottom: 20px;
|
||||
cursor: pointer;
|
||||
|
||||
.btn {
|
||||
padding: 0px 26px 0px 26px;
|
||||
height: 38px;
|
||||
@@ -408,9 +434,11 @@ export default {
|
||||
justify-content: center;
|
||||
margin-left: 14px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.search {
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
@@ -418,48 +446,61 @@ export default {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
background: rgb(64, 158, 255);
|
||||
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/search0.png");
|
||||
}
|
||||
|
||||
.btnText {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
background: rgb(255, 255, 255);
|
||||
|
||||
.search {
|
||||
width: 15px;
|
||||
height: 17px;
|
||||
background-image: url("@/assets/images/coursewareManage/reset1.png");
|
||||
}
|
||||
|
||||
.btnText {
|
||||
color: rgb(64, 158, 255);
|
||||
}
|
||||
}
|
||||
|
||||
.btn1:hover {
|
||||
background: rgb(255, 255, 255);
|
||||
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/search1.png");
|
||||
}
|
||||
|
||||
.btnText {
|
||||
color: #388be1;
|
||||
}
|
||||
}
|
||||
|
||||
.btn2:hover {
|
||||
background: rgba(64, 158, 255, 1);
|
||||
|
||||
.search {
|
||||
background-image: url("@/assets/images/courseManage/reset0.png");
|
||||
}
|
||||
|
||||
.btnText {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main_notice {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -467,16 +508,20 @@ export default {
|
||||
margin-bottom: 32px;
|
||||
height: 40px;
|
||||
background-color: #e9f6fe;
|
||||
|
||||
.mntc_left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.title {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
margin-right: 17px;
|
||||
}
|
||||
|
||||
.data {
|
||||
color: #388be1;
|
||||
}
|
||||
|
||||
.notice_icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
@@ -486,6 +531,7 @@ export default {
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.mntc_right {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -501,6 +547,7 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||
|
||||
.btn1 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
@@ -510,6 +557,7 @@ export default {
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
cursor: pointer;
|
||||
width: 100px;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<a-select
|
||||
v-model:value="managerArray"
|
||||
placeholder="请选择项目经理"
|
||||
:placeholder="placeholder"
|
||||
:filterOption="false"
|
||||
style="width: 100%"
|
||||
:options="options"
|
||||
allowClear
|
||||
showSearch
|
||||
mode="multiple"
|
||||
:mode="mode"
|
||||
:disabled="disabled"
|
||||
@popupScroll="memberScroll"
|
||||
@search="searchMember"
|
||||
@@ -28,15 +28,26 @@ export default {
|
||||
|
||||
props: {
|
||||
value: {
|
||||
type: Number,
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
name: {
|
||||
type: Number,
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: '请选择'
|
||||
},
|
||||
// 'multiple' | 'tags'
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'select'
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
@@ -46,9 +57,9 @@ export default {
|
||||
loading: false,
|
||||
init: false
|
||||
});
|
||||
const getMemberThrottle = throttle(getMember, 500)
|
||||
|
||||
watch(() => state.memberParam, getMemberThrottle)
|
||||
watch(()=>state.memberParam.keyWord , throttle(getMember, 500))
|
||||
watch(()=>state.memberParam.pageNo , throttle(getPushMember, 500))
|
||||
watch(props, init)
|
||||
|
||||
onMounted(() => {
|
||||
@@ -62,15 +73,21 @@ export default {
|
||||
getMemberData()
|
||||
}
|
||||
|
||||
function getPushMember() {
|
||||
state.loading = true
|
||||
getMemberData()
|
||||
}
|
||||
|
||||
|
||||
function getMemberData() {
|
||||
console.log('getMemberData')
|
||||
api1.getMemberInfo(state.memberParam).then((res) => {
|
||||
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,
|
||||
value: e.id
|
||||
}));
|
||||
if (state.memberParam.pageNo === 1 && props.value) {
|
||||
const arrManagerId = props.value.split(',')
|
||||
const arrManagerId = (props.value + '').split(',')
|
||||
const arrManager = props.name.split(',')
|
||||
state.options = [...arrManager.map((e, i) => ({label: e, value: arrManagerId[i]})), ...list]
|
||||
} else state.options.push(...list)
|
||||
@@ -93,11 +110,12 @@ export default {
|
||||
|
||||
function init() {
|
||||
console.log('init--', props)
|
||||
if (props.value !== state.managerArray.join(',')) {
|
||||
console.log(Array.isArray(state.managerArray))
|
||||
if ((props.value + '') !== (Array.isArray(state.managerArray) ? state.managerArray.join(',') : (state.managerArray + ''))) {
|
||||
if (props.value) {
|
||||
const arrManager = props.name.split(',')
|
||||
const arrManagerId = props.value.split(',')
|
||||
state.managerArray = arrManagerId
|
||||
const arrManagerId = (props.value + '').split(',')
|
||||
state.managerArray = props.mode === 'select' ? props.value : arrManagerId;
|
||||
state.options = arrManager.map((e, i) => ({label: e, value: arrManagerId[i]}))
|
||||
} else {
|
||||
state.managerArray = []
|
||||
@@ -115,9 +133,14 @@ export default {
|
||||
}
|
||||
|
||||
function change(e, l) {
|
||||
console.log('change')
|
||||
ctx.emit('update:value', e.join(','))
|
||||
console.log('change', l)
|
||||
if (Array.isArray(l)) {
|
||||
ctx.emit('update:value', l.map(t => t.value).join(','))
|
||||
ctx.emit('update:name', l.map(t => t.label).join(','))
|
||||
} else {
|
||||
ctx.emit('update:value', l.value)
|
||||
ctx.emit('update:name', l.label)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* @FilePath: /fe-manage/src/store/index.js
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
import { createStore } from "vuex";
|
||||
import {createStore} from "vuex";
|
||||
// import * as api from '../api/index1'
|
||||
export default createStore({
|
||||
state: {
|
||||
@@ -23,6 +23,7 @@ export default createStore({
|
||||
assessmentName: "",
|
||||
routerId: null,
|
||||
projectTemplateId: null,
|
||||
userInfo: {},
|
||||
orgtreeList: [],
|
||||
faceclassPic: null,
|
||||
faceclassClass: [],
|
||||
@@ -51,9 +52,12 @@ export default createStore({
|
||||
getOrgtreeList(state, data) {
|
||||
state.orgtreeList = data
|
||||
},
|
||||
SET_DICT(state, { key, data }) {
|
||||
SET_DICT(state, {key, data}) {
|
||||
state[key] = data
|
||||
},
|
||||
SET_USER(state, userInfo) {
|
||||
state.userInfo = userInfo
|
||||
},
|
||||
SET_projectTemplateId(state, projectTemplateId) {
|
||||
state.projectTemplateId = projectTemplateId;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -390,12 +390,12 @@ export default {
|
||||
key: "status",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "转审",
|
||||
dataIndex: "change",
|
||||
key: "change",
|
||||
align: "center",
|
||||
},
|
||||
// {
|
||||
// title: "转审",
|
||||
// dataIndex: "change",
|
||||
// key: "change",
|
||||
// align: "center",
|
||||
// },
|
||||
{
|
||||
title: "创建人",
|
||||
dataIndex: "creater",
|
||||
@@ -637,12 +637,16 @@ export default {
|
||||
state.courAuditModal = false;
|
||||
message.destroy();
|
||||
message.success("审核提交成功");
|
||||
state.valueSugg = null;
|
||||
state.valuepass="1";
|
||||
getFaceList();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
message.destroy();
|
||||
message.warning("审核提交失败");
|
||||
state.valueSugg = null;
|
||||
state.valuepass="1";
|
||||
});
|
||||
};
|
||||
onMounted(async () => {
|
||||
|
||||
@@ -161,26 +161,7 @@
|
||||
</div>
|
||||
<div class="inname">归属组织</div>
|
||||
<div class="select in">
|
||||
<a-tree-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="organizationSelectName"
|
||||
style="width: 270px"
|
||||
placeholder="请选择组织"
|
||||
:tree-data="organizationList"
|
||||
:options="organizationList"
|
||||
@change="selectorganization"
|
||||
allowClear
|
||||
showSearch
|
||||
:fieldNames="{
|
||||
children: 'treeChildList',
|
||||
label: 'name',
|
||||
value: 'id',
|
||||
}"
|
||||
></a-tree-select>
|
||||
<OrgClass v-model:value="organizationSelectId" v-model:name="organizationSelectName"></OrgClass>
|
||||
</div>
|
||||
<!-- <div class="in">
|
||||
<a-input
|
||||
@@ -295,26 +276,7 @@
|
||||
</div>
|
||||
<div class="inname">归属组织</div>
|
||||
<div class="select in">
|
||||
<a-tree-select
|
||||
:getPopupContainer="
|
||||
(triggerNode) => {
|
||||
return triggerNode.parentNode || document.body;
|
||||
}
|
||||
"
|
||||
v-model:value="organizationSelectName"
|
||||
style="width: 270px"
|
||||
placeholder="请选择组织"
|
||||
:options="organizationList"
|
||||
:tree-data="organizationList"
|
||||
@change="selectorganization"
|
||||
allowClear
|
||||
showSearch
|
||||
:fieldNames="{
|
||||
children: 'treeChildList',
|
||||
label: 'name',
|
||||
value: 'id',
|
||||
}"
|
||||
></a-tree-select>
|
||||
<OrgClass v-model:value="organizationSelectId" v-model:name="organizationSelectName"></OrgClass>
|
||||
</div>
|
||||
<!-- <div class="in">
|
||||
<a-input
|
||||
@@ -707,6 +669,7 @@ import {
|
||||
} from "../../api/method";
|
||||
import { storage } from "../../api/storage";
|
||||
import { useStore } from "vuex";
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
export default {
|
||||
name: "learningPath",
|
||||
components: {
|
||||
@@ -715,7 +678,7 @@ export default {
|
||||
// QueryRight,
|
||||
// ManageRight,
|
||||
ProjOwnerShip,
|
||||
|
||||
OrgClass,
|
||||
ProjPowerList,
|
||||
ProjCheckShip,
|
||||
},
|
||||
|
||||
@@ -415,31 +415,33 @@
|
||||
>
|
||||
<img
|
||||
:src="
|
||||
item.type === 1
|
||||
item.type == 1
|
||||
? require('../../assets/images/leveladd/zai.png')
|
||||
: type === 2
|
||||
: item.type == 2
|
||||
? require('../../assets/images/leveladd/mian.png')
|
||||
: item.type === 3
|
||||
: item.type == 3
|
||||
? require('../../assets/images/leveladd/an.png')
|
||||
: item.type === 4
|
||||
: item.type == 4
|
||||
? require('../../assets/images/leveladd/zuo.png')
|
||||
: item.type === 5
|
||||
: item.type == 5
|
||||
? require('../../assets/images/leveladd/kao.png')
|
||||
: item.type === 6
|
||||
: item.type == 6
|
||||
? require('../../assets/images/leveladd/zhi.png')
|
||||
: item.type === 7
|
||||
: item.type == 7
|
||||
? require('../../assets/images/leveladd/wai.png')
|
||||
: item.type === 8
|
||||
: item.type == 8
|
||||
? require('../../assets/images/leveladd/tao.png')
|
||||
: item.type === 9
|
||||
: item.type == 9
|
||||
? require('../../assets/images/leveladd/huo.png')
|
||||
: item.type === 10
|
||||
: item.type == 10
|
||||
? require('../../assets/images/leveladd/ce.png')
|
||||
: item.type === 11
|
||||
? require('../../assets/images/leveladd/diao.png')
|
||||
: item.type === 12
|
||||
: item.type == 11
|
||||
? require('../../assets/images/leveladd/pinggu.png')
|
||||
: item.type == 12
|
||||
? require('../../assets/images/leveladd/tou.png')
|
||||
: null
|
||||
: item.type == 13
|
||||
? require('../../assets/images/leveladd/tou.png')
|
||||
: require('../../assets/images/leveladd/xiangmu.png')
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
@@ -458,11 +460,11 @@
|
||||
</div>
|
||||
<div class="time">
|
||||
<div class="timetext">开始时间</div>
|
||||
<div class="timetext">{{ item.beginTime }}</div>
|
||||
<div class="timetext">{{ item.startTime!==null?item.startTime[0]+'-'+ item.startTime[1]+'-'+item.startTime[2]:''}}</div>
|
||||
</div>
|
||||
<div class="progress">
|
||||
<div class="progresstext">
|
||||
{{ item.complete }}/{{ item.total }}人
|
||||
{{ item.complete?item.complete:0 }}/{{ item.total?item.total:0 }}人
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
<a-progress
|
||||
@@ -472,7 +474,7 @@
|
||||
trailColor="rgba(253, 209, 98, 0.2)"
|
||||
/>
|
||||
<span class="progresstext" style="margin-left: 10px"
|
||||
>{{ item.percent }}%</span
|
||||
>{{ item.percent?item.percent:0 }}%</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -996,7 +998,7 @@
|
||||
<div class="header">
|
||||
<div class="icon"></div>
|
||||
<span>活动管理</span>
|
||||
<div class="close_exit" @click="closehuodModal"></div>
|
||||
<!-- <div class="close_exit" @click="closehuodModal"></div> -->
|
||||
</div>
|
||||
<div class="body">
|
||||
<div><img src="../../assets/images/taskpage/erweima.png" /></div>
|
||||
@@ -1886,6 +1888,7 @@ export default {
|
||||
const getOverview = () => {
|
||||
getRouterOverview(state.routerId)
|
||||
.then((res) => {
|
||||
console.log(res)
|
||||
Object.keys(res.data.data.routerInfoOverview).forEach((item) => {
|
||||
levelList.routerInfoOverview[item] =
|
||||
res.data.data.routerInfoOverview[item] || 0;
|
||||
@@ -1898,7 +1901,7 @@ export default {
|
||||
// console.log(r)
|
||||
// })
|
||||
state.addLoading = false;
|
||||
console.log("项目概览--" + res);
|
||||
console.log("项目概览--", res);
|
||||
})
|
||||
.catch((err) => {
|
||||
state.addLoading = false;
|
||||
@@ -1910,6 +1913,7 @@ export default {
|
||||
const myGetRouterDetail = () => {
|
||||
GetRouterDetail(state.routerId)
|
||||
.then((res) => {
|
||||
console.log('router-list',res)
|
||||
if (res.data.data.routerInfo.status == 1) {
|
||||
state.nodata = false;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,8 @@
|
||||
<div class="inname">项目经理</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
<ProjectManager v-model:value="projectInfo.managerId" v-model:name="projectInfo.manager"></ProjectManager>
|
||||
<ProjectManager v-model:value="projectInfo.managerId" v-model:name="projectInfo.manager"
|
||||
mode="multiple"></ProjectManager>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
@@ -201,10 +202,10 @@
|
||||
</div>
|
||||
<div class="name">
|
||||
<div class="namebox">
|
||||
<img
|
||||
class="nameimg"
|
||||
src="../../assets/images/basicinfo/asterisk.png"
|
||||
/>
|
||||
<!-- <img-->
|
||||
<!-- class="nameimg"-->
|
||||
<!-- src="../../assets/images/basicinfo/asterisk.png"-->
|
||||
<!-- />-->
|
||||
<div class="inname">是否BOEU实施</div>
|
||||
</div>
|
||||
<div class="in">
|
||||
@@ -346,6 +347,7 @@ export default {
|
||||
let obj = {
|
||||
pageNo: state.currentPage,
|
||||
pageSize: state.pageSize,
|
||||
status: 1
|
||||
};
|
||||
api.getTemplate(obj).then((res) => {
|
||||
state.totalPages = Number(res.data.data.pages);
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
<!-- <div class="select">-->
|
||||
<!-- <a-date-picker-->
|
||||
<!-- v-model:value="searchParam.createTime"-->
|
||||
<!-- type="date"-->
|
||||
<!-- placeholder="创建时间"-->
|
||||
<!-- style="width: 270px"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<div class="select">
|
||||
<a-range-picker
|
||||
v-model:value="searchParam.valueDate"
|
||||
style="border-radius: 8px; height: 40px; margin-left: 5px"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
valueFormat="X"
|
||||
/>
|
||||
</div>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
<div class="btnn btn1" @click="searchSubmit">
|
||||
<div class="search"></div>
|
||||
@@ -210,6 +210,7 @@
|
||||
<ProjectManager
|
||||
v-model:value="projectInfo.managerId"
|
||||
v-model:name="projectInfo.manager"
|
||||
mode="multiple"
|
||||
></ProjectManager>
|
||||
</div>
|
||||
</div>
|
||||
@@ -735,7 +736,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
|
||||
<!-- 授权名单抽屉 -->
|
||||
<proj-power-list
|
||||
v-model:ProjPvisible="ProjPvisible"
|
||||
@@ -749,13 +749,13 @@
|
||||
classify="project"
|
||||
/>
|
||||
<!-- 查看权抽屉 -->
|
||||
<!-- <proj-check-ship
|
||||
<proj-check-ship
|
||||
v-model:ProjCheckvisible="ProjCheckvisible"
|
||||
:selectProjectId="selectProjectId"
|
||||
v-model:addAuthList="addAuthList"
|
||||
:authClassify="authClassify"
|
||||
classify="project"
|
||||
/> -->
|
||||
/>
|
||||
<!-- 管理权抽屉 -->
|
||||
<proj-check-ship
|
||||
v-model:ProjCheckvisible="ProjCheckvisible"
|
||||
@@ -780,7 +780,6 @@ import { storage } from "../../api/storage";
|
||||
import ProjectManager from "@/components/project/ProjectManager";
|
||||
import ProjectClass from "@/components/project/ProjectClass";
|
||||
import OrgClass from "@/components/project/OrgClass";
|
||||
|
||||
export default {
|
||||
name: "projectManage",
|
||||
components: {
|
||||
@@ -816,23 +815,18 @@ export default {
|
||||
reminderModal: false, //温馨提示弹窗
|
||||
reviewModal: false, //提交审核
|
||||
recallReviewModal: false, //撤回审核
|
||||
|
||||
ProjOwnervisible: false,
|
||||
ProjPvisible: false,
|
||||
ProjCheckvisible: false,
|
||||
ProjManagevisible: false,
|
||||
|
||||
currentProjectId: "",
|
||||
currentProjectName: "",
|
||||
currentEdProjectName: "",
|
||||
|
||||
currentEditChildrensProjectId: "",
|
||||
dcProjectID: "",
|
||||
|
||||
currentPage: 1, //当前页
|
||||
tableDataTotal: -1, //学习路径列表总数
|
||||
pageSize: 10, //每页10条数据
|
||||
|
||||
projectStudentsNum: 0, //发布弹窗-学员人
|
||||
projectStages: 0,
|
||||
projectTasks: 0,
|
||||
@@ -846,12 +840,9 @@ export default {
|
||||
copyProjectId: null, //复制项目id
|
||||
reviewId: null, //提交审核id
|
||||
recallReviewId: null, //撤回审核id
|
||||
|
||||
selectProjectId: null, //选择的授权id
|
||||
|
||||
addAuthList: null, //确定授权列表
|
||||
authClassify: null, //显示的是管理权还是查看权
|
||||
|
||||
currentPage1: 1, //项目经理分页
|
||||
pageSize1: 10,
|
||||
projectInfo: {},
|
||||
@@ -867,10 +858,10 @@ export default {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
valueDate: [],
|
||||
});
|
||||
// 数据接入 - start -
|
||||
const router = useRouter();
|
||||
|
||||
const sProjectStateList = ref([
|
||||
{ value: 0, label: "草稿" },
|
||||
{ value: 1, label: "审核中" },
|
||||
@@ -878,17 +869,24 @@ export default {
|
||||
{ value: 3, label: "已发布" },
|
||||
{ value: -2, label: "未通过" },
|
||||
]);
|
||||
|
||||
const searchReset = () => {
|
||||
state.searchParam = { pageNo: 1, pageSize: 10 };
|
||||
getTableDate();
|
||||
};
|
||||
|
||||
const searchSubmit = () => {
|
||||
state.searchParam.pageNo = 1;
|
||||
getTableDate();
|
||||
};
|
||||
|
||||
function timeChange(e) {
|
||||
console.log(e);
|
||||
if (e && e.length === 2) {
|
||||
state.searchParam.beginTime = e[0];
|
||||
state.searchParam.endTime = e[1];
|
||||
} else {
|
||||
state.searchParam.beginTime = "";
|
||||
state.searchParam.endTime = "";
|
||||
}
|
||||
}
|
||||
function validate(obj, errorMsgs) {
|
||||
for (let i in errorMsgs) {
|
||||
if (!obj[i]) {
|
||||
@@ -899,7 +897,6 @@ export default {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// 创建多层项目
|
||||
const createStoreyProject = () => {
|
||||
// 接口需要传递的参数信息
|
||||
@@ -938,7 +935,6 @@ export default {
|
||||
const closeeditModal2 = () => {
|
||||
state.eddoublepro = false;
|
||||
};
|
||||
|
||||
// 创建单层子项目 (需要传入多层项目的ProjectID)
|
||||
const createChildProject = () => {
|
||||
console.log(state.currentProjectId);
|
||||
@@ -950,16 +946,13 @@ export default {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
// 取消按钮 清空数据
|
||||
const closeModal3 = () => {
|
||||
state.doublesonpro = false;
|
||||
};
|
||||
|
||||
const closeeditModal3 = () => {
|
||||
state.eddoublesonpro = false;
|
||||
};
|
||||
|
||||
//打开发布弹窗
|
||||
const showProjectPub = (object) => {
|
||||
state.projectPub = true;
|
||||
@@ -1160,7 +1153,6 @@ export default {
|
||||
console.log("复制失败", err);
|
||||
});
|
||||
};
|
||||
|
||||
//打开提交审核弹窗
|
||||
const showReviewModal = (projectId) => {
|
||||
state.reviewModal = true;
|
||||
@@ -1190,7 +1182,6 @@ export default {
|
||||
const closeReviewModal = () => {
|
||||
state.reviewModal = false;
|
||||
};
|
||||
|
||||
//打开撤回审核弹窗
|
||||
const showRecallReviewModal = (projectId) => {
|
||||
state.recallReviewModal = true;
|
||||
@@ -1220,15 +1211,12 @@ export default {
|
||||
const closeRecallReviewModal = () => {
|
||||
state.recallReviewModal = false;
|
||||
};
|
||||
|
||||
const expandTable = (e, a) => {
|
||||
// console.log("惦记了");
|
||||
console.log("e", e, a);
|
||||
};
|
||||
|
||||
// 获取项目列表信息
|
||||
let tableData = ref([]);
|
||||
|
||||
const columns = ref([
|
||||
{
|
||||
title: "项目名称",
|
||||
@@ -1359,7 +1347,7 @@ export default {
|
||||
编辑
|
||||
</span>
|
||||
) : (
|
||||
<div className="operation1"></div>
|
||||
""
|
||||
)}
|
||||
{(value.record.status === 0 || value.record.status === -2) &&
|
||||
value.record.type === 3 ? (
|
||||
@@ -1560,9 +1548,22 @@ export default {
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
const getTableDate = () =>
|
||||
api.getProjectList(state.searchParam).then((res) => {
|
||||
api
|
||||
.getProjectList({
|
||||
...state.searchParam,
|
||||
beginTime:
|
||||
state.searchParam.valueDate &&
|
||||
state.searchParam.valueDate.length === 2
|
||||
? state.searchParam.valueDate[0]
|
||||
: "",
|
||||
endTime:
|
||||
state.searchParam.valueDate &&
|
||||
state.searchParam.valueDate.length === 2
|
||||
? state.searchParam.valueDate[1]
|
||||
: "",
|
||||
})
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
state.tableDataTotal = Number(res.data.data.total);
|
||||
const data = res.data.data.rows;
|
||||
@@ -1571,7 +1572,6 @@ export default {
|
||||
tableData.value = data;
|
||||
console.log("tableData", tableData);
|
||||
});
|
||||
|
||||
function initDataSublist(parentName, data) {
|
||||
if (data && data.length) {
|
||||
data.forEach((e) => {
|
||||
@@ -1582,22 +1582,18 @@ export default {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
getTableDate();
|
||||
|
||||
// 翻页
|
||||
const changePagination = (page) => {
|
||||
state.searchParam.pageNo = page;
|
||||
getTableDate();
|
||||
};
|
||||
|
||||
const showModal = () => {
|
||||
state.sonproject = true;
|
||||
};
|
||||
const closeModal = () => {
|
||||
state.sonproject = false;
|
||||
};
|
||||
|
||||
const showModal1 = () => {
|
||||
state.projectInfo = {};
|
||||
state.reminderModal = true;
|
||||
@@ -1605,17 +1601,14 @@ export default {
|
||||
const closeModal1 = () => {
|
||||
state.estabish = false;
|
||||
};
|
||||
|
||||
const showModal2 = () => {
|
||||
state.doublepro = true;
|
||||
state.estabish = false;
|
||||
};
|
||||
|
||||
const showModal3 = () => {
|
||||
state.doublesonpro = true;
|
||||
state.sonproject = false;
|
||||
};
|
||||
|
||||
const showProjOwner = (id) => {
|
||||
state.ProjOwnervisible = true;
|
||||
state.selectProjectId = id;
|
||||
@@ -1635,7 +1628,6 @@ export default {
|
||||
// state.ProjManagevisible = true;
|
||||
state.ProjCheckvisible = true;
|
||||
};
|
||||
|
||||
const closeReminderModal = () => {
|
||||
state.reminderModal = false;
|
||||
};
|
||||
@@ -1643,7 +1635,6 @@ export default {
|
||||
state.reminderModal = false;
|
||||
state.estabish = true;
|
||||
};
|
||||
|
||||
//添加权限
|
||||
watch(
|
||||
() => state.addAuthList,
|
||||
@@ -1676,6 +1667,7 @@ export default {
|
||||
);
|
||||
return {
|
||||
...toRefs(state),
|
||||
timeChange,
|
||||
expandTable,
|
||||
showModal,
|
||||
closeModal,
|
||||
@@ -1707,7 +1699,6 @@ export default {
|
||||
showRecallReviewModal,
|
||||
recallReviewProject,
|
||||
closeRecallReviewModal,
|
||||
|
||||
tableData,
|
||||
columns,
|
||||
createStoreyProject,
|
||||
@@ -1734,10 +1725,9 @@ export default {
|
||||
<style lang="scss">
|
||||
.projectManage {
|
||||
width: 100%;
|
||||
// height: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.filter {
|
||||
margin-left: 38px;
|
||||
margin-right: 38px;
|
||||
@@ -1745,16 +1735,13 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.filterItems {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.select {
|
||||
margin-right: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 0px 26px 0px 26px;
|
||||
height: 38px;
|
||||
@@ -1767,11 +1754,9 @@ export default {
|
||||
margin-right: 14px;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
|
||||
.search {
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
@@ -1780,7 +1765,6 @@ export default {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.btnn {
|
||||
padding: 0px 26px 0px 26px;
|
||||
height: 38px;
|
||||
@@ -1793,11 +1777,9 @@ export default {
|
||||
margin-right: 14px;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
|
||||
.search {
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
@@ -1806,7 +1788,6 @@ export default {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
.search {
|
||||
width: 15px;
|
||||
@@ -1814,7 +1795,6 @@ export default {
|
||||
background-image: url("../../assets/images/courseManage/search0.png");
|
||||
}
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
.search {
|
||||
width: 16px;
|
||||
@@ -1822,35 +1802,27 @@ export default {
|
||||
background-image: url("../../assets/images/courseManage/reset1.png");
|
||||
}
|
||||
}
|
||||
|
||||
.btn1:hover {
|
||||
background: rgba(64, 158, 255, 0.76);
|
||||
|
||||
.search {
|
||||
background-image: url("../../assets/images/courseManage/search0.png");
|
||||
}
|
||||
|
||||
.btnText {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1:active {
|
||||
background: #0982ff;
|
||||
}
|
||||
|
||||
.btn2:hover {
|
||||
background: rgba(64, 158, 255, 0.1);
|
||||
}
|
||||
|
||||
.btn2:active {
|
||||
background: rgba(64, 158, 255, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.btns {
|
||||
display: flex;
|
||||
|
||||
// flex-wrap: wrap;
|
||||
.btn {
|
||||
padding: 0px 26px 0px 26px;
|
||||
@@ -1864,11 +1836,9 @@ export default {
|
||||
justify-content: center;
|
||||
margin-right: 14px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.search {
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
@@ -1877,30 +1847,24 @@ export default {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn3 {
|
||||
margin-right: 0px;
|
||||
|
||||
.search {
|
||||
width: 17px;
|
||||
height: 18px;
|
||||
background-image: url("../../assets/images/courseManage/add0.png");
|
||||
}
|
||||
}
|
||||
|
||||
.btn3:hover {
|
||||
background: rgba(64, 158, 255, 0.76);
|
||||
}
|
||||
|
||||
.btn3:active {
|
||||
background: #0982ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tableBox {
|
||||
margin: 20px 38px 30px;
|
||||
|
||||
.ant-table-thead > tr > th {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
@@ -1910,10 +1874,8 @@ export default {
|
||||
background-color: #eff4fc;
|
||||
}
|
||||
}
|
||||
|
||||
.tableBox {
|
||||
padding-bottom: 20px;
|
||||
|
||||
.pa {
|
||||
// position: absolute;
|
||||
// bottom: 20px;
|
||||
@@ -1928,33 +1890,28 @@ export default {
|
||||
// bottom: -40px;
|
||||
}
|
||||
}
|
||||
|
||||
.operation {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #4ea6ff;
|
||||
|
||||
// line-height: 36px;
|
||||
.operation1 {
|
||||
margin-left: 21px;
|
||||
width: 28px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.operation3 {
|
||||
margin-left: 21px;
|
||||
width: 70px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.more {
|
||||
width: 50px;
|
||||
display: inline-block;
|
||||
margin-left: 21px;
|
||||
position: relative;
|
||||
text-align: left;
|
||||
|
||||
// z-index: 99999;
|
||||
.moreArrow {
|
||||
width: 13px;
|
||||
@@ -1965,7 +1922,6 @@ export default {
|
||||
margin: 2px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.moreItems {
|
||||
width: 80px;
|
||||
padding: 5px;
|
||||
@@ -1981,17 +1937,14 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.more:hover .moreArrow {
|
||||
background-image: url("../../assets/images/navtop/up.png");
|
||||
}
|
||||
|
||||
.more:hover .moreItems {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.doublesonpro {
|
||||
.ant-modal {
|
||||
.ant-modal-body {
|
||||
@@ -2002,15 +1955,12 @@ export default {
|
||||
rgba(78, 166, 255, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
padding: 0;
|
||||
|
||||
.modalMain {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
//align-items: center;
|
||||
margin-left: 60px;
|
||||
|
||||
.name {
|
||||
//width: 90%;
|
||||
// background-color: lightcoral;
|
||||
@@ -2020,30 +1970,25 @@ export default {
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
// border: 1px solid black;
|
||||
|
||||
.inname {
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.in {
|
||||
margin-left: 14px;
|
||||
width: 80%;
|
||||
|
||||
.ant-input {
|
||||
border-radius: 5px;
|
||||
// height: 120%;
|
||||
width: 80%;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.ant-select {
|
||||
border-radius: 5px;
|
||||
// height: 120%;
|
||||
width: 80%;
|
||||
height: 40px;
|
||||
|
||||
.ant-select-selector {
|
||||
border-radius: 8px;
|
||||
// height: 120%;
|
||||
@@ -2053,12 +1998,10 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pubtn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 25px;
|
||||
|
||||
//margin-bottom: 29px;
|
||||
.pubtn1 {
|
||||
width: 100px;
|
||||
@@ -2073,7 +2016,6 @@ export default {
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
.pubtn2 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
@@ -2091,7 +2033,6 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.doublepro {
|
||||
.ant-modal {
|
||||
.ant-modal-body {
|
||||
@@ -2102,14 +2043,11 @@ export default {
|
||||
rgba(78, 166, 255, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
padding: 0;
|
||||
|
||||
.modalMain {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.name {
|
||||
width: 78%;
|
||||
// background-color: lightcoral;
|
||||
@@ -2119,30 +2057,25 @@ export default {
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
// border: 1px solid black;
|
||||
|
||||
.inname {
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
|
||||
.in {
|
||||
margin-left: 14px;
|
||||
width: 81%;
|
||||
|
||||
.ant-input {
|
||||
border-radius: 5px;
|
||||
// height: 120%;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.ant-select {
|
||||
border-radius: 5px;
|
||||
// height: 120%;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
|
||||
.ant-select-selector {
|
||||
border-radius: 8px;
|
||||
// height: 120%;
|
||||
@@ -2152,12 +2085,10 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pubtn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 25px;
|
||||
|
||||
//margin-bottom: 29px;
|
||||
.pubtn1 {
|
||||
width: 100px;
|
||||
@@ -2172,7 +2103,6 @@ export default {
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
.pubtn2 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
@@ -2190,12 +2120,10 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sonproject {
|
||||
.ant-modal {
|
||||
.ant-modal-body {
|
||||
padding: 0 !important;
|
||||
|
||||
.modalHeader {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
@@ -2203,12 +2131,10 @@ export default {
|
||||
rgba(78, 166, 255, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.modalMain {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 48px;
|
||||
|
||||
//margin-bottom: 40px;
|
||||
.taskbox {
|
||||
width: 310px;
|
||||
@@ -2217,25 +2143,21 @@ export default {
|
||||
position: relative;
|
||||
margin-bottom: 80px;
|
||||
cursor: pointer;
|
||||
|
||||
.leftt {
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.photo {
|
||||
position: absolute;
|
||||
top: 44px;
|
||||
left: 40px;
|
||||
}
|
||||
|
||||
.rightt {
|
||||
position: absolute;
|
||||
top: 69px;
|
||||
right: 26px;
|
||||
}
|
||||
|
||||
.centerbox {
|
||||
position: absolute;
|
||||
top: 66px;
|
||||
@@ -2244,7 +2166,6 @@ export default {
|
||||
font-weight: 700;
|
||||
//line-height: 36px;
|
||||
}
|
||||
|
||||
.centermain {
|
||||
color: rgba(135, 139, 146, 1);
|
||||
font-size: 14px;
|
||||
@@ -2257,12 +2178,10 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.estabish {
|
||||
.ant-modal {
|
||||
.ant-modal-body {
|
||||
padding: 0 !important;
|
||||
|
||||
.modalHeader {
|
||||
background: linear-gradient(
|
||||
0deg,
|
||||
@@ -2270,13 +2189,11 @@ export default {
|
||||
rgba(78, 166, 255, 0.2) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.modalMain {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-top: 48px;
|
||||
|
||||
//margin-bottom: 40px;
|
||||
.taskbox {
|
||||
width: 438px;
|
||||
@@ -2285,25 +2202,21 @@ export default {
|
||||
position: relative;
|
||||
margin-bottom: 24px;
|
||||
cursor: pointer;
|
||||
|
||||
.leftt {
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.photo {
|
||||
position: absolute;
|
||||
top: 44px;
|
||||
left: 40px;
|
||||
}
|
||||
|
||||
.rightt {
|
||||
position: absolute;
|
||||
top: 69px;
|
||||
right: 26px;
|
||||
}
|
||||
|
||||
.centerbox {
|
||||
position: absolute;
|
||||
top: 42px;
|
||||
@@ -2312,7 +2225,6 @@ export default {
|
||||
font-weight: 500;
|
||||
//line-height: 36px;
|
||||
}
|
||||
|
||||
.centerbox1 {
|
||||
position: absolute;
|
||||
top: 32px;
|
||||
@@ -2321,7 +2233,6 @@ export default {
|
||||
font-weight: 500;
|
||||
//line-height: 36px;
|
||||
}
|
||||
|
||||
.centermain {
|
||||
color: rgba(135, 139, 146, 1);
|
||||
font-size: 14px;
|
||||
@@ -2331,7 +2242,6 @@ export default {
|
||||
left: 120px;
|
||||
top: 78px;
|
||||
}
|
||||
|
||||
.centermain1 {
|
||||
color: rgba(135, 139, 146, 1);
|
||||
font-size: 14px;
|
||||
@@ -2346,21 +2256,17 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.CopyModal {
|
||||
.ant-modal {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
|
||||
.ant-modal-content {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
|
||||
.ant-modal-body {
|
||||
width: 424px !important;
|
||||
height: 258px !important;
|
||||
padding: 0 !important;
|
||||
|
||||
.delete {
|
||||
z-index: 999;
|
||||
width: 424px;
|
||||
@@ -2368,7 +2274,6 @@ export default {
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21);
|
||||
border-radius: 4px;
|
||||
|
||||
// position: absolute;
|
||||
// left: 50%;
|
||||
// top: 10%;
|
||||
@@ -2382,18 +2287,15 @@ export default {
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.del_main {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 20px;
|
||||
padding-left: 26px;
|
||||
font-size: 16px;
|
||||
|
||||
.icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
@@ -2401,7 +2303,6 @@ export default {
|
||||
background-image: url(@/assets/images/coursewareManage/QR.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.close_exit {
|
||||
position: absolute;
|
||||
right: 42px;
|
||||
@@ -2412,7 +2313,6 @@ export default {
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.body {
|
||||
width: 100%;
|
||||
margin: 34px auto 56px auto;
|
||||
@@ -2422,7 +2322,6 @@ export default {
|
||||
flex-direction: column;
|
||||
// background-color: red;
|
||||
position: relative;
|
||||
|
||||
.back {
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
@@ -2431,12 +2330,10 @@ export default {
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
.del_btnbox {
|
||||
display: flex;
|
||||
margin: 30px auto;
|
||||
justify-content: center;
|
||||
|
||||
.del_btn {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
@@ -2445,23 +2342,19 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
|
||||
.btnText {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
border: 1px solid rgba(64, 158, 255, 1);
|
||||
color: #4ea6ff;
|
||||
margin-right: 14px;
|
||||
}
|
||||
|
||||
.btn2 {
|
||||
background-color: #4ea6ff;
|
||||
color: #ffffff;
|
||||
@@ -2473,19 +2366,16 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.projectPub {
|
||||
.ant-modal {
|
||||
.ant-modal-body {
|
||||
padding: 0;
|
||||
|
||||
.modalHeader {
|
||||
background: linear-gradient(
|
||||
rgba(78, 166, 255, 0.2) 0%,
|
||||
rgba(78, 166, 255, 0) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.modalMain {
|
||||
.projectname {
|
||||
color: rgba(79, 81, 86, 1);
|
||||
@@ -2495,28 +2385,23 @@ export default {
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.projecttime {
|
||||
margin-left: 221px;
|
||||
|
||||
.timeti {
|
||||
color: rgba(153, 155, 163, 1);
|
||||
font-size: 14px;
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
.timeme {
|
||||
color: rgba(79, 81, 86, 1);
|
||||
font-size: 14px;
|
||||
line-height: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
.projectbox {
|
||||
margin-top: 26px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.promessage {
|
||||
width: 280px;
|
||||
height: 110px;
|
||||
@@ -2527,7 +2412,6 @@ export default {
|
||||
);
|
||||
border-radius: 10px;
|
||||
margin-right: 7px;
|
||||
|
||||
.messageme {
|
||||
color: rgba(255, 182, 78, 1);
|
||||
font-size: 14px;
|
||||
@@ -2535,14 +2419,12 @@ export default {
|
||||
margin-top: 17px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.messagege {
|
||||
color: rgba(153, 155, 163, 1);
|
||||
font-size: 14px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.stumessage {
|
||||
width: 280px;
|
||||
height: 110px;
|
||||
@@ -2552,7 +2434,6 @@ export default {
|
||||
rgba(240, 248, 254, 1)
|
||||
);
|
||||
border-radius: 10px;
|
||||
|
||||
.messageme1 {
|
||||
color: rgba(78, 166, 255, 1);
|
||||
font-size: 14px;
|
||||
@@ -2560,7 +2441,6 @@ export default {
|
||||
margin-top: 17px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.messagege1 {
|
||||
color: rgba(153, 155, 163, 1);
|
||||
font-size: 14px;
|
||||
@@ -2568,32 +2448,26 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.send {
|
||||
margin-top: 30px;
|
||||
margin-left: 61px;
|
||||
|
||||
.sendtext {
|
||||
margin-left: 11px;
|
||||
color: rgba(109, 117, 132, 1);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.ckb {
|
||||
margin-top: 20px;
|
||||
margin-left: 62px;
|
||||
|
||||
.sendpeo {
|
||||
color: rgba(109, 117, 132, 1);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.ant-checkbox-inner {
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.pubtn {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -2612,7 +2486,6 @@ export default {
|
||||
align-items: center;
|
||||
background: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
.pubtn2 {
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
|
||||
@@ -383,31 +383,33 @@
|
||||
>
|
||||
<img
|
||||
:src="
|
||||
item.type == '1'
|
||||
item.type == 1
|
||||
? require('../../assets/images/leveladd/zai.png')
|
||||
: item.type == '2'
|
||||
: item.type == 2
|
||||
? require('../../assets/images/leveladd/mian.png')
|
||||
: item.type == '3'
|
||||
: item.type == 3
|
||||
? require('../../assets/images/leveladd/an.png')
|
||||
: item.type == '4'
|
||||
: item.type == 4
|
||||
? require('../../assets/images/leveladd/zuo.png')
|
||||
: item.type == '5'
|
||||
: item.type == 5
|
||||
? require('../../assets/images/leveladd/kao.png')
|
||||
: item.type == '6'
|
||||
: item.type == 6
|
||||
? require('../../assets/images/leveladd/zhi.png')
|
||||
: item.type == '7'
|
||||
: item.type == 7
|
||||
? require('../../assets/images/leveladd/wai.png')
|
||||
: item.type == '8'
|
||||
: item.type == 8
|
||||
? require('../../assets/images/leveladd/tao.png')
|
||||
: item.type == '9'
|
||||
: item.type == 9
|
||||
? require('../../assets/images/leveladd/huo.png')
|
||||
: item.type == '10'
|
||||
: item.type == 10
|
||||
? require('../../assets/images/leveladd/ce.png')
|
||||
: item.type == '11'
|
||||
? require('../../assets/images/leveladd/diao.png')
|
||||
: item.type == '12'
|
||||
: item.type == 11
|
||||
? require('../../assets/images/leveladd/pinggu.png')
|
||||
: item.type == 12
|
||||
? require('../../assets/images/leveladd/tou.png')
|
||||
: null
|
||||
: item.type == 13
|
||||
? require('../../assets/images/leveladd/tou.png')
|
||||
: require('../../assets/images/leveladd/xiangmu.png')
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
@@ -427,11 +429,11 @@
|
||||
</div>
|
||||
<div class="time">
|
||||
<div class="timetext">开始时间</div>
|
||||
<div class="timetext">{{ item.createTime }}</div>
|
||||
<div class="timetext">{{item.startTime!==null?item.startTime[0]+'-'+ item.startTime[1]+'-'+item.startTime[2]:''}}</div>
|
||||
</div>
|
||||
<div class="progress">
|
||||
<div class="progresstext">
|
||||
{{ item.finishStuCnt }}/{{ item.totalStuCnt }}人
|
||||
{{ item.finishStuCnt&&item.finishStuCnt!==null?item.finishStuCnt:0 }}/{{ item.totalStuCnt&&item.totalStuCnt!==null?item.totalStuCnt:0 }}人
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
<a-progress
|
||||
@@ -442,7 +444,7 @@
|
||||
/>
|
||||
<span class="progresstext" style="margin-left: 10px"
|
||||
>{{
|
||||
(item.finishStuCnt / item.totalStuCnt) * 100
|
||||
(item.finishStuCnt&&item.finishStuCnt!==null?item.finishStuCnt:0 / item.totalStuCnt&&item.totalStuCnt!==null?item.totalStuCnt:0) * 100
|
||||
}}%</span
|
||||
>
|
||||
</div>
|
||||
@@ -3248,8 +3250,10 @@ export default {
|
||||
}).then((res) => {
|
||||
console.log("get task", res.data.data);
|
||||
let info = res.data.data.projectInfo;
|
||||
let start = toDate(info.beginTime / 1000, "Y-M-D h:m");
|
||||
let end = toDate(info.endTime / 1000, "Y-M-D h:m");
|
||||
// let start = toDate(info.beginTime / 1000, "Y-M-D h:m");
|
||||
let start = info.beginTime
|
||||
// let end = toDate(info.endTime / 1000, "Y-M-D h:m");
|
||||
let end = info.endTime
|
||||
state.tstartTime = info.beginTime;
|
||||
state.tendTime = info.endTime;
|
||||
state.tsourceBelong = info.sourceBelongId;
|
||||
@@ -3823,6 +3827,7 @@ export default {
|
||||
templateProject,
|
||||
changeGrouped,
|
||||
deFile,
|
||||
toDate
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
@@ -14,8 +14,7 @@ module.exports = defineConfig({
|
||||
port: 8080,
|
||||
proxy: {
|
||||
"/manageApi": {
|
||||
// target:"http://192.168.56.245:30001/",
|
||||
target: "http://localhost:30001/", //这里后台的地址模拟的;应该填写你们真实的后台接口
|
||||
target:"http://111.231.196.214:30001/",
|
||||
changeOrigin: true, //表示是否改变原域名
|
||||
// secure: false,
|
||||
// ws: false, //表示WebSocket协议
|
||||
|
||||
Reference in New Issue
Block a user