重新同步教职工数据
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
// 查询辅导员
|
// 查询教职工
|
||||||
export function listInstructor(query) {
|
export function listInstructor(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sqlserverdata/getEmployEEInfoList',
|
url: '/sqlserverdata/getEmployEEInfoList',
|
||||||
@@ -9,10 +9,18 @@ export function listInstructor(query) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 同步辅导员信息
|
// 同步教职工
|
||||||
export function syncInstructorinfo() {
|
export function syncInstructorinfo() {
|
||||||
return request({
|
return request({
|
||||||
url: '/sqlserverdata/synchronousEmployEEInfoList',
|
url: '/sqlserverdata/synchronousEmployEEInfoList',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//新查询教职工
|
||||||
|
export function listInstructorNew(query) {
|
||||||
|
return request({
|
||||||
|
url: '/syncdata/getEmployEEInfoList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
<el-table-column label="性别" align="center" prop="xb" />
|
<el-table-column label="性别" align="center" prop="xb" />
|
||||||
<el-table-column label="科室名称" align="center" prop="ksmc" />
|
<el-table-column label="科室名称" align="center" prop="ksmc" />
|
||||||
<el-table-column label="院校名称" align="center" prop="yxmc" />
|
<el-table-column label="院校名称" align="center" prop="yxmc" />
|
||||||
<el-table-column label="院校代码" align="center" prop="yxdm" />
|
<!-- <el-table-column label="院校代码" align="center" prop="yxdm" /> -->
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button v-hasPermi="['system:middle:edit']" size="mini" type="text" icon="el-icon-edit"
|
<el-button v-hasPermi="['system:middle:edit']" size="mini" type="text" icon="el-icon-edit"
|
||||||
@@ -222,6 +222,7 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
listInstructor(this.queryParams).then(response => {
|
listInstructor(this.queryParams).then(response => {
|
||||||
|
console.log(response.data);
|
||||||
this.middleList = response.data
|
this.middleList = response.data
|
||||||
this.total = response.total
|
this.total = response.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -0,0 +1,94 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button v-hasPermi="['system:middle:export']" type="warning" plain icon="el-icon-download"
|
||||||
|
size="mini" @click="handleExport">导出</el-button>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button v-hasPermi="['system:middle:add']" type="primary" plain icon="el-icon-plus" size="mini"
|
||||||
|
@click="handleSync">同步数据</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-table v-loading="loading" :data="middleList">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<!-- <el-table-column label="${comment}" align="center" prop="id" /> -->
|
||||||
|
<el-table-column label="职工号" align="center" prop="zgh" />
|
||||||
|
<el-table-column label="姓名" align="center" prop="xm" />
|
||||||
|
<el-table-column label="性别" align="center" prop="xb" />
|
||||||
|
<el-table-column label="科室名称" align="center" prop="ksmc" />
|
||||||
|
<el-table-column label="院校名称" align="center" prop="yxmc" />
|
||||||
|
<!-- <el-table-column label="院校代码" align="center" prop="yxdm" /> -->
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { listInstructorNew, syncInstructorinfonew } from '@/api/stuCQS/synchronous-data/sync-instructor'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Middle',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 【请填写功能名称】表格数据
|
||||||
|
middleList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: '',
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询【请填写功能名称】列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true
|
||||||
|
listInstructorNew(this.queryParams).then(response => {
|
||||||
|
this.middleList = response.rows
|
||||||
|
this.total = response.total
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('system/middle/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `middle_${new Date().getTime()}.xlsx`)
|
||||||
|
},
|
||||||
|
//同步数据
|
||||||
|
handleSync() {
|
||||||
|
syncInstructorinfonew().then(res => {
|
||||||
|
this.$modal.msgSuccess(res.msg)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
Reference in New Issue
Block a user