mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
feat:修改版本
This commit is contained in:
@@ -44,7 +44,7 @@ export default defineComponent({
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const isLogin = ref(false);
|
const isLogin = ref(false);
|
||||||
// console.log("router", router.getRoutes(), route);
|
// console.log("router", router.getRoutes(), route);
|
||||||
console.log("版本0.9.19------------");
|
console.log("版本0.9.20------------");
|
||||||
const routes = computed(() => {
|
const routes = computed(() => {
|
||||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-12-20 17:00:37
|
* @Date: 2022-12-20 17:00:37
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-20 17:08:12
|
* @LastEditTime: 2022-12-20 17:59:40
|
||||||
* @FilePath: /fe-manage/src/components/student/ChangeLevelModal.vue
|
* @FilePath: /fe-manage/src/components/student/ChangeLevelModal.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mid">
|
<div class="mid">
|
||||||
<div class="inher">
|
<div class="inher">
|
||||||
<div class="cur">当前关卡:关卡2</div>
|
<!-- <div class="cur">当前关卡:关卡2</div> -->
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="curLevel"
|
v-model:value="curLevel"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!-- eslint-disable vue/no-parsing-error -->
|
<!-- eslint-disable vue/no-parsing-error -->
|
||||||
<!-- eslint-disable vue/require-v-for-key -->
|
<!-- eslint-disable vue/require-v-for-key -->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="CommonStudent">
|
||||||
<a-drawer
|
<a-drawer
|
||||||
:visible="visiable"
|
:visible="visiable"
|
||||||
class="drawerStyle ProjCheckship"
|
class="drawerStyle ProjCheckship"
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<div class="drawerMain" id="ProjCheckship">
|
<div class="drawerMain" id="ProjCheckship">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="headerTitle">
|
<div class="headerTitle">
|
||||||
{{ {1: '添加学员', 2: '添加学员', 3: '添加学员'}[type] || '' }}
|
{{ { 1: "添加学员", 2: "添加学员", 3: "添加学员" }[type] || "" }}
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
style="width: 29px; height: 29px; cursor: pointer"
|
style="width: 29px; height: 29px; cursor: pointer"
|
||||||
@@ -19,8 +19,10 @@
|
|||||||
@click="closeDrawer"
|
@click="closeDrawer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:100%;display: grid;grid-template-columns: 750px auto;">
|
<div
|
||||||
<div class="tabs" style="min-height:800px;" >
|
style="width: 100%; display: grid; grid-template-columns: 750px auto"
|
||||||
|
>
|
||||||
|
<div class="tabs" style="min-height: 800px">
|
||||||
<a-tabs v-model:activeKey="activeKey">
|
<a-tabs v-model:activeKey="activeKey">
|
||||||
<a-tab-pane :key="1" tab="快速选人">
|
<a-tab-pane :key="1" tab="快速选人">
|
||||||
<div :style="{ height: screenHeight - 235 + 'px' }">
|
<div :style="{ height: screenHeight - 235 + 'px' }">
|
||||||
@@ -31,18 +33,35 @@
|
|||||||
style="width: 270px; height: 40px; border-radius: 8px"
|
style="width: 270px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
/>
|
/>
|
||||||
<a-button type="primary" @click="onSearchStu" style="margin-left: 20px;border-radius: 4px">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
@click="onSearchStu"
|
||||||
|
style="margin-left: 20px; border-radius: 4px"
|
||||||
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<SearchOutlined />
|
<SearchOutlined />
|
||||||
</template>
|
</template>
|
||||||
搜索
|
搜索
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button @click="resetStu" style="margin-left: 20px;border-radius: 4px">重置</a-button>
|
<a-button
|
||||||
|
@click="resetStu"
|
||||||
|
style="margin-left: 20px; border-radius: 4px"
|
||||||
|
>重置</a-button
|
||||||
|
>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="chooseLeft" style="display: grid;grid-template-columns: 250px auto">
|
<div
|
||||||
<div :style="{ height: screenHeight - 180 + 'px' ,overflowY:'auto'}" style="border: 1px solid #f0f0f0; ;">
|
class="chooseLeft"
|
||||||
<div class="tree" style="margin: 10px 4px 220px 10px;">
|
style="display: grid; grid-template-columns: 250px auto"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
:style="{
|
||||||
|
height: screenHeight - 180 + 'px',
|
||||||
|
overflowY: 'auto',
|
||||||
|
}"
|
||||||
|
style="border: 1px solid #f0f0f0"
|
||||||
|
>
|
||||||
|
<div class="tree" style="margin: 10px 4px 220px 10px">
|
||||||
<a-tree
|
<a-tree
|
||||||
allow-clear
|
allow-clear
|
||||||
tree-default-expand-all
|
tree-default-expand-all
|
||||||
@@ -58,7 +77,13 @@
|
|||||||
</a-tree>
|
</a-tree>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tableBox tabb" style="margin: 0px 4px 120px 10px; border: 1px solid #f0f0f0;">
|
<div
|
||||||
|
class="tableBox tabb"
|
||||||
|
style="
|
||||||
|
margin: 0px 4px 120px 10px;
|
||||||
|
border: 1px solid #f0f0f0;
|
||||||
|
"
|
||||||
|
>
|
||||||
<a-table
|
<a-table
|
||||||
:columns="stuColumns"
|
:columns="stuColumns"
|
||||||
:data-source="stuData"
|
:data-source="stuData"
|
||||||
@@ -72,9 +97,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane :key="2" tab="添加组织">
|
<a-tab-pane :key="2" tab="添加组织">
|
||||||
<div
|
<div :style="{ height: screenHeight - 235 + 'px' }">
|
||||||
:style="{ height: screenHeight - 235 + 'px' }"
|
|
||||||
>
|
|
||||||
<div class="tab2">
|
<div class="tab2">
|
||||||
<a-form-item label="组织:">
|
<a-form-item label="组织:">
|
||||||
<a-input
|
<a-input
|
||||||
@@ -82,13 +105,21 @@
|
|||||||
style="width: 230px; height: 40px; border-radius: 8px"
|
style="width: 230px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入组织"
|
placeholder="请输入组织"
|
||||||
/>
|
/>
|
||||||
<a-button type="primary" @click="searchOrg" style="margin-left: 20px;border-radius: 4px">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
@click="searchOrg"
|
||||||
|
style="margin-left: 20px; border-radius: 4px"
|
||||||
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<SearchOutlined />
|
<SearchOutlined />
|
||||||
</template>
|
</template>
|
||||||
搜索
|
搜索
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button @click="resetOrg" style="margin-left: 20px;border-radius: 4px">重置</a-button>
|
<a-button
|
||||||
|
@click="resetOrg"
|
||||||
|
style="margin-left: 20px; border-radius: 4px"
|
||||||
|
>重置</a-button
|
||||||
|
>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="boeTree">
|
<div class="boeTree">
|
||||||
@@ -110,9 +141,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane :key="3" tab="受众关联">
|
<a-tab-pane :key="3" tab="受众关联">
|
||||||
<div
|
<div :style="{ height: screenHeight - 235 + 'px' }">
|
||||||
:style="{ height: screenHeight - 235 + 'px' }"
|
|
||||||
>
|
|
||||||
<div>
|
<div>
|
||||||
<a-form-item label="受众名称:">
|
<a-form-item label="受众名称:">
|
||||||
<a-input
|
<a-input
|
||||||
@@ -120,13 +149,21 @@
|
|||||||
style="width: 260px; height: 40px; border-radius: 8px"
|
style="width: 260px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入受众名称"
|
placeholder="请输入受众名称"
|
||||||
/>
|
/>
|
||||||
<a-button type="primary" @click="searchAudi" style="margin-left: 20px;border-radius: 4px">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
@click="searchAudi"
|
||||||
|
style="margin-left: 20px; border-radius: 4px"
|
||||||
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<SearchOutlined />
|
<SearchOutlined />
|
||||||
</template>
|
</template>
|
||||||
搜索
|
搜索
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button @click="resetAudienceInfo" style="margin-left: 20px;border-radius: 4px">重置</a-button>
|
<a-button
|
||||||
|
@click="resetAudienceInfo"
|
||||||
|
style="margin-left: 20px; border-radius: 4px"
|
||||||
|
>重置</a-button
|
||||||
|
>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="tableBox tabb">
|
<div class="tableBox tabb">
|
||||||
@@ -148,9 +185,7 @@
|
|||||||
<div class="onerow">
|
<div class="onerow">
|
||||||
<div class="onleft">
|
<div class="onleft">
|
||||||
<div class="already">已选</div>
|
<div class="already">已选</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="selecteds"
|
class="selecteds"
|
||||||
@@ -172,12 +207,20 @@
|
|||||||
<div class="ch" @click="stuDel(i)"></div>
|
<div class="ch" @click="stuDel(i)"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!person && selectsData.studentList.length >10" class="ifsw"><div @click="person = !person" class=“sw”>查看更多></div></div>
|
<div
|
||||||
<div v-if="person && selectsData.studentList.length >10" class="ifsw" ><div @click="person = !person" class="sw"> 收起< </div></div>
|
v-if="!person && selectsData.studentList.length > 10"
|
||||||
|
class="ifsw"
|
||||||
|
>
|
||||||
|
<div @click="person = !person" class="“sw”">查看更多></div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="person && selectsData.studentList.length > 10"
|
||||||
|
class="ifsw"
|
||||||
|
>
|
||||||
|
<div @click="person = !person" class="sw">收起<</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!--组织-->
|
<!--组织-->
|
||||||
<div class="dept">添加组织</div>
|
<div class="dept">添加组织</div>
|
||||||
@@ -195,13 +238,17 @@
|
|||||||
<div class="ch1" @click="orgDel(i)"></div>
|
<div class="ch1" @click="orgDel(i)"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!dept && selectsData.deptList.length >10" class="ifsw"><div @click="dept = !dept" class=“sw”>查看更多></div></div>
|
<div
|
||||||
<div v-if="dept && selectsData.deptList.length >10" class="ifsw" ><div @click="dept = !dept" class="sw"> 收起< </div></div>
|
v-if="!dept && selectsData.deptList.length > 10"
|
||||||
|
class="ifsw"
|
||||||
|
>
|
||||||
|
<div @click="dept = !dept" class="“sw”">查看更多></div>
|
||||||
|
</div>
|
||||||
|
<div v-if="dept && selectsData.deptList.length > 10" class="ifsw">
|
||||||
|
<div @click="dept = !dept" class="sw">收起<</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!--受众-->
|
<!--受众-->
|
||||||
<div class="group">受众关联</div>
|
<div class="group">受众关联</div>
|
||||||
@@ -219,14 +266,17 @@
|
|||||||
<div class="ch2" @click="AuditDel(i)"></div>
|
<div class="ch2" @click="AuditDel(i)"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!group && selectsData.groupList.length >10" class="ifsw"><div @click="group = !group" class=“sw”>查看更多></div></div>
|
<div
|
||||||
<div v-if="group && selectsData.groupList >10" class="ifsw" ><div @click="group = !group" class="sw"> 收起< </div></div>
|
v-if="!group && selectsData.groupList.length > 10"
|
||||||
|
class="ifsw"
|
||||||
|
>
|
||||||
|
<div @click="group = !group" class="“sw”">查看更多></div>
|
||||||
|
</div>
|
||||||
|
<div v-if="group && selectsData.groupList > 10" class="ifsw">
|
||||||
|
<div @click="group = !group" class="sw">收起<</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="padding:100px 0 0 20px;display: grid;grid-template-rows: auto auto auto;">
|
<!-- <div style="padding:100px 0 0 20px;display: grid;grid-template-rows: auto auto auto;">
|
||||||
@@ -274,14 +324,22 @@
|
|||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-modal v-model:visible="stageVisible" width="1000px" title="选择阶段" @ok="handleStageOk">
|
<a-modal
|
||||||
|
v-model:visible="stageVisible"
|
||||||
|
width="1000px"
|
||||||
|
title="选择阶段"
|
||||||
|
@ok="handleStageOk"
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
{{ type === 1 ? '选择阶段' : '选择关卡' }}
|
{{ type === 1 ? "选择阶段" : "选择关卡" }}
|
||||||
<a-select style="width: 150px" :placeholder="type===1?'选择阶段':'选择关卡'" v-model:value="selectsData.stageId"
|
<a-select
|
||||||
className="cus-select">
|
style="width: 150px"
|
||||||
<a-select-option v-for="(item,i) in stageIds" :key="i" :value="item.id">{{
|
:placeholder="type === 1 ? '选择阶段' : '选择关卡'"
|
||||||
item.name || '默认'
|
v-model:value="selectsData.stageId"
|
||||||
}}
|
className="cus-select"
|
||||||
|
>
|
||||||
|
<a-select-option v-for="(item, i) in stageIds" :key="i" :value="item.id"
|
||||||
|
>{{ item.name || "默认" }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</div>
|
</div>
|
||||||
@@ -295,45 +353,45 @@ import {AUDIENCE_LIST, ORG_LIST, USER_LIST} from "@/api/ThirdApi";
|
|||||||
import { saveStu } from "@/api/index1";
|
import { saveStu } from "@/api/index1";
|
||||||
|
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const emit = defineEmits({})
|
const emit = defineEmits({});
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
type: Number,
|
type: Number,
|
||||||
id: String,
|
id: String,
|
||||||
stage: {
|
stage: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => []
|
default: () => [],
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
const person =ref(false)
|
const person = ref(false);
|
||||||
const dept =ref(false)
|
const dept = ref(false);
|
||||||
const group =ref(false)
|
const group = ref(false);
|
||||||
const visiable = ref(false)
|
const visiable = ref(false);
|
||||||
const activeKey = ref(1)
|
const activeKey = ref(1);
|
||||||
const stageVisible = ref(false)
|
const stageVisible = ref(false);
|
||||||
const selectsData = ref({
|
const selectsData = ref({
|
||||||
stageId: '',
|
stageId: "",
|
||||||
studentList: [],
|
studentList: [],
|
||||||
deptList: [],
|
deptList: [],
|
||||||
groupList: []
|
groupList: [],
|
||||||
})
|
});
|
||||||
const nameSearch = ref({
|
const nameSearch = ref({
|
||||||
keyword: '',
|
keyword: "",
|
||||||
departId: null,
|
departId: null,
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10
|
pageSize: 10,
|
||||||
})
|
});
|
||||||
const audienceName = ref({
|
const audienceName = ref({
|
||||||
keyword: '',
|
keyword: "",
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10
|
pageSize: 10,
|
||||||
})
|
});
|
||||||
const searchOrgName = ref({
|
const searchOrgName = ref({
|
||||||
keyword: '',
|
keyword: "",
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10
|
pageSize: 10,
|
||||||
})
|
});
|
||||||
|
|
||||||
const stageIds = computed(() => props.stage)
|
const stageIds = computed(() => props.stage);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data: stuData,
|
data: stuData,
|
||||||
@@ -341,18 +399,18 @@ const {
|
|||||||
page: stuPageNo,
|
page: stuPageNo,
|
||||||
pageSize: stuPageSize,
|
pageSize: stuPageSize,
|
||||||
loading: stuLoading,
|
loading: stuLoading,
|
||||||
total: stuTotal
|
total: stuTotal,
|
||||||
} = useBoeApiPage(USER_LIST, nameSearch.value, {
|
} = useBoeApiPage(USER_LIST, nameSearch.value, {
|
||||||
init: false,
|
init: false,
|
||||||
result: res => res.result.userInfoList,
|
result: (res) => res.result.userInfoList,
|
||||||
totalPage: res => res.result.totalPage,
|
totalPage: (res) => res.result.totalPage,
|
||||||
total: res => res.result.totalElement
|
total: (res) => res.result.totalElement,
|
||||||
})
|
});
|
||||||
|
|
||||||
const {
|
const { data: orgData, fetch: searchOrg } = useBoeApi(
|
||||||
data: orgData,
|
ORG_LIST,
|
||||||
fetch: searchOrg,
|
searchOrgName.value
|
||||||
} = useBoeApi(ORG_LIST, searchOrgName.value)
|
);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data: audiData,
|
data: audiData,
|
||||||
@@ -360,13 +418,14 @@ const {
|
|||||||
page: audiPageNo,
|
page: audiPageNo,
|
||||||
pageSize: audiPageSize,
|
pageSize: audiPageSize,
|
||||||
loading: audiLoading,
|
loading: audiLoading,
|
||||||
total: audiTotal
|
total: audiTotal,
|
||||||
} = useBoeApiPage(AUDIENCE_LIST, audienceName.value, {
|
} = useBoeApiPage(AUDIENCE_LIST, audienceName.value, {
|
||||||
init: true,
|
init: true,
|
||||||
result: res => res.result.audienceList.map(e => ({...e, id: e.id + ''})),
|
result: (res) =>
|
||||||
totalPage: res => res.result.totalPage,
|
res.result.audienceList.map((e) => ({ ...e, id: e.id + "" })),
|
||||||
total: res => res.result.totalElement
|
totalPage: (res) => res.result.totalPage,
|
||||||
})
|
total: (res) => res.result.totalElement,
|
||||||
|
});
|
||||||
|
|
||||||
const stuColumns = ref([
|
const stuColumns = ref([
|
||||||
{
|
{
|
||||||
@@ -405,8 +464,9 @@ const stuColumns = ref([
|
|||||||
className: "h",
|
className: "h",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
])
|
]);
|
||||||
const audiColums = ref([{
|
const audiColums = ref([
|
||||||
|
{
|
||||||
title: "id",
|
title: "id",
|
||||||
dataIndex: "id",
|
dataIndex: "id",
|
||||||
key: "id",
|
key: "id",
|
||||||
@@ -439,52 +499,52 @@ const audiColums = ref([{
|
|||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
},
|
},
|
||||||
])
|
]);
|
||||||
const stuSelectKeys = ref([])
|
const stuSelectKeys = ref([]);
|
||||||
const orgSelectKeys = ref([])
|
const orgSelectKeys = ref([]);
|
||||||
const auditSelectKeys = ref([])
|
const auditSelectKeys = ref([]);
|
||||||
const screenHeight = ref(document.body.clientHeight)
|
const screenHeight = ref(document.body.clientHeight);
|
||||||
const stuRowSelection = computed(() => ({
|
const stuRowSelection = computed(() => ({
|
||||||
columnWidth: 20,
|
columnWidth: 20,
|
||||||
selectedRowKeys: stuSelectKeys.value,
|
selectedRowKeys: stuSelectKeys.value,
|
||||||
onChange: onStuSelectChange,
|
onChange: onStuSelectChange,
|
||||||
preserveSelectedRowKeys: true,
|
preserveSelectedRowKeys: true,
|
||||||
}))
|
}));
|
||||||
const orgRowSelection = computed(() => ({
|
const orgRowSelection = computed(() => ({
|
||||||
columnWidth: 20,
|
columnWidth: 20,
|
||||||
selectedRowKeys: orgSelectKeys.value,
|
selectedRowKeys: orgSelectKeys.value,
|
||||||
onChange: onOrgSelectChange,
|
onChange: onOrgSelectChange,
|
||||||
preserveSelectedRowKeys: true,
|
preserveSelectedRowKeys: true,
|
||||||
}))
|
}));
|
||||||
|
|
||||||
const stuPagination = computed(() => ({
|
const stuPagination = computed(() => ({
|
||||||
total: stuTotal.value,
|
total: stuTotal.value,
|
||||||
showSizeChanger: false,
|
showSizeChanger: false,
|
||||||
current: stuPageNo.value,
|
current: stuPageNo.value,
|
||||||
pageSize: stuPageSize.value,
|
pageSize: stuPageSize.value,
|
||||||
onChange: changePagination
|
onChange: changePagination,
|
||||||
}))
|
}));
|
||||||
|
|
||||||
const auditPagination = computed(() => ({
|
const auditPagination = computed(() => ({
|
||||||
total: audiTotal.value,
|
total: audiTotal.value,
|
||||||
showSizeChanger: false,
|
showSizeChanger: false,
|
||||||
current: audiPageNo.value,
|
current: audiPageNo.value,
|
||||||
pageSize: audiPageSize.value,
|
pageSize: audiPageSize.value,
|
||||||
onChange: auditChangePagination
|
onChange: auditChangePagination,
|
||||||
}))
|
}));
|
||||||
|
|
||||||
const auditRowSelection = computed(() => ({
|
const auditRowSelection = computed(() => ({
|
||||||
columnWidth: 20,
|
columnWidth: 20,
|
||||||
selectedRowKeys: auditSelectKeys.value,
|
selectedRowKeys: auditSelectKeys.value,
|
||||||
onChange: onAuditSelectChange,
|
onChange: onAuditSelectChange,
|
||||||
preserveSelectedRowKeys: true,
|
preserveSelectedRowKeys: true,
|
||||||
}))
|
}));
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
visiable.value = false
|
visiable.value = false;
|
||||||
};
|
};
|
||||||
const openDrawer = () => {
|
const openDrawer = () => {
|
||||||
visiable.value = true
|
visiable.value = true;
|
||||||
};
|
};
|
||||||
//获取组织树
|
//获取组织树
|
||||||
const treeData = computed(() => {
|
const treeData = computed(() => {
|
||||||
@@ -492,31 +552,36 @@ const treeData = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function onSearchStu() {
|
function onSearchStu() {
|
||||||
nameSearch.value.page = 1
|
nameSearch.value.page = 1;
|
||||||
searchStu()
|
searchStu();
|
||||||
}
|
}
|
||||||
|
|
||||||
function stuStuOrgSelect(e) {
|
function stuStuOrgSelect(e) {
|
||||||
nameSearch.value.departId = e.join('')
|
nameSearch.value.departId = e.join("");
|
||||||
searchStu()
|
searchStu();
|
||||||
}
|
}
|
||||||
|
|
||||||
function stuDel(i) {
|
function stuDel(i) {
|
||||||
stuSelectKeys.value = stuSelectKeys.value.filter(e => e !== selectsData.value.studentList[i].id)
|
stuSelectKeys.value = stuSelectKeys.value.filter(
|
||||||
selectsData.value.studentList.splice(i, 1)
|
(e) => e !== selectsData.value.studentList[i].id
|
||||||
|
);
|
||||||
|
selectsData.value.studentList.splice(i, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function orgDel(i) {
|
function orgDel(i) {
|
||||||
orgSelectKeys.value = orgSelectKeys.value.filter(e => e !== selectsData.value.deptList[i].id)
|
orgSelectKeys.value = orgSelectKeys.value.filter(
|
||||||
selectsData.value.deptList.splice(i, 1)
|
(e) => e !== selectsData.value.deptList[i].id
|
||||||
|
);
|
||||||
|
selectsData.value.deptList.splice(i, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function AuditDel(i) {
|
function AuditDel(i) {
|
||||||
auditSelectKeys.value = auditSelectKeys.value.filter(e => e !== selectsData.value.groupList[i].id)
|
auditSelectKeys.value = auditSelectKeys.value.filter(
|
||||||
selectsData.value.groupList.splice(i, 1)
|
(e) => e !== selectsData.value.groupList[i].id
|
||||||
|
);
|
||||||
|
selectsData.value.groupList.splice(i, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// function orgSelect(key, obj) {
|
// function orgSelect(key, obj) {
|
||||||
// console.log(obj)
|
// console.log(obj)
|
||||||
//request(ORG_CHILD_LIST, {orgId: null}).then(res => {
|
//request(ORG_CHILD_LIST, {orgId: null}).then(res => {
|
||||||
@@ -525,18 +590,18 @@ function AuditDel(i) {
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
function onStuSelectChange(e, l) {
|
function onStuSelectChange(e, l) {
|
||||||
stuSelectKeys.value = e
|
stuSelectKeys.value = e;
|
||||||
selectsData.value.studentList = l
|
selectsData.value.studentList = l;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onOrgSelectChange(e, l) {
|
function onOrgSelectChange(e, l) {
|
||||||
orgRowSelection.value = e
|
orgRowSelection.value = e;
|
||||||
selectsData.value.deptList = l.selectedNodes
|
selectsData.value.deptList = l.selectedNodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAuditSelectChange(e, l) {
|
function onAuditSelectChange(e, l) {
|
||||||
auditSelectKeys.value = e
|
auditSelectKeys.value = e;
|
||||||
selectsData.value.groupList = l
|
selectsData.value.groupList = l;
|
||||||
}
|
}
|
||||||
|
|
||||||
// const stuDepartmentSelect = (e) => {
|
// const stuDepartmentSelect = (e) => {
|
||||||
@@ -547,32 +612,32 @@ function onAuditSelectChange(e, l) {
|
|||||||
//分页获取学员
|
//分页获取学员
|
||||||
const changePagination = (page) => {
|
const changePagination = (page) => {
|
||||||
nameSearch.value.page = page;
|
nameSearch.value.page = page;
|
||||||
searchStu()
|
searchStu();
|
||||||
};
|
};
|
||||||
|
|
||||||
const auditChangePagination = (page) => {
|
const auditChangePagination = (page) => {
|
||||||
audienceName.value.page = page;
|
audienceName.value.page = page;
|
||||||
searchAudi()
|
searchAudi();
|
||||||
};
|
};
|
||||||
|
|
||||||
//重置
|
//重置
|
||||||
const resetStu = () => {
|
const resetStu = () => {
|
||||||
deleteDepSelect();
|
deleteDepSelect();
|
||||||
nameSearch.value = {keyword: '', page: 1, pageSize: 10}
|
nameSearch.value = { keyword: "", page: 1, pageSize: 10 };
|
||||||
};
|
};
|
||||||
//清空选择部门信息
|
//清空选择部门信息
|
||||||
const deleteDepSelect = () => {
|
const deleteDepSelect = () => {
|
||||||
stuSelectKeys.value = []
|
stuSelectKeys.value = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
//重置组织
|
//重置组织
|
||||||
const resetOrg = () => {
|
const resetOrg = () => {
|
||||||
searchOrgName.value = {keyword: '', page: 1, pageSize: 10}
|
searchOrgName.value = { keyword: "", page: 1, pageSize: 10 };
|
||||||
};
|
};
|
||||||
|
|
||||||
//重置受众
|
//重置受众
|
||||||
const resetAudienceInfo = () => {
|
const resetAudienceInfo = () => {
|
||||||
audienceName.value = {keyword: '', page: 1, pageSize: 10}
|
audienceName.value = { keyword: "", page: 1, pageSize: 10 };
|
||||||
};
|
};
|
||||||
|
|
||||||
//全部清除
|
//全部清除
|
||||||
@@ -586,44 +651,43 @@ const resetAudienceInfo = () => {
|
|||||||
//确定添加授权
|
//确定添加授权
|
||||||
const submitAuth = () => {
|
const submitAuth = () => {
|
||||||
if (props.type === 2) {
|
if (props.type === 2) {
|
||||||
stageVisible.value = true
|
stageVisible.value = true;
|
||||||
} else {
|
} else {
|
||||||
handleStageOk()
|
handleStageOk();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function handleStageOk() {
|
function handleStageOk() {
|
||||||
stageVisible.value = false
|
stageVisible.value = false;
|
||||||
visiable.value = false
|
visiable.value = false;
|
||||||
emit('finash', false)
|
emit("finash", false);
|
||||||
saveStu({
|
saveStu({
|
||||||
targetId: props.id,
|
targetId: props.id,
|
||||||
type: props.type,
|
type: props.type,
|
||||||
deptIds: selectsData.value.deptList?.map(e => e.id),
|
deptIds: selectsData.value.deptList?.map((e) => e.id),
|
||||||
stageId: selectsData.value.stageId,
|
stageId: selectsData.value.stageId,
|
||||||
groupIds: selectsData.value.groupList?.map(e => e.id),
|
groupIds: selectsData.value.groupList?.map((e) => e.id),
|
||||||
studentList: selectsData.value.studentList
|
studentList: selectsData.value.studentList,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
emit('finash', true)
|
emit("finash", true);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(visiable, () => {
|
watch(visiable, () => {
|
||||||
stuSelectKeys.value = []
|
stuSelectKeys.value = [];
|
||||||
orgSelectKeys.value = []
|
orgSelectKeys.value = [];
|
||||||
auditSelectKeys.value = []
|
auditSelectKeys.value = [];
|
||||||
stuData.value = []
|
stuData.value = [];
|
||||||
selectsData.value = {
|
selectsData.value = {
|
||||||
stageId: '',
|
stageId: "",
|
||||||
studentList: [],
|
studentList: [],
|
||||||
deptList: [],
|
deptList: [],
|
||||||
groupList: []
|
groupList: [],
|
||||||
}
|
};
|
||||||
|
});
|
||||||
})
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.CommonStudent {
|
||||||
.ant-btn-primary {
|
.ant-btn-primary {
|
||||||
background-color: #4ea6ff !important;
|
background-color: #4ea6ff !important;
|
||||||
}
|
}
|
||||||
@@ -634,14 +698,14 @@ watch(visiable, () => {
|
|||||||
}
|
}
|
||||||
.tableBox .ant-table-row .ant-table-cell {
|
.tableBox .ant-table-row .ant-table-cell {
|
||||||
height: 48px;
|
height: 48px;
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #4F5156;
|
color: #4f5156;
|
||||||
line-height: 29px;
|
line-height: 29px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
.tableBox .ant-table-thead tr th {
|
.tableBox .ant-table-thead tr th {
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.ant-tabs-tabpane {
|
.ant-tabs-tabpane {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -787,7 +851,6 @@ watch(visiable, () => {
|
|||||||
right: -8px;
|
right: -8px;
|
||||||
top: -8px;
|
top: -8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.group {
|
.group {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -820,7 +883,7 @@ watch(visiable, () => {
|
|||||||
right: -8px;
|
right: -8px;
|
||||||
top: -8px;
|
top: -8px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user