Commit 6d980f3f authored by Mac's avatar Mac

1

parent aee9aa7b
...@@ -77,6 +77,8 @@ ...@@ -77,6 +77,8 @@
<div class="col-2 q-table__title">员工管理</div> <div class="col-2 q-table__title">员工管理</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<!-- <q-btn color="accent" size="sm" class="q-mr-md" label="同步到微信" @click="synchronization()" /> -->
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增员工" @click="EditManager(null,0)" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增员工" @click="EditManager(null,0)" />
<q-btn-dropdown outline size="sm" color="dark" label="更多"> <q-btn-dropdown outline size="sm" color="dark" label="更多">
<q-list> <q-list>
...@@ -204,6 +206,9 @@ ...@@ -204,6 +206,9 @@
GetLeaveStatus, GetLeaveStatus,
getEduEmployeeNumList getEduEmployeeNumList
} from '../../api/school/index' } from '../../api/school/index'
import {
SetSynvEduEmployee,
} from '../../api/system/wechat';
import { import {
BatchResetUserPassword BatchResetUserPassword
} from '../../api/users/user.js' } from '../../api/users/user.js'
...@@ -218,6 +223,10 @@ ...@@ -218,6 +223,10 @@
import employeeSet from '../../components/school/manager/employee-set' import employeeSet from '../../components/school/manager/employee-set'
import employeeInfo from '../../components/school/manager/employee-info' import employeeInfo from '../../components/school/manager/employee-info'
import selectTree from '../../components/common/select-tree' import selectTree from '../../components/common/select-tree'
import {
Loading,
QSpinnerPie
} from 'quasar'
export default { export default {
meta: { meta: {
title: "员工管理" title: "员工管理"
...@@ -681,7 +690,30 @@ ...@@ -681,7 +690,30 @@
this.$router.push({ this.$router.push({
path: tempStr path: tempStr
}); });
},
synchronization(){
Loading.show({
message: '数据正在同步中,请稍后进入企业微信查看',
spinner:QSpinnerPie
})
SetSynvEduEmployee({}).then(res => {
if (res.Code == 1) {
that.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
Loading.hide()
} }
})
.catch(err=>{
Loading.hide()
})
},
}, },
} }
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<div class="col-2 q-table__title">部门信息</div> <div class="col-2 q-table__title">部门信息</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<!-- <q-btn color="accent" size="sm" class="q-mr-md" label="同步到微信" @click="synchronization()" /> -->
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增部门" @click="EditDept(null)" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增部门" @click="EditDept(null)" />
<q-btn color="secondary" flat size="sm" icon="iconfont icon-zuzhijiagou" label="组织机构图" <q-btn color="secondary" flat size="sm" icon="iconfont icon-zuzhijiagou" label="组织机构图"
@click="gotoRelation()" /> @click="gotoRelation()" />
...@@ -80,6 +81,9 @@ ...@@ -80,6 +81,9 @@
setDeptStatusInfo, setDeptStatusInfo,
getDeptTree getDeptTree
} from '../../api/system/dept' } from '../../api/system/dept'
import {
setSyncEduDepartment,
} from '../../api/system/wechat';
import { import {
getSchoolDropdown, getSchoolDropdown,
} from '../../api/school/index' } from '../../api/school/index'
...@@ -89,6 +93,10 @@ ...@@ -89,6 +93,10 @@
import deptForm from '../../components/system/dept-form' import deptForm from '../../components/system/dept-form'
import selectTree from '../../components/common/select-tree' import selectTree from '../../components/common/select-tree'
import selectSearch from '../../components/common/select-search' import selectSearch from '../../components/common/select-search'
import {
Loading,
QSpinnerPie
} from 'quasar'
export default { export default {
meta: { meta: {
title: "部门管理" title: "部门管理"
...@@ -295,6 +303,29 @@ ...@@ -295,6 +303,29 @@
} }
this.isShowDeptForm = true; this.isShowDeptForm = true;
}, },
synchronization(){
Loading.show({
message: '数据正在同步中,请稍后进入企业微信查看',
spinner:QSpinnerPie
})
setSyncEduDepartment({}).then(res => {
if (res.Code == 1) {
that.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '操作成功',
position: 'top'
})
Loading.hide()
}
})
.catch(err=>{
Loading.hide()
})
},
//关闭弹窗 //关闭弹窗
closeDeptSaveForm() { closeDeptSaveForm() {
this.isShowDeptForm = false; this.isShowDeptForm = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment