提交 29fc2eb6 编写于 作者: 刘英杰's avatar 刘英杰

v20241007 优化保存

上级 f6b5c471
...@@ -85,6 +85,7 @@ declare module 'vue' { ...@@ -85,6 +85,7 @@ declare module 'vue' {
VanTabbarItem: typeof import('vant/es')['TabbarItem'] VanTabbarItem: typeof import('vant/es')['TabbarItem']
VanTabs: typeof import('vant/es')['Tabs'] VanTabs: typeof import('vant/es')['Tabs']
VanTag: typeof import('vant/es')['Tag'] VanTag: typeof import('vant/es')['Tag']
VanTextEllipsis: typeof import('vant/es')['TextEllipsis']
VanTreeSelect: typeof import('vant/es')['TreeSelect'] VanTreeSelect: typeof import('vant/es')['TreeSelect']
VanUploader: typeof import('vant/es')['Uploader'] VanUploader: typeof import('vant/es')['Uploader']
ViewFiles: typeof import('./src/components/viewFiles.vue')['default'] ViewFiles: typeof import('./src/components/viewFiles.vue')['default']
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<span class="text-[14px] text-gray-400 ">{{ item.phone }}</span> <span class="text-[14px] text-gray-400 ">{{ item.phone }}</span>
<div class="w-[50px] h-[50px] absolute right-2 top-3"> <div class="w-[50px] h-[50px] absolute right-2 top-3">
<slot name="image"></slot> <slot name="image"></slot>
</div> </div>
</div> </div>
<div class=" p-3 w-full h-[60%]"> <div class=" p-3 w-full h-[60%]">
......
class Version { class Version {
constructor() { constructor() {
this.version = 'Build 1.0.0 - 240919 1.0.1' this.version = 'Build 1.0.0 - 241122 1.0.1'
} }
} }
......
<script setup>
import {defineAsyncComponent, getCurrentInstance, nextTick, onMounted, reactive, ref} from 'vue'
import router from "@/router/index.js";
import * as api from '@/api/dist/controller/index.js'
import * as hooks from '@/hooks/index.js'
import {getImage} from "@/hooks/index.js";
import ConfigDict from '@/config/modules/dict.js'
import dayjs from "dayjs";
import commonDataRequest from "@/api/commonDataRequest/index.js";
const card = defineAsyncComponent(() => import('@/pages/flowApproval/components/card.vue'))
const init = reactive({
formData:{
data:[],
},
approval:{
show:true,
remark:'',
},
ApplicationType: {
value: [
{
text: '学生申报',
value: 103,
},
{
text: '教师申报',
value: 111,
},
],
columns: [
{
text: '学生申报',
value: 103,
},
{
text: '教师申报',
value: 111,
},
],
showPicker: false,
},
formOfCompetition: {
value: '',
columns: [],
showPicker: false,
},
eventClass: {
value: '',
columns: [],
showPicker: false,
},
eventType: {
value: '',
columns: [],
showPicker: false,
},
flowActionType: {
value: '',
columns: [],
showPicker: false,
},
flowStatus: {
value: '',
columns: [],
showPicker: false,
},
data: {
array: []
},
params: {
"page_index": 1,
"page_size": 10,
"flow_id": [103, 111],
"key_name": "",
"action_type": "",
"status": "",
"flow_name": "",
"competitionsubitem_name": "",
"competition_level_id": "",
"competition_type_id": "",
"sponsor": "",
"way": ''
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiFlowViewApiFlowViewGetFlowTaskList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.flowActionType[cur.action_type],
actionTypeText: ConfigDict.flowState[cur.status]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
//重置操作
init.params = {
"page_index": 1,
"page_size": 10,
"flow_id": [103, 111],
"key_name": "",
"action_type": "",
"status": "",
"flow_name": "",
"competitionsubitem_name": "",
"competition_level_id": "",
"competition_type_id": "",
"sponsor": "",
"way": '',
}
//情况选择器文字
let array = ['ApplicationType', 'formOfCompetition', 'eventClass', 'eventType', 'flowActionType', 'flowStatus'];
array.forEach(current => init[current].value = '');
init.ApplicationType.value = _.cloneDeep(init.ApplicationType.columns);
search()
otherReset()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function otherReset() {
//其他重置
init.formOfCompetition.columns.forEach(cur => {
if (cur.value === init.params.way) {
init.formOfCompetition.value = cur.text
}
})
}
function onClickLeft() {
//返回上级
router.back();
// router.push({
// path: '/welcome'
// })
}
function onConfirm_flowStatus(val) {
//流程状态
const info = val.selectedOptions[0];
init.flowStatus.value = info.text
init.params.status = info.value;
init.flowStatus.showPicker = false;
}
function onConfirm_ApplicationType(val) {
//流程类别
/* const info = val.selectedOptions[0];
init.ApplicationType.value = info.text
init.params.flow_id = info.value;
init.ApplicationType.showPicker = false;*/
if (init.params.flow_id.includes(val.value)) {
init.ApplicationType.value = init.ApplicationType.columns.map(cur => {
if (init.params.flow_id.includes(cur.value)) return cur
}).filter(cur => cur !== undefined)
} else {
close(val)
}
}
function onConfirm_formOfCompetition(val) {
//竞赛形式
const info = val.selectedOptions[0];
init.formOfCompetition.value = info.text
init.params.way = info.value;
init.formOfCompetition.showPicker = false;
}
function onConfirm_eventClass(val) {
//赛事级别
const info = val.selectedOptions[0];
init.eventClass.value = info.text
init.params.competition_level_id = info.value;
init.eventClass.showPicker = false;
}
function onConfirm_eventType(val) {
//赛事类别
const info = val.selectedOptions[0];
init.eventType.value = info.text;
init.params.competition_type_id = info.value;
init.eventType.showPicker = false;
}
function onConfirm_flowActionType(val) {
//操作类型
const info = val.selectedOptions[0];
init.flowActionType.value = info.text
init.params.action_type = info.value;
init.flowActionType.showPicker = false;
}
function recordAction(key, item) {
//记录操作
const strategy = {
outSeat: () => {
//退座
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiRecordRecordCancel({id: item.id}).then(res => {
if (res.code === 1) {
init.params.page_index = 1
search()
}
return res;
})
}), '是否确认取消该座位的占用?')
},
furlough: () => {
//暂离
function action(value) {
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiRecordRecordLeave({
id: item.id,
leave_state: value
}).then(res => {
if (res.code === 1) {
search()
/* init.params.page_index = 1
onLoad()*/
}
return res;
})
}))
}
let str = {
'0': () => action(1),
'1': () => action(0),
'2': () => action(2),
}
str[item.leave_state]()
},
signInSignOut: () => {
//签到签退
router.push({
path: '/signInSignOut',
query: {
id: item.id
}
})
},
}
strategy[key]()
}
function details(item) {
//详情
searchItem.setSearchItem(router.currentRoute.value.path, init.params)
router.push({
path: '/achievementDeclaration',
query: {
runid: item.runid, //基础信息
flowid: item.flow_id,
flowType: 'await', //鉴别是否审批
form_id: item.form_id, //日志轨迹
}
})
}
const showPopover = ref(false);
// 通过 actions 属性来定义菜单选项
const actions = [
{text: '详情'},
{text: '退座'},
];
function onSelect(value, item) {
let strategy = {
'详情': () => details(item),
'退座': () => recordAction('outSeat', item),
}
strategy[String(value.text)]()
}
function inStateGetAction(item) {
//基于活动状态遍历操作按钮
let stratrgy = {
'0': () => [
{text: '详情'},
{text: '退座'},
],
'1': () => [
{text: '退座'},
{text: '详情'},
],
'2': () => [
{text: '详情'},
],
'3': () => [
{text: '详情'},
],
'9': () => [
{text: '详情'},
],
}
return stratrgy[item]()
}
function searchCommonData() {
//获取查询下拉框数据
commonDataRequest.GetFlowActionType().then(res => init.flowActionType.columns = res)
commonDataRequest.GetFormOfCompetition().then(res => init.formOfCompetition.columns = res)
commonDataRequest.GetFlowStatus().then(res => init.flowStatus.columns = res)
commonDataRequest.GetLevelBySelect().then(res => {
init.eventClass.columns = res
if (init.params.competition_level_id !== '') init.eventClass.columns.forEach(cur => {
if (cur.value === init.params.competition_level_id) {
init.eventClass.value = cur.text;
}
})
})
commonDataRequest.GetTypeBySelect().then(res => {
init.eventType.columns = res
if (init.params.competition_type_id !== '') init.eventType.columns.forEach(cur => {
if (cur.value === init.params.competition_type_id) {
init.eventType.value = cur.text;
}
})
})
}
/**
* 获取已选择查询条件
* **/
import {useSearchItem} from "@/store/modules/searchItem.js";
import _ from "lodash";
const searchItem = useSearchItem();
function routerCarryConditionQuery() {
//路由携带条件查询
let key = router.currentRoute.value.path;
if (searchItem.getSearchItem(key) !== void 0) {
init.params = {...searchItem.getSearchItem(key), page_index: 1}
} else {
console.log("🚀🚀没有查询参数🚀,")
}
//字段文字回显、
nextTick(() => {
init.ApplicationType.value = init.ApplicationType.columns.map(cur => {
//申请类型
if (init.params.flow_id.includes(cur.value)) return cur;
}).filter(cur => cur !== undefined);
init.flowActionType.columns.forEach(cur => {
//操作类型
if (cur.value === init.params.action_type) {
init.flowActionType.value = cur.text;
}
})
init.formOfCompetition.columns.forEach(cur => {
//竞赛类别
if (cur.value === init.params.way) {
init.formOfCompetition.value = cur.text;
}
})
init.flowStatus.columns.forEach(cur => {
//流程状态
if (cur.value === init.params.status) {
init.flowStatus.value = cur.text;
}
})
})
}
/**
* 获取已选择查询条件
**/
/**
* 删除流程类别标签
* */
function close(e) {
//删除流程类别标签
init.ApplicationType.value.splice(init.ApplicationType.value.findIndex(cur => cur.value === e.value), 1);
init.params.flow_id = init.ApplicationType.value.map(cur => cur.value);
}
const activeIds = ref([]);
const activeIndex = ref(0);
/**
* 删除流程类别标签
* */
const checkboxRefs = ref([]);
function toggle(index) {
//选中教学单位
checkboxRefs.value[index].toggle();
}
onMounted(() => {
routerCarryConditionQuery()
searchCommonData()
otherReset()
document.title = '学生异常状态预警列表'
})
</script>
<template>
<!-- 内容 -->
<van-dialog v-model:show="init.approval.show" title="内容信息">
<div class="flex flex-wrap justify-center items-center w-full min-h-[160px]">
<van-cell-group>
<!--备注-->
<van-field
v-model="init.approval.remark"
rows="3"
autosize
label="备注"
type="textarea"
maxlength="500"
placeholder="请输入备注"
show-word-limit
/>
</van-cell-group>
</div>
<template #footer>
<div class="w-full h-[60px] flex justify-between items-center border border-solid px-2">
<div class="w-[30%]">
<van-button block round @click="init.approval.show = false;">关闭</van-button>
</div>
<div class="w-[65%]">
<van-button block round type="primary" @click="submitApproval"> 确认</van-button>
</div>
</div>
</template>
</van-dialog>
<!-- 高级筛选 -->
<van-popup
v-model:show="init.advancedfilter.show"
:style="{ height: '80%' }"
position="bottom"
round
>
<div class="containerPopover">
<div class="title-filter ">
高级筛选<span class="icon" @click="init.advancedfilter.show = false"
><van-icon name="cross"
/></span>
</div>
<div class="form-field ">
<van-field
v-model="init.params.key_name"
:border="false"
:colon="true"
clearable
label="姓名工号"
label-align="right"
label-width="4.3em"
placeholder="请输入姓名或工号"
/>
<van-field
v-model="init.params.flow_name"
:border="false"
:colon="true"
clearable
label="赛事名称"
label-align="right"
label-width="4.3em"
placeholder="请输入赛事名称"
/>
<van-field
v-model="init.flowActionType.value"
:border="false"
:colon="true"
label="操作类型"
label-align="right"
label-width="4.3em"
placeholder="请选择操作类型"
readonly
right-icon="arrow-down"
@click="init.flowActionType.showPicker = true;"
/>
</div>
<div class="btn ">
<van-row gutter="20">
<van-col span="12"
>
<van-button round style="width: 100%;height: 38px" type="default" @click="reset"
>重置
</van-button
>
</van-col
>
<van-col span="12"
>
<van-button
round
style="width: 100%;height: 38px"
type="primary"
@click="query_handle"
>查找
</van-button
>
</van-col
>
</van-row>
</div>
</div>
</van-popup>
<!-- popup弹窗-(流程状态) -->
<van-popup v-model:show="init.flowStatus.showPicker" position="bottom" round>
<van-picker
:columns="init.flowStatus.columns"
show-toolbar
title="流程状态"
@cancel="init.flowStatus.showPicker = false"
@confirm="onConfirm_flowStatus"
/>
</van-popup>
<!-- popup弹窗-(操作类型) -->
<van-popup v-model:show="init.flowActionType.showPicker" position="bottom" round>
<van-picker
:columns="init.flowActionType.columns"
show-toolbar
title="操作类型"
@cancel="init.flowActionType.showPicker = false"
@confirm="onConfirm_flowActionType"
/>
</van-popup>
<!-- popup弹窗-(流程类别) -->
<van-popup v-model:show="init.ApplicationType.showPicker" closeable position="bottom" round>
<div class="h-5"></div>
<van-tree-select
v-model:active-id="init.params.flow_id"
v-model:main-active-index="activeIndex"
:items="[{
text: '流程类别',
children:init.ApplicationType.columns.map(cur=>{
return{
...cur,id:cur.value
}
})
}]"
@click-item="onConfirm_ApplicationType"
/>
</van-popup>
<!-- popup弹窗-(竞赛形式) -->
<van-popup v-model:show="init.formOfCompetition.showPicker" position="bottom" round>
<van-picker
:columns="init.formOfCompetition.columns"
show-toolbar
title="竞赛形式"
@cancel="init.formOfCompetition.showPicker = false"
@confirm="onConfirm_formOfCompetition"
/>
</van-popup>
<!-- popup弹窗-(赛事级别) -->
<van-popup v-model:show="init.eventClass.showPicker" position="bottom" round>
<van-picker
:columns="init.eventClass.columns"
show-toolbar
title="赛事级别"
@cancel="init.eventClass.showPicker = false"
@confirm="onConfirm_eventClass"
/>
</van-popup>
<!-- popup弹窗-(赛事类别) -->
<van-popup v-model:show="init.eventType.showPicker" position="bottom" round>
<van-picker
:columns="init.eventType.columns"
show-toolbar
title="赛事类别"
@cancel="init.eventType.showPicker = false"
@confirm="onConfirm_eventType"
/>
</van-popup>
<div class="w-screen h-screen bg-gray-100 box-border relative">
<!-- header h-54px-->
<!-- 顶部栏目 -->
<div class="sticky top-0 w-full h-[65px] z-50">
<div class="w-full h-[65px] flex bg-white">
<div class="w-[13%] text-gray-600 h-full flex
justify-center items-center text-[30px]" @click="onClickLeft">
<van-icon class="" name="arrow-left"/>
</div>
<div class=" w-[87%] h-full flex items-center justify-center">
<div style="border-top: 1px solid #ebedf0">
<van-search
v-model="init.params.key_name"
placeholder="请输入姓名或工号"
show-action
style="display: flex; justify-content: center; align-items: center"
@update:model-value="doSearch"
>
<template #action>
<van-button
style="width: 100px; font-size: 15px; border-radius: 8px"
type="default" @click="advancedfilter"
>高级筛选
</van-button>
</template>
</van-search>
</div>
</div>
</div>
</div>
<!-- content-->
<div class="w-full h-[calc(100%-145px)] p-3 overflow-y-auto ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div @click="toggle(index)" v-for="(item,index) in list" :key="item" class="w-full min-h-[100px]">
<van-checkbox-group ref="checkboxGroup" v-model="init.formData.data">
<div @click="eltDetails(item)" class="w-full min-h-[100px] bg-white rounded-[8px] mb-4 ">
<div class=" text-blue-600 p-3 w-full h-[22%] border-b-[1px] flex items-center justify-between">
<span>姓名学号</span>
<van-checkbox
:ref="el => checkboxRefs[index] = el"
:name="item"
@click.stop
/>
</div>
<div class=" p-3 w-full min-h-[60%]">
<div class="w-full min-h-[30px] flex">
<div class="w-full h-full">
<span class="text-gray-600">班级:未归</span>
</div>
</div>
<div class="w-full min-h-[30px] flex">
<div class="w-full h-full">
<span class="text-gray-600">干预状态:以干预</span>
</div>
</div>
<div class="w-full min-h-[30px] flex">
<div class="w-[70px] h-full text-gray-600 flex">
<div class="w-[70px] ">干预信息:</div>
</div>
<div class="w-[calc(100%-80px)] h-full">
<van-text-ellipsis
rows="2"
content="干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态干预状态"
expand-text="展开"
collapse-text="收起"
position="middle"
/>
</div>
</div>
</div>
</div>
</van-checkbox-group>
</div>
</van-list>
</van-pull-refresh>
<div class="w-full h-[60px] bg-gray-100"></div>
</div>
<div class="w-full h-[80px] flex px-2 justify-between items-center z-400000 bg-white ">
<div class="w-[25%]">
<van-button class="w-full" >全选</van-button>
</div>
<div class="w-[70%]">
<van-button class="w-full" type="primary">一键干预</van-button>
</div>
</div>
</div>
</template>
<style lang="less" scoped>
.page {
--van-pagination-height: 55px
}
</style>
<style lang="less" scoped>
.containerPopover {
width: 100%;
height: 100%;
position: relative;
box-sizing: border-box;
}
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
position: sticky;
top: 0;
z-index: 50;
background: white;
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
padding: 10px;
position: sticky;
bottom: 0;
z-index: 50;
background: white;
}
.aes {
width: 100%;
height: 100%;
/* background-image: url("../../../assets/gxjtsy.png");*/
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
<script setup>
import {defineAsyncComponent, getCurrentInstance, nextTick, onMounted, reactive, ref} from 'vue'
import router from "@/router/index.js";
import * as api from '@/api/dist/controller/index.js'
import * as hooks from '@/hooks/index.js'
import {getImage} from "@/hooks/index.js";
import ConfigDict from '@/config/modules/dict.js'
import dayjs from "dayjs";
import commonDataRequest from "@/api/commonDataRequest/index.js";
const card = defineAsyncComponent(() => import('@/pages/flowApproval/components/card.vue'))
const init = reactive({
ApplicationType: {
value: [
{
text: '学生申报',
value: 103,
},
{
text: '教师申报',
value: 111,
},
],
columns: [
{
text: '学生申报',
value: 103,
},
{
text: '教师申报',
value: 111,
},
],
showPicker: false,
},
formOfCompetition: {
value: '',
columns: [],
showPicker: false,
},
eventClass: {
value: '',
columns: [],
showPicker: false,
},
eventType: {
value: '',
columns: [],
showPicker: false,
},
flowActionType: {
value: '',
columns: [],
showPicker: false,
},
flowStatus: {
value: '',
columns: [],
showPicker: false,
},
data: {
array: []
},
params: {
"page_index": 1,
"page_size": 10,
"flow_id": [103, 111],
"key_name": "",
"action_type": "",
"status": "",
"flow_name": "",
"competitionsubitem_name": "",
"competition_level_id": "",
"competition_type_id": "",
"sponsor": "",
"way": ''
},
advancedfilter: {
show: false,
}
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const onLoad = () => {
//初始化数据
api.postApiFlowViewApiFlowViewGetFlowTaskList(init.params).then(res => {
if (refreshing.value) {
list.value = []
refreshing.value = false;
}
if (res.response.data.length === 0) {
finished.value = true;
refreshing.value = false;
}
res.response.data.forEach(cur => {
list.value.push({
...cur,
imageKey: ConfigDict.flowActionType[cur.action_type],
actionTypeText: ConfigDict.flowState[cur.status]
});
})
loading.value = false;
init.params.page_index++
refreshing.value = false;
})
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
init.params.page_index = 1;
onLoad();
};
function advancedfilter() {
//触发高级筛选
init.advancedfilter.show = true;
}
let timer = ref({})
function doSearch(value) {
//搜索
search()
}
function search() {
//连贯查询动作,复用在重置、触发查询按钮
init.params.page_index = 1;
list.value = [];
finished.value = false;
loading.value = true;
clearTimeout(timer.value)
timer.value = setTimeout(() => onLoad(), 500)
}
function reset() {
//重置操作
init.params = {
"page_index": 1,
"page_size": 10,
"flow_id": [103, 111],
"key_name": "",
"action_type": "",
"status": "",
"flow_name": "",
"competitionsubitem_name": "",
"competition_level_id": "",
"competition_type_id": "",
"sponsor": "",
"way": '',
}
//情况选择器文字
let array = ['ApplicationType', 'formOfCompetition', 'eventClass', 'eventType', 'flowActionType', 'flowStatus'];
array.forEach(current => init[current].value = '');
init.ApplicationType.value = _.cloneDeep(init.ApplicationType.columns);
search()
otherReset()
init.advancedfilter.show = false;
}
function query_handle() {
//查询操作
search();
init.advancedfilter.show = false;
}
function otherReset() {
//其他重置
init.formOfCompetition.columns.forEach(cur => {
if (cur.value === init.params.way) {
init.formOfCompetition.value = cur.text
}
})
}
function onClickLeft() {
//返回上级
router.back();
// router.push({
// path: '/welcome'
// })
}
function onConfirm_flowStatus(val) {
//流程状态
const info = val.selectedOptions[0];
init.flowStatus.value = info.text
init.params.status = info.value;
init.flowStatus.showPicker = false;
}
function onConfirm_ApplicationType(val) {
//流程类别
/* const info = val.selectedOptions[0];
init.ApplicationType.value = info.text
init.params.flow_id = info.value;
init.ApplicationType.showPicker = false;*/
if (init.params.flow_id.includes(val.value)) {
init.ApplicationType.value = init.ApplicationType.columns.map(cur => {
if (init.params.flow_id.includes(cur.value)) return cur
}).filter(cur => cur !== undefined)
} else {
close(val)
}
}
function onConfirm_formOfCompetition(val) {
//竞赛形式
const info = val.selectedOptions[0];
init.formOfCompetition.value = info.text
init.params.way = info.value;
init.formOfCompetition.showPicker = false;
}
function onConfirm_eventClass(val) {
//赛事级别
const info = val.selectedOptions[0];
init.eventClass.value = info.text
init.params.competition_level_id = info.value;
init.eventClass.showPicker = false;
}
function onConfirm_eventType(val) {
//赛事类别
const info = val.selectedOptions[0];
init.eventType.value = info.text;
init.params.competition_type_id = info.value;
init.eventType.showPicker = false;
}
function onConfirm_flowActionType(val) {
//操作类型
const info = val.selectedOptions[0];
init.flowActionType.value = info.text
init.params.action_type = info.value;
init.flowActionType.showPicker = false;
}
function recordAction(key, item) {
//记录操作
const strategy = {
outSeat: () => {
//退座
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiRecordRecordCancel({id: item.id}).then(res => {
if (res.code === 1) {
init.params.page_index = 1
search()
}
return res;
})
}), '是否确认取消该座位的占用?')
},
furlough: () => {
//暂离
function action(value) {
hooks.publicConfirm(() => hooks.myEncapsulationFunction(() => {
return api.getApiRecordRecordLeave({
id: item.id,
leave_state: value
}).then(res => {
if (res.code === 1) {
search()
/* init.params.page_index = 1
onLoad()*/
}
return res;
})
}))
}
let str = {
'0': () => action(1),
'1': () => action(0),
'2': () => action(2),
}
str[item.leave_state]()
},
signInSignOut: () => {
//签到签退
router.push({
path: '/signInSignOut',
query: {
id: item.id
}
})
},
}
strategy[key]()
}
function details(item) {
//详情
searchItem.setSearchItem(router.currentRoute.value.path, init.params)
router.push({
path: '/achievementDeclaration',
query: {
runid: item.runid, //基础信息
flowid: item.flow_id,
flowType: 'await', //鉴别是否审批
form_id: item.form_id, //日志轨迹
}
})
}
const showPopover = ref(false);
// 通过 actions 属性来定义菜单选项
const actions = [
{text: '详情'},
{text: '退座'},
];
function onSelect(value, item) {
let strategy = {
'详情': () => details(item),
'退座': () => recordAction('outSeat', item),
}
strategy[String(value.text)]()
}
function inStateGetAction(item) {
//基于活动状态遍历操作按钮
let stratrgy = {
'0': () => [
{text: '详情'},
{text: '退座'},
],
'1': () => [
{text: '退座'},
{text: '详情'},
],
'2': () => [
{text: '详情'},
],
'3': () => [
{text: '详情'},
],
'9': () => [
{text: '详情'},
],
}
return stratrgy[item]()
}
function searchCommonData() {
//获取查询下拉框数据
commonDataRequest.GetFlowActionType().then(res => init.flowActionType.columns = res)
commonDataRequest.GetFormOfCompetition().then(res => init.formOfCompetition.columns = res)
commonDataRequest.GetFlowStatus().then(res => init.flowStatus.columns = res)
commonDataRequest.GetLevelBySelect().then(res => {
init.eventClass.columns = res
if (init.params.competition_level_id !== '') init.eventClass.columns.forEach(cur => {
if (cur.value === init.params.competition_level_id) {
init.eventClass.value = cur.text;
}
})
})
commonDataRequest.GetTypeBySelect().then(res => {
init.eventType.columns = res
if (init.params.competition_type_id !== '') init.eventType.columns.forEach(cur => {
if (cur.value === init.params.competition_type_id) {
init.eventType.value = cur.text;
}
})
})
}
/**
* 获取已选择查询条件
* **/
import {useSearchItem} from "@/store/modules/searchItem.js";
import _ from "lodash";
const searchItem = useSearchItem();
function routerCarryConditionQuery() {
//路由携带条件查询
let key = router.currentRoute.value.path;
if (searchItem.getSearchItem(key) !== void 0) {
init.params = {...searchItem.getSearchItem(key), page_index: 1}
} else {
console.log("🚀🚀没有查询参数🚀,")
}
//字段文字回显、
nextTick(() => {
init.ApplicationType.value = init.ApplicationType.columns.map(cur => {
//申请类型
if (init.params.flow_id.includes(cur.value)) return cur;
}).filter(cur => cur !== undefined);
init.flowActionType.columns.forEach(cur => {
//操作类型
if (cur.value === init.params.action_type) {
init.flowActionType.value = cur.text;
}
})
init.formOfCompetition.columns.forEach(cur => {
//竞赛类别
if (cur.value === init.params.way) {
init.formOfCompetition.value = cur.text;
}
})
init.flowStatus.columns.forEach(cur => {
//流程状态
if (cur.value === init.params.status) {
init.flowStatus.value = cur.text;
}
})
})
}
/**
* 获取已选择查询条件
**/
/**
* 删除流程类别标签
* */
function close(e) {
//删除流程类别标签
init.ApplicationType.value.splice(init.ApplicationType.value.findIndex(cur => cur.value === e.value), 1);
init.params.flow_id = init.ApplicationType.value.map(cur => cur.value);
}
const activeIds = ref([]);
const activeIndex = ref(0);
/**
* 删除流程类别标签
* */
function eltDetails(){
//详情
hooks.go2Router('abnormalStateOfStudentDetail')
}
onMounted(() => {
routerCarryConditionQuery()
searchCommonData()
otherReset()
document.title = '学生异常状态预警列表'
})
</script>
<template>
<!-- 日期查询 -->
<!-- <cs-pop-up :height="83" :show="init.date.show" :closeable="true" @close="()=>init.date.show = false">
<template #content>
<div class="w-full h-[90%] bg-gray-100 overflow-y-auto ">
<van-calendar
:allow-same-day="true"
:close-on-click-overlay="true"
:maxDate="init.maxDate"
:minDate="init.minDate"
:poppable="false"
type="range"
@confirm="onConfirm"/>
</div>
</template>
</cs-pop-up>-->
<div class="w-screen h-screen bg-gray-100 box-border relative">
<!-- header h-54px-->
<!-- 顶部栏目 -->
<div class="sticky top-0 w-full h-[65px] z-50">
<div class="w-full h-[65px] flex bg-white">
<div class="w-[13%] text-gray-600 h-full flex
justify-center items-center text-[30px]" @click="onClickLeft">
<van-icon class="" name="arrow-left"/>
</div>
<div class=" w-[87%] h-full flex items-center justify-center">
<div class="w-[55%] h-full ccFlex">
<div class=" h-full flex items-center">学生异常状态预警列表</div>
</div>
<div class="w-[45%] h-full ccFlex">
<div class="text-[14px] h-[48px] flex justify-center items-center bg-white"
@click="init.date.show = true">
<span>{{
'2024年11月24日'
}}<van-icon class="ml-1" name="setting"/></span>
</div>
</div>
</div>
</div>
</div>
<!-- content-->
<div class="w-full h-[calc(100%-65px)] p-3 overflow-y-auto ">
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list
v-model:loading="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad"
>
<div v-for="item in list" :key="item" :title="item" class="w-full min-h-[100px]">
<div @click="eltDetails(item)" class="w-full min-h-[100px] bg-white rounded-[8px] mb-4 ">
<div class=" p-3 w-full min-h-[60%]">
<div class="w-full min-h-[30px] flex">
<div class="w-full h-full">
<span class="text-gray-600">异常状态:未归</span>
</div>
</div>
<div class="w-full min-h-[30px] flex">
<div class="w-fullh-full">
<span class="text-gray-600">时间区间:2024年11月24日 7:00-23:00</span>
</div>
</div>
<div class="w-full min-h-[30px] flex">
<div class="w-full h-full">
<span class="text-gray-600">异常人数:30人</span>
</div>
</div>
<div class="w-full min-h-[30px] flex">
<div class="w-full h-full">
<span class="text-gray-600">干预统计:已干预10人,未干预20人</span>
</div>
</div>
</div>
<div class=" text-blue-600 p-3 w-full h-[22%] border-t-[1px] flex justify-center">
查看
</div>
</div>
</div>
</van-list>
</van-pull-refresh>
<div class="w-full h-[60px] bg-gray-100"></div>
</div>
</div>
</template>
<style lang="less" scoped>
.page {
--van-pagination-height: 55px
}
</style>
<style lang="less" scoped>
.containerPopover {
width: 100%;
height: 100%;
position: relative;
box-sizing: border-box;
}
.flexRight {
width: 100%;
height: 20px;
display: flex;
justify-content: flex-end;
align-items: center;
.posi {
position: absolute;
right: 16px;
bottom: 16px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid;
}
td {
border: 1px solid;
}
.cardList {
padding: 125px 15px 15px 15px;
}
.list {
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
.pending {
color: #1988f9;
background: #e6f7ff;
border: 1px solid #91d5ff;
border-radius: 6px;
}
.pass {
color: #3fab41;
background: #f6ffed;
border: 1px solid #b7eb8f;
border-radius: 6px;
}
.nopass {
color: #f5222d;
background: #fff1f0;
border: 1px solid #ffa39e;
border-radius: 6px;
}
.cellStyle_up {
padding: 10px 16px 1px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_down {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.cellStyle_centre {
padding: 1px 16px 0px;
font-size: 15px;
.van-cell__title {
color: #818283;
}
}
.van-cell__value {
font-size: 16px;
color: #525252;
min-width: 200px;
}
}
.top {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.bottom {
position: fixed;
bottom: 0;
height: 60px;
width: 100%;
background: #fff;
left: 0;
z-index: 11;
.count {
margin-left: 18px;
}
.van-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
text-align: center;
height: 100%;
.checkedstyle {
color: #238efa;
}
.icon {
margin-right: 5px;
}
}
}
.sexIcon {
width: 16px;
margin: 0 13px;
}
.title-filter {
position: sticky;
top: 0;
z-index: 50;
background: white;
text-align: center;
padding: 10px;
border-bottom: 1px solid rgb(235, 237, 240);
.icon {
position: absolute;
right: 22px;
}
}
.form-field {
.van-cell {
font-size: 16px;
line-height: 34px;
}
/deep/ .van-field__value {
background: #f2f3f5;
}
/deep/ .van-field__right-icon {
margin-right: 0px;
}
/deep/ input {
padding-left: 10px;
}
}
.btn {
padding: 10px;
position: sticky;
bottom: 0;
z-index: 50;
background: white;
}
.aes {
width: 100%;
height: 100%;
/* background-image: url("../../../assets/gxjtsy.png");*/
}
.paymentVoucher {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
.accepted {
position: relative;
width: 100%;
height: 100%;
padding: 16px;
box-sizing: border-box;
}
/deep/ .van-cell {
font-size: 16px !important;
line-height: 24px !important;
}
/deep/ .van-cell__title {
font-size: 16px !important;
}
</style>
...@@ -5,8 +5,9 @@ ...@@ -5,8 +5,9 @@
"> ">
<div class="relative p-3 w-full h-[18%] border-b-[1px] flex items-center "> <div class="relative p-3 w-full h-[18%] border-b-[1px] flex items-center ">
<span class="font-black text-gray-600">{{ item.title }}</span> <span class="font-black text-gray-600">{{ item.title }}</span>
<div class="w-[50px] h-[50px] absolute right-2 top-3"> <div class="w-[30px] h-[50px] absolute right-2 top-3">
<slot name="image"></slot> <slot name="image"></slot>
<slot name="checkbox"></slot>
</div> </div>
</div> </div>
<div class=" p-3 w-full min-h-[60%] "> <div class=" p-3 w-full min-h-[60%] ">
......
...@@ -7,6 +7,7 @@ import CommonDataRequest from "@/api/commonDataRequest/systemSelf/index.js"; ...@@ -7,6 +7,7 @@ import CommonDataRequest from "@/api/commonDataRequest/systemSelf/index.js";
import * as api from '@/api/dist/controller/index.js' import * as api from '@/api/dist/controller/index.js'
import * as hooks from '@/hooks/index.js' import * as hooks from '@/hooks/index.js'
import * as config from "@/config/index.js"; import * as config from "@/config/index.js";
import VersionValue from "@/config/modules/version.js";
const emit = defineEmits(['getTabBarIndex']) const emit = defineEmits(['getTabBarIndex'])
const active = ref(0); const active = ref(0);
...@@ -250,95 +251,100 @@ onMounted(() => { ...@@ -250,95 +251,100 @@ onMounted(() => {
</van-popup> </van-popup>
<div class="w-full p-3 h-[calc(100%-66px)] relative"> <div class="w-full p-3 h-[calc(100%-66px)] relative box-border">
<!-- <div class="mb-3 w-full flex flex-nowrap justify-between">
<van-cell-group
@click="go2Router('eventCatalogTeacherAdd')"
:style="{'margin':'0 !important','background':`url(${getImage('hb9fb3')})`,backgroundSize:'100% 100%'}"
class="w-[48.5%] h-[90px] p-3 van-haptics-feedback"
inset>
<div v-font:{size:17,family:`黑体`} class="text-white ">教师赛事申请</div>
<div
class="w-[65px] h-[25px] border border-[#fff] border-solid rounded-[15px] flex items-center justify-center">
<span v-font:{size:12,family:`黑体`,color:`#fff`}
class="text-[12px] text-yellow-600 font-serif">去申请</span>
</div>
</van-cell-group>
<van-cell-group
@click="go2Router('eventCatalogStudentAdd')"
:style="{'margin':'0 !important','background':`url(${getImage('hb9fb2')})`,backgroundSize:'100% 100%'}"
class="w-[48.5%] h-[90px] p-3 van-haptics-feedback"
inset>
<div v-font:{size:17,family:`黑体`} class="text-white ">学生赛事申请</div>
<div
class="w-[65px] h-[25px] border border-[#fff] border-solid rounded-[15px] flex items-center justify-center">
<span v-font:{size:12,family:`黑体`,color:`#fff`}
class="text-[12px] text-yellow-600 font-serif">去申请</span>
</div>
</van-cell-group>
</div>
<div class="mb-3 w-full flex flex-nowrap justify-between"> <p v-font:{size:17,family:`黑体`,color:`#323233`} class="my-3">2024年11月24日数据看板</p>
<van-cell-group <div
@click="go2Router('eventCatalogTeacherEdit')" class="mb-3 w-full flex flex-nowrap justify-between">
<van-cell-group
:style="{'margin':'0 !important','background':`url(${getImage('hb9')})`,backgroundSize:'100% 100%'}" :style="{'margin':'0 !important'}"
class="w-[48.5%] p-3 h-[75px] flex items-center justify-between van-haptics-feedback" class="w-[48.5%] p-3 min-h-[75px] flex items-center justify-between "
inset> inset>
<div v-font:{size:17,family:`黑体`,color:`#CE821F`} class=" text-white ">教师赛事调整</div> <div class=" text-white h-full ">
<img :src="getImage('zy13')" class=" w-[25px] h-[25px]"> <div v-font:{size:18,family:`黑体`,color:`#3D9DE8`} class="font-bold">
</van-cell-group> {{ 66 }}人
<van-cell-group </div>
@click="go2Router('eventCatalogStudentEdit')" <div v-font:{size:16,family:`黑体`,color:`#323233`}>未归</div>
:style="{'margin':'0 !important','background':`url(${getImage('hb9fb1')})`,backgroundSize:'100% 100%'}"
class="w-[48.5%] p-3 h-[75px] flex items-center justify-between van-haptics-feedback"
inset>
<div v-font:{size:17,family:`黑体`,color:`#3AA38E`} class=" text-white ">学生赛事调整</div>
<img :src="getImage('zy14')" class=" w-[25px] h-[25px]">
</van-cell-group>
</div> </div>
--> <img :src="getImage('hb19')" class="ml-5 w-[30px] h-[30px]">
</van-cell-group>
<p v-font:{size:17,family:`黑体`,color:`#323233`} class="my-3">赛事报名</p> <van-cell-group
<div class="mb-3 w-full flex flex-nowrap justify-between"> :style="{'margin':'0 !important'}"
class="w-[48.5%] p-3 min-h-[75px] flex items-center justify-between "
inset>
<div class=" text-white h-full ">
<div v-font:{size:18,family:`黑体`,color:`#9190EF`} class="font-bold">
{{ 66 }}人
</div>
<div v-font:{size:16,family:`黑体`,color:`#323233`}>晚归</div>
</div>
<img :src="getImage('hb19fb1')" class="ml-5 w-[30px] h-[30px]">
</van-cell-group>
</div>
<div
class="mb-3 w-full flex flex-nowrap justify-between">
<van-cell-group <van-cell-group
@click="go2('eventApplicationTeacherCompetition')" :style="{'margin':'0 !important'}"
:style="{'margin':'0 !important','background':`url(${getImage('zy10')})`,backgroundSize:'100% 100%'}" class="w-[48.5%] p-3 min-h-[75px] flex items-center justify-between "
class="w-[50%] px-6 py-4 h-[75px] flex items-center justify-between flex-wrap van-haptics-feedback"
inset> inset>
<p v-font:{size:17,family:`黑体`,color:`#0F472C`} class="w-full">教师赛</p> <div class=" text-white h-full ">
<p v-font:{size:12,family:`黑体`,color:`#84B09C`} class="w-full">去申请 >></p> <div v-font:{size:18,family:`黑体`,color:`#F8B55B`} class="font-bold">
{{ 66 }}人
</div>
<div v-font:{size:16,family:`黑体`,color:`#323233`}>整夜未归</div>
</div>
<img :src="getImage('hb19fb3')" class="ml-5 w-[30px] h-[30px]">
</van-cell-group> </van-cell-group>
<van-cell-group <van-cell-group
@click="go2('eventApplicationStudentCompetition')" :style="{'margin':'0 !important'}"
:style="{'margin':'0 !important','background':`url(${getImage('zy9')})`,backgroundSize:'100% 100%'}" class="w-[48.5%] p-3 min-min-h-[75px] flex items-center justify-between "
class="w-[50%] px-6 py-4 h-[75px] flex items-center justify-between flex-wrap van-haptics-feedback"
inset> inset>
<p v-font:{size:17,family:`黑体`,color:`#0F472C`} class="w-full">学生赛</p> <div class=" text-white h-full ">
<p v-font:{size:12,family:`黑体`,color:`#84B09C`} class="w-full">去申请 >></p> <div v-font:{size:18,family:`黑体`,color:`#4DD88F`} class="font-bold">
{{ 66 }}人
</div>
<div v-font:{size:16,family:`黑体`,color:`#323233`}>24小时未进出</div>
</div>
<img :src="getImage('hb19fb2')" class="w-[30px] h-[30px]">
</van-cell-group> </van-cell-group>
</div> </div>
<div
class="mb-3 w-full flex flex-nowrap justify-between">
<van-cell-group
:style="{'margin':'0 !important'}"
class="w-[48.5%] p-3 min-h-[75px] flex items-center justify-between "
inset>
<div class=" text-white h-full ">
<div v-font:{size:18,family:`黑体`,color:`#5DC2FF`} class="font-bold">
{{ 66 }}人
</div>
<div v-font:{size:16,family:`黑体`,color:`#323233`}>早出</div>
</div>
<img :src="getImage('jshd')" class="ml-5 w-[30px] h-[30px]">
</van-cell-group>
</div>
<p v-font:{size:17,family:`黑体`,color:`#323233`} class="my-3">状态预警</p>
<div @click="hooks.go2Router('abnormalStateOfStudentList')"
class="mb-3 ddd w-full bg h-[70px] flex items-center bg-white rounded-[9px] bg-cover">
<img :src="getImage('wodejiehuanjilulogo')" class="ml-5 w-[40px] h-[40px]">
<div class="w-[220px] h-full flex items-center">
<div class=" h-[40px] ccFlex">
<span class="ml-3 text-white text-[15px] font-bold">学生异常状态预警</span>
</div>
</div>
<div class="w-[calc(100%-280px)]">
<div class="ml-3 text-white font-bold">
<div class="w-[45px] h-[20px] bg-blue-100 rounded-[15px] flex items-center justify-center">
<span class="text-[11px] text-blue-600 font-serif">去查看</span>
</div>
</div>
</div>
</div>
<!-- version-->
<div class="w-full ccFlex mt-10 p-3 h-3 "
style="color: #b0b0b0;font-size: 10px">{{ VersionValue.version }}
</div>
<!-- footer 50px-->
<van-tabbar v-model="active" class="w-full h-[80px] " fixed @change="(e)=> emit('getTabBarIndex',e)">
<van-tabbar-item icon="home-o">申请
<template #icon>
<img :src="getImage('zy8')" class="w-[20px] h-[20px]"/>
</template>
</van-tabbar-item>
<van-tabbar-item icon="search">流程
<template #icon>
<img :src="getImage('zy5')" class="w-[20px] h-[20px]"/>
</template>
</van-tabbar-item>
<van-tabbar-item icon="search">统计
<template #icon>
<img :src="getImage('zy4')" class="w-[20px] h-[20px]"/>
</template>
</van-tabbar-item>
</van-tabbar>
</div> </div>
</template> </template>
...@@ -575,5 +581,8 @@ td { ...@@ -575,5 +581,8 @@ td {
/deep/ .van-cell__title { /deep/ .van-cell__title {
font-size: 16px !important; font-size: 16px !important;
} }
.ddd {
background-image: url("@/static/icon/changlanse.png");
background-size: cover;
}
</style> </style>
export const abnormalStateOfStudent = [
{
name: 'abnormalStateOfStudentList',
path: '/abnormalStateOfStudentList',
component: () => import('@/pages/dormScreenComponents/abnormalStateOfStudentList.vue'),
},
{
name: 'abnormalStateOfStudentDetail',
path: '/abnormalStateOfStudentDetail',
component: () => import('@/pages/dormScreenComponents/abnormalStateOfStudentDetail.vue'),
},
]
...@@ -6,6 +6,7 @@ import {flow} from "./modules/flow.js"; ...@@ -6,6 +6,7 @@ import {flow} from "./modules/flow.js";
import {apply} from "@/router/modules/apply.js"; import {apply} from "@/router/modules/apply.js";
import {datails} from "@/router/modules/datails.js"; import {datails} from "@/router/modules/datails.js";
import {resetFlow} from "@/router/modules/resetFlow.js"; import {resetFlow} from "@/router/modules/resetFlow.js";
import {abnormalStateOfStudent} from "@/router/modules/abnormalStateOfStudent.js";
const routes = [ const routes = [
{ {
...@@ -70,6 +71,7 @@ const routes = [ ...@@ -70,6 +71,7 @@ const routes = [
...apply, ...apply,
...datails, ...datails,
...resetFlow, ...resetFlow,
...abnormalStateOfStudent,
{ {
name: 'tree', name: 'tree',
path: '/tree', path: '/tree',
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或