first commit

This commit is contained in:
2026-09-09 09:14:28 +08:00
commit 5343198112
5199 changed files with 1052895 additions and 0 deletions
@@ -0,0 +1,578 @@
<!--会员变更记录查看 何鹏飞 2019-5-29-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.demo-table-expand {
font-size: 0;
padding-left: 20px;
}
.demo-table-expand label {
width: 120px;
color: #99a9bf;
}
.demo-table-expand .el-form-item {
margin-right: 0;
margin-bottom: 0;
width: 50%;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
</style>
<div id="app" v-cloak>
<el-row class="header navbar bg-white shadow">
<div class="btn-group tool-button mt5">
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 80px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker
v-model="time"
type="daterange"
range-separator="-"
start-placeholder="开始变更时间"
end-placeholder="结束变更时间"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd">
</el-date-picker>
<el-select v-model="pageForm.bgfs" slot="prepend" clearable placeholder="变更方式" style="width: 200px;">
<el-option label="人事变动" value="2"></el-option>
<el-option label="会员申请" value="1"></el-option>
<el-option label="校工会变更" value="3"></el-option>
</el-select>
<dict-select v-model="pageForm.bgsy" style="width: 200px;" clearable placeholder="变更类型"
code="MemberChangeType"></dict-select>
<!-- <el-select v-model="pageForm.bgtype" slot="prepend" clearable placeholder="变更状态" style="width: 120px;">-->
<!-- <el-option label="会籍转出" value="1"></el-option>-->
<!-- <el-option label="会籍转入" value="2"></el-option>-->
<!-- <el-option label="会籍保留" value="3"></el-option>-->
<!-- <el-option label="会员退会" value="4"></el-option>-->
<!-- <el-option label="会籍开除" value="5"></el-option>-->
<!-- </el-select>-->
<el-button slot="append" icon="el-icon-search" type="primary" @click="doSearch"></el-button>
</div>
<!-- <div class="pull-right offscreen-right mt5">-->
<!-- <el-button size="medium" @click="userUpdate"></i>同步人事数据</el-button>-->
<!-- </div>-->
</el-row>
<!--表格-->
<el-row class="el-table-container">
<el-table
:data="tableData"
size="small"
>
<el-table-column label="序号" header-align="center" align="center" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNum - 1) * pageForm.pageSize + 1}}</span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="用户名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="150"
show-overflow-tooltip="true"
label="原工会">
<template scope="scope">
<div v-if="scope.row.oldunionname!=''||scope.row.oldunionname!=undefined">
{{scope.row.oldunionname}}
</div>
<div v-if="scope.row.oldunionname==''||scope.row.oldunionname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="150"
show-overflow-tooltip="true"
label="原单位">
<template scope="scope">
<div v-if="scope.row.oldunitname!=''||scope.row.oldunitname!=undefined">
{{scope.row.oldunitname}}
</div>
<div v-if="scope.row.oldunitname==''||scope.row.oldunitname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="150"
show-overflow-tooltip="true"
label="新工会">
<template scope="scope">
<div v-if="scope.row.newunionname!=''||scope.row.newunionname!=undefined">
{{scope.row.newunionname}}
</div>
<div v-if="scope.row.newunionname==''||scope.row.newunionname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
width="150"
show-overflow-tooltip="true"
label="新单位">
<template scope="scope">
<div v-if="scope.row.newunitname!=''||scope.row.newunitname!=undefined">
{{scope.row.newunitname}}
</div>
<div v-if="scope.row.newunitname==''||scope.row.newunitname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="bgtime"
sortable
label="变更时间">
</el-table-column>
<el-table-column label="变更类型"
header-align="center"
align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.bgtype==1">会籍转出</el-tag>
<el-tag v-if="scope.row.bgtype==2" type="success">会籍转入</el-tag>
<el-tag v-if="scope.row.bgtype==3" type="info">会籍保留</el-tag>
<el-tag v-if="scope.row.bgtype==4" type="warning">会籍退会</el-tag>
<el-tag v-if="scope.row.bgtype==5" type="danger">会籍开除</el-tag>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
label="变更方式">
<template slot-scope="scope">
<span v-if="scope.row.bgfs==1" class="text-primary">{{bgfs[scope.row.bgfs]}}</span>
<span v-if="scope.row.bgfs==2" class="text-warning">{{bgfs[scope.row.bgfs]}}</span>
<span v-if="scope.row.bgfs==3" class="text-danger">{{bgfs[scope.row.bgfs]}}</span>
</template>
</el-table-column>
<el-table-column label="操作" header-align="center" align="center">
<template slot-scope="scope">
<el-button size="mini" type="success" @click="see(scope.row.hyid)">查看</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNum"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--查看-->
<el-dialog title="申请详情信息" width="55%" custom-class="ViewDialogClass" :visible.sync="seeDialogVisible" top="5%">
<el-form label-width="80px">
<el-collapse v-model="activeNames">
<el-collapse-item title="用户信息" name="1">
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.user.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.user.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserList.user.birthday}}</td>
<td rowspan="3">
<el-image fit="cover" v-if="UserList.user.imgurl!=''" style="height: 140px;width: 100%"
:src="'${AppFileDomain!}'+UserList.user.imgurl"
@click="dd3s.showpic(UserList.user.imgurl)">
</el-image>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserList.user.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.user.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserList.user.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.user.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.user.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserList.user.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">兴趣爱好</td>
<td class="tpb" colspan="3">{{UserList.user.hobby}}</td>
<td class="tpa" colspan="1">是否结婚</td>
<td class="tpb" colspan="2">{{UserList.user.sfjh}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserList.user.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserList.user.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserList.user.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserList.user.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpc" colspan="7" v-if="UserList.user.grjl!=null">
<div v-html="UserList.user.grjl"></div>
</td>
<td class="tpb" colspan="7" v-else>
暂无个人简历信息
</td>
</tr>
</table>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserList.user.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="变更记录" name="3">
<el-table
size="mini"
:data="bgTableData"
style="width: 95%">
<el-table-column type="expand">
<template scope="scope">
<el-form label-position="left" inline class="demo-table-expand">
<el-form-item v-if="scope.row.fghshjl!=''" label="院级工会审核人">
<span>{{scope.row.fghshjl.fghshr}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="院级工会审核时间">
<span>{{scope.row.fghshjl.shsj}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="院级工会审核建议">
<span>{{scope.row.fghshjl.shjy}}</span>
</el-form-item>
<el-form-item label="校工会审核人">
<span>{{scope.row.xghshjl.xghshr}}</span>
</el-form-item>
<el-form-item label="校工会审核时间">
<span>{{scope.row.xghshjl.shsj}}</span>
</el-form-item>
<el-form-item label="校工会审核建议">
<span>{{scope.row.xghshjl.shjy}}</span>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column
label="变更事由"
show-overflow-tooltip="true"
prop="bgsy"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更时间"
width="120"
prop="bgtime"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更类型"
show-overflow-tooltip="true"
header-align="center"
align="center">
<template scope="scope"><span>
{{starts[scope.row.bgtype]}}
</span></template>
</el-table-column>
<el-table-column
label="变更原因"
show-overflow-tooltip="true"
prop="bgyy"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="原单位"
width="120"
show-overflow-tooltip="true"
prop="oldunitname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
width="140"
label="原工会"
show-overflow-tooltip="true"
prop="oldunionname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
width="120"
label="变更单位"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunitname!=''||scope.row.newunitname!=undefined">
{{scope.row.newunitname}}
</div>
<div v-if="scope.row.newunitname==''||scope.row.newunitname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
width="140"
label="变更工会"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunionname!=''||scope.row.newunionname!=undefined">
{{scope.row.newunionname}}
</div>
<div v-if="scope.row.newunionname==''||scope.row.newunionname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
label="变更状态"
show-overflow-tooltip="true"
width="130"
header-align="center"
align="center"
>
<template scope="scope">
<span>
<el-tag v-if="scope.row.bgstate==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="danger">基层工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==4" type="danger">校工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==5" type="success">审核通过</el-tag>
</span>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</el-dialog>
</div>
<script>
var vm = new Vue({
el: "#app",
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.4'),
},
data: function () {
return {
time: "",
pageForm: {//分页
pageNum: 1,
pageSize: 10,
totalCount: 0,
searchName: "username",
searchKeyword: "",
startTime: "",
endTime: "",
bgfs: "",
bgtype: "",
bgstate: ""
},
tableData: [],
bgfs: ["", "会员申请", "院级工会变更", "校工会变更"],
bgTableData: [],
UserList: {user: {}},
seeDialogVisible: false,
starts: ["", "会籍转出", "会籍转入", "会籍保留", "会籍退会", "会籍开除"],
activeNames: ["1", "2"]
}
},
methods: {
pageNumberChange: function (val) {//页码更新操作
this.pageForm.pageNum = val;
this.pageData();
},
pageSizeChange: function (val) {//分页大小更新操作
this.pageForm.pageSize = val;
this.pageData();
},
pageData: function () {//表格展示数据
var self = this;
if (self.time != "" && self.time != null) {
self.pageForm.startTime = self.time[0];
self.pageForm.endTime = self.time[1];
}
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/bgjl/data", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.list;
self.pageForm.totalCount = data.data.totalCount;
self.pageForm.startTime = "";
self.pageForm.endTime = "";
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
see: function (id) {//查看变更记录
var self = this;
$.post(base + "/platform/hy/bgjl/findbBgjl", {id: id}, function (data) {
if (data.code == 0) {
self.UserList = data.data;
if (self.UserList.user.jtcy == "" || self.UserList.user.jtcy == null || self.UserList.user == undefined) {
self.UserList.user.jtcy = [];
} else {
self.UserList.user.jtcy = JSON.parse(self.UserList.user.jtcy);
}
self.bgTableData = self.UserList.bgjl;
self.bgTableData.forEach(function (val, index) {
if (index == 0) {
val.hyzt = self.UserList.hyzt
} else {
val.hyzt = 5
}
})
self.seeDialogVisible = true;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, 'json')
},
userUpdate: function () {
var self = this;
self.$confirm('即将进行用户更新,确定吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {//确认后再执行
$.post(base + "/platform/hy/unit/UserUpdate", function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
})
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
})
}
})
}
}
})
},
doSearch: function () {
this.pageForm.pageNum = 1;
this.pageData();
}
},
created: function () {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,155 @@
<!--按基层工会统计页面 djx 2019-5-21-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix {
font-weight: bold;
}
.el-card__header {
background-color: #ebb563;
/*ebb563*/
padding: 8px 10px;
border-bottom: 1px solid #EBEEF5;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.el-input--mini .el-input__inner {
height: 23px;
line-height: 23px;
}
.el-card__body {
padding: 5px;
}
.el-table-containera {
padding-top: 5px;
padding-left: 5px;
padding-right: 5px;
}
.picClass .el-dialog {
background-color: transparent;
}
.picClass .el-dialog__headerbtn {
font-size: 70px;
font-weight: bold;
}
.picClass .el-dialog__body {
padding: 0;
}
.picClass .el-dialog__header {
padding: 0;
}
.picClass .el-dialog__headerbtn .el-dialog__close {
color: white;
}
.el-pagination-container {
margin-bottom: 4px;
}
.el-card {
margin-bottom: 5px;
}
.el-divider--vertical {
height: 2em;
margin: 0px 28px;
}
#first .el-card__body {
padding: 10px 20px;
}
.but {
padding: 12px 8px;
}
</style>
<div id="app" v-cloak>
<el-row class="header navbar bg-white shadow">
<div class="btn-group tool-button mt5">
<el-select placeholder="请选择所属工会" v-model="unionid" style="width: 180px;" clearable="true" filterable="true">
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-button type="primary" icon="el-icon-search" @click="pageData"></el-button>
</div>
</el-row>
<el-row class="el-table-container">
<el-table :data="tableData" show-summary>
<el-table-column align="center" header-align="center" label="基层工会名称" width="280px"
prop="unionname"></el-table-column>
<el-table-column align="center" header-align="center" label="职工数" prop="ryzs"></el-table-column>
<el-table-column align="center" header-align="center" label="会员人数" prop="hyzs"></el-table-column>
<el-table-column align="center" header-align="center" label="男会员数" prop="hyns"></el-table-column>
<el-table-column align="center" header-align="center" label="女会员数" prop="hynvs"></el-table-column>
<el-table-column align="center" header-align="center" label="党员" prop="dyhys"></el-table-column>
<el-table-column align="center" header-align="center" label="民主党派" prop="mzhys"></el-table-column>
<el-table-column align="center" header-align="center" label="教授" prop="jsrs"></el-table-column>
<el-table-column align="center" header-align="center" label="副教授" prop="fjsrs"></el-table-column>
<el-table-column align="center" header-align="center" label="青工" prop="qgjs"></el-table-column>
</el-table>
</el-row>
</div>
<script>
new Vue({
el: "#app",
data: function () {
return {
tableData: [],
unions:[],
unionid:""
}
},
methods: {
pageData: function () {
var self = this;
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/fghtj/init", {unionid:self.unionid}, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.unions=data.data.unions;
self.tableData = data.data.list;
}
}, "json");
}
},
created: function () {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,530 @@
<!--综合查询页面 djx 2019-5-21-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-date-editor .el-range-separator {
padding: 0px;
}
.el-input--suffix .el-input__inner {
padding-right: 0px;
}
.el-date-editor .el-range-separator {
width: 6%;
}
.el-dialog__body {
padding: 30px 20px 10px 20px;
}
#infoDialog .el-dialog__body {
padding: 15px 20px;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
.tpc {
padding: 10px;
color: #a0a9b4;
width: 15%;
border: 1px solid rgb(220, 220, 220);
}
.el-card__body {
padding: 10px;
}
</style>
<div id="app" v-cloak>
<!--快捷查询-->
<el-row class="header navbar bg-white shadow" style="position: relative;margin-bottom: 10px">
<el-row type="flex">
<el-col style="width: 100px;">
<div class="mt5" style="height: 40px;line-height: 40px">基本查询:</div>
</el-col>
<el-col>
<div class="btn-group tool-button mt5">
<el-date-picker
style="width: 150px"
v-model="pageForm.year"
value-format="yyyy"
type="year"
placeholder="年度">
</el-date-picker>
</div>
<div class="btn-group tool-button mt5">
<el-select placeholder="请选择所属工会" v-model="pageForm.union" @change="seeunit(pageForm.union)"
style="width: 180px;" clearable="true" filterable="true">
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
</el-select>
<el-select placeholder="请选择单位" v-model="pageForm.unit" style="width: 180px;" clearable="true"
filterable="true">
<el-option v-for="item in unit" :label="item.name" :value="item.id"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 80px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
<div class="btn-group tool-button mt5">
<dict-select v-model="pageForm.rylx" clearable style="width: 200px;" placeholder="请选择人员类型"
code="UserType"></dict-select>
</div>
<div class="btn-group tool-button mt5">
<dict-select v-model="pageForm.zzzt" clearable style="width: 200px;" placeholder="请选择在职状态"
code="UserState"></dict-select>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker style="width:260px;"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
v-model="rxTime"
type="daterange"
range-separator="至"
start-placeholder="入校时间"
end-placeholder="入校时间">
</el-date-picker>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker style="width:260px;"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
v-model="txTime"
type="daterange"
range-separator="至"
start-placeholder="退休时间"
end-placeholder="退休时间">
</el-date-picker>
</div>
<div class="btn-group tool-button mt5">
<el-select placeholder="会员状态" v-model="pageForm.hyzt" style="width: 120px;" clearable="true"
filterable="true">
<el-option label="正式会员" value="1"></el-option>
<el-option label="会籍保留" value="4"></el-option>
<el-option label="已转出" value="2"></el-option>
<el-option label="已退会" value="5"></el-option>
<el-option label="已开除" value="6"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
</div>
</el-col>
</el-row>
<el-row type="flex" style="margin-top: 10px">
<el-col style="width: 100px;">
<div class="mt5" style="height: 40px;line-height: 40px">一键查询:</div>
</el-col>
<el-col>
<div class="btn-group tool-button mt5">
<el-button size="medium" @click="pageForm.sfhy='';pageForm.year='';pageData()">全部</el-button>
</div>
<div class="btn-group tool-button mt5">
<el-button size="medium" @click="pageForm.sfhy='1';pageForm.year='';pageData()">正式会员</el-button>
</div>
<div class="btn-group tool-button mt5">
<el-button size="medium" @click="pageForm.sfhy='5';pageForm.year='';pageData()">退休会员</el-button>
</div>
<!-- <div class="btn-group tool-button mt5">-->
<!-- <el-button size="medium" @click="pageForm.zzzt='在职';pageForm.year='';pageData()">去世会员</el-button>-->
<!-- </div>-->
<div class="btn-group tool-button mt5">
<el-button size="medium" @click="pageForm.zzzt='',pageForm.year=moment().format('YYYY');pageData()">
{{moment().format('YYYY')}}年入会
</el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-button style="margin-left: 30px;" size="medium" @click="exportxls"><i
class="el-icon-download"></i>
导出会员名册
</el-button>
</div>
</el-col>
</el-row>
</el-row>
<!--表格-->
<el-row>
<el-table :data="tableData" size="medium">
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="职工号" prop="loginname"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
<el-table-column align="center" header-align="center" label="所属单位" width="200px"
prop="name"></el-table-column>
<el-table-column align="center" header-align="center" label="所属工会" width="200px"
prop="unionname"></el-table-column>
<el-table-column align="center" header-align="center" label="会员状态" prop="sfhy">
<template slot-scope="scope">
<span v-if="scope.row.sfhy == 1" class="text-success ml5">正式会员</span>
<span v-if="scope.row.sfhy == 2" class="text-primary ml5">已转出</span>
<span v-if="scope.row.sfhy == 3" class="text-warning ml5">已转入</span>
<span v-if="scope.row.sfhy == 4" class="text-info ml5">保留会籍</span>
<span v-if="scope.row.sfhy == 5" class="text-muted ml5">已退会</span>
<span v-if="scope.row.sfhy == 6" class="text-danger ml5">已开除</span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="入校时间" prop="rxsj"></el-table-column>
<el-table-column align="center" header-align="center" label="退休时间" prop="txsj"></el-table-column>
<el-table-column align="center" label="操作" width="200px">
<template slot-scope="scope">
<el-button @click="openInfo(scope)" size="mini">查看</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row style="margin-top: 10px">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--查看会员详细资料-->
<el-dialog title="查看" width="55%" custom-class="ViewDialogClass" :visible.sync="infoDialogVisible" top="5%">
<el-form label-width="80px">
<el-collapse v-model="activeName">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{viewData.birthday}}</td>
<td rowspan="3">
<img v-if="viewData.imgurl!=''&&viewData.imgurl!=null" :src="showPic"
style="height: 140px;width: 100%">
<div style="text-align: center">
<el-label v-if="viewData.imgurl==''||viewData.imgurl==null">暂无图片</el-label>
</div>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{viewData.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{viewData.zzmc}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{viewData.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{viewData.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{viewData.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{viewData.unitname}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{viewData.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(viewData.grjl)==='undefined')">暂无个人简历信息
</td>
<td class="tpc" colspan="7" v-if="!(typeof(viewData.grjl)==='undefined')">
<div v-html="viewData.grjl"></div>
</td>
</tr>
<!-- <tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7" >家 庭 成 员</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(viewData.jtcy)==='undefined')">暂无家庭成员信息</td>
<td class="tpc" colspan="7" v-if="!(typeof(viewData.jtcy)==='undefined')"><div v-html="viewData.jtcy"></div></td>
</tr>-->
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="viewData.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="会籍变更档案" name="3">
<el-table size="mini"
:data="hjtableData"
style="width: 95%">
<el-tale-column label="变更事由" show-overflow-tooltip="true" prop="bgsy" header-align="center"
align="center"></el-tale-column>
<el-table-column label="变更时间" width="88" show-overflow-tooltip="true" prop="sj"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更类型" show-overflow-tooltip="true" prop="bgtype" header-align="center"
align="center">
<template scope="scope"><span>
<span v-if="scope.row.bgtype == 1" class="text-danger ml5">转出</span>
<span v-if="scope.row.bgtype == 2" class="text-primary ml5">转入</span>
<span v-if="scope.row.bgtype == 3" class="text-warning ml5">保留</span>
<span v-if="scope.row.bgtype == 4" class="text-info ml5">退会</span>
<span v-if="scope.row.bgtype == 5" class="text-muted ml5">开除</span>
</span></template>
</el-table-column>
<el-table-column label="变更方式" show-overflow-tooltip="true" prop="bgfs" header-align="center"
align="center">
<template scope="scope"><span>
<span v-if="scope.row.bgfs == 1" class="text-danger ml5">会员申请</span>
<span v-if="scope.row.bgfs == 2" class="text-primary ml5">用户更新</span>
<span v-if="scope.row.bgfs == 3" class="text-warning ml5">校工会变更</span>
</span></template>
</el-table-column>
<el-table-column label="变更原因" :show-overflow-tooltip="true" prop="bgyy" header-align="center"
align="center"></el-table-column>
<el-table-column label="原单位" :show-overflow-tooltip="true" width="120" prop="oldunitname"
header-align="center" align="center"></el-table-column>
<el-table-column label="原工会" :show-overflow-tooltip="true" width="140" prop="oldunionname"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更单位" :show-overflow-tooltip="true" width="120" prop="newunitname"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更工会" :show-overflow-tooltip="true" width="140" prop="newunionname"
header-align="center" align="center"></el-table-column>
<el-table-column label="状态" show-overflow-tooltip="true" prop="hyzt" width="130"
header-align="center" align="center">
<template scope="scope">
<span>
<el-tag v-if="scope.row.bgstate==1" type="warning">待审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="success">审核通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="danger">审核拒绝</el-tag>
</span>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</el-dialog>
</div>
<script>
new Vue({
el: "#app",
data: function () {
return {
pageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
searchKeyword: "",
searchName: "username",
union: "",
hyzt: "",
unit: "",
rxTime: "",
txTime: "",
zzzt: "",
year: "",
},
tableData: [],
unions: [],
rxTime: [],
txTime: [],
unit: [],
/*查看*/
infoDialogVisible: false,
viewData: [],
age: "",
hjtableData: [],
activeName: "1",
showPic: "",
}
},
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.4'),
},
methods: {
seeunit: function (id) {
var self = this;
$.post(base + "/platform/hy/hyda/seeunit", {id: id}, function (data) {
self.unit = data.data;
self.pageForm.unit = "";
})
},
pageData: function () {
var self = this;
if (self.rxTime) {
self.pageForm.rxTime = self.rxTime.toString();
} else {
self.pageForm.rxTime = "";
}
if (self.txTime) {
self.pageForm.txTime = self.txTime.toString();
} else {
self.pageForm.txTime = "";
}
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/zhcx/init", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.user.list;
self.unions = data.data.unions;
self.unit = data.data.ejdw;
self.pageForm.totalCount = data.data.user.totalCount;
}
}, "json");
},
/*分页事件*/
pageSizeChange: function (val) {
this.pageForm.pageSize = val;
this.pageData();
},
pageNumberChange: function (val) {
this.pageForm.pageNumber = val;
this.pageData();
},
doSearch: function () {
this.pageData();
},
openInfo: function (scope) {
var self = this;
$.post(base + "/platform/hy/zhcx/findInfo", {id: scope.row.id}, function (data) {
if (data.code == 0) {
self.viewData = data.data.userInfo;
if (self.viewData.jtcy == "" || self.viewData.jtcy == null || self.viewData == undefined) {
self.viewData.jtcy = [];
} else {
self.viewData.jtcy = JSON.parse(self.viewData.jtcy | "[]");
}
self.hjtableData = data.data.hjbg;
self.showPic = FILE_DOMAIN + self.viewData.imgurl;
self.age = self.calAge(self.viewData.birthday);
}
}, "json");
self.infoDialogVisible = true;
},
/*导出xls*/
exportxls: function () {
var self = this;
self.$confirm('即将按所选的条件导出会员名册,是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {//确认后再执行
window.open(base + "/platform/hy/zhcx/export?searchKeyword=" + self.pageForm.searchKeyword
+ "&hyzt=" + self.pageForm.hyzt
+ "&rxTime=" + self.pageForm.rxTime
+ "&txTime=" + self.pageForm.txTime
+ "&unionid=" + self.pageForm.union
+ "&unit=" + self.pageForm.unit
);
}
}
});
},
/*计算年龄*/
calAge: function (birthday) {
// 获得今天的时间
var date = new Date();
var startDate = new Date(birthday);
var newDate = date.getTime() - startDate.getTime();
var age = Math.ceil(newDate / 1000 / 60 / 60 / 24 / 365);
if (isNaN(age)) {
age = "";
}
return age;
},
},
created: function () {
this.pageData();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,777 @@
<!--校工会变更申请审核 何鹏飞 2019-5-21-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-collapse-item__content {
padding-bottom: 0px;
font-size: 13px;
color: #303133;
line-height: 1.769230769230769;
}
.demo-table-expand {
font-size: 0;
padding-left: 20px;
}
.demo-table-expand label {
width: 120px;
color: black;
font-size: 12px;
}
.demo-table-expand .el-form-item {
margin-right: 0;
margin-bottom: 0;
width: 50%;
}
.el-form-item__content {
font-size: 12px;
}
tr.el-table__row.el-table__row--level-1 {
background-color: #F5F5F5
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
</style>
<div id="app" v-cloak>
<el-row class="header navbar bg-white shadow">
<!--<div class="btn-group tool-button mt5">-->
<!--<el-input placeholder="根据姓名或者用户名进行查询" style="width: 240px" clearable v-model="pageForm.searchName" @keyup.enter.native="doSearch">-->
<!--</el-input>-->
<!--</div>-->
<div class="btn-group tool-button mt5">
<div>
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 100px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker
v-model="time"
type="daterange"
range-separator="-"
start-placeholder="开始申请时间"
end-placeholder="结束申请时间"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd">
</el-date-picker>
<dict-select v-model="pageForm.bgsy" style="width: 200px;" clearable placeholder="变更类型"
code="MemberChangeType"></dict-select>
<el-select v-model="pageForm.sfhy" slot="prepend" clearable placeholder="审核状态" style="width: 200px;">
<el-option label="待基层工会审核" value="1"></el-option>
<el-option label="基层工会审核不通过" value="2"></el-option>
<el-option label="待校工会审核" value="3"></el-option>
<el-option label="校工会审核不通过" value="4"></el-option>
<el-option label="审核通过" value="5"></el-option>
</el-select>
<el-button slot="append" icon="el-icon-search" type="primary" @click="doSearch"></el-button>
</div>
</el-row>
<!--表格-->
<el-row class="el-table-container">
<el-table
:data="tableData"
style="width: 100%;margin-bottom: 20px;"
row-key="memberturnoutid"
size="small"
:tree-props="{children: 'children'}"
>
<el-table-column label="序号" width="50" header-align="center" align="center" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNum - 1) * pageForm.pageSize + 1}}</span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="会员编号">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="bgtype"
label="变更类型">
<template slot-scope="scope">
{{bgtype[scope.row.bgtype]}}
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="bgtime"
label="变更时间">
</el-table-column>
<el-table-column
header-align="center"
align="center"
show-overflow-tooltip="true"
prop="bgsy"
label="变更事由">
</el-table-column>
<!--#if(@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')){#-->
<el-table-column
header-align="center"
align="center"
label="申请方式">
<template slot-scope="scope">
<span v-if="scope.row.apply_origin==1">个人申请</span>
<span v-if="scope.row.apply_origin==2">基层工会申请</span>
</template>
</el-table-column>
<!--#}#-->
<el-table-column
header-align="center"
align="center"
label="变更状态">
<template slot-scope="scope">
<el-tag v-if="scope.row.bgstate==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="danger">基层工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==4" type="danger">校工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==5" type="success">审核通过</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" header-align="center" align="center">
<template slot-scope="scope">
<el-button size="mini" v-if="scope.row.bgstate==1" type="primary"
@click="show(scope)">审核
</el-button>
<el-button size="mini" v-if="scope.row.bgstate>1"
type="success"
@click="see(scope.row.id)">查看
</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNum"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--审核表单-->
<el-dialog title="变更审核" width="65%" custom-class="ViewDialogClass" top="5%" :visible.sync="editDialogVisible">
<el-collapse v-model="activeNames2">
<el-collapse-item title="会员信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserForm.birthday}}</td>
<td rowspan="3">
<img v-if="UserForm.imgurl!=''&&UserForm.imgurl!=null " :src="showPic"
style="height: 140px;width: 100%">
<p v-else style="text-align: center;line-height: 140%">暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserForm.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserForm.zzmc}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserForm.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserForm.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserForm.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserForm.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserForm.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.grjl)==='undefined')">暂无个人简历信息</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.grjl)==='undefined')">
<div v-html="UserForm.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserForm.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="变更信息" name="3">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">变更类型</td>
<td class="tpb" colspan="3">{{UserForm.bgsy}}</td>
<td class="tpa" colspan="1">变更时间</td>
<td class="tpb" colspan="2">{{UserForm.bgtime}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">变 更 原 因</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.bgyy)==='undefined')">暂无变更原因</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.bgyy)==='undefined')">
<div v-html="UserForm.bgyy"></div>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">备 注</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.bz)==='undefined')">暂无备注</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.bz)==='undefined')">
<div v-html="UserForm.bz"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item :title="UserForm.bgstate==1?'基层工会审核':'校工会审核'" name="3">
<table width="100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">审 核 建 议</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td>
<el-input
style="width: 100%;"
:autosize="{ minRows: 5, maxRows: 5}"
v-model="jy"
resize="none"
type="textarea"
placeholder="请输入内容">
</el-input>
</td>
</tr>
</table>
</el-collapse-item>
</el-collapse>
<div slot="footer" class="dialog-footer">
<el-button @click="editDialogVisible=false">取 消</el-button>
<el-button type="danger" @click="edit(4,UserForm.bgtype,false)">拒 绝</el-button>
<el-button type="success" @click="edit(5,UserForm.bgtype,true)">同 意</el-button>
</div>
</el-dialog>
<!--查看-->
<el-dialog title="申请详情信息" width="65%" custom-class="ViewDialogClass" :visible.sync="seeDialogVisible" top="5%">
<el-form label-width="80px">
<el-collapse v-model="activeNames">
<el-collapse-item title="会员信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserList.birthday}}</td>
<td rowspan="3">
<img v-if="UserList.imgurl!='' && UserList.imgurl!=null" :src="showPic"
style="height: 140px;width: 100%">
<p v-else style="text-align: center;line-height: 140%">暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserList.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserList.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserList.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserList.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserList.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserList.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserList.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserList.grjl)==='undefined')">暂无个人简历信息
</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserList.grjl)==='undefined')">
<div v-html="UserList.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserList.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="变更记录" name="3">
<el-table
size="mini"
:data="bgTableData"
style="width: 95%"
>
<el-table-column type="expand">
<template scope="scope">
<el-form label-position="left" inline class="demo-table-expand">
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核人">
<span>{{scope.row.fghshjl.fghshr}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核时间">
<span>{{scope.row.fghshjl.shsj}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核建议">
<span>{{scope.row.fghshjl.shjy}}</span>
</el-form-item>
<el-form-item label="校工会审核人">
<span>{{scope.row.xghshjl.xghshr}}</span>
</el-form-item>
<el-form-item label="校工会审核时间">
<span>{{scope.row.xghshjl.shsj}}</span>
</el-form-item>
<el-form-item label="校工会审核建议">
<span>{{scope.row.xghshjl.shjy}}</span>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column
label="变更事由"
show-overflow-tooltip="true"
prop="bgsy"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更时间"
width="120"
prop="bgtime"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更类型"
show-overflow-tooltip="true"
header-align="center"
align="center">
<template scope="scope"><span>
{{starts[scope.row.bgtype]}}
</span></template>
</el-table-column>
<el-table-column
label="原单位"
width="120"
show-overflow-tooltip="true"
prop="oldunitname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="原工会"
width="140"
show-overflow-tooltip="true"
prop="oldunionname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更单位"
width="120"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunitname!=''||scope.row.newunitname!=undefined">
{{scope.row.newunitname}}
</div>
<div v-if="scope.row.newunitname==''||scope.row.newunitname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
label="变更工会"
width="140"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunionname!=''||scope.row.newunionname!=undefined">
{{scope.row.newunionname}}
</div>
<div v-if="scope.row.newunionname==''||scope.row.newunionname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
label="变更状态"
show-overflow-tooltip="true"
width="130"
header-align="center"
align="center"
>
<template scope="scope">
<span>
<el-tag v-if="scope.row.bgstate==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="danger">基层工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==4" type="danger">校工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==5" type="success">审核通过</el-tag>
</span>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</el-dialog>
</div>
<script>
var vm = new Vue({
el: "#app",
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.4'),
},
data: function () {
return {
pageForm: {//分页
pageNum: 1,
pageSize: 10,
totalCount: 0,
searchName: "username",
startTime: "",
endTime: "",
sfhy: "",
gxid: "",
bglx: "",
searchKeyword: ""
},
time: "",
gxList: [],
tableData: [],
con: false,
bgtype: ['', '会籍转出', '会籍转入', '会籍保留', '会员退会', '会籍开除'],
editDialogVisible: false,
UserForm: {},
jy: "",
UserList: {},
seeDialogVisible: false,
activeNames: ["1", "2", "3"],
activeNames2: ["3"],
bgTableData: [],
starts: ["", "会籍转出", "会籍转入", "会籍保留", "会员退会", "会籍开除"],
userTable: [],
showPic: "",
}
},
methods: {
pageNumberChange: function (val) {//页码更新操作
this.pageForm.pageNum = val;
this.pageData();
},
pageSizeChange: function (val) {//分页大小更新操作
this.pageForm.pageSize = val;
this.pageData();
},
pageData: function () {//加载分页数据
var self = this;
self.tableData = []
self.userTable = []
if (self.time != "" && self.time != null) {
self.pageForm.startTime = self.time[0];
self.pageForm.endTime = self.time[1];
}
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/fghbgsh/data", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.list;
self.pageForm.totalCount = data.data.totalCount;
self.pageForm.startTime = "";
self.pageForm.endTime = "";
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
isCon: function (val, id) {
val.forEach(function (item) {
if (item.id == id) {
return true;
}
})
}
,
isAdmin: function () {//判断是否为管理员
var self = this
$.post(base + "/platform/hy/xghbgsh/isAdmin", function (data) {
self.con = data.data;
if (self.con) {
self.pageForm.gxid = "A1";//默认选择中国地质大学
self.pageData();
} else {
self.pageData();
}
})
},
findGx: function () {//获取所有的高校
var self = this;
$.post(base + "/platform/hy/xghbgsh/findGx", function (data) {
if (data.code == 0) {
self.gxList = data.data
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
show: function (scope) {
this.UserForm = scope.row;
if (!scope.row.jtcy) {
this.UserForm.jtcy = [];
} else {
this.UserForm.jtcy = JSON.parse(scope.row.jtcy | '[]');
}
this.showPic = FILE_DOMAIN + this.UserForm.imgurl;
this.editDialogVisible = true;
},
edit: function (hyzt, bgtype, flag) {
var self = this;
self.UserForm.hyzt = hyzt;
self.UserForm.bgtype = bgtype
if (hyzt == 4) {
if (self.jy == "") {
self.$message({
message: '审核建议不能为空!',
type: 'warning'
});
return;
}
}
self.$confirm('确定要执行此操作吗? ', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {//确认后再执行
$.post(base + "/platform/hy/xghbgsh/edit?jy=" + self.jy, {
...self.UserForm,
flag
}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.editDialogVisible = false;
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
}
});
},
see: function (id) {
var self = this;
$.post(base + "/platform/hy/xghbgsh/findShjl", {id: id}, function (data) {
if (data.code == 0) {
self.UserList = data.data;
if (!data.data.jtcy) {
self.UserList.jtcy = [];
} else {
self.UserList.jtcy = JSON.parse(data.data.jtcy | '[]');
}
self.bgTableData = self.UserList.bgjl;
self.showPic = FILE_DOMAIN + self.UserList.imgurl;
self.bgTableData.forEach(function (val, index) {
if (index == 0) {
val.hyzt = self.UserList.hyzt
} else {
val.hyzt = 5
}
})
self.seeDialogVisible = true;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, 'json')
},
doSearch: function () {
this.pageForm.pageNum = 1;
this.pageData();
}
},
created: function () {
this.pageData()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,833 @@
<!--会员转出 何鹏飞 2019-5-16-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-table-container {
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
}
.ViewDialogClass .el-form-item {
margin-bottom: 15px;
/*white-space: nowrap;*/
width: 95%;
text-overflow: ellipsis;
overflow: visible;
}
.el-collapse-item__content {
padding-bottom: 0px;
font-size: 13px;
color: #303133;
line-height: 1.769230769230769;
}
.demo-table-expand {
font-size: 0;
padding-left: 20px;
}
.demo-table-expand label {
width: 120px;
color: #99a9bf;
}
.demo-table-expand .el-form-item {
margin-right: 0;
margin-bottom: 0;
width: 50%;
}
.el-table td div {
font-size: 12px;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
.note1, .note2 {
height: 150px;
}
#app {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
background-color: #f0f2f5;
}
.box-card {
width: calc(100% - 50px);
height: calc(100% - 50px);
position: relative;
}
</style>
<div id="app" v-cloak>
<el-card class="box-card" shadow="never">
<!--表格-->
<el-row class="el-table-container">
<el-table
default-expand-all="true"
:data="tableData"
size="small"
style="width: 100%;">
<el-table-column type="expand">
<template slot-scope="props">
<el-tabs v-model="activeName">
<el-tab-pane label="用户信息" name="first">
<el-form label-width="80px" :inline="true">
<el-row>
<el-col :span="8">
<el-form-item label="姓名">
<el-lable style="color: black">{{props.row.user[0].username}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="性别">
<el-lable style="color: black">{{props.row.user[0].sex}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="出生日期">
<el-lable style="color: black">{{props.row.user[0].birthday}}</el-lable>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form label-width="80px" :inline="true">
<el-row>
<el-col :span="8">
<el-form-item label="职务">
<el-lable style="color: black">{{props.row.user[0].zw}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="民族">
<el-lable style="color: black">{{props.row.user[0].mz}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="出生地点">
<el-lable style="color: black">{{props.row.user[0].csdd}}</el-lable>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form label-width="80px" :inline="true">
<el-row>
<el-col :span="8">
<el-form-item label="工资">
<el-lable style="color: black">{{props.row.user[0].gz}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="学历">
<el-lable style="color: black">{{props.row.user[0].xl}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="政治面貌">
<el-lable style="color: black">{{props.row.user[0].zzmm}}</el-lable>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form label-width="80px" :inline="true">
<el-row>
<el-col :span="8">
<el-form-item label="籍贯">
<el-lable style="color: black">{{props.row.user[0].jg}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="所属单位">
<el-lable style="color: black">{{props.row.user[0].name}}</el-lable>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane>
<el-tab-pane label="变更记录" name="second">
<el-table
empty-text="您暂无变更记录"
:data="props.row.bgjl"
header-align="center"
size="small"
style="width: 100%;">
<el-table-column label="序号" header-align="center" align="center" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNum - 1) * pageForm.pageSize + 1}}</span>
</template>
</el-table-column>
<el-table-column
label="变更事由"
show-overflow-tooltip="true"
prop="bgsy"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更时间"
prop="bgtime"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更类型"
show-overflow-tooltip="true"
header-align="center"
align="center">
<template scope="scope"><span>
{{starts[scope.row.bgtype]}}
</span></template>
</el-table-column>
<el-table-column
label="原单位"
show-overflow-tooltip="true"
prop="oldunitname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="原工会"
show-overflow-tooltip="true"
prop="oldunionname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更单位"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunitname!=''||scope.row.newunitname!=undefined">
{{scope.row.newunitname}}
</div>
<div v-if="scope.row.newunitname==''||scope.row.newunitname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
label="变更工会"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunionname!=''||scope.row.newunionname!=undefined">
{{scope.row.newunionname}}
</div>
<div v-if="scope.row.newunionname==''||scope.row.newunionname==undefined">
暂无信息
</div>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
</template>
</el-table-column>
<el-table-column label="序号" header-align="center" align="center" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNum - 1) * pageForm.pageSize + 1}}</span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="用户名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="name"
label="所属单位">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="unionname"
label="所属工会">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sqsj"
label="申请时间">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="hyzt"
label="变更状态">
<template scope="scope">
<el-tag v-if="scope.row.sfhy==1&&scope.row.sfybg==0&&(scope.row.bgtype==2||scope.row.hyzt==5)&&(scope.row.bglx!=1&&scope.row.bglx!=2&&scope.row.bglx!=3)">
待申请
</el-tag>
<template v-else>
<el-tag v-if="scope.row.bglx==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.bglx==2" type="danger">基层工会审核不通过</el-tag>
<el-tag v-if="scope.row.bglx==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.bglx==4" type="danger">校工会审核不通过</el-tag>
<el-tag v-if="scope.row.bglx==5" type="success">审核通过</el-tag>
</template>
</template>
</el-table-column>
<el-table-column label="操作" header-align="center" align="center" width="280px">
<template slot-scope="scope">
<el-button size="mini" v-if="scope.row.sfybg>0" type="success" @click="see()">查看</el-button>
<el-button size="mini" v-if="scope.row.sfybg==0&&(scope.row.sfhy==1||scope.row.sfhy==2)"
type="primary" @click="bg">变更申请
</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNum"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--申请表单-->
<el-dialog title="申请变更" width="60%" custom-class="ViewDialogClass" v-if="editDialogVisible"
:visible.sync="editDialogVisible">
<el-form label-width="80px" :model="ruleForm" ref="addForm">
<el-form-item label="变更类型">
<dict-select v-model="ruleForm.bgsy" style="width: 100%" code="MemberChangeType"></dict-select>
</el-form-item>
<el-form-item label="变更时间">
<el-date-picker
style="width: 100%"
v-model="ruleForm.bgsj"
type="datetime"
placeholder="选择日期时间"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH-mm-ss">
</el-date-picker>
</el-date-picker>
</el-form-item>
<el-form-item label="转入单位" v-if="ruleForm.bgsy=='校内异动'">
<el-select
style="width: 100%"
v-model="ruleForm.newunitid"
filterable
remote
reserve-keyword
placeholder="请输入关键词"
:remote-method="unitRemoteMethod"
:loading="unitloading">
<el-option
v-for="item in unitList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="转入工会" v-if="ruleForm.bgsy=='校内异动'">
<el-input placeholder="转入工会" disabled="true" v-model="newunionid"></el-input>
</el-form-item>
<el-form-item label="变更原因">
<!--<script type="text/plain" id="note1" class="note1"></script>-->
<el-input size="small" v-model="ruleForm.bgyy" type="textarea" :rows="4"></el-input>
</el-form-item>
<el-form-item label="备注">
<!--<script type="text/plain" id="note2" class="note2"></script>-->
<el-input size="small" v-model="ruleForm.bz" type="textarea" :rows="4"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="editDialogVisible=false">取 消</el-button>
<el-button type="primary" @click="add">确 定</el-button>
</div>
</el-dialog>
<!--查看-->
<el-dialog title="申请详情信息" width="55%" custom-class="ViewDialogClass" :visible.sync="seeDialogVisible" top="5%">
<el-form label-width="80px">
<el-collapse v-model="activeNames">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserList.birthday}}</td>
<td rowspan="3">
<img v-if="UserList.imgurl!='' && UserList.imgurl!=null" :src="showPic"
style="height: 140px;width: 100%">
<p v-else style="text-align: center;line-height: 140%">
暂无图片
</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserList.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserList.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserList.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserList.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserList.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserList.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserList.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpc" colspan="7" v-if="UserList.grjl!=null">
<div v-html="UserList.grjl"></div>
</td>
<td class="tpb" colspan="7" v-else>
暂无个人简历信息
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserList.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="变更记录" name="3">
<el-table
size="mini"
:data="bgTableData"
style="width: 95%">
<el-table-column type="expand">
<template scope="scope">
<el-form label-position="left" inline class="demo-table-expand">
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核人">
<span>{{scope.row.fghshjl.fghshr}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核时间">
<span>{{scope.row.fghshjl.shsj}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核建议">
<span>{{scope.row.fghshjl.shjy}}</span>
</el-form-item>
<el-form-item label="校工会审核人">
<span>{{scope.row.xghshjl.xghshr}}</span>
</el-form-item>
<el-form-item label="校工会审核时间">
<span>{{scope.row.xghshjl.shsj}}</span>
</el-form-item>
<el-form-item label="校工会审核建议">
<span>{{scope.row.xghshjl.shjy}}</span>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column
label="变更事由"
width="120"
show-overflow-tooltip="true"
prop="bgsy"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更时间"
width="120"
prop="bgtime"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更类型"
show-overflow-tooltip="true"
header-align="center"
align="center">
<template scope="scope"><span>
{{starts[scope.row.bgtype]}}
</span></template>
</el-table-column>
<el-table-column
label="原单位"
width="120"
show-overflow-tooltip="true"
prop="oldunitname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
width="140"
label="原工会"
show-overflow-tooltip="true"
prop="oldunionname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
width="120"
label="变更单位"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunitname!=''||scope.row.newunitname!=undefined">
{{scope.row.newunitname}}
</div>
<div v-if="scope.row.newunitname==''||scope.row.newunitname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
width="140"
label="变更工会"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunionname!=''||scope.row.newunionname!=undefined">
{{scope.row.newunionname}}
</div>
<div v-if="scope.row.newunionname==''||scope.row.newunionname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
label="变更状态"
show-overflow-tooltip="true"
width="130"
header-align="center"
align="center"
>
<template scope="scope">
<span>
<el-tag v-if="scope.row.bgstate==1" type="warning">待审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="success">审核通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="danger">审核拒绝</el-tag>
</span>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</el-dialog>
</el-card>
</div>
<link href="${base!}/assets/platform/plugins/umeditor/themes/default/css/umeditor.min.css" type="text/css"
rel="stylesheet">
<script src="${base!}/assets/platform/plugins/umeditor/umeditor.config.js"></script>
<script src="${base!}/assets/platform/plugins/umeditor/umeditor.js"></script>
<script>
var ue1;
var ue2;
var vm = new Vue({
el: "#app",
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.2'),
},
data: function () {
return {
tableData: [],//表格展示数据
pageForm: {//分页
pageNum: 1,
pageSize: 10,
totalCount: 0,
},
editDialogVisible: false,
ruleForm: {},
seeDialogVisible: false,
UserList: {},
activeNames: ["1"],
starts: ["暂无变更类型", '会籍转出', '会籍转入', '会籍保留', '会员退会', '会籍开除'],
bgTableData: [],
bgtype: ["暂无变更类型", '会籍转出', '会籍转入', '会籍保留', '会员退会', '会籍开除'],
activeName: "first",
unitList: [],
unitloading: false,
newunionid: "",
showPic: ""
}
},
methods: {
pageNumberChange: function (val) {//页码更新操作
this.pageForm.pageNum = val;
this.pageData();
},
pageSizeChange: function (val) {//分页大小更新操作
this.pageForm.pageSize = val;
this.pageData();
},
pageData: function () {//表格展示数据
var self = this;
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/hybg/data", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.list;
self.pageForm.totalCount = data.data.totalCount;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
bg: function () {//打开申请表单
var self = this;
self.ruleForm = {}
self.ruleForm = {bgsj: ""};
self.ruleForm.bgsj = moment().format("YYYY-MM-DD HH:mm:ss")
/* //加载富文本框
UM.delEditor("note1")
UM.delEditor("note2")
self.$nextTick(function () {
ue1 = UM.getEditor('note1', {
toolbar: ['removeformat | undo redo | bold italic underline | justifyleft justifyright justifycenter | insertorderedlist insertunorderedlist | cleardoc'],
initialFrameWidth: '100%',//设置编辑器高度
});
ue2 = UM.getEditor('note2', {
toolbar: ['removeformat | undo redo | bold italic underline | justifyleft justifyright justifycenter | insertorderedlist insertunorderedlist | cleardoc'],
initialFrameWidth: '100%',//设置编辑器高度
});
})*/
self.editDialogVisible = true;
},
add: function () {//提交申请
var self = this;
if (self.ruleForm.bgsy == "" || self.ruleForm.bgsy == undefined) {
self.$message({
message: "变更事由不能为空",
type: 'warning'
});
return;
}
if (self.ruleForm.bgyy == "" || self.ruleForm.bgyy == undefined) {
self.$message({
message: "变更原因不能为空",
type: 'warning'
});
return;
}
if (self.ruleForm.bgsy == "校内异动") {
self.ruleForm.bgtype = '2';
if (self.newunionid == "") {
self.$message({
message: "工会不能为空",
type: 'error'
});
return;
}
}
if (self.ruleForm.bgsy == "离职") {
self.ruleForm.bgtype = '1';
}
if (self.ruleForm.bgsy == "退休") {
self.ruleForm.bgtype = '3';
}
if (self.ruleForm.bgsy == "去世") {
self.ruleForm.bgtype = '1';
}
self.$refs["addForm"].validate(function (valid) {
if (valid) {
// self.ruleForm.bgyy = ue1.getContent();
// self.ruleForm.bz = ue2.getContent();
$.post(base + "/platform/hy/hybg/add", self.ruleForm, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.editDialogVisible = false;
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
});
},
see: function () {//查看变更记录
var self = this;
$.post(base + "/platform/hy/hybg/findbBgjl", function (data) {
if (data.code == 0) {
self.UserList = data.data;
if (!self.UserList.jtcy) {
self.UserList.jtcy = [];
} else {
self.UserList.jtcy = JSON.parse(data.data.jtcy);
}
self.showPic = base + "/platform/hy/hyda/showPic?filePath=" + self.UserList.imgurl;
self.bgTableData = self.UserList.bgjl;
self.bgTableData.forEach(function (val, index) {
if (index == 0) {
val.hyzt = self.UserList.hyzt
} else {
val.hyzt = 5
}
})
self.seeDialogVisible = true;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, 'json')
},
unitRemoteMethod: function (keywords) {//单位远程搜索
var self = this;
if (keywords != '') {
self.unitloading = true;
$.post(base + "/platform/hy/hybg/findUnit", {keywords: keywords}, function (data) {
if (data.code == 0) {
self.unitList = data.data;
} else {
self.unitList = [];
self.$message.error(data.msg);
}
self.unitloading = false;
})
} else {
self.unitList = [];
}
},
findUnion: function (id) {
var self = this;
$.post(base + "/platform/hy/hybg/findUnion", {id: id}, function (data) {
self.newunionid = data.data.unionname;
self.ruleForm.newunionid = data.data.id
})
}
},
created: function () {
this.pageData();
}
})
vm.$watch('ruleForm.newunitid', function (nval, oval) {
vm.newunionid = "";
vm.ruleForm.newunionid = "";
vm.findUnion(nval);
})
</script>
<!--#
}
#-->
@@ -0,0 +1,776 @@
<!--校工会变更申请审核 何鹏飞 2019-5-21-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-collapse-item__content {
padding-bottom: 0px;
font-size: 13px;
color: #303133;
line-height: 1.769230769230769;
}
.demo-table-expand {
font-size: 0;
padding-left: 20px;
}
.demo-table-expand label {
width: 120px;
color: black;
font-size: 12px;
}
.demo-table-expand .el-form-item {
margin-right: 0;
margin-bottom: 0;
width: 50%;
}
.el-form-item__content {
font-size: 12px;
}
tr.el-table__row.el-table__row--level-1 {
background-color: #F5F5F5
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
</style>
<div id="app" v-cloak>
<el-row class="header navbar bg-white shadow">
<!--<div class="btn-group tool-button mt5">-->
<!--<el-input placeholder="根据姓名或者用户名进行查询" style="width: 240px" clearable v-model="pageForm.searchName" @keyup.enter.native="doSearch">-->
<!--</el-input>-->
<!--</div>-->
<div class="btn-group tool-button mt5">
<div>
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 100px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker
v-model="time"
type="daterange"
range-separator="-"
start-placeholder="开始申请时间"
end-placeholder="结束申请时间"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd">
</el-date-picker>
<dict-select v-model="pageForm.bgsy" style="width: 200px;" clearable placeholder="变更类型"
code="MemberChangeType"></dict-select>
<el-select v-model="pageForm.sfhy" slot="prepend" clearable placeholder="审核状态" style="width: 200px;">
<el-option label="待基层工会审核" value="1"></el-option>
<el-option label="基层工会审核不通过" value="2"></el-option>
<el-option label="待校工会审核" value="3"></el-option>
<el-option label="校工会审核不通过" value="4"></el-option>
<el-option label="审核通过" value="5"></el-option>
</el-select>
<el-button slot="append" icon="el-icon-search" type="primary" @click="doSearch"></el-button>
</div>
</el-row>
<!--表格-->
<el-row class="el-table-container">
<el-table
:data="tableData"
style="width: 100%;margin-bottom: 20px;"
row-key="memberturnoutid"
size="small"
:tree-props="{children: 'children'}"
>
<el-table-column label="序号" width="50" header-align="center" align="center" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNum - 1) * pageForm.pageSize + 1}}</span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="会员编号">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="bgtype"
label="变更类型">
<template slot-scope="scope">
{{bgtype[scope.row.bgtype]}}
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="bgtime"
label="变更时间">
</el-table-column>
<el-table-column
header-align="center"
align="center"
show-overflow-tooltip="true"
prop="bgsy"
label="变更事由">
</el-table-column>
<!--#if(@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')){#-->
<el-table-column
header-align="center"
align="center"
label="申请方式">
<template slot-scope="scope">
<span v-if="scope.row.apply_origin==1">个人申请</span>
<span v-if="scope.row.apply_origin==2">基层工会申请</span>
</template>
</el-table-column>
<!--#}#-->
<el-table-column
header-align="center"
align="center"
label="变更状态">
<template slot-scope="scope">
<el-tag v-if="scope.row.bgstate==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="danger">基层工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==4" type="danger">校工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==5" type="success">审核通过</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" header-align="center" align="center">
<template slot-scope="scope">
<el-button size="mini" v-if="scope.row.bgstate==3" type="primary"
@click="show(scope)">审核
</el-button>
<el-button size="mini" v-if="scope.row.bgstate!=3"
type="success"
@click="see(scope.row.id)">查看
</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNum"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--审核表单-->
<el-dialog title="变更审核" width="65%" custom-class="ViewDialogClass" top="5%" :visible.sync="editDialogVisible">
<el-collapse v-model="activeNames2">
<el-collapse-item title="会员信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserForm.birthday}}</td>
<td rowspan="3">
<img v-if="UserForm.imgurl!=''&&UserForm.imgurl!=null " :src="showPic"
style="height: 140px;width: 100%">
<p v-else style="text-align: center;line-height: 140%">暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserForm.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserForm.zzmc}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserForm.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserForm.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserForm.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserForm.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserForm.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.grjl)==='undefined')">暂无个人简历信息</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.grjl)==='undefined')">
<div v-html="UserForm.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserForm.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="变更信息" name="3">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">变更类型</td>
<td class="tpb" colspan="3">{{UserForm.bgsy}}</td>
<td class="tpa" colspan="1">变更时间</td>
<td class="tpb" colspan="2">{{UserForm.bgtime}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">变 更 原 因</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.bgyy)==='undefined')">暂无变更原因</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.bgyy)==='undefined')">
<div v-html="UserForm.bgyy"></div>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">备 注</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.bz)==='undefined')">暂无备注</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.bz)==='undefined')">
<div v-html="UserForm.bz"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item :title="UserForm.bgstate==1?'基层工会审核':'校工会审核'" name="3">
<table width="100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">审 核 建 议</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td>
<el-input
style="width: 100%;"
:autosize="{ minRows: 5, maxRows: 5}"
v-model="jy"
resize="none"
type="textarea"
placeholder="请输入内容">
</el-input>
</td>
</tr>
</table>
</el-collapse-item>
</el-collapse>
<div slot="footer" class="dialog-footer">
<el-button @click="editDialogVisible=false">取 消</el-button>
<el-button type="danger" @click="edit(4,UserForm.bgtype,false)">拒 绝</el-button>
<el-button type="success" @click="edit(5,UserForm.bgtype,true)">同 意</el-button>
</div>
</el-dialog>
<!--查看-->
<el-dialog title="申请详情信息" width="65%" custom-class="ViewDialogClass" :visible.sync="seeDialogVisible" top="5%">
<el-form label-width="80px">
<el-collapse v-model="activeNames">
<el-collapse-item title="会员信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserList.birthday}}</td>
<td rowspan="3">
<img v-if="UserList.imgurl!='' && UserList.imgurl!=null" :src="showPic"
style="height: 140px;width: 100%">
<p v-else style="text-align: center;line-height: 140%">暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserList.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserList.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserList.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserList.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserList.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserList.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserList.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserList.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserList.grjl)==='undefined')">暂无个人简历信息
</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserList.grjl)==='undefined')">
<div v-html="UserList.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserList.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="变更记录" name="3">
<el-table
size="mini"
:data="bgTableData"
style="width: 95%"
>
<el-table-column type="expand">
<template scope="scope">
<el-form label-position="left" inline class="demo-table-expand">
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核人">
<span>{{scope.row.fghshjl.fghshr}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核时间">
<span>{{scope.row.fghshjl.shsj}}</span>
</el-form-item>
<el-form-item v-if="scope.row.fghshjl!=''" label="基层工会审核建议">
<span>{{scope.row.fghshjl.shjy}}</span>
</el-form-item>
<el-form-item label="校工会审核人">
<span>{{scope.row.xghshjl.xghshr}}</span>
</el-form-item>
<el-form-item label="校工会审核时间">
<span>{{scope.row.xghshjl.shsj}}</span>
</el-form-item>
<el-form-item label="校工会审核建议">
<span>{{scope.row.xghshjl.shjy}}</span>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column
label="变更事由"
show-overflow-tooltip="true"
prop="bgsy"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更时间"
width="120"
prop="bgtime"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更类型"
show-overflow-tooltip="true"
header-align="center"
align="center">
<template scope="scope"><span>
{{starts[scope.row.bgtype]}}
</span></template>
</el-table-column>
<el-table-column
label="原单位"
width="120"
show-overflow-tooltip="true"
prop="oldunitname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="原工会"
width="140"
show-overflow-tooltip="true"
prop="oldunionname"
header-align="center"
align="center"
>
</el-table-column>
<el-table-column
label="变更单位"
width="120"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunitname!=''||scope.row.newunitname!=undefined">
{{scope.row.newunitname}}
</div>
<div v-if="scope.row.newunitname==''||scope.row.newunitname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
label="变更工会"
width="140"
show-overflow-tooltip="true"
header-align="center"
align="center"
>
<template scope="scope">
<div v-if="scope.row.newunionname!=''||scope.row.newunionname!=undefined">
{{scope.row.newunionname}}
</div>
<div v-if="scope.row.newunionname==''||scope.row.newunionname==undefined">
暂无信息
</div>
</template>
</el-table-column>
<el-table-column
label="变更状态"
show-overflow-tooltip="true"
width="130"
header-align="center"
align="center"
>
<template scope="scope">
<span>
<el-tag v-if="scope.row.bgstate==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="danger">基层工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.bgstate==4" type="danger">校工会审核不通过</el-tag>
<el-tag v-if="scope.row.bgstate==5" type="success">审核通过</el-tag>
</span>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</el-dialog>
</div>
<script>
var vm = new Vue({
el: "#app",
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.4'),
},
data: function () {
return {
pageForm: {//分页
pageNum: 1,
pageSize: 10,
totalCount: 0,
searchName: "username",
startTime: "",
endTime: "",
sfhy: "",
gxid: "",
bglx: "",
searchKeyword: ""
},
time: "",
gxList: [],
tableData: [],
con: false,
bgtype: ['', '会籍转出', '会籍转入', '会籍保留', '会员退会', '会籍开除'],
editDialogVisible: false,
UserForm: {},
jy: "",
UserList: {},
seeDialogVisible: false,
activeNames: ["1", "2", "3"],
activeNames2: ["3"],
bgTableData: [],
starts: ["", "会籍转出", "会籍转入", "会籍保留", "会员退会", "会籍开除"],
userTable: [],
showPic: "",
}
},
methods: {
pageNumberChange: function (val) {//页码更新操作
this.pageForm.pageNum = val;
this.pageData();
},
pageSizeChange: function (val) {//分页大小更新操作
this.pageForm.pageSize = val;
this.pageData();
},
pageData: function () {//加载分页数据
var self = this;
self.tableData = []
self.userTable = []
if (self.time != "" && self.time != null) {
self.pageForm.startTime = self.time[0];
self.pageForm.endTime = self.time[1];
}
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/xghbgsh/data", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.list;
self.pageForm.totalCount = data.data.totalCount;
self.pageForm.startTime = "";
self.pageForm.endTime = "";
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
isCon: function (val, id) {
val.forEach(function (item) {
if (item.id == id) {
return true;
}
})
}
,
isAdmin: function () {//判断是否为管理员
var self = this
$.post(base + "/platform/hy/xghbgsh/isAdmin", function (data) {
self.con = data.data;
if (self.con) {
self.pageForm.gxid = "A1";//默认选择中国地质大学
self.pageData();
} else {
self.pageData();
}
})
},
findGx: function () {//获取所有的高校
var self = this;
$.post(base + "/platform/hy/xghbgsh/findGx", function (data) {
if (data.code == 0) {
self.gxList = data.data
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
show: function (scope) {
this.UserForm = scope.row;
if (!scope.row.jtcy) {
this.UserForm.jtcy = [];
} else {
this.UserForm.jtcy = JSON.parse(scope.row.jtcy | '[]');
}
this.showPic = FILE_DOMAIN + this.UserForm.imgurl;
this.editDialogVisible = true;
},
edit: function (hyzt, bgtype, flag) {
var self = this;
self.UserForm.hyzt = hyzt;
self.UserForm.bgtype = bgtype
if (hyzt == 4) {
if (self.jy == "") {
self.$message({
message: '审核建议不能为空!',
type: 'warning'
});
return;
}
}
self.$confirm('确定要执行此操作吗? ', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {//确认后再执行
$.post(base + "/platform/hy/xghbgsh/edit?jy=" + self.jy, {
...self.UserForm,
flag
}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.editDialogVisible = false;
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
}
});
},
see: function (id) {
var self = this;
$.post(base + "/platform/hy/xghbgsh/findShjl", {id: id}, function (data) {
if (data.code == 0) {
self.UserList = data.data;
if (!data.data.jtcy) {
self.UserList.jtcy = [];
} else {
self.UserList.jtcy = JSON.parse(data.data.jtcy | '[]');
}
self.bgTableData = self.UserList.bgjl;
self.showPic = FILE_DOMAIN + self.UserList.imgurl;
self.bgTableData.forEach(function (val, index) {
if (index == 0) {
val.hyzt = self.UserList.hyzt
} else {
val.hyzt = 5
}
})
self.seeDialogVisible = true;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, 'json')
},
doSearch: function () {
this.pageForm.pageNum = 1;
this.pageData();
}
},
created: function () {
this.pageData()
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,471 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.is-flex {
display: flex;
}
.is-flex .el-form-item {
width: 50%;
}
#grjl {
height: 200px;
}
.el-table-container {
padding-top: 0px;
padding-left: 5px;
padding-right: 5px;
}
.el-collapse-item__content {
padding-bottom: 0px;
font-size: 13px;
color: #303133;
line-height: 1.769230769230769;
}
.note {
height: 250px;
}
.avatar-uploader .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
}
.avatar-uploader .el-upload:hover {
border-color: #409EFF;
}
.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 120px;
height: 120px;
line-height: 120px;
text-align: center;
}
.avatar {
width: 120px;
height: 120px;
display: block;
}
input[type=file] {
display: none;
}
#zw .el-table__header th {
padding: 0;
height: 150px;
}
el-table__header th {
border: black;
}
#showtb .el-table td div {
font-size: 12px;
}
#showtb .el-form-item__label {
font-size: 12px;
}
#rh .el-col {
border: 1px solid #e5e9f2;
line-height: 40px;
height: 40px;
text-align: center;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
.disabled .el-upload--picture-card {
display: none;
}
.el-upload-list__item {
transition: none !important;
}
.flexbox {
display: flex;
}
.flexbox .el-form-item {
width: 50%;
}
.v-modal {
z-index: 99999 !important;
}
.el-dialog__wrapper {
z-index: 999999 !important;
}
</style>
<div id="app" v-cloak>
<div style="text-align: right" class="pr20 mt25 mb25">
<el-button type="primary" @click="doHandle">确 定</el-button>
</div>
<el-form :model="formData" ref="addForm" style="width: 90%;margin: 0px auto" :rules="formRules" label-width="86px">
<el-divider content-position="left">
<span style="color: rgb(121, 187, 255);font-size: 17px">基本资料</span>
</el-divider>
<el-form-item prop="loginname" label="用&ensp;户&ensp;名">
<el-input readonly v-model="formData.loginname" disabled></el-input>
</el-form-item>
<div class="is-flex">
<el-form-item prop="username" label="姓&emsp;&emsp;名">
<el-input readonly v-model="formData.username" disabled></el-input>
</el-form-item>
<el-form-item prop="sex" label="性&emsp;&emsp;别">
<el-radio v-model="formData.sex" label="男" border size="small"></el-radio>
<el-radio v-model="formData.sex" label="女" border size="small"></el-radio>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item prop="birthday" label="出生日期">
<el-date-picker style="width: 100%" v-model="formData.birthday" format="yyyy-MM-dd"
value-format="yyyy-MM-dd" type="date" placeholder="出生日期"></el-date-picker>
</el-form-item>
<el-form-item prop="birthday" label="出生地点">
<el-input v-model="formData.csdd"></el-input>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item label="兴趣爱好">
<el-input maxlength="255" placeholder="兴趣爱好" v-model="formData.hobby"></el-input>
</el-form-item>
<el-form-item label="婚&emsp;&emsp;否">
<el-radio-group v-model="formData.sfhf">
<el-radio label="已婚" border></el-radio>
<el-radio label="未婚" border></el-radio>
</el-radio-group>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item prop="rsbz" label="人事编制">
<el-select v-model="formData.rsbz" style="width: 100%">
<el-option v-for="i in bzOptions" :label="i" :value="i"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="xl" label="学&emsp;&emsp;历">
<el-select v-model="formData.xl" style="width: 100%;">
<el-option v-for="i in xloptions" :label="i" :value="i"></el-option>
</el-select>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item prop="jg" label="籍&emsp;&emsp;贯">
<el-input v-model="formData.jg"></el-input>
</el-form-item>
<el-form-item prop="gz" label="工&emsp;&emsp;资">
<el-input v-model="formData.gz"></el-input>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item prop="mz" label="民&emsp;&emsp;族">
<el-select placeholder="民族" style="width: 100%" filterable v-model="formData.mz">
<el-option v-for="mz in mzlist" :value="mz.mzmc" :label="mz.mzmc"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="zzmm" label="政治面貌">
<el-input maxlength="100" placeholder="政治面貌"
v-model="formData.zzmm"></el-input>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item prop="zw" label="职&emsp;&emsp;务">
<el-input maxlength="100" placeholder="职务"
v-model="formData.zw"></el-input>
</el-form-item>
<el-form-item prop="zc" label="职&emsp;&emsp;称">
<el-select v-model="formData.zc" style="width: 100%">
<el-option v-for="i in zclist" :label="i" :value="i"></el-option>
</el-select>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item prop="mobile" label="手&ensp;机&ensp;号">
<el-input maxlength="100" placeholder="手机号"
v-model="formData.mobile"></el-input>
</el-form-item>
<el-form-item prop="email" label="邮&emsp;&emsp;箱">
<el-input maxlength="100" placeholder="邮箱"
v-model="formData.email"></el-input>
</el-form-item>
</div>
<div class="is-flex">
<el-form-item prop="unionid" label="所属工会">
<el-input readonly v-model="formData.ghname"></el-input>
</el-form-item>
<el-form-item prop="unitid" label="用户单位">
<el-input readonly v-model="formData.dwname"></el-input>
</el-form-item>
</div>
<el-form-item prop="zzzt" label="在职状态">
<dict-select v-model="formData.zzzt" style="width: 100%" placeholder="请选择在职状态"
code="UserState"></dict-select>
</el-form-item>
<el-form-item label="家庭成员">
<span style="color: red">(已结婚填配偶信息,未结婚填父母信息)</span>
<el-button style="float: right;margin-bottom: 10px" icon="el-icon-plus" size="mini"
@click="formData.jtcy.push({})"> 添加成员
</el-button>
<el-table
:data="formData.jtcy"
border
size="mini"
style="width: 100%">
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
<template slot-scope="scope">
<el-input placeholder="请输入与本人关系" maxlength="30" v-model="scope.row.gx" clearable></el-input>
</template>
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
<template slot-scope="scope">
<el-input placeholder="请输入姓名" maxlength="100" v-model="scope.row.xm" clearable></el-input>
</template>
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
<template slot-scope="scope">
<el-input placeholder="请输入单位" maxlength="100" v-model="scope.row.dw" clearable></el-input>
</template>
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
<template slot-scope="scope">
<el-input placeholder="请输入备注" maxlength="100" v-model="scope.row.bz" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="操作" width="100px" align="center" header-align="center">
<template slot-scope="scope">
<el-button type="danger" icon="el-icon-delete" circle
:disabled="formData.jtcy.length==0"
@click="formData.jtcy.splice(scope.$index,1)"></el-button>
</template>
</el-table-column>
</el-table>
</el-form-item>
<el-form-item prop="grjl" label="个人经历" style="width: 100%">
<span style="color: red">(有工作经历要填写工作经历,无工作经历从本科学历开始)</span>
<div id="grjl" class="grjl"></div>
</el-form-item>
<el-form-item label="照片上传" style="margin-top: 200px">
<el-upload
:action="FILE_UPLOAD_ADDRESS"
list-type="picture-card"
:file-list="imagelist"
:class="{disabled:uploadDisabled}"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
limit="1"
:before-upload="beforeAvatarUpload"
:on-success="handleAvatarSuccess">
<i class="el-icon-plus"></i>
<div class="el-upload__tip" slot="tip" style="color: red">*只能上传jpg/png文件,且不超过2MB的一寸电子照片</div>
</el-upload>
<el-dialog :visible.sync="dialogVisible" append-to-body>
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
</el-form-item>
<div style="float: right;margin: 20px 0">
<el-button type="primary" @click="doHandle">确 定</el-button>
</div>
</el-form>
</div>
<script>
let E = window.wangEditor
let editor = null
const vue = new Vue({
el: '#app',
data() {
return {
formData: {
/* jtcy:[]*/
},
formRules: {
grjl: [{required: true, message: '请填写经历', trigger: ['blur', 'change']}],
},
mzlist: [],
dwghinfo: {},
umGrjl: null,
zclist: ["教授", "副教授", "讲师", "研究员", "副研究员", "高级工程师", "其他"],
bzOptions: ['事业编制职工(正式职工)', '合同制职工', '人事代理职工', '集体职工', '流动编制职工', '非事业编制职工', '博士后进站人员', '劳务派遣人员', '聘用工(各二级单位聘用)'],
xloptions: ['博士', '硕士', '本科', '专科', '其他'],
imagelist: [],
dialogVisible: false,
dialogImageUrl: "",
}
},
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.4'),
},
mounted() {
},
created() {
this.getmzlist();
this.getGrxx();
//this.formData=${@shiro.getPrincipal()};
},
methods: {
getGrxx() {
$.post(base + '/platform/hy/grxx/getGrxx').then(res => {
this.formData = res;
if (this.formData.jtcy !== null && this.formData.jtcy !== '') {
this.formData.jtcy = JSON.parse(this.formData.jtcy);
} else {
this.formData.jtcy = [];
}
this.imagelist = []
if (this.formData.imgurl != null && this.formData.imgurl != undefined) {
this.dialogImageUrl = FILE_DOMAIN + this.formData.imgurl
this.imagelist.push({name: "_.jpg", url: this.dialogImageUrl, status: "success"})
}
// this.umGrjl=UM.getEditor('grjl',{initialFrameWidth:'100%'});
// this.umGrjl.setContent(this.formData.grjl);
editor = new E('#grjl')
editor.create()
editor.txt.html(this.formData.grjl)
})
},
getmzlist() {
$.post(base + '/platform/hy/grxx/getmzlist').then(res => {
this.mzlist = res
})
},
doHandle() {
const loading = this.$loading({
lock: true,
text: '数据更新中',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.formData.jtcy = JSON.stringify(this.formData.jtcy);
this.formData.imgUrl = this.formData.imgurl;
console.log(this.formData.imgUrl)
$.post(base + '/platform/hy/grxx/updateHyxx', this.formData).then(res => {
loading.close();
this.getGrxx();
this.$message.success('更新成功');
});
},
handleRemove: function (file) {
this.imagelist.splice(0, 1);
if (this.formData.imgurl != "") {
$.post(base + "/platform/hy/sqrh/delImg", {"imgurl": this.formData.imgurl})
this.formData.imgurl = ""
}
},
handlePictureCardPreview: function (file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
handleAvatarSuccess: function (res, file) {
var self = this;
if (res.code == 0) {
const {data: {filepath}} = res
self.formData.imgurl = filepath;
self.$message({
message: res.msg,
type: 'success'
});
} else {
self.$message({
message: res.msg,
type: 'error'
});
}
},
beforeAvatarUpload: function (file) {
var isLt2M = file.size / 1024 / 1024 < 2;
var isJPG = file.type === 'image/jpeg';
var isPng = file.type === 'image/png';
if (!isJPG && !isPng) {
this.$message.error('上传头像图片只能是 JPG和PNG格式!');
}
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 2MB!');
}
return (isJPG || isPng) && isLt2M;
},
},
computed: {
uploadDisabled: function () {
return this.imagelist.length > 0
},
},
})
</script>
<!--#
}
#-->
@@ -0,0 +1,608 @@
<!--会籍保留开除页面 djx 2019-5-14-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-date-editor .el-range-separator {
padding: 0px;
}
.el-input--suffix .el-input__inner {
padding-right: 0px;
}
.el-date-editor .el-range-separator {
width: 6%;
}
.el-dialog__body {
padding: 30px 20px 10px 20px;
}
#infoDialog .el-dialog__body {
padding: 15px 20px;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
.tpc {
padding: 10px;
color: #a0a9b4;
width: 15%;
border: 1px solid rgb(220, 220, 220);
}
.el-alert {
background-color: #f0f9eb;
color: #67c23a;
}
</style>
<div id="app" v-cloak>
<!--快捷查询-->
<el-row class="header navbar bg-white shadow">
<!--#if(@shiro.hasRole('sysadmin')||@shiro.hasRole('H03')||@shiro.hasRole('A06')){#-->
<div class="btn-group tool-button mt5">
<el-select placeholder="请选择所属工会" @change="seeunit(pageForm.unionid)" v-model="pageForm.unionid"
style="width: 200px;" clearable="true" filterable="true">
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
</el-select>
</div>
<!--#}#-->
<div class="btn-group tool-button mt5">
<el-select placeholder="请选择所属单位" v-model="pageForm.unitid" style="width: 200px;" clearable="true"
filterable="true">
<el-option v-for="item in units" :label="item.name" :value="item.id"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<div>
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 100px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker style="width:260px;"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
v-model="sqsj"
type="daterange"
range-separator="至"
start-placeholder="入会时间"
end-placeholder="入会时间">
</el-date-picker>
</div>
<div class="btn-group tool-button mt5">
<dict-select v-model="pageForm.bgsy" style="width: 120px" placeholder="变更类型"
code="MemberChangeType"></dict-select>
</div>
<!-- <div class="btn-group tool-button mt5">-->
<!-- <el-select v-model="pageForm.bglx" clearable placeholder="变更类型" style="width: 120px;">-->
<!-- <el-option label="会籍转出" value="1"></el-option>-->
<!-- <el-option label="会籍转入" value="2"></el-option>-->
<!-- <el-option label="会籍保留" value="3"></el-option>-->
<!-- <el-option label="会员退会" value="4"></el-option>-->
<!-- <el-option label="会籍开除" value="5"></el-option>-->
<!-- </el-select>-->
<!-- </div>-->
<div class="btn-group tool-button mt5">
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-button size="medium" @click="openDo">变更</el-button>
</div>
</el-row>
<!-- <el-alert title="该列表下的数据都为校工会直接变更,不需要审核" type="success" effect="dark"></el-alert>-->
<!--表格-->
<el-row class="el-table-container">
<el-table :data="tableData" size="small">
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
<el-table-column align="center" header-align="center" label="所属单位" width="200px"
prop="name"></el-table-column>
<el-table-column align="center" header-align="center" label="所属工会" width="200px"
prop="unionname"></el-table-column>
<el-table-column align="center" header-align="center" label="在职情况" prop="zzzt"></el-table-column>
<el-table-column align="center" header-align="center" label="入会时间" prop="sqsj"></el-table-column>
<el-table-column align="center" header-align="center" label="类型" prop="bgsy">
<template slot-scope="scope">
{{scope.row.bgsy}}
<!-- <el-tag v-if="scope.row.bgtype==1" type="primary">会籍转出</el-tag>-->
<!-- <el-tag v-if="scope.row.bgtype==2" type="success">会籍转入</el-tag>-->
<!-- <el-tag v-if="scope.row.bgtype==3" type="warning">会籍保留</el-tag>-->
<!-- <el-tag v-if="scope.row.bgtype==4" type="danger">会员退会</el-tag>-->
<!-- <el-tag v-if="scope.row.bgtype==5" type="danger">会籍开除</el-tag>-->
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="状态" prop="bgstate">
<template slot-scope="scope">
<span v-if="scope.row.bgstate==1" class="text-warning ml5">待基层工会审核</span>
<span v-if="scope.row.bgstate==2" class="text-danger ml5">基层工会审核不通过</span>
<span v-if="scope.row.bgstate==3" class="text-warning ml5">待校工会审核</span>
<span v-if="scope.row.bgstate==4" class="text-danger ml5">校工会审核不通过</span>
<span v-if="scope.row.bgstate==5" class="text-success ml5">审核通过</span>
</template>
</el-table-column>
<el-table-column align="center" label="操作" width="200px">
<template slot-scope="scope">
<el-button type="success" @click="openInfo(scope)" size="mini">查看</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--模态框-->
<el-dialog title="操作" :visible.sync="DialogVisible" width="50%">
<el-form label-width="86px">
<el-form-item prop="userSel" label="请选择人员">
<el-select
style="width: 100%"
v-model="formData.userSel"
filterable
multiple
remote
reserve-keyword
placeholder="根据姓名或手机号选择人员"
:remote-method="remoteMethod"
:loading="loading">
<el-option v-for="item in User" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="loginname" label="变更类型">
<dict-select v-model="formData.choose" style="width: 100%" placeholder="变更类型"
code="MemberChangeType"></dict-select>
<!-- <el-select v-model="formData.choose" placeholder="请选择" style="width: 100%">-->
<!-- <el-option label="单位变动" value="1"></el-option>-->
<!-- <el-option label="会籍保留" value="3"></el-option>-->
<!-- <el-option label="会员退会" value="4"></el-option>-->
<!-- <el-option label="会籍开除" value="5"></el-option>-->
<!-- </el-select>-->
</el-form-item>
<el-form-item prop="unitid" label="新单位" class="isShow">
<el-select v-model="formData.unitid" @change="getUnionByUnit" filterable style="width: 100%"
placeholder="请选择单位">
<el-option v-for="item in units" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="unionid" label="新工会" class="isShow">
<el-select v-model="formData.unionid" filterable style="width: 100%" placeholder="请选择工会" disabled>
<el-option v-for="item in unionadd" :label="item.unionname" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="bgyy" label="变更原因">
<el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="formData.bgyy"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="DialogVisible = false">取 消</el-button>
<el-button type="primary" @click="goDo">确 定</el-button>
</span>
</el-dialog>
<!--查看会员详细资料-->
<el-dialog title="查看" width="55%" custom-class="ViewDialogClass" :visible.sync="infoDialogVisible" top="5%">
<el-form label-width="80px">
<el-collapse v-model="activeName">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{viewData.birthday}}</td>
<td rowspan="3">
<img v-if="viewData.imgurl!=null" :src="showPic"
style="height: 140px;width: 100%">
<p v-else style="text-align: center;line-height: 140%">
暂无图片
</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{viewData.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{viewData.zzmc}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{viewData.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{viewData.unitname}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{viewData.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(viewData.grjl)==='undefined')">暂无个人简历信息
</td>
<td class="tpc" colspan="7" v-if="!(typeof(viewData.grjl)==='undefined')">
<div v-html="viewData.grjl"></div>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">家 庭 成 员</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(viewData.jtcy)==='undefined')">暂无家庭成员信息
</td>
<td class="tpc" colspan="7" v-if="!(typeof(viewData.jtcy)==='undefined')">
<div v-html="viewData.jtcy"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="会籍变更档案" name="2">
<el-table size="mini"
:data="hjtableData"
style="width: 95%">
<el-tale-column label="变更事由" show-overflow-tooltip="true" prop="bgsy" header-align="center"
align="center"></el-tale-column>
<el-table-column label="变更时间" width="88" show-overflow-tooltip="true" prop="sj"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更类型" show-overflow-tooltip="true" prop="bgtype" header-align="center"
align="center">
<template scope="scope"><span>
<span v-if="scope.row.bgtype == 1" class="text-danger ml5">转出</span>
<span v-if="scope.row.bgtype == 2" class="text-primary ml5">转入</span>
<span v-if="scope.row.bgtype == 3" class="text-warning ml5">保留</span>
<span v-if="scope.row.bgtype == 4" class="text-info ml5">退会</span>
<span v-if="scope.row.bgtype == 5" class="text-muted ml5">开除</span>
</span></template>
</el-table-column>
<el-table-column label="变更方式" show-overflow-tooltip="true" prop="bgfs" header-align="center"
align="center">
<template scope="scope"><span>
<span v-if="scope.row.bgfs == 1" class="text-danger ml5">会员申请</span>
<span v-if="scope.row.bgfs == 2" class="text-primary ml5">用户更新</span>
<span v-if="scope.row.bgfs == 3" class="text-warning ml5">校工会变更</span>
</span></template>
</el-table-column>
<el-table-column label="变更原因" :show-overflow-tooltip="true" prop="bgyy" header-align="center"
align="center"></el-table-column>
<el-table-column label="原单位" :show-overflow-tooltip="true" width="120" prop="oldunitname"
header-align="center" align="center"></el-table-column>
<el-table-column label="原工会" :show-overflow-tooltip="true" width="140" prop="oldunionname"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更单位" :show-overflow-tooltip="true" width="120" prop="newunitname"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更工会" :show-overflow-tooltip="true" width="140" prop="newunionname"
header-align="center" align="center"></el-table-column>
<el-table-column label="状态" show-overflow-tooltip="true" prop="hyzt" width="130"
header-align="center" align="center">
<template scope="scope">
<span>
<el-tag v-if="scope.row.bgstate==1" type="warning">待审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="success">审核通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="danger">审核拒绝</el-tag>
</span>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</el-dialog>
</div>
<script>
new Vue({
el: "#app",
data: function () {
return {
tableData: [],
pageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
searchKeyword: "",
searchName: "username",
unionid: "",
sqsj: "",
unitid: ""
},
unions: [],
unionadd: [],
isShow: false,
units: [],
formData: {
unitid: "",
unionid: "",
bgsy: "",
choose: "",
userSel: [],
flag: "",
},
DialogVisible: false,
User: [],
loading: false,
flag: "",
viewData: [],
age: "",
infoDialogVisible: false,
sqsj: [],
activeName: "1",
hjtableData: [],
showPic: "",
}
},
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.2'),
},
methods: {
seeunit: function (id) {
var self = this;
$.post(base + "/platform/hy/hyda/seeunit", {id: id}, function (data) {
self.units = data.data;
self.pageForm.unitid = "";
})
},
pageData: function () {
var self = this;
if (self.sqsj) {
self.pageForm.sqsj = self.sqsj.toString();
} else {
self.pageForm.sqsj = "";
}
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/hjblkc/init", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.users.list;
self.pageForm.totalCount = data.data.users.totalCount;
self.flag = data.data.flag;
self.unions = data.data.unions;
self.units = data.data.ejdw;
}
}, "json");
},
/*分页事件*/
pageSizeChange: function (val) {
this.pageForm.pageSize = val;
this.pageData();
},
pageNumberChange: function (val) {
this.pageForm.pageNumber = val;
this.pageData();
},
doSearch: function () {
this.pageForm.pageNumber = 1;
this.pageData();
},
/*打开模态框*/
openDo: function () {
var self = this;
self.formData.choose = "";
self.formData.userSel = [];
self.formData.unitid = "";
self.formData.unionid = "";
self.DialogVisible = true;
},
/*查看*/
openInfo: function (scope) {
var self = this;
$.post(base + "/platform/hy/hjblkc/findInfo", {id: scope.row.id}, function (data) {
if (data.code == 0) {
self.viewData = data.data.userInfo;
self.hjtableData = data.data.hjbg;
if (data.data.userInfo.imgurl != null) {
self.showPic = FILE_DOMAIN + data.data.userInfo.imgurl;
} else {
self.showPic = "";
}
self.age = self.calAge(self.viewData.birthday);
}
}, "json");
self.infoDialogVisible = true;
},
/*远程搜索*/
remoteMethod: function (keyWord) {
var self = this;
if (keyWord != "" && keyWord != null) {
self.loading = true;
setTimeout(function () {
$.post(base + "/platform/hy/hjblkc/remoteMethod", {
keyWord: keyWord,
flag: self.flag
}, function (data) {
if (data.code == 0) {
self.User = data.data;
self.loading = false;
}
}, "json");
}, 200)
} else {
self.User = [];
}
},
getUnionByUnit: function (value) {
var self = this;
//根据单位id查询对应的工会
$.post(base + "/platform/hy/hjblkc/getUnionByUnit", {unitid: value}, function (data) {
if (data.code == 0) {
if (data.data == null || data.data == undefined) {
self.formData.unionid = "";
self.unionadd = [];
} else {
self.formData.unionid = data.data[0].id;
self.unionadd = data.data;
}
}
}, "json");
},
goDo: function () {
var self = this;
self.formData.flag = self.flag;
if (self.formData.userSel.length == 0) {
self.$message({
message: "请选择人员",
type: 'warning'
});
return;
}
if (self.formData.choose == 0) {
self.$message({
message: "请选择对应的操作",
type: 'warning'
});
return;
}
if (self.formData.choose == "1") {
if (self.formData.unionid == "") {
self.$message({
message: "所属工会不能为空",
type: 'warning'
});
return;
}
}
//
self.$confirm("确定要进行此操作吗?", "提示", {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {
$.post(base + "/platform/hy/hjblkc/goDo", self.formData, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
self.DialogVisible = false;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
}
})
},
/*计算年龄*/
calAge: function (birthday) {
// 获得今天的时间
var date = new Date();
var startDate = new Date(birthday);
var newDate = date.getTime() - startDate.getTime();
var age = Math.ceil(newDate / 1000 / 60 / 60 / 24 / 365);
if (isNaN(age)) {
age = "";
}
return age;
},
},
created: function () {
this.pageData();
if (this.formData.choose == '') {
$(".isShow").hide();
}
},
watch: {
'formData.choose': function (value) {
if (value == '校内异动') {
$(".isShow").show();
} else {
$(".isShow").hide();
}
}
}
})
</script>
<!--#
}
#-->
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,897 @@
<!--会员档案管理页面 djx 2019-5-8-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-date-editor .el-range-separator {
padding: 0px;
}
#infoDialog .el-dialog__body {
padding: 0px 20px;
}
#plsz .el-dialog__body {
padding: 5px 0px;
}
.el-input--suffix .el-input__inner {
padding-right: 0px;
}
.el-date-editor .el-range-separator {
width: 6%;
}
.avatar-uploader {
height: 140px;
width: 100%;
}
.avatar-uploader .el-upload {
height: 140px;
width: 100%;
cursor: pointer;
position: relative;
overflow: hidden;
}
.avatar-uploader .el-upload:hover {
border-color: #409EFF;
}
.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
height: 140px;
width: 100%;
line-height: 112px;
text-align: center;
}
.avatar {
width: 100%;
height: 140px;
display: block;
}
input[type=file] {
display: none;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
.tpc {
padding: 10px;
color: #a0a9b4;
width: 15%;
border: 1px solid rgb(220, 220, 220);
}
</style>
<div id="app" v-cloak>
<!--快捷查询-->
<el-row class="header navbar bg-white shadow">
<div class="btn-group tool-button mt5">
<el-select placeholder="请选择所属工会" v-model="pageForm.unionid" style="width: 200px;" clearable="true"
filterable="true">
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<div>
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 100px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="btn-group tool-button mt5">
<dict-select v-model="pageForm.rylx" style="width: 200px;" clearable placeholder="请选择人员类型"
code="UserType"></dict-select>
</div>
<div class="btn-group tool-button mt5">
<dict-select v-model="pageForm.userstate" style="width: 200px;" clearable placeholder="请选择在职状态"
code="UserState"></dict-select>
</div>
<div class="btn-group tool-button mt5">
<el-select placeholder="请选择所在校区" v-model="pageForm.campus" style="width: 200px;" clearable="true"
filterable="true">
<el-option v-for="item in campusOptions" :label="item.campus_name" :value="item.campus_id"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker style="width:260px;"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
v-model="rxTime"
type="daterange"
range-separator="至"
start-placeholder="入校时间"
end-placeholder="入校时间">
</el-date-picker>
</div>
<div class="btn-group tool-button mt5">
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-button size="medium" v-if="${session.show}!=3" @click="dqedit"><i class="ti-plus"></i> 批量编辑</el-button>
</div>
</el-row>
<!--表格-->
<el-row class="el-table-container">
<el-table @selection-change="dqSelectionChange" :row-key="getRowKeys" :data="tableData" size="small">
<el-table-column type="selection" :reserve-selection="true"></el-table-column>
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="工号" prop="loginname"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
<el-table-column align="center" :show-overflow-tooltip="true" header-align="center" label="所属单位"
prop="name"></el-table-column>
<el-table-column align="center" :show-overflow-tooltip="true" header-align="center" label="所属工会"
prop="unionname"></el-table-column>
<el-table-column align="center" header-align="center" label="人员类型" prop="rylx"></el-table-column>
<el-table-column align="center" header-align="center" label="在职状态" prop="zzzt"></el-table-column>
<el-table-column align="center" header-align="center" label="会员状态" prop="sfhy">
<template slot-scope="scope">
<span v-if="scope.row.sfhy == 1" class="text-success ml5">正式会员</span>
<span v-if="scope.row.sfhy == 2" class="text-primary ml5">已转出</span>
<span v-if="scope.row.sfhy == 3" class="text-warning ml5">已转入</span>
<span v-if="scope.row.sfhy == 4" class="text-info ml5">保留会籍</span>
<span v-if="scope.row.sfhy == 5" class="text-muted ml5">已退会</span>
<span v-if="scope.row.sfhy == 6" class="text-danger ml5">已开除</span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="入校时间" prop="rxsj"></el-table-column>
<!-- <el-table-column align="center" header-align="center" label="退休时间" prop="txsj"></el-table-column>-->
<el-table-column align="center" header-align="center" label="所属校区" prop="dq_name"></el-table-column>
<el-table-column align="center" label="操作" width="150px">
<template slot-scope="scope">
<el-dropdown @command="dropdownCommand">
<el-button plain size="mini">
<i class="ti-settings"></i>
<span class="ti-angle-down"></span>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{type:'view',scope:scope}">
查看
</el-dropdown-item>
<el-dropdown-item :command="{type:'edit',scope:scope}">
编辑
</el-dropdown-item>
<el-dropdown-item :command="{type:'export',scope:scope}">
导出
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--查看会员详细资料-->
<el-dialog title="查看" width="55%" custom-class="ViewDialogClass" :visible.sync="infoDialogVisible" top="5%">
<el-form label-width="80px">
<el-collapse v-model="activeName">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{viewData.birthday}}</td>
<td rowspan="3">
<img v-if="viewData.imgurl!=''&&viewData.imgurl!=null" :src="showPic"
style="height: 140px;width: 100%;border:none">
<div v-if="(viewData.imgurl==''||viewData.imgurl==null)&&flag!=3"
style="text-align: center">
<el-label>暂无图片</el-label>
</div>
<div v-if="(viewData.imgurl==''||viewData.imgurl==null)&&flag==3"
style="height: 140px;width: 100%">
<el-upload
:show-file-list="false"
class="avatar-uploader"
action="/platform/hy/hyda/uploadFile"
:data="userid"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
>
<img v-if="imageUrl" :src="imageUrl" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
<span v-if="!imageUrl"
style="color: #8c939d;position: relative;top:-68px;">一寸电子照</span>
</el-upload>
</div>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{viewData.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{viewData.zzmc}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{viewData.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{viewData.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{viewData.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{viewData.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{viewData.unitname}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{viewData.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="viewData.grjl=='' || viewData.grjl==null">
暂无个人简历信息
</td>
<td class="tpc" colspan="7" v-if="viewData.grjl!='' && viewData.grjl!=null">
<div v-html="viewData.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="viewData.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="会籍变更档案" name="3">
<el-table size="mini"
:data="hjtableData"
style="width: 95%">
<el-tale-column label="变更事由" show-overflow-tooltip="true" prop="bgsy" header-align="center"
align="center"></el-tale-column>
<el-table-column label="变更时间" width="88" show-overflow-tooltip="true" prop="sj"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更类型" show-overflow-tooltip="true" prop="bgtype" header-align="center"
align="center">
<template scope="scope"><span>
<span v-if="scope.row.bgtype == 1" class="text-danger ml5">转出</span>
<span v-if="scope.row.bgtype == 2" class="text-primary ml5">转入</span>
<span v-if="scope.row.bgtype == 3" class="text-warning ml5">保留</span>
<span v-if="scope.row.bgtype == 4" class="text-info ml5">退会</span>
<span v-if="scope.row.bgtype == 5" class="text-muted ml5">开除</span>
</span></template>
</el-table-column>
<el-table-column label="变更方式" show-overflow-tooltip="true" prop="bgfs" header-align="center"
align="center">
<template scope="scope"><span>
<span v-if="scope.row.bgfs == 1" class="text-danger ml5">会员申请</span>
<span v-if="scope.row.bgfs == 2" class="text-primary ml5">用户更新</span>
<span v-if="scope.row.bgfs == 3" class="text-warning ml5">校工会变更</span>
</span></template>
</el-table-column>
<el-table-column label="变更原因" :show-overflow-tooltip="true" prop="bgyy" header-align="center"
align="center"></el-table-column>
<el-table-column label="原单位" :show-overflow-tooltip="true" width="120" prop="oldunitname"
header-align="center" align="center"></el-table-column>
<el-table-column label="原工会" :show-overflow-tooltip="true" width="140" prop="oldunionname"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更单位" :show-overflow-tooltip="true" width="120" prop="newunitname"
header-align="center" align="center"></el-table-column>
<el-table-column label="变更工会" :show-overflow-tooltip="true" width="140" prop="newunionname"
header-align="center" align="center"></el-table-column>
<el-table-column label="状态" show-overflow-tooltip="true" prop="hyzt" width="130"
header-align="center" align="center">
<template scope="scope">
<span>
<el-tag v-if="scope.row.bgstate==1" type="warning">待审核</el-tag>
<el-tag v-if="scope.row.bgstate==2" type="success">审核通过</el-tag>
<el-tag v-if="scope.row.bgstate==3" type="danger">审核拒绝</el-tag>
</span>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
</el-form>
</el-dialog>
<!--批量编辑-->
<el-dialog title="批量编辑" custom-class="ViewDialogClass" :visible.sync="editDialogVisible">
<div class="pull-right offscreen-right mt5">
<el-select size="small" clearable="true" v-model="dqid" placeholder="批量设置校区">
<el-option v-for="o in dqs" :value="o.dq_id" :label="o.dq_name">
</el-option>
</el-select>
</div>
<el-table :data="userlist" size="small">
<el-table-column align="center" header-align="center" label="工号" prop="loginname"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
<el-table-column align="center" :show-overflow-tooltip="true" header-align="center" label="所属单位"
width="200px" prop="name"></el-table-column>
<el-table-column align="center" :show-overflow-tooltip="true" header-align="center" label="所属工会"
width="200px" prop="unionname"></el-table-column>
<el-table-column align="center" header-align="center" label="所属校区" width="130">
<template scope="scope">
<el-select placeholder="请选择校区" v-model="scope.row.dqid" size="mini" style="width: 100%">
<el-option v-for="o in dqs" :value="o.dq_id" :label="o.dq_name">
</el-option>
</el-select>
</template>
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="editDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="save">确 定</el-button>
</span>
</el-dialog>
<!--批量设置会员-->
<!-- <el-dialog
title="批量设置会员" id="plsz"
:visible.sync="plzDialogVisible" custom-class="ViewDialogClass" top="3%">
<el-row class="header navbar bg-white shadow" style="min-height: 43px;">
<div class="btn-group tool-button mt5">
<el-input placeholder="可按姓名、电话查询" size="small" v-model="plszpageForm.searchKeyword" clearable></el-input>
</div>
<div class="btn-group tool-button mt5">
<el-select v-model="plszpageForm.unit" filterable clearable size="small" placeholder="请选择单位">
<el-option
v-for="item in units"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-select v-model="plszpageForm.union" v-if="flag == 1" filterable clearable size="small" placeholder="请选择工会">
<el-option
v-for="item in unions"
:label="item.unionname"
:value="item.id">
</el-option>
</el-select>
<el-select v-model="plszpageForm.union" v-if="flag == 2" disabled filterable clearable size="small" placeholder="请选择工会">
<el-option
v-for="item in unions"
:label="item.unionname"
:value="item.id">
</el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-button size="small" type="primary" icon="el-icon-search" @click="doPlszSearch"></el-button>
</div>
</el-row>
<el-row class="el-table-container">
<el-table :data="plsztableData" size="small" @selection-change="handleSelectionChange">
<el-table-column type="selection"></el-table-column>
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope"><span>{{scope.$index+(plszpageForm.pageNumber - 1) * plszpageForm.pageSize + 1}} </span></template>
</el-table-column>
<el-table-column align="center" header-align="center" label="工号" width="80" prop="loginname"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" :show-overflow-tooltip="true" label="单位" width="200px" prop="name"></el-table-column>
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
&lt;!&ndash;<el-table-column align="center" header-align="center" label="所属工会" width="200px" prop="unionname"></el-table-column>&ndash;&gt;
</el-table>
</el-row>
<el-row class="el-pagination-container">
<el-pagination
@size-change="plszpageSizeChange"
@current-change="plszpageNumberChange"
:current-page="plszpageForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="plszpageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="plszpageForm.totalCount">
</el-pagination>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="plzDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="doSz">确 定</el-button>
</span>
</el-dialog>-->
<el-dialog title="修改" :visible.sync="editVisible" width="50%">
<el-form :model="formData" ref="addForm" label-width="80px">
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="loginname" label="工&emsp;&emsp;号">
<el-input disabled v-model="formData.loginname" type="text"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="username" label="姓&emsp;&emsp;名">
<el-input disabled v-model="formData.username" type="text"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="person_type" label="人员类型">
<dict-select v-model="formData.person_type" style="width: 100%;" placeholder="请选择人员类型"
code="UserType"></dict-select>
</el-form-item>
<el-form-item prop="userState" label="在职状态">
<dict-select v-model="formData.userState" style="width: 100%;" placeholder="请选择在职状态"
code="UserState"></dict-select>
</el-form-item>
<el-form-item prop="campus_id" label="所在校区">
<el-select placeholder="请选择所在校区" v-model="formData.campus_id" style="width: 100%" clearable="true"
filterable="true">
<el-option v-for="item in campusOptions" :label="item.campus_name"
:value="item.campus_id"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="unionid" label="所在工会">
<el-select placeholder="请选择所在工会" v-model="formData.unionid" @change="formData.unitid = '';getUnits()"
style="width: 100%"
filterable="true">
<el-option v-for="item in unionOptions" :label="item.unionname" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="unitid" label="所在单位">
<el-select placeholder="请选择所在单位" v-model="formData.unitid" style="width: 100%"
filterable="true">
<el-option v-for="item in unitOptions" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="editVisible = false">取 消</el-button>
<el-button type="primary" @click="doEdit">确 定</el-button>
</span>
</el-dialog>
</div>
<script>
var vm = new Vue({
el: "#app",
data: function () {
getRowKeys = function (row) {
return row.id;
}
return {
pageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
searchKeyword: "",
searchName: "username",
rxTime: "",
txTime: "",
unionid: "",
userstate: "",
},
rxTime: [],
txTime: [],
tableData: [],
/*查看*/
infoDialogVisible: false,
viewData: [],
activeName: "1",
age: "",
hjtableData: [],
flag: "",//用于区分当前登录用户是基层工会管理员还是校工会管理员
/*批量设置*/
plzDialogVisible: false,
plsztableData: [],
plszpageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
flag: "",
union: "",
unit: "",
searchKeyword: "",
},
multipleSelection: [],
depSelection: [],
units: [],
unions: [],
unionid: "",
showPic: "",
imageUrl: "",
userid: {},
editDialogVisible: false,
dqs: [],
dqid: "",
userlist: [],
tab: [],
campusOptions: [],
unionOptions: [],
unitOptions: [],
editVisible: false,
formData: {}
}
},
components: {
'dict-select': httpVueLoader('/components/plugins/DictSelect.vue?v=1.0.4'),
},
methods: {
async doEdit() {
const resp = await $.post(loc() + "/doEditUserInfo", this.formData)
requestLaterMsgFun(this, resp, () => {
this.editVisible = false
this.pageData()
})
},
async getUnions() {
this.unionOptions = await getUnions()
},
async getUnits() {
this.unitOptions = await getUnits(this.formData.unionid)
},
async openEdit(userid) {
const {data} = await $.get(loc() + "/userInfo", {userid})
this.formData = data
this.getUnits()
this.editVisible = true
},
dropdownCommand(command) {
const {type, scope} = command
if (type == 'view') {
this.openInfo(scope)
} else if (type == 'export') {
this.daochu(scope)
} else if (type == 'edit') {
this.openEdit(scope.row.id)
}
},
//页面初始化,加载表格数据
pageData: function () {
var self = this;
if (self.rxTime) {
self.pageForm.rxTime = self.rxTime.toString();
} else {
self.pageForm.rxTime = "";
}
if (self.txTime) {
self.pageForm.txTime = self.txTime.toString();
} else {
self.pageForm.txTime = "";
}
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/hyda/init", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.user.list;
self.pageForm.totalCount = data.data.user.totalCount;
self.flag = data.data.flag;
self.plszpageForm.flag = data.data.flag;
self.units = data.data.ejdw;
self.unions = data.data.unions;
self.dqs = data.data.dqs;
}
}, "json");
},
/*批量设置*/
plszPageData: function () {
var self = this;
$.post(base + "/platform/hy/hyda/findPlSzUser", self.plszpageForm, function (data) {
if (data.code == 0) {
self.plsztableData = data.data.user.list;
self.plszpageForm.totalCount = data.data.user.totalCount;
self.unionid = data.data.unionid;
}
}, "json");
},
/*分页事件*/
pageSizeChange: function (val) {
this.pageForm.pageSize = val;
this.pageData();
},
pageNumberChange: function (val) {
this.pageForm.pageNumber = val;
this.pageData();
},
plszpageSizeChange: function (val) {
this.plszpageForm.pageSize = val;
this.plszPageData();
},
plszpageNumberChange: function (val) {
this.plszpageForm.pageNumber = val;
this.plszPageData();
},
doSearch: function () {
var self = this;
self.pageForm.pageNumber = 1;
self.pageData();
},
doPlszSearch: function () {
var self = this;
self.plszpageForm.pageNumber = 1;
self.plszPageData();
},
openInfo: function (scope) {
var self = this;
self.picTemp = false;
self.userid.userid = scope.row.id;
$.post(base + "/platform/hy/hyda/findInfo", {id: scope.row.id}, function (data) {
if (data.code == 0) {
self.viewData = data.data.userInfo;
if (self.viewData.jtcy == "" || self.viewData.jtcy == null || self.viewData == undefined) {
self.viewData.jtcy = [];
} else {
self.viewData.jtcy = JSON.parse(self.viewData.jtcy | '[]');
}
self.hjtableData = data.data.hjbg;
self.showPic = FILE_DOMAIN + self.viewData.imgurl;
self.age = self.calAge(self.viewData.birthday);
}
}, "json");
self.infoDialogVisible = true;
},
handleClick: function () {
},
openplsz: function () {
var self = this;
self.plszPageData();
if (self.flag == 2) {
setTimeout(function () {
self.plszpageForm.union = self.unionid;
}, 20)
}
self.plzDialogVisible = true;
},
handleSelectionChange: function (val) {
var self = this;
self.multipleSelection = [];
self.depSelection = [],
$(val).each(function (i, e) {
self.multipleSelection.push(e.id);
self.depSelection.push(e.name);
});
},
doSz: function () {
var self = this;
if (self.multipleSelection.length == 0) {
self.$message({
message: "请在左侧选择用户",
type: 'warning'
});
return;
}
for (var i = 0; i < self.depSelection.length; i++) {
if (self.depSelection[i] == "" || self.depSelection[i] == null) {
self.$message({
message: "用户单位为空,操作失败",
type: 'warning'
});
return;
}
}
$.post(base + "/platform/hy/hyda/plSz", {
"ids": self.multipleSelection.toString(),
"flag": self.flag
}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
self.plzDialogVisible = false;
}
}, "json");
},
daochu: function (scope) {
var self = this;
window.location.href = base + "/platform/hy/hyda/daochu?id=" + scope.row.id;
},
/*图片上传*/
handleAvatarSuccess: function (res, file) {
var self = this;
if (res.code == 0) {
self.imageUrl = URL.createObjectURL(file.raw);
self.$message({
message: res.msg,
type: 'success'
});
} else {
self.$message({
message: res.msg,
type: 'error'
});
}
},
beforeAvatarUpload: function (file) {
var isLt2M = file.size / 1024 / 1024 < 2;
var isJPG = file.type === 'image/jpeg';
var isPng = file.type === 'image/png';
if (!isJPG && !isPng) {
this.$message.error('上传头像图片只能是 JPG和PNG格式!');
}
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 2MB!');
}
return (isJPG || isPng) && isLt2M;
},
/*计算年龄*/
calAge: function (birthday) {
// 获得今天的时间
var date = new Date();
var startDate = new Date(birthday);
var newDate = date.getTime() - startDate.getTime();
var age = Math.ceil(newDate / 1000 / 60 / 60 / 24 / 365);
if (isNaN(age)) {
age = "";
}
return age;
},
dqedit: function () {
this.editDialogVisible = true;
},
dqSelectionChange: function (val) {//获取选中的对象
this.userlist = val;
},
save: function () {
var self = this;
var user = JSON.stringify(self.userlist);
$.post(base + "/platform/hy/hyda/save", {user: user}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.editDialogVisible = false;
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
onSelectAll: function (selection) {
if (selection.length) {
selection.forEach(function (value) {
this.userlist[value.id] = value;
})
} else {
// 取消全选
this.tableData.forEach(function (value) {
delete this.userlist[value.id];
})
}
},
},
created: async function () {
this.pageData();
this.campusOptions = await getCampus()
this.getUnions()
}
})
vm.$watch('dqid', function (nval, oval) {
vm.userlist.forEach(function (value) {
value.dqid = nval
})
})
</script>
<!--#
}
#-->
@@ -0,0 +1,270 @@
<!--会员批量设置-->
<!--#
layout("/layouts/platform.html"){
#-->
<div id="app" v-cloak="">
<el-row class="header navbar bg-white shadow">
<div class="btn-group tool-button mt5">
<div>
<el-input placeholder="请输入内容" clearable v-model="plszpageForm.searchKeyword">
<el-select v-model="plszpageForm.searchName" slot="prepend" placeholder="查询" style="width: 100px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="btn-group tool-button mt5">
<el-select v-model="plszpageForm.union" @change="seeunit(plszpageForm.union)"
:disabled="flag==2||flag==5?true:false" filterable clearable placeholder="请选择工会">
<el-option
v-for="item in unions"
:label="item.unionname"
:value="item.id">
</el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-select v-model="plszpageForm.unit" filterable clearable placeholder="请选择单位">
<el-option
v-for="item in units"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-button type="primary" icon="el-icon-search" @click="dosearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-button @click="sz"><i class="ti-plus"></i>批量设置会员</el-button>
</div>
</el-row>
<el-row class="el-table-container">
<el-table :data="plsztableData" ref="multipleTable" size="small" @selection-change="handleSelectionChange"
:row-key="getRowKeys">
<el-table-column type="selection" :reserve-selection="true"></el-table-column>
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope">
<span>{{scope.$index+(plszpageForm.pageNumber - 1) * plszpageForm.pageSize + 1}} </span></template>
</el-table-column>
<el-table-column align="center" header-align="center" label="工号" prop="loginname"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
<el-table-column align="center" header-align="center" label="所属工会" :show-overflow-tooltip="true"
prop="unionname"></el-table-column>
<el-table-column align="center" header-align="center" :show-overflow-tooltip="true" label="所属单位"
prop="name"></el-table-column>
</el-table>
</el-row>
<el-row class="el-pagination-container">
<el-pagination
@size-change="plszpageSizeChange"
@current-change="plszpageNumberChange"
:current-page="plszpageForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="plszpageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="plszpageForm.totalCount">
</el-pagination>
</el-row>
<el-dialog
title="批量设置会员"
:visible.sync="addhyDialog"
custom-class="ViewDialogClass"
width="50%">
<el-table :data="hylist" size="small">
<el-table-column align="center" header-align="center" label="工号" prop="loginname"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" :show-overflow-tooltip="true" label="单位"
prop="name"></el-table-column>
<el-table-column align="center" header-align="center" label="电话" prop="mobile"></el-table-column>
<!-- <el-table-column align="right">
<template scope="scope">
<el-button type="danger" size="small" @click="remove(scope)">移除</el-button>
</template>
</el-table-column>-->
</el-table>
<div slot="footer" class="dialog-footer">
<el-button @click="addhyDialog=false">取消</el-button>
<el-button type="primary" @click="doSz">确定</el-button>
</div>
</el-dialog>
</div>
<script>
var vm;
vm = new Vue({
el: "#app",
data: function () {
return {
plszpageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
flag: "",
union: "",
unit: "",
searchKeyword: "",
searchName: "username"
},
plsztableData: [],
units: [],
flag: "",
pageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
searchKeyword: "",
rxTime: "",
txTime: "",
unionid: "",
userstate: "",
searchName: "username"
},
hylist: [],
oldlist: [],
con: false,
addhyDialog: false,
multipleTable: [],
ids: [],
unions: []
}
},
methods: {
plszpageSizeChange: function (val) {
this.plszpageForm.pageSize = val;
this.plszPageData();
},
plszpageNumberChange: function (val) {
this.plszpageForm.pageNumber = val;
this.plszPageData();
},
plszPageData: function () {
var self = this;
$.post(base + "/platform/hy/hyda/findPlSzUser", self.plszpageForm, function (data) {
if (data.code == 0) {
self.plsztableData = data.data.user.list;
self.plszpageForm.totalCount = data.data.user.totalCount;
self.unionid = data.data.unionid;
}
}, "json");
},
handleSelectionChange: function (val) {
this.hylist = val;
},
getRowKeys: function (row) {
return row.id;
},
dosearch: function () {
var self = this;
self.plszpageForm.pageNumber = 1;
self.plszPageData();
},
load: function () {
var self = this;
$.post(base + "/platform/hy/hyda/init", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.flag = data.data.flag;
if (self.flag == 2 || self.flag == 5) {
self.plszpageForm.union = data.data.unions[0].id
}
self.plszpageForm.flag = data.data.flag;
self.units = data.data.ejdw;
self.unions = data.data.unions;
self.plszPageData()
}
}, "json");
},
sz: function () {
this.con = false;
if (this.hylist == "") {
this.addhyDialog = false;
this.$message({
message: "请先选择批量设置的用户!",
type: 'warning'
});
return
}
this.addhyDialog = true
},
remove: function (scope) {
this.con = true
this.$refs.multipleTable.clearSelection();
this.oldlist.splice(scope.$index, 1);
this.hylist = this.oldlist;
for (var i = 0; i < this.hylist.length; i++) {
for (var j = 0; j < this.plsztableData.length; j++) {
if (this.hylist[i].id == this.plsztableData[j].id) {
this.$refs.multipleTable.toggleRowSelection(this.plsztableData[j]);
}
}
}
},
doSz: function () {
var self = this;
self.ids = [];
for (var i = 0; i < self.hylist.length; i++) {
if (self.hylist[i].name == "" || self.hylist[i].name == null) {
self.$message({
message: "用户单位为空,操作失败",
type: 'warning'
});
return;
}
self.ids[i] = self.hylist[i].id;
}
$.post(base + "/platform/hy/hyda/plSz", {
"ids": self.ids.toString(),
"flag": self.flag
}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.plszPageData();
self.addhyDialog = false;
}
}, "json");
},
seeunit: function (id) {
console.log(id)
var self = this;
$.post(base + "/platform/hy/hyda/seeunit", {id: id}, function (data) {
self.units = data.data;
self.pageForm.unitid = "";
})
}
},
created: function () {
this.load()
}
});
</script>
<!--#
}
#-->
@@ -0,0 +1,538 @@
<!--会员数据看板页面 djx 2019-5-29-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
html, body {
width: 100%;
height: 100%;
}
.flexbox {
display: flex;
}
.echart-box {
width: 50%;
padding: 10px;
}
.year-box {
position: absolute;
right: 50px;
top: 10px;
}
</style>
<div id="app" v-cloak style="height: 100%;display: flex;">
<div style="width: 75%">
<div class="flexbox">
<div class="echart-box">
<div id="container1" :style="{height:echartboxheight}"></div>
</div>
<div class="echart-box">
<div id="container3" :style="{height:echartboxheight}"></div>
</div>
</div>
<div class="flexbox">
<div class="echart-box">
<div id="container4" :style="{height:echartboxheight}"></div>
</div>
<div class="echart-box" style="position: relative;">
<div id="container5" :style="{height:echartboxheight}"></div>
<div class="year-box">
<el-date-picker type="year" format="yyyy年" value-format="yyyy" @change="yearchange"
v-model="yeararr" placeholder="请选择某一年度">
</el-date-picker>
----至今
</div>
</div>
</div>
</div>
<div id="fghcontainer" style="width: 25%;">
<el-table show-summary stripe :data="tableData" border style="width: 100%" :max-height="$('#app').height()">
<el-table-column align="center" label="基层工会" prop="unionname" :width="$('#fghcontainer').width() * 0.7"
:show-overflow-tooltip="true">
<template slot-scope="{row}">
{{row.unionname}}{{row.unioncode}}
</template>
</el-table-column>
<el-table-column align="center" label="会员人数" prop="hyzs" sortable></el-table-column>
</el-table>
</div>
</div>
<script>
var vm = new Vue({
el: "#app",
data: function () {
return {
echartboxheight: '400px',
yeararr: moment().subtract(5, "years").format("YYYY"),
//表格数据
tableData: [],
//根据性别统计的数据
sex: [],
//根据政治面貌统计的数据
zzmm: [],
zzmmTj: [],
//根据学历统计的数据
xl: [],
xlTj: [],
//根据职称统计的数据
zc: [],
zcTj: [],
hyxdata: [],
hyydata: []
}
},
methods: {
pageData: function () {
var self = this;
$.post(base + "/platform/hysjkb/init", {}, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data;
}
}, "json");
},
//根据性别统计会员
container1: function () {
var self = this;
var dom = document.getElementById("container1");
var myChart = echarts.init(dom);
optionsex = null;
$.post(base + "/platform/hysjkb/sexTj", null, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.sex = data.data.finally;
optionsex = {
color: ['#F56C6C', '#2aaae3'],
title: {
text: '性别统计',
subtext: '人数',
x: 'left',
textStyle: {
fontSize: 15,
fontWeight: 'normal',
}
},
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
toolbox: {
show: true,
feature: {
saveAsImage: {}
},
right: 16,
},
legend: {
right: 'center',
data: ['男', '女']
},
series: [
{
name: '数据',
type: 'pie',
radius: '55%',
center: ['45%', '50%'],
data: self.sex,
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
};
if (optionsex && typeof optionsex === "object") {
myChart.setOption(optionsex, true);
}
//完毕-----
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
//根据政治面貌统计会员
container2: function () {
var dom = document.getElementById("container2");
var myChart = echarts.init(dom);
option = null;
$.post(base + "/platform/hysjkb/zzmmTj", null, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.zzmm = data.data.zzmm;
self.zzmmTj = data.data.zzmmTj;
//加载柱状图
option = {
title: {
text: '政治面貌',
subtext: '人数',
textStyle: {
fontSize: 15,
fontWeight: 'normal',
}
},
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
legend: {
data: ["会员人数"],
},
toolbox: {
show: true,
feature: {
saveAsImage: {}
},
right: 16,
},
height: 280,
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
yAxis: {
type: 'value'
},
xAxis: {
type: 'category',
data: self.zzmm,
},
color: [
"#46A3FF",
],
series: [{
name: "会员人数",
data: self.zzmmTj,
type: 'bar',
markPoint: {
data: [
{type: 'max', name: '最大值', symbolSize: [40, 40]},
{type: 'min', name: '最小值', symbolSize: [40, 40]}
]
},
markLine: {
data: [
{type: 'average', name: '平均值'}
]
},
itemStyle: {
normal: {
color: '#60C0DD', //圈圈的颜色
lineStyle: {
color: '#FE8463' //线的颜色
}
}
}
}]
};
if (option && typeof option === "object") {
myChart.setOption(option, true);
}
//完毕-------------------
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
//根据学历统计
container3: function () {
var self = this;
var dom = document.getElementById("container3");
var myChart = echarts.init(dom);
option = null;
$.post(base + "/platform/hysjkb/xlTj", null, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.xl = data.data.xl;
self.xlTj = data.data.xlTj;
//加载折线图
option = {
title: {
text: '学历统计',
subtext: '人数',
textStyle: {
fontSize: 15,
fontWeight: 'normal',
}
},
height: 280,
tooltip: {
trigger: 'axis'
},
legend: {
data: ["会员人数"],
},
toolbox: {
show: true,
feature: {
saveAsImage: {}
},
right: 16,
},
xAxis: {
type: 'category',
// boundaryGap: false,
data: self.xl,
},
yAxis: {
type: 'value',
axisLabel: {
formatter: '{value}'
}
},
series: [
{
name: "会员人数",
type: 'line',
data: self.xlTj,
// markPoint: {
// data: [
// {type: 'max', name: '最大值', symbolSize: [40, 40]},
// {type: 'min', name: '最小值', symbolSize: [40, 40]}
// ]
// },
markLine: {
// data: [
// {type: 'average', name: '平均值'}
// ]
},
itemStyle: {
normal: {
color: '#D19742',
label: {
show: true,
position: 'top',
textStyle: {
color: '#D19742'
}
}
},
},
},
]
};
if (option && typeof option === "object") {
myChart.setOption(option, true);
}
;
//完毕-------------------
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
//根据职称统计
container4: function () {
var self = this;
var dom = document.getElementById("container4");
var myChart = echarts.init(dom);
option = null;
$.post(base + "/platform/hysjkb/zcTj", null, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.zc = data.data.zc;
self.zcTj = data.data.zcTj;
//加载图
option = {
title: {
text: '职称统计',
subtext: '人数',
textStyle: {
fontSize: 15,
fontWeight: 'normal',
}
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
legend: {
data: ["会员人数"]
},
toolbox: {
feature: {
show: true,
saveAsImage: {},
right: 16,
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [
{
type: 'category',
boundaryGap: false,
data: self.zc,
}
],
yAxis: [
{
type: 'value'
}
],
series: [
{
name: '会员人数',
type: 'line',
stack: '人数',
// areaStyle: {},
data: self.zcTj,
// markPoint: {
// data: [
// {type: 'max', name: '最大值', symbolSize: [40, 40]},
// {type: 'min', name: '最小值', symbolSize: [40, 40]}
// ]
// },
// markLine: {
// data: [
// {type: 'average', name: '平均值'}
// ]
// },
itemStyle: {
normal: {
label: {
show: true,
position: 'top',
textStyle: {}
}
},
},
},
]
};
if (option && typeof option === "object") {
myChart.setOption(option, true);
}
;
//完毕-------------------
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
//年度新增会员统计
container5: function () {
var self = this;
var dom5 = document.getElementById("container5");
window.myChart5 = echarts.init(dom5);
var option5 = null;
$.post('/platform/hysjkb/hyuseraddYear', {year: self.yeararr}, function (data) {
self.hyxdata = data.data.year;
self.hyydata = data.data.hynum;
option5 = {
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
title: {
text: '会员增长趋势图',
textStyle: {
fontSize: 15,
fontWeight: 'normal',
}
},
xAxis: {
type: 'category',
data: self.hyxdata
},
yAxis: {
type: 'value'
},
series: [{
data: self.hyydata,
type: 'line',
smooth: true
}]
};
myChart5.setOption(option5);
});
},
yearchange(year) {
var self = this;
if (parseInt(year) >= parseInt(moment().format('YYYY'))) {
this.$message.warning('请选择小于当前的年份');
return;
}
$.post('/platform/hysjkb/hyuseraddYear', {year: year}, function (data) {
self.hyxdata = data.data.year;
self.hyydata = data.data.hynum;
var newoption = myChart5.getOption();
newoption.xAxis[0].data = self.hyxdata;
newoption.series[0].data = self.hyydata;
myChart5.setOption(newoption);
});
}
},
created: function () {
this.pageData();
},
mounted: function () {
this.container1();
//this.container2();
this.container3();
this.container4();
this.container5();
}
});
</script>
<!--#
}
#-->
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,764 @@
<!--分工会审核 何鹏飞 2019-5-14-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-collapse-item__content {
padding-bottom: 0px;
font-size: 13px;
color: #303133;
line-height: 1.769230769230769;
}
.rh .el-col {
border: 1px solid #e5e9f2;
line-height: 40px;
height: 40px;
text-align: center;
}
.el-dialog__body {
padding: 10px 20px;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
.el-textarea__inner {
border: none;
}
</style>
<div id="app" v-cloak>
<el-row class="header navbar bg-white shadow">
<!-- <div class="btn-group tool-button mt5">-->
<!-- <el-select placeholder="请选择所属工会" v-model="pageForm.unionid" style="width: 200px;" clearable="true"-->
<!-- filterable="true">-->
<!-- <el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>-->
<!-- </el-select>-->
<!-- </div>-->
<div class="btn-group tool-button mt5">
<div>
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 100px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker
v-model="time"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd">
</el-date-picker>
<el-select v-model="pageForm.sfhy" slot="prepend" clearable placeholder="审核状态" style="width: 150px;">
<el-option label="校工会待审核" value="3"></el-option>
<el-option label="校工会审核拒绝" value="4"></el-option>
<el-option label="校工会审核通过" value="5"></el-option>
</el-select>
<el-button slot="append" icon="el-icon-search" type="primary" @click="doSearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-button size="medium" @click="showpl" icon="el-icon-check">批量通过</el-button>
</div>
</el-row>
<!--表格-->
<el-row class="el-table-container">
<el-table
:data="tableData"
header-align="center"
size="small"
style="width: 100%;">
<el-table-column label="序号" header-align="center" align="center" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNum - 1) * pageForm.pageSize + 1}}</span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="用户名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="mobile"
label="联系电话">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="name"
label="所属单位">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="unionname"
label="所属基层工会">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sqsj"
label="申请时间">
</el-table-column>
<el-table-column label="状态"
header-align="center"
align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.hyzt==0&&(scope.row.sfhy==0||scope.row.sfhy=='')">可以申请</el-tag>
<el-tag v-if="scope.row.hyzt==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.hyzt==2" type="danger">基层工会审核拒绝</el-tag>
<el-tag v-if="scope.row.hyzt==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.hyzt==4" type="danger">校工会审核拒绝</el-tag>
<el-tag v-if="scope.row.hyzt==5" type="success">校工会审核通过</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" header-align="center" align="center">
<template slot-scope="scope">
<el-button size="mini" v-if="scope.row.hyzt==1" type="primary"
@click="show(scope.row.id)">审核
</el-button>
<el-button size="mini" v-else @click="see(scope.row.id)">查看
</el-button>
</template>
</el-table-column>
</el-table>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNum"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
</el-row>
<!--审核表单-->
<el-dialog title="入会审核" width="65%" modal="true" custom-class="ViewDialogClass" top="1%"
:visible.sync="editDialogVisible">
<el-collapse v-model="activeNames2">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserForm.birthday}}</td>
<td rowspan="3">
<img v-if="UserForm.imgurl!=''" :src="showPic" style="height: 140px;width: 100%">
<p v-if="UserForm.imgurl==''" style="text-align: center;line-height: 140%">暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserForm.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserForm.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserForm.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserForm.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserForm.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserForm.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserForm.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.grjl)==='undefined')">暂无个人简历信息</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.grjl)==='undefined')">
<div v-html="UserForm.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserForm.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item :title="UserForm.hyzt==1?'院级工会审核':'校工会审核'" name="3">
<table width="100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">审 核 建 议</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td style="border-right: 1px solid rgb(220,220,220)">
<el-input
style="width: 100%;"
:autosize="{ minRows: 5, maxRows: 5}"
v-model="jy"
resize="none"
type="textarea"
placeholder="请输入内容"
>
</el-input>
</td>
</tr>
</table>
</el-collapse-item>
</el-collapse>
<div slot="footer" class="dialog-footer">
<el-button @click="editDialogVisible=false">取 消</el-button>
<el-button type="danger" @click="edit(UserForm.id,UserForm.hyzt==1?2:4)">拒 绝</el-button>
<el-button type="success" @click="edit(UserForm.id,UserForm.hyzt==1?3:5)">同 意</el-button>
</div>
</el-dialog>
<!--查看-->
<el-dialog title="申请详情信息" id="show" width="65%" modal="true" custom-class="ViewDialogClass"
:visible.sync="seeDialogVisible" top="1%">
<el-form v-if="ruleForm!=null" label-width="80px">
<el-collapse v-model="activeNames">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{ruleForm.birthday}}</td>
<td rowspan="3">
<img v-if="ruleForm.imgurl!=''" :src="showPic"
style="height: 140px;width: 100%">
<p v-if="ruleForm.imgurl==''" style="text-align: center;line-height: 140%">
暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{ruleForm.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{ruleForm.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{ruleForm.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{ruleForm.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{ruleForm.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{ruleForm.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{ruleForm.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(ruleForm.grjl=='undefined'||ruleForm.grjl=='')">
暂无个人简历信息
</td>
<td class="tpc" colspan="7" v-if="!(ruleForm.grjl=='undefined'||ruleForm.grjl=='')">
<div v-html="ruleForm.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="ruleForm.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="院级工会审核信息" name="3">
<div v-if="ruleForm.xghshjl!=''">
<el-row>
<el-col :span="8">
<el-form-item label="审核人">
<el-lable style="color: grey">{{ruleForm.fghshjl.fghshr}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核时间">
<el-lable style="color: grey">{{ruleForm.fghshjl.shsj}}</el-lable>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col span="24">
<el-form-item label="审核建议">
<p style="color: grey ;word-wrap: break-word;word-break: break-all;overflow: hidden;">
{{ruleForm.fghshjl.shjy}}</p>
</el-form-item>
</el-col>
</el-row>
</div>
<div v-else>
<h4 style="text-align: center;line-height: 40px">暂时没有审核信息</h4>
</div>
</el-collapse-item>
<el-collapse-item title="校工会审核信息" name="4">
<div v-if="ruleForm.fghshjl!=''">
<el-row>
<el-col :span="8">
<el-form-item label="审核人">
<el-lable style="color: grey">{{ruleForm.xghshjl.xghshr}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核时间">
<el-lable style="color: grey">{{ruleForm.xghshjl.shsj}}</el-lable>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col span="24">
<el-form-item label="审核建议">
<p style="color: grey ;word-wrap: break-word;word-break: break-all;overflow: hidden;">
{{ruleForm.xghshjl.shjy}}</p>
</el-form-item>
</el-col>
</el-row>
</div>
<div v-else>
<h4 style="text-align: center;line-height: 40px">暂时没有审核信息</h4>
</div>
</el-collapse-item>
</el-collapse>
</el-form>
<div v-if="ruleForm==null">
<h4 style="text-align: center;line-height: 40px">暂时没有审核信息</h4>
</div>
</el-dialog>
<el-dialog title="批量通过" width="55%" :visible.sync="plDialogVisible">
<el-table
ref="multipleTable"
:data="pltableData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="用户名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="mobile"
label="联系电话">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="name"
label="所属单位">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="unionname"
label="所属工会">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sqsj"
label="申请时间">
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button @click="plDialogVisible=false">取 消</el-button>
<el-button type="success" @click="pltg">通 过</el-button>
</div>
</el-dialog>
</div>
<script>
var vm = new Vue({
el: "#app",
data: function () {
return {
pageForm: {//分页
pageNum: 1,
pageSize: 10,
totalCount: 0,
searchName: "username",
searchKeyword: "",
startTime: "",
endTime: "",
sfhy: "",
gxid: "",
unionid: ""
},
unions: [],
tableData: [],
starts: ['可以申请', '审核通过', '待基层工会审核', '待校工会审核', '已转出', '已退会', '已开除', '已驳回'],
editDialogVisible: false,
seeDialogVisible: false,
ruleForm: {fghshjl: {}, xghshjl: {}},
jy: "",
time: [],
activeNames: ["1", "2"],
activeNames2: ["1", "2"],
con: false,
gxList: [],
UserForm: {},
showPic: "",
plDialogVisible: false,
pltableData: [],
multipleTable: [],
hypl: []
}
},
methods: {
pageNumberChange: function (val) {//页码更新操作
this.pageForm.pageNum = val;
this.pageData();
},
pageSizeChange: function (val) {//分页大小更新操作
this.pageForm.pageSize = val;
this.pageData();
},
pageData: function () {//加载分页数据
var self = this;
sublime.showLoadingbar();//显示loading
if (self.time != "" && self.time != null) {
self.pageForm.startTime = self.time[0];
self.pageForm.endTime = self.time[1];
}
$.post(base + "/platform/hy/fghsh/data", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.list;
self.pageForm.totalCount = data.data.totalCount;
self.pageForm.startTime = "";
self.pageForm.endTime = "";
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
show: function (id) {//打开处理窗口
this.editDialogVisible = true;
this.jy = "";
this.findUser(id);
},
findUser: function (id) {//获取信息
var self = this;
$.post(base + "/platform/hy/xghsh/findUser", {id: id}, function (data) {
if (data.code == 0) {
self.UserForm = data.data;
if (self.UserForm.jtcy == "" || self.UserForm.jtcy == null || self.UserForm == undefined) {
self.UserForm.jtcy = [];
} else {
self.UserForm.jtcy = JSON.parse(self.UserForm.jtcy);
//self.UserForm.jtcy=JSON.parse(self.UserForm.jtcy);
}
console.log(self.UserForm.imgurl)
self.showPic = base + '/platform/hy/sqrh/showPic?filePath=' + self.UserForm.imgurl
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
edit: function (id, hyzt) {
var self = this;
self.UserForm.hyzt = hyzt;
if (hyzt == 4) {
if (self.jy == "") {
self.$message({
message: '审核建议不能为空!',
type: 'warning'
});
return;
}
}
self.$confirm('确定要执行此操作吗? ', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {//确认后再执行
self.UserForm.jtcy = JSON.stringify(self.UserForm.jtcy)
$.post(base + "/platform/hy/xghsh/edit?userid=" + id + "&jy=" + self.jy + "&imgUrl=" + self.UserForm.imgurl, self.UserForm, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
self.editDialogVisible = false;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
}
});
},
see: function (id) {
this.seeDialogVisible = true;
this.findShjl(id);
},
findShjl: function (id) {//获取信息
var self = this;
$.post(base + "/platform/hy/xghsh/findShjl", {id: id}, function (data) {
if (data.code == 0) {
self.ruleForm = data.data;
if (self.ruleForm.jtcy == "" || self.ruleForm.jtcy == null || self.ruleForm == undefined) {
self.ruleForm.jtcy = [];
} else {
self.ruleForm.jtcy = JSON.parse(self.ruleForm.jtcy);
self.ruleForm.jtcy = JSON.parse(self.ruleForm.jtcy);
}
self.showPic = base + '/platform/hy/sqrh/showPic?filePath=' + self.ruleForm.imgurl
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
isAdmin: function () {
var self = this
$.post(base + "/platform/hy/xghsh/isAdmin", function (data) {
self.con = data.data;
if (self.con) {
self.pageForm.gxid = "A1";//默认选择中国地质大学
}
self.pageData();
})
},
findGx: function () {
var self = this;
$.post(base + "/platform/hy/xghsh/findGx", function (data) {
if (data.code == 0) {
self.gxList = data.data
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
getunion: function () {
var self = this;
$.post(base + "/platform/hy/xghsh/unions", function (data) {
self.unions = data.data
})
},
pltg: function () {
var self = this;
var ids = [];
self.$confirm('将会通过所有选中的申请? ', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {
self.hypl.forEach(function (value) {
ids.push(value.id);
})
if (ids.length == 0) {
self.$message({
message: "暂时没有要处理的申请",
type: 'warning'
});
return;
}
ids = JSON.stringify(ids);
$.post(base + "/platform/hy/xghsh/plsh", {ids: ids}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.plDialogVisible = false;
self.pageData();
} else {
self.$message({
message: "系统异常",
type: 'error'
});
}
})
}
}
})
},
handleSelectionChange: function (val) {
this.hypl = val;
},
pl: function () {
var self = this;
$.post("/platform/hy/xghsh/pl", function (data) {
self.pltableData = data.data;
self.$refs.multipleTable.toggleAllSelection(self.pltableData, true);
})
},
showpl: function () {
this.plDialogVisible = true;
this.pl();
},
doSearch: function () {
this.pageForm.pageNum = 1;
this.pageData();
}
},
created: function () {
this.pageData();
this.getunion();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,764 @@
<!--校工会审核 何鹏飞 2019-5-14-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-collapse-item__content {
padding-bottom: 0px;
font-size: 13px;
color: #303133;
line-height: 1.769230769230769;
}
.rh .el-col {
border: 1px solid #e5e9f2;
line-height: 40px;
height: 40px;
text-align: center;
}
.el-dialog__body {
padding: 10px 20px;
}
.tpa {
padding: 10px;
text-align: center;
width: 12%;
background-color: rgb(250, 250, 250);
border: 1px solid rgb(220, 220, 220);
}
.tpb {
padding: 10px;
text-align: center;
color: #a0a9b4;
width: 16%;
border: 1px solid rgb(220, 220, 220);
}
.el-textarea__inner {
border: none;
}
</style>
<div id="app" v-cloak>
<el-row class="header navbar bg-white shadow">
<div class="btn-group tool-button mt5">
<el-select placeholder="请选择所属工会" v-model="pageForm.unionid" style="width: 200px;" clearable="true"
filterable="true">
<el-option v-for="item in unions" :label="item.unionname" :value="item.id"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<div>
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword">
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询" style="width: 100px;">
<el-option label="工号" value="loginname"></el-option>
<el-option label="姓名" value="username"></el-option>
</el-select>
</el-input>
</div>
</div>
<div class="btn-group tool-button mt5">
<el-date-picker
v-model="time"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="yyyy 年 MM 月 dd 日"
value-format="yyyy-MM-dd">
</el-date-picker>
<el-select v-model="pageForm.sfhy" slot="prepend" clearable placeholder="审核状态" style="width: 150px;">
<el-option label="校工会待审核" value="3"></el-option>
<el-option label="校工会审核拒绝" value="4"></el-option>
<el-option label="校工会审核通过" value="5"></el-option>
</el-select>
<el-button slot="append" icon="el-icon-search" type="primary" @click="doSearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-button size="medium" @click="showpl" icon="el-icon-check">批量通过</el-button>
</div>
</el-row>
<!--表格-->
<el-row class="el-table-container">
<el-table
:data="tableData"
header-align="center"
size="small"
style="width: 100%;">
<el-table-column label="序号" header-align="center" align="center" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNum - 1) * pageForm.pageSize + 1}}</span>
</template>
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="用户名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="mobile"
label="联系电话">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="name"
label="所属单位">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="unionname"
label="所属基层工会">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sqsj"
label="申请时间">
</el-table-column>
<el-table-column label="状态"
header-align="center"
align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.hyzt==0&&(scope.row.sfhy==0||scope.row.sfhy=='')">可以申请</el-tag>
<el-tag v-if="scope.row.hyzt==1" type="warning">待基层工会审核</el-tag>
<el-tag v-if="scope.row.hyzt==2" type="danger">基层工会审核拒绝</el-tag>
<el-tag v-if="scope.row.hyzt==3" type="warning">待校工会审核</el-tag>
<el-tag v-if="scope.row.hyzt==4" type="danger">校工会审核拒绝</el-tag>
<el-tag v-if="scope.row.hyzt==5" type="success">校工会审核通过</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" header-align="center" align="center">
<template slot-scope="scope">
<el-button size="mini" v-if="scope.row.hyzt==3" type="primary"
@click="show(scope.row.id)">审核
</el-button>
<el-button size="mini" v-else @click="see(scope.row.id)">查看
</el-button>
</template>
</el-table-column>
</el-table>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNum"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
</el-row>
<!--审核表单-->
<el-dialog title="入会审核" width="65%" modal="true" custom-class="ViewDialogClass" top="1%"
:visible.sync="editDialogVisible">
<el-collapse v-model="activeNames2">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{UserForm.birthday}}</td>
<td rowspan="3">
<img v-if="UserForm.imgurl!=''" :src="showPic" style="height: 140px;width: 100%">
<p v-if="UserForm.imgurl==''" style="text-align: center;line-height: 140%">暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{UserForm.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{UserForm.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{UserForm.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{UserForm.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{UserForm.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{UserForm.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{UserForm.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{UserForm.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(typeof(UserForm.grjl)==='undefined')">暂无个人简历信息</td>
<td class="tpc" colspan="7" v-if="!(typeof(UserForm.grjl)==='undefined')">
<div v-html="UserForm.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="UserForm.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item :title="UserForm.hyzt==1?'院级工会审核':'校工会审核'" name="3">
<table width="100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">审 核 建 议</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td style="border-right: 1px solid rgb(220,220,220)">
<el-input
style="width: 100%;"
:autosize="{ minRows: 5, maxRows: 5}"
v-model="jy"
resize="none"
type="textarea"
placeholder="请输入内容"
>
</el-input>
</td>
</tr>
</table>
</el-collapse-item>
</el-collapse>
<div slot="footer" class="dialog-footer">
<el-button @click="editDialogVisible=false">取 消</el-button>
<el-button type="danger" @click="edit(UserForm.id,UserForm.hyzt==1?2:4)">拒 绝</el-button>
<el-button type="success" @click="edit(UserForm.id,UserForm.hyzt==1?3:5)">同 意</el-button>
</div>
</el-dialog>
<!--查看-->
<el-dialog title="申请详情信息" id="show" width="65%" modal="true" custom-class="ViewDialogClass"
:visible.sync="seeDialogVisible" top="1%">
<el-form v-if="ruleForm!=null" label-width="80px">
<el-collapse v-model="activeNames">
<el-collapse-item title="用户信息" name="1">
<el-card>
<div>
<table style="width: 100%">
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.username}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.sex}}</td>
<td class="tpa">出生日期</td>
<td class="tpb">{{ruleForm.birthday}}</td>
<td rowspan="3">
<img v-if="ruleForm.imgurl!=''" :src="showPic"
style="height: 140px;width: 100%">
<p v-if="ruleForm.imgurl==''" style="text-align: center;line-height: 140%">
暂无图片</p>
</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">出生地点</td>
<td class="tpb">{{ruleForm.csdd}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.mz}}</td>
<td class="tpa">政治面貌</td>
<td class="tpb">{{ruleForm.zzmm}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.gz}}</td>
<td class="tpa">&emsp;&emsp;</td>
<td class="tpb">{{ruleForm.zc}}</td>
<td class="tpa">联系电话</td>
<td class="tpb">{{ruleForm.mobile}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">人事编制</td>
<td class="tpb" colspan="3">{{ruleForm.rsbz}}</td>
<td class="tpa" colspan="1">Email</td>
<td class="tpb" colspan="2">{{ruleForm.email}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="1">所在部门</td>
<td class="tpb" colspan="3">{{ruleForm.name}}</td>
<td class="tpa" colspan="1">现任职务</td>
<td class="tpb" colspan="2">{{ruleForm.zw}}</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpa" colspan="7">个 人 简 历</td>
</tr>
<tr style="border: 1px solid rgb(220,220,220);">
<td class="tpb" colspan="7" v-if="(ruleForm.grjl=='undefined'||ruleForm.grjl=='')">
暂无个人简历信息
</td>
<td class="tpc" colspan="7" v-if="!(ruleForm.grjl=='undefined'||ruleForm.grjl=='')">
<div v-html="ruleForm.grjl"></div>
</td>
</tr>
</table>
</div>
</el-card>
</el-collapse-item>
<el-collapse-item title="家庭成员" name="2">
<el-table
:data="ruleForm.jtcy"
border
size="mini"
>
<el-table-column prop="gx" label="与本人关系" align="center" header-align="center">
</el-table-column>
<el-table-column prop="xm" label="姓名" align="center" header-align="center">
</el-table-column>
<el-table-column prop="dw" label="单位" align="center" header-align="center">
</el-table-column>
<el-table-column prop="bz" label="备注" align="center" header-align="center">
</el-table-column>
</el-table>
</el-collapse-item>
<el-collapse-item title="院级工会审核信息" name="3">
<div v-if="ruleForm.xghshjl!=''">
<el-row>
<el-col :span="8">
<el-form-item label="审核人">
<el-lable style="color: grey">{{ruleForm.fghshjl.fghshr}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核时间">
<el-lable style="color: grey">{{ruleForm.fghshjl.shsj}}</el-lable>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col span="24">
<el-form-item label="审核建议">
<p style="color: grey ;word-wrap: break-word;word-break: break-all;overflow: hidden;">
{{ruleForm.fghshjl.shjy}}</p>
</el-form-item>
</el-col>
</el-row>
</div>
<div v-else>
<h4 style="text-align: center;line-height: 40px">暂时没有审核信息</h4>
</div>
</el-collapse-item>
<el-collapse-item title="校工会审核信息" name="4">
<div v-if="ruleForm.fghshjl!=''">
<el-row>
<el-col :span="8">
<el-form-item label="审核人">
<el-lable style="color: grey">{{ruleForm.xghshjl.xghshr}}</el-lable>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="审核时间">
<el-lable style="color: grey">{{ruleForm.xghshjl.shsj}}</el-lable>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col span="24">
<el-form-item label="审核建议">
<p style="color: grey ;word-wrap: break-word;word-break: break-all;overflow: hidden;">
{{ruleForm.xghshjl.shjy}}</p>
</el-form-item>
</el-col>
</el-row>
</div>
<div v-else>
<h4 style="text-align: center;line-height: 40px">暂时没有审核信息</h4>
</div>
</el-collapse-item>
</el-collapse>
</el-form>
<div v-if="ruleForm==null">
<h4 style="text-align: center;line-height: 40px">暂时没有审核信息</h4>
</div>
</el-dialog>
<el-dialog title="批量通过" width="55%" :visible.sync="plDialogVisible">
<el-table
ref="multipleTable"
:data="pltableData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="loginname"
label="用户名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="username"
label="姓名">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sex"
label="性别">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="mobile"
label="联系电话">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="name"
label="所属单位">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="unionname"
label="所属工会">
</el-table-column>
<el-table-column
header-align="center"
align="center"
prop="sqsj"
label="申请时间">
</el-table-column>
</el-table>
<div slot="footer" class="dialog-footer">
<el-button @click="plDialogVisible=false">取 消</el-button>
<el-button type="success" @click="pltg">通 过</el-button>
</div>
</el-dialog>
</div>
<script>
var vm = new Vue({
el: "#app",
data: function () {
return {
pageForm: {//分页
pageNum: 1,
pageSize: 10,
totalCount: 0,
searchName: "username",
searchKeyword: "",
startTime: "",
endTime: "",
sfhy: "",
gxid: "",
unionid: ""
},
unions: [],
tableData: [],
starts: ['可以申请', '审核通过', '待基层工会审核', '待校工会审核', '已转出', '已退会', '已开除', '已驳回'],
editDialogVisible: false,
seeDialogVisible: false,
ruleForm: {fghshjl: {}, xghshjl: {}},
jy: "",
time: [],
activeNames: ["1", "2"],
activeNames2: ["1", "2"],
con: false,
gxList: [],
UserForm: {},
showPic: "",
plDialogVisible: false,
pltableData: [],
multipleTable: [],
hypl: []
}
},
methods: {
pageNumberChange: function (val) {//页码更新操作
this.pageForm.pageNum = val;
this.pageData();
},
pageSizeChange: function (val) {//分页大小更新操作
this.pageForm.pageSize = val;
this.pageData();
},
pageData: function () {//加载分页数据
var self = this;
sublime.showLoadingbar();//显示loading
if (self.time != "" && self.time != null) {
self.pageForm.startTime = self.time[0];
self.pageForm.endTime = self.time[1];
}
$.post(base + "/platform/hy/xghsh/data", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.list;
self.pageForm.totalCount = data.data.totalCount;
self.pageForm.startTime = "";
self.pageForm.endTime = "";
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
show: function (id) {//打开处理窗口
this.editDialogVisible = true;
this.jy = "";
this.findUser(id);
},
findUser: function (id) {//获取信息
var self = this;
$.post(base + "/platform/hy/xghsh/findUser", {id: id}, function (data) {
if (data.code == 0) {
self.UserForm = data.data;
if (self.UserForm.jtcy == "" || self.UserForm.jtcy == null || self.UserForm == undefined) {
self.UserForm.jtcy = [];
} else {
self.UserForm.jtcy = JSON.parse(self.UserForm.jtcy);
//self.UserForm.jtcy=JSON.parse(self.UserForm.jtcy);
}
console.log(self.UserForm.imgurl)
self.showPic = base + '/platform/hy/sqrh/showPic?filePath=' + self.UserForm.imgurl
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
edit: function (id, hyzt) {
var self = this;
self.UserForm.hyzt = hyzt;
if (hyzt == 4) {
if (self.jy == "") {
self.$message({
message: '审核建议不能为空!',
type: 'warning'
});
return;
}
}
self.$confirm('确定要执行此操作吗? ', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {//确认后再执行
self.UserForm.jtcy = JSON.stringify(self.UserForm.jtcy)
$.post(base + "/platform/hy/xghsh/edit?userid=" + id + "&jy=" + self.jy + "&imgUrl=" + self.UserForm.imgurl, self.UserForm, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
self.editDialogVisible = false;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
}
});
},
see: function (id) {
this.seeDialogVisible = true;
this.findShjl(id);
},
findShjl: function (id) {//获取信息
var self = this;
$.post(base + "/platform/hy/xghsh/findShjl", {id: id}, function (data) {
if (data.code == 0) {
self.ruleForm = data.data;
if (self.ruleForm.jtcy == "" || self.ruleForm.jtcy == null || self.ruleForm == undefined) {
self.ruleForm.jtcy = [];
} else {
self.ruleForm.jtcy = JSON.parse(self.ruleForm.jtcy);
self.ruleForm.jtcy = JSON.parse(self.ruleForm.jtcy);
}
self.showPic = base + '/platform/hy/sqrh/showPic?filePath=' + self.ruleForm.imgurl
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
isAdmin: function () {
var self = this
$.post(base + "/platform/hy/xghsh/isAdmin", function (data) {
self.con = data.data;
if (self.con) {
self.pageForm.gxid = "A1";//默认选择中国地质大学
}
self.pageData();
})
},
findGx: function () {
var self = this;
$.post(base + "/platform/hy/xghsh/findGx", function (data) {
if (data.code == 0) {
self.gxList = data.data
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
getunion: function () {
var self = this;
$.post(base + "/platform/hy/xghsh/unions", function (data) {
self.unions = data.data
})
},
pltg: function () {
var self = this;
var ids = [];
self.$confirm('将会通过所有选中的申请? ', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {
self.hypl.forEach(function (value) {
ids.push(value.id);
})
if (ids.length == 0) {
self.$message({
message: "暂时没有要处理的申请",
type: 'warning'
});
return;
}
ids = JSON.stringify(ids);
$.post(base + "/platform/hy/xghsh/plsh", {ids: ids}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.plDialogVisible = false;
self.pageData();
} else {
self.$message({
message: "系统异常",
type: 'error'
});
}
})
}
}
})
},
handleSelectionChange: function (val) {
this.hypl = val;
},
pl: function () {
var self = this;
$.post("/platform/hy/xghsh/pl", function (data) {
self.pltableData = data.data;
self.$refs.multipleTable.toggleAllSelection(self.pltableData, true);
})
},
showpl: function () {
this.plDialogVisible = true;
this.pl();
},
doSearch: function () {
this.pageForm.pageNum = 1;
this.pageData();
}
},
created: function () {
this.pageData();
this.getunion();
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,865 @@
<!--基层工会信息管理页面 djx 2019-5-7-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-date-editor .el-range-separator {
padding: 0px;
}
#infoDialog .el-dialog__body {
padding: 0px 20px;
}
.el-tabs__header {
margin: 0 0 1px;
}
#lxrDialog .el-dialog__body {
padding-top: 0;
}
</style>
<div id="app" v-cloak>
<!--快捷查询-->
<el-row class="header navbar bg-white shadow">
<div class="btn-group tool-button mt5">
<el-input style="width: 300px" placeholder="可按基层工会名称或负责人姓名查询" v-model="pageForm.searchKeyword" clearable></el-input>
</div>
<!-- <div class="btn-group tool-button mt5">-->
<!-- <el-date-picker-->
<!-- format="yyyy-MM-dd"-->
<!-- value-format="yyyy-MM-dd"-->
<!-- v-model="searchTime"-->
<!-- type="daterange"-->
<!-- range-separator="至"-->
<!-- start-placeholder="开始日期"-->
<!-- end-placeholder="结束日期">-->
<!-- </el-date-picker>-->
<!-- </div>-->
<div class="btn-group tool-button mt5">
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<el-button size="medium" @click="openAdd" type="warning"><i class="ti-plus"></i> 新建基层工会</el-button>
</div>
</el-row>
<!--表格列表显示-->
<el-row class="el-table-container">
<el-table :data="tableData">
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope"><span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="基层工会名称" prop="unionname"
:show-overflow-tooltip="true"></el-table-column>
<el-table-column align="center" header-align="center" label="基层工会地址" prop="unionaddress"
:show-overflow-tooltip="true"></el-table-column>
<el-table-column align="center" header-align="center" label="基层工会负责人" prop="leader"></el-table-column>
<el-table-column align="center" header-align="center" label="联系电话" prop="telephone"></el-table-column>
<el-table-column align="center" label="操作" width="350px">
<template slot-scope="scope">
<el-button type="info" size="mini" @click="openLxb(scope.row)">联系信息表</el-button>
<el-button type="success" size="mini" @click="openInfo(scope)">查看</el-button>
<el-button type="primary" size="mini" @click="openEdit(scope)">编辑</el-button>
<el-button type="danger" size="mini" @click="deleteDo(scope)">删除</el-button>
</template>
</el-table-column>
</el-table>
</el-row>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
<!--新建基层工会-->
<el-dialog
title="新增基层工会"
:visible.sync="addDialogVisible" width="40%" custom-class="ViewDialogClass">
<el-form :model="formData" ref="addForm" :rules="formRules" size="small" label-width="86px">
<el-form-item prop="unionname" label="基层工会名称">
<el-input maxlength="100" placeholder="基层工会名称"
v-model="formData.unionname"
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<el-form-item prop="unionaddress" label="基层工会地址">
<el-input maxlength="100" placeholder="基层工会地址"
v-model="formData.unionaddress"
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<el-form-item prop="unionleader" label="基层工会负责人">
<el-select
style="width: 100%"
v-model="formData.unionleader"
filterable
remote
multiple
reserve-keyword
placeholder="请输入关键词"
:remote-method="remoteMethod"
:loading="loading">
<el-option v-for="item in User" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="telephone" label="联系电话">
<el-input maxlength="100" placeholder="联系电话"
v-model="formData.telephone" clearable
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<el-form-item prop="dwcode" label="单位编号">
<el-input maxlength="100" placeholder="单位编号"
v-model="formData.dwcode" clearable
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<!-- <el-form-item prop="uniontime" label="建会时间">-->
<!-- <el-date-picker style="width: 100%" v-model="formData.uniontime" format="yyyy-MM-dd"-->
<!-- value-format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>-->
<!-- </el-form-item>-->
<el-form-item prop="unit" label="组成单位">
<el-select v-model="formData.unit" multiple filterable style="width: 100%" placeholder="请选择单位">
<el-option
v-for="item in unitSeled"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="addDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="doAdd">确 定</el-button>
</span>
</el-dialog>
<!--编辑基层工会-->
<el-dialog
title="编辑基层工会"
:visible.sync="editDialogVisible" width="40%" custom-class="ViewDialogClass">
<el-form :model="editformData" ref="editForm" :rules="editformRules" size="small" label-width="86px">
<el-form-item prop="unionname" label="基层工会名称">
<el-input maxlength="100" placeholder="基层工会名称"
v-model="editformData.unionname"
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<el-form-item prop="unionaddress" label="基层工会地址">
<el-input maxlength="100" placeholder="基层工会地址"
v-model="editformData.unionaddress"
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<el-form-item prop="unionleader" label="基层工会负责人">
<el-select
style="width: 100%"
v-model="editformData.unionleader"
filterable
remote
multiple
reserve-keyword
placeholder="请输入关键词"
:remote-method="remoteMethode"
:loading="loading">
<el-option v-for="item in User" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item prop="telephone" label="联系电话">
<el-input maxlength="100" placeholder="联系电话"
v-model="editformData.telephone" clearable
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<el-form-item prop="dwcode" label="单位编号">
<el-input maxlength="100" placeholder="单位编号"
v-model="editformData.dwcode" clearable
auto-complete="off" tabindex="4" type="text"></el-input>
</el-form-item>
<!-- <el-form-item prop="uniontime" label="建会时间">-->
<!-- <el-date-picker style="width: 100%" v-model="editformData.uniontime" format="yyyy-MM-dd"-->
<!-- value-format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>-->
<!-- </el-form-item>-->
<el-form-item prop="unit" label="组成单位">
<el-select v-model="editformData.unit" multiple filterable style="width: 100%" placeholder="请选择单位">
<el-option
v-for="item in editunit"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="editDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="doEdit">确 定</el-button>
</span>
</el-dialog>
<!--查看-->
<el-dialog title="查看基层工会信息" id="infoDialog"
:visible.sync="infoDialogVisible" custom-class="ViewDialogClass">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane style="margin-top: 14px;" label="基层工会信息" name="first">
<el-row style="text-align: left;padding-right: 17px;">
<el-col :span="6">
<el-label style="font-weight: bold;font-size: small;">&emsp;基层工会名称:</el-label>
</el-col>
<el-col :span="18">
<el-label>{{detailInfo.unionname}}</el-label>
</el-col>
</el-row>
<br/>
<el-row style="text-align: left;padding-right: 17px;">
<el-col :span="6">
<el-label style="font-weight: bold;font-size: small;">&emsp;基层工会地址:</el-label>
</el-col>
<el-col :span="18">
<el-label>{{detailInfo.unionaddress}}</el-label>
</el-col>
</el-row>
<br/>
<!-- <el-row style="text-align: left;padding-right: 17px;">-->
<!-- <el-col :span="6">-->
<!-- <el-label style="font-weight: bold;font-size: small;">&emsp;建会时间:</el-label>-->
<!-- </el-col>-->
<!-- <el-col :span="18">-->
<!-- <el-label>{{detailInfo.uniontime}}</el-label>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- <br/>-->
<el-row style="text-align: left;padding-right: 17px;">
<el-col :span="6">
<el-label style="font-weight: bold;font-size: small;">基层工会负责人:</el-label>
</el-col>
<el-col :span="18">
<el-label>{{detailInfo.leader}}</el-label>
</el-col>
</el-row>
<br/>
<el-row style="text-align: left;padding-right: 17px;">
<el-col :span="6">
<el-label style="font-weight: bold;font-size: small;">&emsp;联系电话:</el-label>
</el-col>
<el-col :span="18">
<el-label>{{detailInfo.telephone}}</el-label>
</el-col>
</el-row>
<br/>
<el-row style="text-align: left;padding-right: 17px;">
<el-col :span="6">
<el-label style="font-weight: bold;font-size: small;">&emsp;单位编号:</el-label>
</el-col>
<el-col :span="18">
<el-label>{{detailInfo.dwcode}}</el-label>
</el-col>
</el-row>
<br/>
<!--<el-row style="text-align: left;padding-right: 17px;">
<el-col :span="6"><el-label style="font-weight: bold;font-size: small;">&emsp;单&emsp;&emsp;位:</el-label></el-col>
<el-col :span="18">
<template v-for="item,index in unitInfo">
<el-col :span="6">{{item.name}}</el-col>
<br v-if="(index+1) % 3 == 0"/>
</template>
</el-col>
</el-row><br/>-->
</el-tab-pane>
<el-tab-pane label="人员信息" name="third">
<el-row class="header navbar bg-white shadow" style="min-height: 43px;">
<div class="btn-group tool-button mt5">
<el-input placeholder="可按姓名、电话查询" size="small" v-model="userpageForm.searchKeyword"
clearable></el-input>
</div>
<div class="btn-group tool-button mt5">
<el-select v-model="userpageForm.unit" filterable clearable size="small" placeholder="请选择单位">
<el-option
v-for="item in unitInfo"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-button size="small" type="primary" icon="el-icon-search" @click="doUserSearch"></el-button>
</div>
</el-row>
<el-row class="el-table-container">
<el-table :data="usertableData" size="small">
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope"><span>{{scope.$index+(userpageForm.pageNumber - 1) * userpageForm.pageSize + 1}} </span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="工号"
prop="loginname"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名"
prop="username"></el-table-column>
<el-table-column align="center" header-align="center" label="性别" prop="sex"></el-table-column>
<el-table-column align="center" header-align="center" label="单位" width="200px"
prop="depname"></el-table-column>
<el-table-column align="center" header-align="center" label="电话"
prop="mobile"></el-table-column>
<el-table-column align="center" header-align="center" label="在职状态"
prop="zzzt"></el-table-column>
</el-table>
</el-row>
<el-row class="el-pagination-container">
<el-pagination
@size-change="userpageSizeChange"
@current-change="userpageNumberChange"
:current-page="userpageForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="userpageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="userpageForm.totalCount">
</el-pagination>
</el-row>
</el-tab-pane>
<el-tab-pane label="单位组成" name="fourth">
<el-table :data="unitInfo" size="small">
<el-table-column align="center" header-align="center" label="序号" type="index">
<template scope="scope"><span>{{scope.$index+1}} </span></template>
</el-table-column>
<el-table-column align="center" header-align="center" label="单位名称" prop="name"></el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="infoDialogVisible = false">确 定</el-button>
</span>
</el-dialog>
<el-dialog
id="lxrDialog"
:title="union.unionname+'联系信息表'"
:visible.sync="lxbDialogVisible" width="70%" custom-class="ViewDialogClass"
>
<div class="pull-right offscreen-right mt5" style="margin-bottom: 10px;margin-top: 10px">
<el-button size="small" @click="lxbTableData.push({})" type="warning"><i class="ti-plus"></i> 添加联系人
</el-button>
</div>
<el-table :data="lxbTableData" border>
<el-table-column align="center" header-align="center" label="序号" type="index"></el-table-column>
<el-table-column align="center" header-align="center" label="姓名" prop="name">
<template slot-scope="scope">
<el-input placeholder="填写姓名" size="small" v-model="scope.row.name" clearable></el-input>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="性别" width="110px" prop="sex">
<template slot-scope="scope">
<el-select v-model="scope.row.sex" size="small" placeholder="请选择">
<el-option
v-for="item in [{x:'男'},{x:'女'}]"
:key="item.x"
:label="item.x"
:value="item.x">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="职务" prop="zw">
<template slot-scope="scope">
<el-select v-model="scope.row.zw" size="small" placeholder="请选择">
<el-option
v-for="item in zwOptions"
:key="item.x"
:label="item.x"
:value="item.x">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="移动电话" prop="mobile">
<template slot-scope="scope">
<el-input placeholder="填写电话" size="small" v-model="scope.row.mobile" clearable></el-input>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="邮箱" prop="email" width="200px">
<template slot-scope="scope">
<el-input placeholder="填写邮箱" size="small" v-model="scope.row.email" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="操作" align="center" header-align="center" width="100px">
<template slot-scope="scope">
<el-button type="danger" icon="el-icon-delete" size="mini" @click="delLxb(scope)"></el-button>
</template>
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="lxbDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="saveLxb">保 存</el-button>
</span>
</el-dialog>
</div>
<script>
var vue = new Vue({
el: "#app",
data: function () {
return {
pageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
searchKeyword: "",
uniontime: "",
},
searchTime: [],
userpageForm: {
pageNumber: 1,
pageSize: 10,
totalCount: 0,
searchKeyword: "",
unit: "",
id: "",
},
/*表格数据*/
tableData: [],
usertableData: [],
/*新增*/
addDialogVisible: false,
formData: {
unionname: "",
unionaddress: "",
uniontime: "",
unit: [],
unionleader: [],
},
formRules: {
unionname: [
{required: true, message: '基层工会名称', trigger: ['blur', 'change']}
],
unionaddress: [
{required: true, message: '基层工会地址', trigger: ['blur', 'change']}
],
uniontime: [
{required: true, message: '建会时间', trigger: ['blur', 'change']}
],
unit: [
{required: true, message: '单位', trigger: ['blur', 'change']}
],
/*unionleader: [
{required: true, message: '基层工会负责人', trigger: ['blur', 'change']}
],*/
},
User: [],
units: [],
unitSeled: [],
loading: false,
/*编辑*/
editunit: [],
editDialogVisible: false,
editformData: {
id: "",
unionname: "",
unionaddress: "",
uniontime: "",
unit: [],
dwcode:'',
unionleader: [],
telephone: '',
/*oldleader:[],*/
},
editformRules: {
unionname: [
{required: true, message: '基层工会名称', trigger: ['blur', 'change']}
],
unionaddress: [
{required: true, message: '基层工会地址', trigger: ['blur', 'change']}
],
uniontime: [
{required: true, message: '建会时间', trigger: ['blur', 'change']}
],
unit: [
{required: true, message: '单位', trigger: ['blur', 'change']}
],
/*unionleader: [
{required: true, message: '基层工会负责人', trigger: ['blur', 'change']}
],*/
},
/*查看*/
infoDialogVisible: false,
activeName: "first",
detailInfo: [],
unitInfo: [],
union: {},
lxbDialogVisible: false,
lxbTableData: [],
delLxr: [],
zwOptions: [
{x: '书记'},
{x: '院长(处长)'},
{x: '主席'},
{x: '副主席'},
{x: '组织委员'},
{x: '宣传委员'},
{x: '文艺委员'},
{x: '体育委员'},
{x: '青工委员'},
{x: '女工委员'},
{x: '生活委员'},
]
}
},
methods: {
//保存联系表
saveLxb: function () {
var self = this
var flag = true
var errmsg = ''
var isPhone = /^1[3456789]\d{9}$/;//手机号码
var emailReg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/
$(self.lxbTableData).each(function (index) {
if (this.name === undefined || this.name == '') {
flag = false;
errmsg = '第' + (index + 1) + '个联系人的姓名未填写!'
return false
}
if (this.sex === undefined || this.sex == '') {
flag = false;
errmsg = this.name + '的性别未填写!'
return false
}
if (this.zw === undefined || this.zw == '') {
flag = false;
errmsg = this.name + '的职务未填写!'
return false
}
if (this.mobile === undefined || this.mobile == '') {
flag = false;
errmsg = this.name + '的电话未填写!'
return false
}
if (!isPhone.test(this.mobile)) {
flag = false;
errmsg = '请为' + this.name + '填写正确的电话号码!'
return false
}
if (this.email === undefined || this.email == '') {
flag = false;
errmsg = this.name + '的邮箱未填写!'
return false
}
if (!emailReg.test(this.email)) {
flag = false;
errmsg = '请为' + this.name + '填写正确的邮箱地址!'
return false
}
})
// if (self.lxbTableData.length==0){
// errmsg='请至少添加一位联系人!';
// }
// if (!flag||self.lxbTableData.length==0) {
if (!flag) {
self.$message({
message: errmsg,
type: 'warning'
});
} else {
$.post(base + "/platform/hy/unioninfomgr/saveLxb", {
unionid: self.union.id,
dellxr: JSON.stringify(self.delLxr),
lxr: JSON.stringify(self.lxbTableData),
}, function (data) {
if (data.code == 0) {
self.$message({
message: '保存成功!',
type: 'success'
});
self.lxbDialogVisible = false;
} else {
self.$message({
message: '保存失败!',
type: 'error'
});
}
}, "json");
}
},
//删除联系表单条
delLxb: function (scope) {
var self = this
if (scope.row.id != undefined) {
self.delLxr.push(scope.row.id)
}
self.lxbTableData.splice(scope.$index, 1)
},
//打开联系表
openLxb: function (union) {
var self = this
self.union = union
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/unioninfomgr/getLxbData", {unionid: union.id}, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.lxbTableData = data.data;
self.lxbDialogVisible = true
}
}, "json");
},
//页面初始化,加载表格数据
pageData: function () {
var self = this;
if (self.searchTime) {
self.pageForm.uniontime = self.searchTime.toString();
} else {
self.pageForm.uniontime = "";
}
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/unioninfomgr/init", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.unioninfomgr.list;
self.units = data.data.ejdw;
self.unitSeled = data.data.unit;
self.pageForm.totalCount = data.data.unioninfomgr.totalCount;
}
}, "json");
},
/*分页事件*/
pageSizeChange: function (val) {
this.pageForm.pageSize = val;
this.pageData();
},
pageNumberChange: function (val) {
this.pageForm.pageNumber = val;
this.pageData();
},
userpageSizeChange: function (val) {
this.userpageForm.pageSize = val;
this.userPageData();
},
userpageNumberChange: function (val) {
this.userpageForm.pageNumber = val;
this.userPageData();
},
doSearch: function () {
var self = this;
self.pageForm.pageNumber = 1;
self.pageData();
},
doUserSearch: function () {
var self = this;
self.userPageData();
},
/*新增基层工会*/
openAdd: function () {
var self = this;
self.formData = {
unionname: "",
unionaddress: "",
uniontime: "",
dwcode:'',
unit: [],
unionleader: [],
telephone: '',
};
self.User = [];
self.addDialogVisible = true;
},
doAdd: function () {
var self = this;
self.$refs["addForm"].validate(function (valid) {
if (valid) {
$.post(base + "/platform/hy/unioninfomgr/addDo", self.formData, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
self.addDialogVisible = false;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
});
},
/*远程搜索用户*/
remoteMethod: function (keyWord) {
var self = this;
if (keyWord != "" && keyWord != null) {
self.loading = true;
setTimeout(function () {
$.post(base + "/platform/hy/unioninfomgr/remoteMethod", {
keyWord: keyWord,
units: self.formData.unit.toString()
}, function (data) {
if (data.code == 0) {
self.User = data.data;
self.loading = false;
}
}, "json");
}, 200)
} else {
self.User = [];
}
},
/*远程搜索用户*/
remoteMethode: function (keyWord) {
var self = this;
if (keyWord != "" && keyWord != null) {
self.loading = true;
setTimeout(function () {
$.post(base + "/platform/hy/unioninfomgr/remoteMethod", {
keyWord: keyWord,
units: self.editformData.unit.toString()
}, function (data) {
if (data.code == 0) {
self.User = data.data;
self.loading = false;
}
}, "json");
}, 200)
} else {
self.User = [];
}
},
/*查看*/
openInfo: function (scope) {
var self = this;
//this.pageForm.pageNumber = "1";
this.userpageForm.pageNumber = "1";
self.userpageForm.searchKeyword = "";
self.userpageForm.unit = "";
self.userpageForm.id = scope.row.id;
$.post(base + "/platform/hy/unioninfomgr/findInfo", {id: scope.row.id}, function (data) {
if (data.code == 0) {
self.detailInfo = data.data.union;
self.unitInfo = data.data.unit;
}
}, "json");
self.userPageData();
self.infoDialogVisible = true;
},
userPageData: function () {
var self = this;
$.post(base + "/platform/hy/unioninfomgr/findUserInfo", self.userpageForm, function (data) {
if (data.code == 0) {
self.usertableData = data.data.user.list;
self.userpageForm.totalCount = data.data.user.totalCount;
}
}, "json");
},
handleClick: function () {
},
/*编辑*/
openEdit: function (scope) {
var self = this;
self.editformData.id = scope.row.id;
self.editformData.unionname = scope.row.unionname;
self.editformData.unionaddress = scope.row.unionaddress;
self.editformData.uniontime = scope.row.uniontime;
self.editformData.dwcode = scope.row.dwcode;
self.editformData.telephone = scope.row.telephone;
$.post(base + "/platform/hy/unioninfomgr/findById", {id: scope.row.id}, function (data) {
if (data.code == 0) {
self.User = data.data.leader;
setTimeout(function () {
self.editformData.unit = data.data.ids;
self.editformData.unionleader = data.data.leaderids;
/* self.editformData.oldleader = data.data.leader[0].id;*/
self.editunit = data.data.unit;
}, 10);
}
}, "json");
self.editDialogVisible = true;
},
doEdit: function () {
var self = this;
self.$refs["editForm"].validate(function (valid) {
if (valid) {
$.post(base + "/platform/hy/unioninfomgr/editDo", self.editformData, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
self.editDialogVisible = false;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
});
},
/*删除*/
deleteDo: function (scope) {
var self = this;
self.$confirm('此操作将删除该条数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (obj) {
if ("confirm" == obj) {
$.post(base + "/platform/hy/unioninfomgr/deleteDo", {id: scope.row.id}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
}
});
}
},
created: function () {
this.pageData();
}
})
</script>
<!--#
}
#-->
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,812 @@
<!--
二级单位管理
何鹏飞
9:22 2019/5/7
-->
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.ViewDialogClass .el-form-item {
margin-bottom: 15px;
white-space: nowrap;
width: 95%;
text-overflow: ellipsis;
overflow: visible;
}
</style>
<div id="app">
<el-row class="header navbar bg-white shadow">
<div class="btn-group tool-button mt5">
<el-input placeholder="输入编号,单位名称查询" clearable v-model="pageForm.searchKeyword">
</el-input>
</div>
<div class="btn-group tool-button mt5">
<el-select slot="prepend" clearable placeholder="基层工会" v-model="pageForm.searchName" filterable>
<el-option :label="item.unionname" :value="item.id" v-for="item in ghList" ></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-select v-if="con" slot="prepend" placeholder="所属高校" v-model="pageForm.gxid" style="width: 140px;">
<el-option :label="item.gxname" :value="item.gxid" v-for="item in gxList"></el-option>
</el-select>
</div>
<div class="btn-group tool-button mt5">
<el-button slot="append" icon="el-icon-search" type="primary" @click="doSearch"></el-button>
</div>
<div class="pull-right offscreen-right mt5">
<!--<el-button size="medium" type="success"><i class="ti-plus"></i> 更新单位</el-button>-->
<el-button size="medium" type="warning" @click="ad"><i class="ti-plus"></i> 新建单位</el-button>
</div>
</el-row>
<!--表格-->
<el-row class="el-table-container">
<el-table
:data="tableData"
header-align="center"
style="width: 100%;">
<el-table-column
prop="id"
label="单位编号">
</el-table-column>
<el-table-column
prop="name"
label="单位名称">
</el-table-column>
<el-table-column label="基层工会">
<template scope="scope"><span>{{show[scope.row.id]}}</span></template>
</el-table-column>
<el-table-column
prop="a"
label="单位负责人">
</el-table-column>
<el-table-column
prop="telephone"
label="联系电话">
</el-table-column>
<el-table-column label="操作" width="450px" header-align="center" align="center">
<template slot-scope="scope" >
<el-button size="mini" type="success" @click="doAdmin(scope.row.id)">设置负责人</el-button>
<el-button size="mini" type="warning" @click="doOperator(scope.row.id)">设置操作员</el-button>
<el-button size="mini" type="primary" @click="upd(scope)">编辑</el-button>
<el-button size="mini" type="danger" @click="del(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table>
<!--分页-->
<el-row class="el-pagination-container">
<el-pagination
@size-change="pageSizeChange"
@current-change="pageNumberChange"
:current-page="pageForm.pageNum"
:page-sizes="[10, 20, 30, 50]"
:page-size="pageForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.totalCount">
</el-pagination>
</el-row>
</el-row>
<!--新增-->
<el-dialog title="新增单位" width="35%" custom-class="ViewDialogClass" :visible.sync="roleDialogVisible">
<el-form label-width="100px" size="medium" :model="ruleForm" :rules="rules" ref="addForm">
<el-form-item label="单位编号" prop="id">
<el-input maxlength="30" placeholder="单位编号"
auto-complete="off" tabindex="1" v-model="ruleForm.id" type="text" ></el-input>
</el-form-item>
<el-form-item label="单位名称" prop="name">
<el-input maxlength="30" placeholder="单位名称"
auto-complete="off" tabindex="1" v-model="ruleForm.name" type="text" ></el-input>
</el-form-item>
<el-form-item label="单位别名" prop="aliasName">
<el-input maxlength="30" placeholder="单位别名"
auto-complete="off" tabindex="1" v-model="ruleForm.aliasName" type="text" ></el-input>
</el-form-item>
<el-form-item label="联系电话" prop="telephone">
<el-input maxlength="30" placeholder="联系电话"
auto-complete="off" tabindex="1" v-model="ruleForm.telephone" type="text" ></el-input>
</el-form-item>
<el-form-item label="基层工会" prop="id">
<el-select style="width: 100%" :show-all-levels="false" placeholder="基层工会" v-model="ruleForm.id" >
<el-option :label="item.unionname" :value="item.id" v-for="item in ghList"></el-option>
</el-select>
</el-form-item>
<el-form-item label="单位负责人" prop="fzrId">
<el-select
style="width: 100%"
size="small"
v-model="ruleForm.fzrId"
multiple
filterable
remote
reserve-keyword
placeholder="设置单位负责人"
:remote-method="remoteMethod"
:loading="loading">
<el-option
v-for="item in options"
:key="item.id"
:label="item.c"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="单位操作员" prop="czyId">
<el-select
style="width: 100%;"
size="small"
v-model="ruleForm.czyId"
multiple
filterable
remote
reserve-keyword
placeholder="设置单位操作员"
:remote-method="operatorRemoteMethod"
:loading="operatorloading">
<el-option
v-for="item in Lists"
:key="item.id"
:label="item.c"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="roleDialogVisible=false">取 消</el-button>
<el-button type="primary" @click="add">确 定</el-button>
</div>
</el-dialog>
<!--修改-->
<el-dialog title="修改单位" width="35%" custom-class="ViewDialogClass" :visible.sync="updDialogVisible">
<el-form label-width="100px" size="medium" :model="dataForm" >
<el-form-item label="单位编号" prop="id">
<el-input maxlength="30" placeholder="单位编号"
auto-complete="off" tabindex="1" v-model="dataForm.newId" type="text" ></el-input>
</el-form-item>
<el-form-item label="单位名称" >
<el-input maxlength="30" placeholder="单位名称"
auto-complete="off" tabindex="1" v-model="a" type="text" ></el-input>
</el-form-item>
<el-form-item label="联系电话" prop="telephone">
<el-input maxlength="30" placeholder="联系电话"
auto-complete="off" tabindex="1" v-model="dataForm.telephone" type="text" ></el-input>
</el-form-item>
<el-form-item label="基层工会" prop="id">
<el-select style="width: 100%" :show-all-levels="false" placeholder="基层工会" v-model="dataForm.id" >
<el-option :label="item.unionname" :value="item.id" v-for="item in ghList"></el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="updDialogVisible=false">取 消</el-button>
<el-button type="primary" @click="update">确 定</el-button>
</div>
</el-dialog>
<!--设置负责人-->
<el-dialog append-to-body custom-class="ViewDialogClass"
title="设置负责人"
:visible.sync="editAdminDialogVisible"
width="50%">
<el-select
size="small"
style="width: 40%"
v-model="value"
multiple
filterable
remote
reserve-keyword
placeholder="请输入关键词"
:remote-method="remoteMethod"
:loading="loading">
<el-option
v-for="item in options"
:key="item.id"
:label="item.c"
:value="item.id">
</el-option>
</el-select>
<el-button size="small" @click="addAdmin" type="warning">将用户加入角色</el-button>
<div class="pull-right offscreen-right">
<el-button size="small" @click="delAdmin" type="danger" >从角色中移除</el-button>
</div>
<template>
</template>
<el-table
:data="AdminTableData"
size="small"
header-align="center"
style="width: 100%"
@selection-change="userAdminSelectionChange">
<el-table-column type="selection" width="35"></el-table-column>
<!--<el-table-column type="expand">
<template slot-scope="scope">
<el-form label-position="left" inline class="el-table-expand" size="mini">
<el-form label-position="left" inline class="el-table-expand" size="mini">
<el-form-item label="联系电话">
<span>{{scope.row.mobile}}</span>
</el-form-item>
<el-form-item label="Email">
<span>{{scope.row.email}}</span>
</el-form-item>
</el-form>
</el-form>
</template>
</el-table-column>-->
<el-table-column label="职工号" prop="loginname" align="center"></el-table-column>
<el-table-column label="姓名" prop="username" align="center"></el-table-column>
<el-table-column label="性别" prop="sex" align="center"></el-table-column>
<el-table-column label="角色" prop="rolename" align="center"></el-table-column>
<el-table-column label="单位" prop="unitname" align="center"></el-table-column>
</el-table>
<el-pagination
@size-change="AdminPageSizeChange"
@current-change="AdminPageNumberChange"
:current-page="AdminForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="AdminForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="AdminForm.totalCount">
</el-pagination>
<span slot="footer" class="dialog-footer">
<el-button @click="editAdminDialogVisible = false">关 闭</el-button>
</span>
</el-dialog>
<!--设置操作人-->
<el-dialog append-to-body custom-class="ViewDialogClass"
title="设置操作员"
:visible.sync="editOperatorDialogVisible"
width="50%">
<el-select
size="small"
style="width: 40%"
v-model="key"
multiple
filterable
remote
reserve-keyword
placeholder="请输入关键词"
:remote-method="operatorRemoteMethod"
:loading="operatorloading">
<el-option
v-for="item in Lists"
:key="item.id"
:label="item.c"
:value="item.id">
</el-option>
</el-select>
<el-button size="small" @click="addOperator" type="warning">将用户加入角色</el-button>
<div class="pull-right offscreen-right">
<el-button size="small" @click="delOperator" type="danger" >从角色中移除</el-button>
</div>
<template>
</template>
<el-table
:data="OperatorTableData"
size="small"
header-align="center"
style="width: 100%"
@selection-change="userOperatorSelectionChange"
>
<el-table-column type="selection" width="35"></el-table-column>
<el-table-column label="职工号" prop="loginname" align="center"></el-table-column>
<el-table-column label="姓名" prop="username" align="center"></el-table-column>
<el-table-column label="性别" prop="sex" align="center"></el-table-column>
<el-table-column label="角色" prop="rolename" align="center"></el-table-column>
<el-table-column label="单位" prop="unitname" align="center"></el-table-column>
</el-table>
<el-pagination
@size-change="OperatorPageSizeChange"
@current-change="OperatorPageNumberChange"
:current-page="OperatorForm.pageNumber"
:page-sizes="[10, 20, 30, 50]"
:page-size="OperatorForm.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="OperatorForm.totalCount">
</el-pagination>
<span slot="footer" class="dialog-footer">
<el-button @click="editOperatorDialogVisible = false">关 闭</el-button>
</span>
</el-dialog>
</div>
<script>
var vm=new Vue({
el:'#app',
data:function () {
var validateId=function (rule, value, callback) {
if (!value){
return callback(new Error('单位编号不能为空'));
}else{
var self=this;
$.post(base+"/platform/hy/unit/see",{id:value},function (data) {
if(data.data!=null){
return callback(new Error('该单位编号已存在'));
}else{
return callback();
}
})
}
}
return{
pageForm:{
searchKeyword: "",//模糊查询
pageNum: 1,
pageSize: 10,
totalCount: 0,
searchName:"",//模糊查询条件
gxid:""
},
roleDialogVisible:false,//新建对话框
editAdminDialogVisible:false,//负责人
editOperatorDialogVisible:false,//操作人
updDialogVisible:false,
tableData:[],//单位
loading:false,
operatorloading:false,
AdminTableData:[],//负责人
OperatorTableData:[],//操作人
options:[],//负责人远程搜索
Lists:[],//操作人远程搜索
value:[],//要添加的人员数组
key:[],
a:"",
AdminDelSelect:[],//要删除的人员数组
OperatorDelSelect:[],//要删除的操作人数组
AdminForm:{
pageNumber:1,
pageSize:10,
totalCount:0,
unitId:"",
RoleId:"75beeb5c181545299cbdc9565add83fa", //单位负责人的roleid
gxid:"",
},
OperatorForm:{
pageNumber:1,
pageSize:10,
totalCount:0,
unitId:"",
RoleId:"98a75d9bcd0a4aafaa76817619501d5e", //单位操作员的roleid
gxid:"",
},
ghList:[],
show:[],
ruleForm:{},//添加表单
dataForm:{},
rules:{
id:[{ validator: validateId, trigger: 'blur'}],
name:[{required: true, message: '请输入单位名称', trigger: 'blur'}],
aliasName:[{required: true, message: '请输入单位别名', trigger: 'blur'}],
id:[{required: true, message: '请选择基层工会', trigger: 'blur'}],
},
gxList:[],
con:false,
}
},
methods:{
pageNumberChange: function (val) {//页码更新操作
this.pageForm.pageNum = val;
this.pageData();
},
pageSizeChange: function (val) {//分页大小更新操作
this.pageForm.pageSize = val;
this.pageData();
},
pageData: function () {//加载分页数据
var self = this;
sublime.showLoadingbar();//显示loading
$.post(base + "/platform/hy/unit/data", self.pageForm, function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.tableData = data.data.list;
self.pageForm.totalCount = data.data.totalCount;
self.doUnioninfomgr();//更新基层工会列表
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
remoteMethod:function (keywords) {
var self=this;
var unitid=self.AdminForm.unitId;
var roleId=self.AdminForm.RoleId;
if(keywords!=''){
self.loading=true;
$.post(base+"/platform/hy/unit/findUser",{keywords:keywords,unitid:unitid},function (data) {
if (data.code==0){
self.options=data.data;
}else{
self.options=[];
self.$message.error(data.msg);
}
self.loading=false;
})
}else{
self.options=[];
}
},
doAdmin:function(id){
this.editAdminDialogVisible=true;
this.AdminForm.unitId=id;
this.options=[];
this.doAdminload();
},
//单位负责人切换页容量
AdminPageSizeChange:function (val) {
this.AdminForm.pageSize=val;
this.doAdminload();
},
////单位负责人页码切换
AdminPageNumberChange:function (val) {
this.AdminForm.pageNumber=val;
this.doAdminload();
},
doAdminload:function () {
var self=this;
sublime.showLoadingbar();//显示loading
$.post(base+"/platform/hy/unit/fzr",self.AdminForm,function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.AdminTableData = data.data.list;
self.AdminForm.totalCount = data.data.totalCount;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
addAdmin:function () {//添加负责人
var self=this;
var user=JSON.stringify(self.value)//转换json对象
$.post(base+"/platform/hy/unit/addAdmin",{users:user,unitid:self.AdminForm.unitId,roleId:self.AdminForm.RoleId},function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.doAdminload();
self.value=[];
self.options=[];
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
},'json')
},
userAdminSelectionChange:function(val){//获取选中的对象
this.AdminDelSelect=val;
},
delAdmin:function () {//删除负责人
var self=this;
var del=[];
if (self.AdminDelSelect.length==0){
self.$message({
message:"请先添加要删除的人员"
})
}else{
self.AdminDelSelect.forEach(function (value,index) {
del.push(value.id);
})
var user=JSON.stringify(del)//转换json
$.post(base+"/platform/hy/unit/delAdmin",{users:user,unitid:self.AdminForm.unitId,roleId:self.AdminForm.RoleId},function (data) {
if(data.code==0){
self.$message({
message:data.msg,
type:'success'
});
self.doAdminload();
self.pageData();
self.AdminDelSelect=[];
}else{
self.$message({
message:data.msg,
type:'error'
})
}
},'json')
}
},
operatorRemoteMethod:function (keywords) {//操作员远程搜索
var self=this;
var unitid=self.OperatorForm.unitId;
var roleId=self.OperatorForm.RoleId;
if(keywords!=''){
self.operatorloading=true;
$.post(base+"/platform/hy/unit/findUser",{keywords:keywords,unitid:unitid},function (data) {
if (data.code==0){
self.Lists=data.data;
}else{
self.Lists=[];
self.$message.error(data.msg);
}
self.operatorloading=false;
})
}else{
self.Lists=[];
}
},
addOperator:function () {//添加操作员
var self=this;
var user=JSON.stringify(self.key)//转换json对象
$.post(base+"/platform/hy/unit/addAdmin",{users:user,unitid:self.OperatorForm.unitId,roleId:self.OperatorForm.RoleId},function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.doOperatorload();
self.key=[];
self.Lists=[];
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
},'json')
},
delOperator:function () {//删除操作员
var self=this;
var del=[];
if (self.OperatorDelSelect.length==0){
self.$message({
message:"请先添加要删除的人员"
})
}else{
self.OperatorDelSelect.forEach(function (value,index) {
del.push(value.id);
})
var user=JSON.stringify(del)//转换json
$.post(base+"/platform/hy/unit/delAdmin",{users:user,unitid:self.OperatorForm.unitId,roleId:self.OperatorForm.RoleId},function (data) {
if(data.code==0){
self.$message({
message:data.msg,
type:'success'
});
self.doOperatorload()
self.OperatorFormDelSelect=[];
}else{
self.$message({
message:data.msg,
type:'error'
})
}
},'json')
}
},
userOperatorSelectionChange:function(val){//获取选中的对象
this.OperatorDelSelect=val;
},
//单位操作人切换页容量
OperatorPageSizeChange:function (val) {
this.OperatorForm.pageSize=val;
},
////单位操作人页码切换
OperatorPageNumberChange:function (val) {
this.OperatorForm.pageNumber=val;
},
doOperatorload:function () {//加载操作员
var self=this;
sublime.showLoadingbar();//显示loading
$.post(base+"/platform/hy/unit/fzr",self.OperatorForm,function (data) {
sublime.closeLoadingbar();//关闭loading
if (data.code == 0) {
self.OperatorTableData = data.data.list;
self.OperatorForm.totalCount = data.data.totalCount;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
doOperator:function(id){//获取单位操作员
this.editOperatorDialogVisible=true;
this.Lists=[];
this.OperatorForm.unitId=id;
this.doOperatorload();
},
del:function (id) {//删除
var self=this
self.$confirm('此操作将删除该单位' , '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: function (a, b) {
if ("confirm" == a) {//确认后再执行
$.post(base + "/platform/hy/unit/del", {unitid: id}, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
})
self.pageForm.searchKeyword = "";
self.pageForm.searchName = "";
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
})
}
})
}
}
})
},
doUnioninfomgr:function () {//新增
var self=this
$.post(base+"/platform/hy/unit/doUnioninfomgr",{gxid:self.pageForm.gxid},function (data) {
self.ghList=data.data;
for (var i = 0; i < self.ghList.length; i++) {
self.show[self.ghList[i].id]=self.ghList[i].unionname;
}
})
},
add:function () {
var self = this;
if (self.ruleForm.fzrId==""){
self.$message({
message: "负责人不能为空",
})
return
}
if (self.ruleForm.czyId==""){
self.$message({
message: "操作员不能为空",
})
return
}
for (var i = 0; i <self.ruleForm.fzrId.length ; i++) {
for (var j = 0; j <self.ruleForm.czyId.length ; j++) {
if (self.ruleForm.fzrId[i]==self.ruleForm.czyId[j]){
self.$message({
message: "负责人与操作员不能为同一人",
})
return
}
}
}
var fzrId=JSON.stringify(self.ruleForm.fzrId)//转换json对象
var czyId=JSON.stringify(self.ruleForm.czyId)
self.ruleForm.gxid=self.pageForm.gxid;
self.$refs["addForm"].validate(function (valid) {
if (valid) {
$.post(base + "/platform/hy/unit/add?fzrId="+fzrId+"&czyId="+czyId, self.ruleForm, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.ruleForm={fzrId:[],czyId:[]};
self.options=[];
self.Lists=[]
self.roleDialogVisible = false;
self.pageData();
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
}
});
},
upd:function (scope) {
var self=this;
self.dataForm={
oldId:scope.row.id,
newId:scope.row.id,
telephone:scope.row.telephone,
id:scope.row.id,
}
self.a=scope.row.name;
self.updDialogVisible=true;
},
update:function () {
var self=this;
self.dataForm.name=self.a;
$.post(base + "/platform/hy/unit/update", self.dataForm, function (data) {
if (data.code == 0) {
self.$message({
message: data.msg,
type: 'success'
});
self.pageData();
self.updDialogVisible = false;
} else {
self.$message({
message: data.msg,
type: 'error'
});
}
}, "json");
},
ad:function () {
this.roleDialogVisible=true;
this.ruleForm={fzrId:[],czyId:[]}
this.options=[];
this.Lists=[];
if(this.$refs["addForm"]!== undefined){
this.$refs["addForm"].resetFields();
}
},
see:function (id) {
var self=this;
$.post(base+"/platform/hy/unit/see",{id:id},function (data) {
if(data.data==null){
self.$message({
message: "该编号可以使用",
type: 'success'
});
}else{
self.$message({
message: "该编号已经存在",
type: 'error'
});
}
})
},
isAdmin:function () {
var self=this
$.post(base+"/platform/hy/unit/isAdmin",function (data) {
self.con=data.data;
if (self.con){
self.pageForm.gxid="A1";//默认选择中南财经政法大学
self.pageData();
}else{
self.pageData();
}
})
},
findGx:function () {
var self=this;
$.post(base+"/platform/hy/unit/findGx",function (data) {
if (data.code==0){
self.gxList=data.data
} else{
self.$message({
message: data.msg,
type: 'error'
});
}
})
},
doSearch:function () {
this.pageForm.pageNum=1;
this.pageData();
}
},created:function () {
//this.pageData();
this.isAdmin()
this.findGx()
}
})
</script>
<!--#
}
#-->