|
@@ -1,34 +1,5 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <!-- 搜索模块 -->
|
|
|
- <!--<div class="filter-container">
|
|
|
- <span>
|
|
|
- <span>{{$t("calssSchedule.searchForm.name")}}:</span>
|
|
|
- <el-input v-model="calssName" :placeholder='$t("common.pleaseEnter")' style="width: 150px;" size="medium"/>
|
|
|
- </span>
|
|
|
- <span style="margin-left: 15px;">
|
|
|
- <el-button plain type="primary" icon="el-icon-search" size="medium" @click="search">
|
|
|
- {{ $t("table.search") }}
|
|
|
- </el-button>
|
|
|
- <el-button plain type="warning" icon="el-icon-refresh" size="medium" @click="reset">
|
|
|
- {{ $t("table.reset") }}
|
|
|
- </el-button>
|
|
|
- </span>
|
|
|
- </div>-->
|
|
|
-
|
|
|
- <!-- 功能按钮 -->
|
|
|
- <!--<el-row class="filter-container">
|
|
|
- <el-col>
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="medium" @click="add">{{ $t("common.add") }}</el-button>
|
|
|
- <el-button type="success" icon="el-icon-edit" size="medium" @click="editOne">
|
|
|
- {{ $t("common.edit") }}
|
|
|
- </el-button>
|
|
|
- <el-button type="danger" icon="el-icon-delete" size="medium" @click="batchDelete">
|
|
|
- {{ $t("table.delete") }}
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>-->
|
|
|
-
|
|
|
<!-- 列表数据 -->
|
|
|
<el-table
|
|
|
:key="tableKey"
|
|
@@ -83,7 +54,7 @@
|
|
|
:total="Number(tableData.total)"
|
|
|
@pagination="fetch"
|
|
|
/>
|
|
|
-
|
|
|
+
|
|
|
<el-dialog
|
|
|
title="选择人员"
|
|
|
:visible.sync="dialogVisible"
|
|
@@ -104,8 +75,8 @@
|
|
|
// 【排班人员管理】-API
|
|
|
import schedulingStaffMgrApi from "@/api/classScheduleMgr/schedulingStaffMgr"
|
|
|
import elDragDialog from '@/directive/el-drag-dialog'
|
|
|
- import { downloadFile, initEnums, initDicts, initQueryParams } from '@/utils/commons'
|
|
|
- import axios from 'axios'
|
|
|
+ import {initDicts, initQueryParams } from '@/utils/commons'
|
|
|
+
|
|
|
export default {
|
|
|
name: "SchedulingStaffMgr",
|
|
|
directives: { elDragDialog },
|
|
@@ -161,7 +132,7 @@
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
// 【设置】按钮-事件
|
|
@@ -230,7 +201,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.$confirm(this.$t("calssSchedule.tips.areaTips"), this.$t("common.tips"), {
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: this.$t("common.confirm"),
|
|
@@ -305,10 +276,10 @@
|
|
|
this.queryParams.map.createTime_st = this.queryParams.timeRange[0]
|
|
|
this.queryParams.map.createTime_ed = this.queryParams.timeRange[1]
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.queryParams.current = params.current ? params.current : this.queryParams.current
|
|
|
this.queryParams.size = params.size ? params.size : this.queryParams.size
|
|
|
-
|
|
|
+
|
|
|
schedulingStaffMgrApi.pageList(this.queryParams).then(response => {
|
|
|
const res = response.data
|
|
|
if (res.isSuccess) {
|
|
@@ -316,7 +287,7 @@
|
|
|
}
|
|
|
// eslint-disable-next-line no-return-assign
|
|
|
}).finally(() => this.loading = false)
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
cellClick (row, column) {
|
|
|
if (column['columnKey'] === "operation") {
|
|
@@ -329,7 +300,7 @@
|
|
|
this.$refs.table.toggleRowSelection(row)
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
if (!flag) {
|
|
|
this.$refs.table.toggleRowSelection(row, true)
|
|
|
}
|