-- 样式修改

This commit is contained in:
yuping
2022-12-10 16:41:08 +08:00
parent e905422a8e
commit 7864c1ec0f
3 changed files with 35 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<a-drawer <a-drawer
:visible="visiable" :visible="visiableState"
class="drawerStyle ProjCheckship" class="drawerStyle ProjCheckship"
placement="right" placement="right"
width="45%" width="45%"
@@ -181,14 +181,14 @@
</a-drawer> </a-drawer>
</template> </template>
<script setup> <script setup>
import {computed, defineEmits, defineProps, onMounted, ref, watch} from "vue"; import {computed, defineEmits, defineProps, onMounted, ref} from "vue";
import {useStore} from "vuex"; import {useStore} from "vuex";
import {request, useBoeApi, useBoeApiPage} from "@/api/request"; import {useBoeApi, useBoeApiPage} from "@/api/request";
import {AUDIENCE_LIST, ORG_CHILD_LIST, ORG_LIST, USER_LIST} from "@/api/ThirdApi"; 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,
visiable: { visiable: {
@@ -197,8 +197,9 @@ const props = defineProps({
}, },
}) })
const visiableState = computed(() => props.visiable)
const activeKey = ref(1) const activeKey = ref(1)
const visiableState = ref(false)
const selectsData = ref({ const selectsData = ref({
studentList: [], studentList: [],
deptList: [], deptList: [],
@@ -238,7 +239,6 @@ const {
const { const {
data: orgData, data: orgData,
fetch: searchOrg, fetch: searchOrg,
loading: orgLoading
} = useBoeApi(ORG_LIST, searchOrgName.value) } = useBoeApi(ORG_LIST, searchOrgName.value)
const { const {
@@ -397,13 +397,13 @@ function AuditDel(i) {
auditSelectKeys.value = auditSelectKeys.value.filter(e => e !== selectsData.value.groupList[i].id) auditSelectKeys.value = auditSelectKeys.value.filter(e => e !== selectsData.value.groupList[i].id)
selectsData.value.groupList.splice(i, 1) 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 => {
console.log(res.result) // console.log(res.result)
}) // })
} // }
function onStuSelectChange(e, l) { function onStuSelectChange(e, l) {
stuSelectKeys.value = e stuSelectKeys.value = e
@@ -420,10 +420,10 @@ function onAuditSelectChange(e, l) {
selectsData.value.groupList = l selectsData.value.groupList = l
} }
const stuDepartmentSelect = (e) => { // const stuDepartmentSelect = (e) => {
nameSearch.value.orgId = e.join('') // nameSearch.value.orgId = e.join('')
searchStu() // searchStu()
}; // };
// //
const changePagination = (page) => { const changePagination = (page) => {
@@ -459,13 +459,13 @@ const resetAudienceInfo = () => {
}; };
// //
const deleteAll = () => { // const deleteAll = () => {
selectsData.value = { // selectsData.value = {
studentList: [], // studentList: [],
deptList: [], // deptList: [],
groupList: [] // groupList: []
} // }
}; // };
// //
const submitAuth = () => { const submitAuth = () => {
emit('update:visiable', false) emit('update:visiable', false)

View File

@@ -253,7 +253,6 @@ import {message} from "ant-design-vue";
import {useRoute, useRouter} from "vue-router"; import {useRoute, useRouter} from "vue-router";
import * as api from "../../api/index"; import * as api from "../../api/index";
import {useStore} from "vuex"; import {useStore} from "vuex";
import ProjectClass from "@/components/project/ProjectClass";
import TrainClass from "@/components/project/TrainClass"; import TrainClass from "@/components/project/TrainClass";
import OrgClass from "@/components/project/OrgClass"; import OrgClass from "@/components/project/OrgClass";
import ProjectManager from "@/components/project/ProjectManagerNew"; import ProjectManager from "@/components/project/ProjectManagerNew";
@@ -266,7 +265,6 @@ export default {
components: { components: {
ProjectManager, ProjectManager,
ProjectLevel, ProjectLevel,
ProjectClass,
TrainClass, TrainClass,
OrgClass, OrgClass,
}, },

View File

@@ -822,7 +822,6 @@ import * as api from "../../api/index";
import * as api1 from "../../api/index1"; import * as api1 from "../../api/index1";
import {storage} from "../../api/storage"; import {storage} from "../../api/storage";
import ProjectManager from "@/components/project/ProjectManagerNew"; import ProjectManager from "@/components/project/ProjectManagerNew";
import ProjectClass from "@/components/project/ProjectClass";
import TrainClass from "@/components/project/TrainClass"; import TrainClass from "@/components/project/TrainClass";
import OrgClass from "@/components/project/OrgClass"; import OrgClass from "@/components/project/OrgClass";
import dayjs from "dayjs"; import dayjs from "dayjs";
@@ -836,7 +835,6 @@ export default {
ProjPowerList, ProjPowerList,
ProjCheckShip, ProjCheckShip,
ProjectManager, ProjectManager,
ProjectClass,
OrgClass, OrgClass,
TrainClass, TrainClass,
// ProjManageShip // ProjManageShip