mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
Merge branch 'compulsory_professional_skills' into test20250220
This commit is contained in:
@@ -18,8 +18,8 @@ import { boeRequest } from "@/api/request";
|
|||||||
// "application/x-www-form-urlencoded";
|
// "application/x-www-form-urlencoded";
|
||||||
axios.defaults.withCredentials = true;
|
axios.defaults.withCredentials = true;
|
||||||
const http = axios.create({
|
const http = axios.create({
|
||||||
baseURL: '/growth',
|
// baseURL: '/growth',
|
||||||
// baseURL: process.env.VUE_APP_BASE_API_GROWTH,
|
baseURL: process.env.VUE_APP_BASE_API_GROWTH,
|
||||||
timeout: 1000 * 15,
|
timeout: 1000 * 15,
|
||||||
// headers: { "Content-Type": "multipart/form-data" },
|
// headers: { "Content-Type": "multipart/form-data" },
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
|
|||||||
@@ -101,3 +101,13 @@ export const delGrowth = (growthId) => http.get('/professional/compulsory/delGro
|
|||||||
|
|
||||||
// 删除手动添加的专业力必修
|
// 删除手动添加的专业力必修
|
||||||
export const markComplete = (obj) => http.get('/professional/allocation/markComplete', { params: obj })
|
export const markComplete = (obj) => http.get('/professional/allocation/markComplete', { params: obj })
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export const attendanceList = (obj) => http.post('/professional/task/attendanceList', obj)
|
||||||
|
|
||||||
|
export const taskSign = (obj) => http.post('/professional/task/taskSign', obj)
|
||||||
|
|
||||||
|
export const taskLeave = (obj) => http.post('/professional/task/taskLeave', obj)
|
||||||
|
|
||||||
|
export const taskBatchSign = (id) => http.get('/professional/task/batchSign/' + id)
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 382 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 346 KiB |
1165
src/components/growthpath/GrowthActiveAttendance.vue
Normal file
1165
src/components/growthpath/GrowthActiveAttendance.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -101,7 +101,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnn">
|
<div class="btnn">
|
||||||
<button class="btn2" @click="closeDrawer">取消</button>
|
<button class="btn2" @click="closeDrawer">取消</button>
|
||||||
<button class="btn2" @click="closeDrawer">确定</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -360,8 +360,13 @@ const deleteDepSelect = () => {
|
|||||||
|
|
||||||
//确定添加授权
|
//确定添加授权
|
||||||
const confirm = () => {
|
const confirm = () => {
|
||||||
|
if(!stuSelectRows.value.length && !projectSelectRows.value.length){
|
||||||
|
message.warning('请选择学员')
|
||||||
|
return
|
||||||
|
}
|
||||||
visiable.value = false;
|
visiable.value = false;
|
||||||
emit("confirm", stuSelectRows.value, projectSelectRows.value);
|
emit("confirm", stuSelectRows.value, projectSelectRows.value);
|
||||||
|
closeDrawer()
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -378,7 +383,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
.CommonStudent > .ant-drawer-content-wrapper {
|
.CommonStudent > .ant-drawer-content-wrapper {
|
||||||
min-width: 1200px !important;
|
min-width: 1200px !important;
|
||||||
width: 1200px !important;
|
width: 1200px !important;
|
||||||
@@ -390,6 +395,10 @@ onMounted(() => {
|
|||||||
margin-left: 24px;
|
margin-left: 24px;
|
||||||
}
|
}
|
||||||
.CommonStudent {
|
.CommonStudent {
|
||||||
|
.ant-form-item{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
.ant-btn-primary {
|
.ant-btn-primary {
|
||||||
background-color: #4ea6ff !important;
|
background-color: #4ea6ff !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -457,7 +457,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn">
|
<div class="btn">
|
||||||
<button class="samtn btn2" @click="closeLearnBgMore">取消</button>
|
<button class="samtn btn2" @click="closeLearnBgMore">取消</button>
|
||||||
<a-button class="samtn btn2" @click="closeLearnBgMore">确定</a-button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
:visible="visiable"
|
:visible="visiable"
|
||||||
class="drawerStyle"
|
class="drawerStyle"
|
||||||
placement="right"
|
placement="right"
|
||||||
|
destroyOnClose
|
||||||
width="60%"
|
width="60%"
|
||||||
>
|
>
|
||||||
<div class="drawerMain" style="">
|
<div class="drawerMain" style="">
|
||||||
|
|||||||
@@ -210,7 +210,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnn">
|
<div class="btnn">
|
||||||
<button class="btn1" @click="closeDrawer">取消</button>
|
<button class="btn1" @click="closeDrawer">取消</button>
|
||||||
<button class="btn2" @click="closeDrawer">确定</button>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="step == 2">
|
<template v-if="step == 2">
|
||||||
|
|||||||
@@ -166,7 +166,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnn">
|
<div class="btnn">
|
||||||
<button class="btn1" @click="closeDrawer">取消</button>
|
<button class="btn1" @click="closeDrawer">取消</button>
|
||||||
<button class="btn2" @click="closeDrawer">确定</button>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,7 @@ const closeDrawer = () => {
|
|||||||
selectData.value = {};
|
selectData.value = {};
|
||||||
};
|
};
|
||||||
async function confirm(row) {
|
async function confirm(row) {
|
||||||
console.log(row)
|
console.log(row);
|
||||||
debugger
|
|
||||||
// 新增
|
// 新增
|
||||||
if (!selectData.value?.id) {
|
if (!selectData.value?.id) {
|
||||||
await saveTask({
|
await saveTask({
|
||||||
@@ -79,7 +78,7 @@ function selectCourse(row) {
|
|||||||
}
|
}
|
||||||
function openDrawer(row) {
|
function openDrawer(row) {
|
||||||
window.selectCourse = selectCourse;
|
window.selectCourse = selectCourse;
|
||||||
row && (selectData.value = [row.info]);
|
row && (selectData.value = row);
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,11 +45,11 @@
|
|||||||
<div class="namecon" style="margin-right: 16px">
|
<div class="namecon" style="margin-right: 16px">
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="projectName"
|
v-model:value="completionStatus"
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
placeholder="任务状态"
|
placeholder="任务状态"
|
||||||
:options="projectNameList"
|
:options="projectNameList"
|
||||||
@change="selectProjectName"
|
@change="selectCompletionStatus"
|
||||||
allowClear
|
allowClear
|
||||||
></a-select>
|
></a-select>
|
||||||
</div>
|
</div>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
<a-table
|
<a-table
|
||||||
style="border: 1px solid #f2f6fe"
|
style="border: 1px solid #f2f6fe"
|
||||||
:columns="tableDataFunc()"
|
:columns="tableDataFunc()"
|
||||||
:data-source="tabledata"
|
:data-source="tableData"
|
||||||
:loading="tableDataTotalLoading"
|
:loading="tableDataTotalLoading"
|
||||||
:scroll="{ x: 900 }"
|
:scroll="{ x: 900 }"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
@@ -190,7 +190,7 @@ export default {
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
tableDataTotal: 0,
|
tableDataTotal: 0,
|
||||||
projectName: undefined,
|
completionStatus: undefined,
|
||||||
TASK_TYPE: TASK_TYPE,
|
TASK_TYPE: TASK_TYPE,
|
||||||
stdPosition: null,
|
stdPosition: null,
|
||||||
qualsLevelCode: null,
|
qualsLevelCode: null,
|
||||||
@@ -211,7 +211,7 @@ export default {
|
|||||||
label: "已完成",
|
label: "已完成",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
tabledata: [],
|
tableData: [],
|
||||||
tableDataTotalLoading: true, // 表格loading加载配置
|
tableDataTotalLoading: true, // 表格loading加载配置
|
||||||
evalDataSource: "",
|
evalDataSource: "",
|
||||||
Assessvisible: false,
|
Assessvisible: false,
|
||||||
@@ -418,8 +418,8 @@ export default {
|
|||||||
ctx.emit("update:Tvisible", false);
|
ctx.emit("update:Tvisible", false);
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.name = "";
|
state.name = "";
|
||||||
state.projectName = undefined;
|
state.completionStatus = undefined;
|
||||||
state.tabledata = [];
|
state.tableData = [];
|
||||||
state.stdPosition = null;
|
state.stdPosition = null;
|
||||||
state.qualsLevelCode = null;
|
state.qualsLevelCode = null;
|
||||||
};
|
};
|
||||||
@@ -430,8 +430,8 @@ export default {
|
|||||||
getData();
|
getData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const selectProjectName = (value) => {
|
const selectCompletionStatus = (value) => {
|
||||||
state.projectName = value;
|
state.completionStatus = value;
|
||||||
};
|
};
|
||||||
//催促
|
//催促
|
||||||
const godie = () => {
|
const godie = () => {
|
||||||
@@ -462,7 +462,7 @@ export default {
|
|||||||
getStudentTaskPage({
|
getStudentTaskPage({
|
||||||
pageNum: state.currentPage,
|
pageNum: state.currentPage,
|
||||||
pageSize: state.pageSize,
|
pageSize: state.pageSize,
|
||||||
completionStatus: state.projectName,
|
completionStatus: state.completionStatus,
|
||||||
username: state.name,
|
username: state.name,
|
||||||
taskId: props.datasource.id,
|
taskId: props.datasource.id,
|
||||||
qualsLevelCode: state.qualsLevelCode,
|
qualsLevelCode: state.qualsLevelCode,
|
||||||
@@ -472,7 +472,7 @@ export default {
|
|||||||
console.log("在线课数据获取", res);
|
console.log("在线课数据获取", res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
state.tableDataTotalLoading = false;
|
state.tableDataTotalLoading = false;
|
||||||
state.tabledata = res.data.data.records;
|
state.tableData = res.data.data.records;
|
||||||
state.tableDataTotal = res.data.data.total;
|
state.tableDataTotal = res.data.data.total;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -493,7 +493,7 @@ export default {
|
|||||||
state.tableDataTotalLoading = true;
|
state.tableDataTotalLoading = true;
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.name = "";
|
state.name = "";
|
||||||
state.projectName = null;
|
state.completionStatus = null;
|
||||||
state.stdPosition = null;
|
state.stdPosition = null;
|
||||||
state.qualsLevelCode = null;
|
state.qualsLevelCode = null;
|
||||||
getData();
|
getData();
|
||||||
@@ -511,7 +511,7 @@ export default {
|
|||||||
let params = {
|
let params = {
|
||||||
pageNo: state.currentPage || "",
|
pageNo: state.currentPage || "",
|
||||||
pageSize: state.pageSize || "",
|
pageSize: state.pageSize || "",
|
||||||
completionStatus: state.projectName || "",
|
completionStatus: state.completionStatus || "",
|
||||||
username: state.name || "",
|
username: state.name || "",
|
||||||
taskId: props.datasource.id || "",
|
taskId: props.datasource.id || "",
|
||||||
qualsLevelCode: state.qualsLevelCode || "",
|
qualsLevelCode: state.qualsLevelCode || "",
|
||||||
@@ -539,7 +539,7 @@ export default {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
selectProjectName,
|
selectCompletionStatus,
|
||||||
checkGrowthPer,
|
checkGrowthPer,
|
||||||
showassess,
|
showassess,
|
||||||
closeDrawer,
|
closeDrawer,
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ export default {
|
|||||||
const status = info.file.status;
|
const status = info.file.status;
|
||||||
if (status !== "uploading") {
|
if (status !== "uploading") {
|
||||||
console.log(info.file, info.fileList);
|
console.log(info.file, info.fileList);
|
||||||
|
state.addLoading = false;
|
||||||
}
|
}
|
||||||
if (status === "done") {
|
if (status === "done") {
|
||||||
console.log("上传成功返回的UUID", info.file.response.data);
|
console.log("上传成功返回的UUID", info.file.response.data);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
gutter="12"
|
gutter="12"
|
||||||
style="padding-left: 20px; margin-right: 0px"
|
style="padding-left: 20px; margin-right: 0px"
|
||||||
>
|
>
|
||||||
<!-- <a-col>
|
<a-col>
|
||||||
<a-form-item title="归属组织" style="min-width: 170px">
|
<a-form-item title="归属组织" style="min-width: 170px">
|
||||||
<div class="select in">
|
<div class="select in">
|
||||||
<OrgClass
|
<OrgClass
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
></a-select>
|
></a-select>
|
||||||
</div>
|
</div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col> -->
|
</a-col>
|
||||||
<a-col>
|
<a-col>
|
||||||
<a-form-item title="状态" style="width: 193px">
|
<a-form-item title="状态" style="width: 193px">
|
||||||
<div class="select in">
|
<div class="select in">
|
||||||
@@ -124,9 +124,8 @@
|
|||||||
type="flex"
|
type="flex"
|
||||||
gutter="12"
|
gutter="12"
|
||||||
style="padding-left: 20px; margin-right: 0px; position: relative"
|
style="padding-left: 20px; margin-right: 0px; position: relative"
|
||||||
v-if="checkGrowthPer(permissions)"
|
|
||||||
>
|
>
|
||||||
<a-col :span="1.5">
|
<a-col :span="1.5" v-if="checkMenu('growthStudentAdd')">
|
||||||
<a-button
|
<a-button
|
||||||
@click="addSut"
|
@click="addSut"
|
||||||
class="cus-btn"
|
class="cus-btn"
|
||||||
@@ -141,7 +140,7 @@
|
|||||||
</a-button>
|
</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 新加导入学员 批量换组 导出学习信息 -->
|
<!-- 新加导入学员 批量换组 导出学习信息 -->
|
||||||
<a-col :span="1.5">
|
<a-col :span="1.5" v-if="checkMenu('growthStudentImport')">
|
||||||
<a-button
|
<a-button
|
||||||
class="cus-btn"
|
class="cus-btn"
|
||||||
@click="showImpStu"
|
@click="showImpStu"
|
||||||
@@ -155,7 +154,7 @@
|
|||||||
导入学员
|
导入学员
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="1.5">
|
<a-col :span="1.5" v-if="checkMenu('growthStudentDelete')">
|
||||||
<a-button
|
<a-button
|
||||||
class="cus-btn"
|
class="cus-btn"
|
||||||
@click="bathDel"
|
@click="bathDel"
|
||||||
@@ -169,7 +168,7 @@
|
|||||||
批量删除学员
|
批量删除学员
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="1.5">
|
<a-col :span="1.5" v-if="checkMenu('growthStudentExport')">
|
||||||
<a-button
|
<a-button
|
||||||
class="cus-btn"
|
class="cus-btn"
|
||||||
@click="exportTaskStu"
|
@click="exportTaskStu"
|
||||||
@@ -249,6 +248,7 @@
|
|||||||
style="display: flex; justify-content: center; align-items: center"
|
style="display: flex; justify-content: center; align-items: center"
|
||||||
>
|
>
|
||||||
<a-button
|
<a-button
|
||||||
|
v-if="checkMenu('growthStudentLookInfo')"
|
||||||
@click="seeStudent(record)"
|
@click="seeStudent(record)"
|
||||||
type="link"
|
type="link"
|
||||||
style="margin-right: 16px"
|
style="margin-right: 16px"
|
||||||
@@ -256,7 +256,7 @@
|
|||||||
查看
|
查看
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
v-if="checkGrowthPer(permissions)"
|
v-if="checkMenu('growthStudentDelete')"
|
||||||
:disabled="record.isLeader === '1'"
|
:disabled="record.isLeader === '1'"
|
||||||
@click="del(record)"
|
@click="del(record)"
|
||||||
type="link"
|
type="link"
|
||||||
@@ -291,6 +291,7 @@
|
|||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import { computed, defineProps, onMounted, ref, watch } from "vue";
|
import { computed, defineProps, onMounted, ref, watch } from "vue";
|
||||||
import { delStudentList, getStuPage } from "@/api/index1";
|
import { delStudentList, getStuPage } from "@/api/index1";
|
||||||
|
import { checkMenu } from "@/utils/utils";
|
||||||
import {
|
import {
|
||||||
getGrowStudent,
|
getGrowStudent,
|
||||||
delGrowStudent,
|
delGrowStudent,
|
||||||
@@ -523,7 +524,9 @@ function search() {
|
|||||||
function exportTaskStu() {
|
function exportTaskStu() {
|
||||||
window.open(
|
window.open(
|
||||||
buildUrl(
|
buildUrl(
|
||||||
`${process.env.VUE_APP_BOE_API_URL}${process.env.VUE_APP_BASE_API_GROWTH || ''}/professional/allocation/export`,
|
`${process.env.VUE_APP_BOE_API_URL}${
|
||||||
|
process.env.VUE_APP_BASE_API_GROWTH || ""
|
||||||
|
}/professional/allocation/export`,
|
||||||
tableParam.value
|
tableParam.value
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
record.completionStatus == 2 && checkGrowthPer(permissions)
|
record.completionStatus == 2 && checkMenu('growthStudentMarkComplete')
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<a-button type="link" @click="setPermissions(record)"
|
<a-button type="link" @click="setPermissions(record)"
|
||||||
@@ -150,6 +150,7 @@ import { getGrowStudentDetail, markComplete } from "@/api/growthpath";
|
|||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
import { TASK_TYPE } from "@/utils/constGrown";
|
import { TASK_TYPE } from "@/utils/constGrown";
|
||||||
import { checkGrowthPer } from "@/utils/utils";
|
import { checkGrowthPer } from "@/utils/utils";
|
||||||
|
import { checkMenu } from "@/utils/utils";
|
||||||
export default {
|
export default {
|
||||||
name: "SeeStu",
|
name: "SeeStu",
|
||||||
components: {},
|
components: {},
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ export default {
|
|||||||
const resetLearnPath = () => {
|
const resetLearnPath = () => {
|
||||||
state.username = null;
|
state.username = null;
|
||||||
state.searchdate = [];
|
state.searchdate = [];
|
||||||
|
state.startTime = "";
|
||||||
|
state.endTime = "";
|
||||||
state.pageNum = 1;
|
state.pageNum = 1;
|
||||||
getList();
|
getList();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,79 +30,92 @@ export const TASK_TYPE = {
|
|||||||
name: '在线',
|
name: '在线',
|
||||||
type: 1,
|
type: 1,
|
||||||
img: onLineImg,
|
img: onLineImg,
|
||||||
component: GrowthLineCourse
|
component: GrowthLineCourse,
|
||||||
|
permissionType:'growthTaskOnline',
|
||||||
},
|
},
|
||||||
2: {
|
2: {
|
||||||
name: '面授',
|
name: '面授',
|
||||||
type: 2,
|
type: 2,
|
||||||
img: faceCourseImg,
|
img: faceCourseImg,
|
||||||
component: GrowthFaceClass
|
component: GrowthFaceClass,
|
||||||
|
permissionType:'growthTaskFack',
|
||||||
},
|
},
|
||||||
3: {
|
3: {
|
||||||
name: '案例',
|
name: '案例',
|
||||||
type: 3,
|
type: 3,
|
||||||
img: caseImg,
|
img: caseImg,
|
||||||
component: GrowthCase
|
component: GrowthCase,
|
||||||
|
permissionType:'growthTaskCase',
|
||||||
},
|
},
|
||||||
4: {
|
4: {
|
||||||
name: '作业',
|
name: '作业',
|
||||||
type: 4,
|
type: 4,
|
||||||
img: workImg,
|
img: workImg,
|
||||||
component: GrowthHomework
|
component: GrowthHomework,
|
||||||
|
permissionType:'growthHomeworkTask',
|
||||||
},
|
},
|
||||||
5: {
|
5: {
|
||||||
name: '考试',
|
name: '考试',
|
||||||
type: 5,
|
type: 5,
|
||||||
img: exaImg,
|
img: exaImg,
|
||||||
component: GrowthExa
|
component: GrowthExa,
|
||||||
|
permissionType:'growthExaminationTask',
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
name: '直播',
|
name: '直播',
|
||||||
type: 6,
|
type: 6,
|
||||||
img: liveImg,
|
img: liveImg,
|
||||||
component: GrowthLive
|
component: GrowthLive,
|
||||||
|
permissionType:'growthLiveTask',
|
||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
name: '外链',
|
name: '外链',
|
||||||
type: 7,
|
type: 7,
|
||||||
img: linkImg,
|
img: linkImg,
|
||||||
component: GrowthRef
|
component: GrowthRef,
|
||||||
|
permissionType:'growthLinkTask',
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
name: '讨论',
|
name: '讨论',
|
||||||
type: 8,
|
type: 8,
|
||||||
img: discussImg,
|
img: discussImg,
|
||||||
component: GrowthDiscuss
|
component: GrowthDiscuss,
|
||||||
|
permissionType:'growthDiscussTask',
|
||||||
},
|
},
|
||||||
9: {
|
9: {
|
||||||
name: '活动',
|
name: '活动',
|
||||||
type: 9,
|
type: 9,
|
||||||
img: activityImg,
|
img: activityImg,
|
||||||
component: GrowthActive
|
component: GrowthActive,
|
||||||
|
permissionType:'growthActivityTask',
|
||||||
},
|
},
|
||||||
10: {
|
10: {
|
||||||
name: '测评',
|
name: '测评',
|
||||||
type: 10,
|
type: 10,
|
||||||
img: testImg,
|
img: testImg,
|
||||||
component: GrowthEval
|
component: GrowthEval,
|
||||||
|
permissionType:'growthEvaluationTask',
|
||||||
},
|
},
|
||||||
11: {
|
11: {
|
||||||
name: '评估',
|
name: '评估',
|
||||||
type: 11,
|
type: 11,
|
||||||
img: evaImg,
|
img: evaImg,
|
||||||
component: GrowthInvist
|
component: GrowthInvist,
|
||||||
|
permissionType:'growthAssessTask',
|
||||||
},
|
},
|
||||||
12: {
|
12: {
|
||||||
name: '投票',
|
name: '投票',
|
||||||
type: 12,
|
type: 12,
|
||||||
img: voteImg,
|
img: voteImg,
|
||||||
component: GrowthVote
|
component: GrowthVote,
|
||||||
|
permissionType:'growthVoteTask',
|
||||||
},
|
},
|
||||||
13: {
|
13: {
|
||||||
name: '项目',
|
name: '项目',
|
||||||
type: 13,
|
type: 13,
|
||||||
img: projectImg,
|
img: projectImg,
|
||||||
component: GrowthProject
|
component: GrowthProject,
|
||||||
|
permissionType:'growthProjectTask',
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -45,27 +45,29 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="handler">
|
<div class="handler">
|
||||||
<div class="item" v-for="(value, key) in TASK_TYPE" :key="key">
|
<div class="item" v-for="(value, key) in TASK_TYPE" :key="key">
|
||||||
<component
|
<template v-if="checkMenu(value.permissionType)">
|
||||||
:ref="(el) => (courseRef['el' + key] = el)"
|
<component
|
||||||
v-model:taskList="listDatas"
|
:ref="(el) => (courseRef['el' + key] = el)"
|
||||||
:is="value.component"
|
v-model:taskList="listDatas"
|
||||||
:growId="growId"
|
:is="value.component"
|
||||||
:id="growId"
|
:growId="growId"
|
||||||
:type="value.type"
|
:id="growId"
|
||||||
:activeKey="activeKey"
|
:type="value.type"
|
||||||
:infoType="2"
|
:activeKey="activeKey"
|
||||||
@dataListUp="dataListUp"
|
:infoType="2"
|
||||||
@refresh="getListTask(1)"
|
@dataListUp="dataListUp"
|
||||||
>
|
@refresh="getListTask(1)"
|
||||||
<div class="itcon">
|
>
|
||||||
<div class="img">
|
<div class="itcon">
|
||||||
<img :src="value.img" />
|
<div class="img">
|
||||||
|
<img :src="value.img" />
|
||||||
|
</div>
|
||||||
|
<div class="text">{{ value.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text">{{ value.name }}</div>
|
</component>
|
||||||
</div>
|
<div></div>
|
||||||
</component>
|
<div class="lin"></div>
|
||||||
<div></div>
|
</template>
|
||||||
<div class="lin"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -83,7 +85,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="listDatas.length != 0 && !basicData.isPublished"
|
v-if="
|
||||||
|
listDatas.length != 0 &&
|
||||||
|
!basicData.isPublished &&
|
||||||
|
checkMenu('growthTaskDelete')
|
||||||
|
"
|
||||||
class="btn btn2"
|
class="btn btn2"
|
||||||
@click="confirmDelTask()"
|
@click="confirmDelTask()"
|
||||||
>
|
>
|
||||||
@@ -200,6 +206,7 @@
|
|||||||
<div class="opacation">
|
<div class="opacation">
|
||||||
<template v-if="element.status == '0'">
|
<template v-if="element.status == '0'">
|
||||||
<span
|
<span
|
||||||
|
v-if="checkMenu('growthTaslRelease')"
|
||||||
style="color: #4ea6ff; cursor: pointer"
|
style="color: #4ea6ff; cursor: pointer"
|
||||||
@click="published(element, index)"
|
@click="published(element, index)"
|
||||||
>
|
>
|
||||||
@@ -209,19 +216,21 @@
|
|||||||
<span
|
<span
|
||||||
style="color: #4ea6ff; cursor: pointer"
|
style="color: #4ea6ff; cursor: pointer"
|
||||||
@click="editTaskForType(element, index)"
|
@click="editTaskForType(element, index)"
|
||||||
|
v-if="checkMenu('growthTaskEdit')"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
style="color: #4ea6ff; cursor: pointer"
|
style="color: #4ea6ff; cursor: pointer"
|
||||||
@click="confirmDelTask(element, index)"
|
@click="confirmDelTask(element, index)"
|
||||||
|
v-if="checkMenu('growthTaskDelete')"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span
|
<span
|
||||||
v-if="element.status == '1'"
|
v-if="element.status == '1' && checkMenu('growthTaskWithdraw')"
|
||||||
style="color: #4ea6ff; cursor: pointer"
|
style="color: #4ea6ff; cursor: pointer"
|
||||||
@click="withdraw(element, index)"
|
@click="withdraw(element, index)"
|
||||||
>
|
>
|
||||||
@@ -285,6 +294,7 @@ import { message } from "ant-design-vue";
|
|||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import { TASK_TYPE } from "@/utils/constGrown";
|
import { TASK_TYPE } from "@/utils/constGrown";
|
||||||
import dialog from "@/utils/dialog";
|
import dialog from "@/utils/dialog";
|
||||||
|
import { checkMenu } from "@/utils/utils";
|
||||||
import {
|
import {
|
||||||
getBasicInfo,
|
getBasicInfo,
|
||||||
notPublishedTaskList,
|
notPublishedTaskList,
|
||||||
|
|||||||
@@ -39,12 +39,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btns">
|
<template v-if="checkMenu('growthAdd')">
|
||||||
<div class="btn btn3" @click="handleOut">
|
<div class="btns">
|
||||||
<div class="search"></div>
|
<div class="btn btn3" @click="handleOut">
|
||||||
<div class="btnText">创建必修</div>
|
<div class="search"></div>
|
||||||
|
<div class="btnText">创建必修</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
<div class="grow_con">
|
<div class="grow_con">
|
||||||
<div class="grow_list">
|
<div class="grow_list">
|
||||||
<div class="grow_table">
|
<div class="grow_table">
|
||||||
@@ -59,18 +61,22 @@
|
|||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
class="table_btn"
|
class="table_btn"
|
||||||
v-if="!record.isPublished && checkGrowthPer(record.permissions)"
|
v-if="!record.isPublished && checkMenu('growthRelease')"
|
||||||
@click="releaseLearnPath(record)"
|
@click="releaseLearnPath(record)"
|
||||||
>发布</a-button
|
>发布</a-button
|
||||||
>
|
>
|
||||||
<a-button
|
<a-button
|
||||||
v-if="checkGrowthPer(record.permissions)"
|
v-if="checkMenu('growthEdit')"
|
||||||
type="link"
|
type="link"
|
||||||
class="table_btn"
|
class="table_btn"
|
||||||
@click="editPath(record)"
|
@click="editPath(record)"
|
||||||
>编辑</a-button
|
>编辑</a-button
|
||||||
>
|
>
|
||||||
<a-button type="link" class="table_btn" @click="manage(record)"
|
<a-button
|
||||||
|
type="link"
|
||||||
|
v-if="checkMenu('growthManage')"
|
||||||
|
class="table_btn"
|
||||||
|
@click="manage(record)"
|
||||||
>管理</a-button
|
>管理</a-button
|
||||||
>
|
>
|
||||||
<!-- <DropDown v-if="record?.permissions?.includes('17')" value="授权">
|
<!-- <DropDown v-if="record?.permissions?.includes('17')" value="授权">
|
||||||
@@ -96,20 +102,28 @@
|
|||||||
<a-menu>
|
<a-menu>
|
||||||
<a-menu-item
|
<a-menu-item
|
||||||
key="1"
|
key="1"
|
||||||
v-if="
|
v-if="record.isPublished && checkMenu('growthRevoke')"
|
||||||
record.isPublished && checkGrowthPer(record.permissions)
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<a-button type="link" @click="withdraw(record)">
|
<a-button type="link" @click="withdraw(record)">
|
||||||
撤回
|
撤回
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="3">
|
<a-menu-item
|
||||||
|
key="3"
|
||||||
|
v-if="
|
||||||
|
record.isPublished &&
|
||||||
|
checkMenu('growthModifyDiscipline')
|
||||||
|
"
|
||||||
|
>
|
||||||
<a-button type="link" @click="updateList(record)">
|
<a-button type="link" @click="updateList(record)">
|
||||||
修改记录
|
修改记录
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<template v-if="record.dataSource === '2'">
|
<template
|
||||||
|
v-if="
|
||||||
|
record.dataSource === '2' && checkMenu('growthDelete')
|
||||||
|
"
|
||||||
|
>
|
||||||
<a-menu-item key="4">
|
<a-menu-item key="4">
|
||||||
<a-button type="link" @click="delData(record)">
|
<a-button type="link" @click="delData(record)">
|
||||||
删除
|
删除
|
||||||
@@ -397,6 +411,7 @@ import CommonStudent from "@/components/growthpath/GrowthCommonStudent";
|
|||||||
import TableModelStudent from "@/components/growthpath/GrowthTableModel";
|
import TableModelStudent from "@/components/growthpath/GrowthTableModel";
|
||||||
import UpdateRecord from "@/components/growthpath/UpdateRecord";
|
import UpdateRecord from "@/components/growthpath/UpdateRecord";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
|
import { checkMenu } from "@/utils/utils";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
listData,
|
listData,
|
||||||
@@ -451,6 +466,7 @@ export default {
|
|||||||
statusPostCreate: [],
|
statusPostCreate: [],
|
||||||
statusRankCreate: [],
|
statusRankCreate: [],
|
||||||
courseNum: "",
|
courseNum: "",
|
||||||
|
isPublished: false,
|
||||||
matStudens: "",
|
matStudens: "",
|
||||||
elePublishedNum: 0, // 选修发布数量
|
elePublishedNum: 0, // 选修发布数量
|
||||||
pathWays: "",
|
pathWays: "",
|
||||||
@@ -534,7 +550,9 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return `${record.stdPositionName}(${record.stdPosition})`;
|
return record.stdPosition
|
||||||
|
? `${record.stdPositionName}(${record.stdPosition})`
|
||||||
|
: `${record.stdPositionName}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -646,6 +664,7 @@ export default {
|
|||||||
state.template = record.template;
|
state.template = record.template;
|
||||||
state.matchRules = record.matchRules || "1";
|
state.matchRules = record.matchRules || "1";
|
||||||
state.bg_check = true;
|
state.bg_check = true;
|
||||||
|
state.isPublished = record.isPublished;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 切换匹配学员方式
|
// 切换匹配学员方式
|
||||||
@@ -666,11 +685,14 @@ export default {
|
|||||||
if (state.courseNum !== 0 && !state.courseNum) {
|
if (state.courseNum !== 0 && !state.courseNum) {
|
||||||
return message.error("请输入完成选修数量");
|
return message.error("请输入完成选修数量");
|
||||||
}
|
}
|
||||||
if (state.courseNum > state.elePublishedNum) {
|
if (state.editId && state.isPublished) {
|
||||||
message.warning("完成选修数量不能大于已发布的选修数量");
|
if (state.courseNum > state.elePublishedNum) {
|
||||||
state.courseNum = state.elePublishedNum;
|
message.warning("完成选修数量不能大于已发布的选修数量");
|
||||||
return;
|
state.courseNum = state.elePublishedNum;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
stdPositionDesr: state.statusPosts,
|
stdPositionDesr: state.statusPosts,
|
||||||
qualsLevelDesr: state.statusOffices,
|
qualsLevelDesr: state.statusOffices,
|
||||||
@@ -723,6 +745,7 @@ export default {
|
|||||||
state.bg_check = false;
|
state.bg_check = false;
|
||||||
state.editId = null;
|
state.editId = null;
|
||||||
state.band = "";
|
state.band = "";
|
||||||
|
state.isPublished = false;
|
||||||
};
|
};
|
||||||
// 创建路径
|
// 创建路径
|
||||||
// 管理
|
// 管理
|
||||||
@@ -776,6 +799,7 @@ export default {
|
|||||||
handleOut,
|
handleOut,
|
||||||
releaseLearnPath,
|
releaseLearnPath,
|
||||||
delData,
|
delData,
|
||||||
|
checkMenu,
|
||||||
UpdateRecordRef,
|
UpdateRecordRef,
|
||||||
matchRulesChange,
|
matchRulesChange,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -13,31 +13,40 @@
|
|||||||
<div class="fort">创建时间:{{ basicData?.createTime }}</div>
|
<div class="fort">创建时间:{{ basicData?.createTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div
|
<template v-if="basicData.isPublished && checkMenu('growthRevoke')">
|
||||||
class="pubIcon"
|
<div class="pubIcon" @click="resize()">
|
||||||
v-if="checkGrowthPer(preId)"
|
<img class="img2" src="../../assets/images/leveladd/pub.png" />
|
||||||
@click="basicData.isPublished ? resize() : releaseLearnPath()"
|
<!-- 已发布的显示 -->
|
||||||
>
|
<div
|
||||||
<img
|
class="pub"
|
||||||
v-if="!basicData.isPublished"
|
style="width: 28px"
|
||||||
class="img2"
|
:style="{
|
||||||
src="../../assets/images/growthpath/push.png"
|
color: '#ffb64e',
|
||||||
/>
|
}"
|
||||||
<img
|
>
|
||||||
v-else
|
撤回
|
||||||
class="img2"
|
</div>
|
||||||
src="../../assets/images/leveladd/pub.png"
|
|
||||||
/>
|
|
||||||
<!-- 已发布的显示 -->
|
|
||||||
<div
|
|
||||||
class="pub"
|
|
||||||
style="width: 28px"
|
|
||||||
:style="{ color: !basicData.isPublished ? '#31AF0D' : '#ffb64e' }"
|
|
||||||
>
|
|
||||||
{{ basicData?.isPublished ? "撤回" : "发布" }}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="line"></div>
|
||||||
<div class="line"></div>
|
</template>
|
||||||
|
<template v-if="!basicData.isPublished && checkMenu('growthRelease')">
|
||||||
|
<div class="pubIcon" @click="releaseLearnPath()">
|
||||||
|
<img class="img2" src="../../assets/images/growthpath/push.png" />
|
||||||
|
|
||||||
|
<!-- 已发布的显示 -->
|
||||||
|
<div
|
||||||
|
class="pub"
|
||||||
|
style="width: 28px"
|
||||||
|
:style="{
|
||||||
|
color: '#31AF0D',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
发布
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="line"></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<router-link to="/growthpath"
|
<router-link to="/growthpath"
|
||||||
><div style="display: flex">
|
><div style="display: flex">
|
||||||
<img class="img2" src="../../assets/images/leveladd/back.png" />
|
<img class="img2" src="../../assets/images/leveladd/back.png" />
|
||||||
@@ -58,7 +67,7 @@
|
|||||||
<a-tab-pane key="1" tab="概览" style="position: relative">
|
<a-tab-pane key="1" tab="概览" style="position: relative">
|
||||||
<!-- 概览(无数据) -->
|
<!-- 概览(无数据) -->
|
||||||
<div v-if="!basicData.publishedTaskNum" style="display: flex">
|
<div v-if="!basicData.publishedTaskNum" style="display: flex">
|
||||||
<div class="secondadd" v-if="checkGrowthPer(preId)">
|
<div class="secondadd" v-if="checkMenu('growthTaskAdd')">
|
||||||
<div style="width: 368px; height: 22px" class="addtaskmain">
|
<div style="width: 368px; height: 22px" class="addtaskmain">
|
||||||
快速创建专业力必修任务详情
|
快速创建专业力必修任务详情
|
||||||
</div>
|
</div>
|
||||||
@@ -210,7 +219,7 @@
|
|||||||
},
|
},
|
||||||
}"
|
}"
|
||||||
class="editright"
|
class="editright"
|
||||||
v-if="checkGrowthPer(preId) && listTaskData.length"
|
v-if="checkMenu('growthTaskEdit') && listTaskData.length"
|
||||||
>
|
>
|
||||||
<span class="editextb">编辑任务</span>
|
<span class="editextb">编辑任务</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
@@ -224,13 +233,15 @@
|
|||||||
<a-radio-button value="1">必修</a-radio-button>
|
<a-radio-button value="1">必修</a-radio-button>
|
||||||
<a-radio-button value="2">选修</a-radio-button>
|
<a-radio-button value="2">选修</a-radio-button>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
<div class="switch">
|
<template v-if="checkMenu('growthSetLearningOrder')">
|
||||||
<a-switch
|
<div class="switch">
|
||||||
@change="sortSwitchChange"
|
<a-switch
|
||||||
v-model:checked="basicData.sortSwitch"
|
@change="sortSwitchChange"
|
||||||
/>
|
v-model:checked="basicData.sortSwitch"
|
||||||
<div style="margin-left: 5px">是否按顺序学习</div>
|
/>
|
||||||
</div>
|
<div style="margin-left: 5px">是否按顺序学习</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<!-- 无数据显示快速创建 -->
|
<!-- 无数据显示快速创建 -->
|
||||||
<div v-if="!listTaskData.length" style="margin-top: 20px">
|
<div v-if="!listTaskData.length" style="margin-top: 20px">
|
||||||
@@ -244,7 +255,7 @@
|
|||||||
<div
|
<div
|
||||||
@click="addTask('/editingtasks')"
|
@click="addTask('/editingtasks')"
|
||||||
class="taskbox"
|
class="taskbox"
|
||||||
v-if="checkGrowthPer(preId)"
|
v-if="checkMenu('growthTaskEdit')"
|
||||||
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
||||||
>
|
>
|
||||||
<div class="leftt">
|
<div class="leftt">
|
||||||
@@ -325,9 +336,12 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div
|
<div
|
||||||
class="first"
|
class="first"
|
||||||
v-if="checkGrowthPer(preId) && courseType == 1"
|
v-if="
|
||||||
|
checkMenu('growthPreviousLevelTask') &&
|
||||||
|
courseType == 1
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<template v-if="element.superiorTaskName">
|
<template v-if="element.superiorTaskName">
|
||||||
<div style="margin-right: 8px">
|
<div style="margin-right: 8px">
|
||||||
@@ -347,15 +361,28 @@
|
|||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="operations" v-if="checkGrowthPer(preId)">
|
<div
|
||||||
|
class="operations"
|
||||||
|
v-if="
|
||||||
|
checkMenu('growthEvaluateQRCode') ||
|
||||||
|
checkMenu('growthSignQRCode') ||
|
||||||
|
checkMenu('growthFaceTeaching') ||
|
||||||
|
checkMenu('growthFaceStudent') ||
|
||||||
|
checkMenu('growthQRCode') ||
|
||||||
|
checkMenu('growthTaskManage')
|
||||||
|
"
|
||||||
|
>
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
element.assessmentIds.length > 1 &&
|
element.assessmentIds.length > 1 &&
|
||||||
element.taskType == 2
|
element.taskType == 2
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div class="operations_dropdown">
|
<div
|
||||||
|
class="operations_dropdown"
|
||||||
|
v-if="checkMenu('growthEvaluateQRCode')"
|
||||||
|
>
|
||||||
<a-dropdown
|
<a-dropdown
|
||||||
:getPopupContainer="
|
:getPopupContainer="
|
||||||
(triggerNode) => triggerNode.parentNode
|
(triggerNode) => triggerNode.parentNode
|
||||||
@@ -386,7 +413,10 @@
|
|||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<div class="operations_dropdown">
|
<div
|
||||||
|
class="operations_dropdown"
|
||||||
|
v-if="checkMenu('growthSignQRCode')"
|
||||||
|
>
|
||||||
<a-dropdown
|
<a-dropdown
|
||||||
:getPopupContainer="
|
:getPopupContainer="
|
||||||
(triggerNode) => triggerNode.parentNode
|
(triggerNode) => triggerNode.parentNode
|
||||||
@@ -418,6 +448,19 @@
|
|||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template
|
||||||
|
v-if="
|
||||||
|
(element.taskType == 6 || element.taskType == 9) &&
|
||||||
|
checkMenu('growthWorkAttendance')
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="operation"
|
||||||
|
@click="handlerWorkAttendance(element)"
|
||||||
|
>
|
||||||
|
考勤
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
@@ -425,7 +468,10 @@
|
|||||||
.length == 1 && element.taskType == 2
|
.length == 1 && element.taskType == 2
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div class="operations_dropdown">
|
<div
|
||||||
|
class="operations_dropdown"
|
||||||
|
v-if="checkMenu('growthEvaluateQRCode')"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
class="ant-dropdown-link"
|
class="ant-dropdown-link"
|
||||||
@click="qrcodeAssement(element)"
|
@click="qrcodeAssement(element)"
|
||||||
@@ -433,7 +479,10 @@
|
|||||||
评估二维码
|
评估二维码
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="operations_dropdown">
|
<div
|
||||||
|
class="operations_dropdown"
|
||||||
|
v-if="checkMenu('growthSignQRCode')"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
class="ant-dropdown-link"
|
class="ant-dropdown-link"
|
||||||
@click="qrcodeVisible(element)"
|
@click="qrcodeVisible(element)"
|
||||||
@@ -445,12 +494,14 @@
|
|||||||
|
|
||||||
<template v-if="element.taskType == 2">
|
<template v-if="element.taskType == 2">
|
||||||
<div
|
<div
|
||||||
|
v-if="checkMenu('growthFaceTeaching')"
|
||||||
class="operation"
|
class="operation"
|
||||||
@click="openCourse(element, index)"
|
@click="openCourse(element, index)"
|
||||||
>
|
>
|
||||||
开课
|
开课
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
v-if="checkMenu('growthFaceStudent')"
|
||||||
class="operation"
|
class="operation"
|
||||||
@click="showFS(element, index)"
|
@click="showFS(element, index)"
|
||||||
>
|
>
|
||||||
@@ -458,7 +509,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-if="element.taskType != 2">
|
<template
|
||||||
|
v-if="
|
||||||
|
element.taskType != 2 && checkMenu('growthQRCode')
|
||||||
|
"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="operation"
|
class="operation"
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
@@ -469,6 +524,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<div
|
<div
|
||||||
class="operation"
|
class="operation"
|
||||||
|
v-if="checkMenu('growthTaskManage')"
|
||||||
style="cursor: pointer; margin-right: 35px"
|
style="cursor: pointer; margin-right: 35px"
|
||||||
@click="
|
@click="
|
||||||
element.taskType == 2
|
element.taskType == 2
|
||||||
@@ -569,6 +625,11 @@
|
|||||||
index="0"
|
index="0"
|
||||||
type="课程二维码"
|
type="课程二维码"
|
||||||
/>
|
/>
|
||||||
|
<!-- 考勤 -->
|
||||||
|
<GrowthActiveAttendance
|
||||||
|
v-model:workAttendanceVisible="workAttendanceVisible"
|
||||||
|
:datasource="workAttendanceData"
|
||||||
|
/>
|
||||||
<!-- 二维码弹窗 -->
|
<!-- 二维码弹窗 -->
|
||||||
<!-- 面授课开课弹框 -->
|
<!-- 面授课开课弹框 -->
|
||||||
<GrowthOpenCourse ref="coursePlanRef" :type="4" />
|
<GrowthOpenCourse ref="coursePlanRef" :type="4" />
|
||||||
@@ -669,6 +730,8 @@ import { DownOutlined, CloseCircleOutlined } from "@ant-design/icons-vue";
|
|||||||
import GrowthFaceTaskManage from "../../components/growthpath/GrowthFaceTaskManage";
|
import GrowthFaceTaskManage from "../../components/growthpath/GrowthFaceTaskManage";
|
||||||
import GrowthHomeworkManage from "@/components/growthpath/GrowthHomeworkManage";
|
import GrowthHomeworkManage from "@/components/growthpath/GrowthHomeworkManage";
|
||||||
import { courseData } from "@/api/index1";
|
import { courseData } from "@/api/index1";
|
||||||
|
import { checkMenu } from "@/utils/utils";
|
||||||
|
import GrowthActiveAttendance from "@/components/growthpath/GrowthActiveAttendance";
|
||||||
import {
|
import {
|
||||||
getOverview,
|
getOverview,
|
||||||
getBasicInfo,
|
getBasicInfo,
|
||||||
@@ -700,6 +763,7 @@ export default {
|
|||||||
GrowthFaceTaskManage,
|
GrowthFaceTaskManage,
|
||||||
GrowthOpenCourse,
|
GrowthOpenCourse,
|
||||||
DownOutlined,
|
DownOutlined,
|
||||||
|
GrowthActiveAttendance,
|
||||||
CloseCircleOutlined,
|
CloseCircleOutlined,
|
||||||
GrowthFaceStu,
|
GrowthFaceStu,
|
||||||
},
|
},
|
||||||
@@ -718,6 +782,9 @@ export default {
|
|||||||
onlineVisible: false,
|
onlineVisible: false,
|
||||||
setSuperiorsVisible: false,
|
setSuperiorsVisible: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
|
// 考勤
|
||||||
|
workAttendanceVisible: false,
|
||||||
|
workAttendanceData: {},
|
||||||
pageSize: 99999,
|
pageSize: 99999,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
spinning: false,
|
spinning: false,
|
||||||
@@ -787,7 +854,11 @@ export default {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
// 考勤
|
||||||
|
const handlerWorkAttendance = (data) => {
|
||||||
|
state.workAttendanceVisible = true;
|
||||||
|
state.workAttendanceData = data;
|
||||||
|
};
|
||||||
// 开启绑定上级任务的弹窗
|
// 开启绑定上级任务的弹窗
|
||||||
const setSuperiorsActive = ref(null);
|
const setSuperiorsActive = ref(null);
|
||||||
const handlerSuperiors = (element) => {
|
const handlerSuperiors = (element) => {
|
||||||
@@ -1278,6 +1349,7 @@ export default {
|
|||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
stuRef,
|
stuRef,
|
||||||
headers,
|
headers,
|
||||||
|
checkMenu,
|
||||||
coursePlanRef,
|
coursePlanRef,
|
||||||
changeTabs,
|
changeTabs,
|
||||||
resize,
|
resize,
|
||||||
@@ -1302,6 +1374,7 @@ export default {
|
|||||||
handleMenuClick,
|
handleMenuClick,
|
||||||
qrcodeVisible,
|
qrcodeVisible,
|
||||||
handlerSuperiors,
|
handlerSuperiors,
|
||||||
|
handlerWorkAttendance,
|
||||||
showFS,
|
showFS,
|
||||||
qrCodeItems,
|
qrCodeItems,
|
||||||
visibleEwm,
|
visibleEwm,
|
||||||
@@ -2072,8 +2145,9 @@ export default {
|
|||||||
|
|
||||||
.operations {
|
.operations {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 460px;
|
width: 260px;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
flex-wrap: wrap;
|
||||||
.operation {
|
.operation {
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|||||||
@@ -18,15 +18,16 @@ module.exports = defineConfig({
|
|||||||
overlay: false,// 解决代码抛出异常
|
overlay: false,// 解决代码抛出异常
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
// "/professional": {
|
"/professional": {
|
||||||
// target: 'http://192.168.143.97:32002',
|
target: 'http://192.168.68.211:32002',
|
||||||
// // target: 'http://192.168.50.195:32002',
|
// target: 'http://192.168.50.195:32002',
|
||||||
// changeOrigin: true,
|
// target: 'http://192.168.86.195:32002',
|
||||||
// },
|
|
||||||
"/growth": {
|
|
||||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
|
// "/growth": {
|
||||||
|
// target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||||
|
// changeOrigin: true,
|
||||||
|
// },
|
||||||
"/manageApi": {
|
"/manageApi": {
|
||||||
target: 'https:' + process.env.VUE_APP_PROXY_URL,
|
target: 'https:' + process.env.VUE_APP_PROXY_URL,
|
||||||
changeOrigin: true, //表示是否改变原域名
|
changeOrigin: true, //表示是否改变原域名
|
||||||
|
|||||||
Reference in New Issue
Block a user