699 lines
30 KiB
HTML
699 lines
30 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
<style>
|
|
.w-e-text-container {
|
|
height: 250px !important;
|
|
}
|
|
|
|
.v-box .el-card__header {
|
|
padding: 5px 15px;
|
|
}
|
|
|
|
.el-select-dropdown {
|
|
z-index: 99999999 !important;
|
|
}
|
|
|
|
.el-loading-mask {
|
|
z-index: 99999999 !important;
|
|
}
|
|
|
|
.el-picker-panel {
|
|
z-index: 99999999 !important;
|
|
}
|
|
|
|
.demo-table-expand .el-form-item {
|
|
margin-right: 0;
|
|
margin-bottom: 0;
|
|
width: 50%;
|
|
}
|
|
|
|
.el-textarea__inner {
|
|
width: 600px;
|
|
text-align: center;
|
|
}
|
|
|
|
</style>
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
<el-card shadow="never">
|
|
<div class="btn-group tool-button mt5">
|
|
<el-date-picker
|
|
placeholder="选择年度"
|
|
type="year"
|
|
v-model="pageForm.year"
|
|
value-format="yyyy">
|
|
</el-date-picker>
|
|
</div>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-select @change="pageData" clearable filterable placeholder="请选择活动"
|
|
v-model="pageForm.hdid">
|
|
<el-option
|
|
:key="item.id"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
v-for="item in lxyHd">
|
|
</el-option>
|
|
</el-select>
|
|
</div>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-select placeholder="所属工会" v-model="pageForm.unionId" style="width: 100%;"
|
|
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 @click="doSearchGh" icon="el-icon-search" type="primary"></el-button>
|
|
</div>
|
|
<div class="pull-right offscreen-right mt5">
|
|
<el-radio-group @change="doSearchGh" v-model="pageForm.isAudit">
|
|
<el-radio-button :label="1">全部</el-radio-button>
|
|
<el-radio-button :label="2">已审核</el-radio-button>
|
|
<el-radio-button :label="3">未审核</el-radio-button>
|
|
</el-radio-group>
|
|
|
|
<el-button @click="yjTg" type="primary">一键通过</el-button>
|
|
</div>
|
|
</el-card>
|
|
<el-card class="mt10" shadow="never">
|
|
<vi-title2 title="审核列表">
|
|
<template #func>
|
|
<el-button size="small" type="primary" @click="downLoadAll">
|
|
一键下载材料
|
|
</el-button>
|
|
</template>
|
|
</vi-title2>
|
|
<el-table :data="ghTableData" @selection-change="handleSelectionChangeGh" @sort-change="pageOrder"
|
|
ref="multipleTableGh" row-key="ghid"
|
|
style="width: 100%" v-loading="tabLoading">
|
|
|
|
<el-table-column
|
|
:reserve-selection="true"
|
|
type="selection"
|
|
width="55">
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="活动名称"
|
|
prop="name">
|
|
<template scope="scope">
|
|
<el-link @click="lxy_app.openView(scope.row.id)" type="primary">
|
|
{{scope.row.name}}
|
|
</el-link>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column align="center" header-align="center" label="院级工会"
|
|
prop="unionname"></el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="活动场地" prop="hdcd"
|
|
show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="联系人及联系方式" prop="fglyname"
|
|
show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
<!-- <el-table-column label="活动时间" prop="hdsj" header-align="center" sortable width="200px"
|
|
align="center">
|
|
<template scope="scope">
|
|
{{scope.row.hdkssj}} 至 {{scope.row.hdjssj}}
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="报名截止时间" prop="bmsj" header-align="center" sortable width="270px"
|
|
align="center">
|
|
<template scope="scope">
|
|
{{scope.row.bmkssj}} 至 {{scope.row.bmjzsj}}
|
|
</template>
|
|
</el-table-column>-->
|
|
|
|
|
|
<el-table-column align="center" header-align="center" label="分配名额"
|
|
prop="number">
|
|
<template scope="scope">
|
|
<span style="color: tomato">{{scope.row.number}}</span>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="审核状态" prop="dsh"
|
|
show-overflow-tooltip>
|
|
<template scope="scope">
|
|
<el-tag type="info" v-if="scope.row.dsh>0">未审核</el-tag>
|
|
<el-tag type="success" v-else>已审核</el-tag>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="报名人员" prop="username"
|
|
show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column align="center" fixed="right" header-align="center" label="操作" width="120px">
|
|
<template scope="scope">
|
|
<el-button @click="openSh(scope.row)" plain size="mini" type="primary">查看人员</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.pageNumber"
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
:page-size="pageForm.pageSize"
|
|
layout="total, sizes, prev, pager, next"
|
|
:total="pageForm.totalCount">
|
|
</el-pagination>
|
|
</el-row>
|
|
</el-card>
|
|
|
|
<template #edit>
|
|
<el-row justify="end" type="flex">
|
|
<el-button @click="sh(5)" plain type="primary">批量审核</el-button>
|
|
<!--<el-button type="danger" @click="sh(4)" plain>不通过</el-button>-->
|
|
</el-row>
|
|
|
|
<el-row class="el-table-container">
|
|
<el-table :data="bmTableData" @selection-change="handleSelectionChange" ref="multipleTableRy"
|
|
row-key="id"
|
|
style="width: 100%" tooltip-effect="dark">
|
|
|
|
<el-table-column :reserve-selection="true" :selectable='checkboxT' disabled type="selection"
|
|
width="55"></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"
|
|
sortable></el-table-column>
|
|
<el-table-column align="center" header-align="center" label="年龄" prop="age"
|
|
sortable></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="bmzt">
|
|
<template scope="scope">
|
|
<span style="color: #E6A23C" v-if="scope.row.bmzt==1">待分工会审核</span>
|
|
<span style="color: #F56C6C" v-if="scope.row.bmzt==2">分工会审核未通过</span>
|
|
<span style="color: #E6A23C" v-if="scope.row.bmzt==3">待校工会审核</span>
|
|
<span style="color: #F56C6C" v-if="scope.row.bmzt==4">校工会审核未通过</span>
|
|
<span style="color: #67C23A" v-if="scope.row.bmzt==5">报名成功</span>
|
|
<span style="color: #E6A23C" v-if="scope.row.bmzt==6">待填写个人资料</span>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" fixed="right" header-align="center" label="操作" width="150px">
|
|
<template scope="{row}">
|
|
|
|
<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',data:row}">
|
|
查看
|
|
</el-dropdown-item>
|
|
<el-dropdown-item :command="{type:'Review',data:row}" :disabled="row.bmzt==5">
|
|
审核
|
|
</el-dropdown-item>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
</el-row>
|
|
|
|
<el-row class="el-pagination-container">
|
|
<el-pagination
|
|
:current-page="ghPageForm.pageNumber"
|
|
:page-size="ghPageForm.pageSize"
|
|
:page-sizes="[10, 20, 30, 50]"
|
|
:total="ghPageForm.totalCount"
|
|
@current-change="ghPageNumberChange"
|
|
@size-change="ghPageSizeChange"
|
|
layout="total, sizes, prev, pager, next">
|
|
</el-pagination>
|
|
</el-row>
|
|
</template>
|
|
|
|
</guava>
|
|
|
|
<el-dialog :close-on-click-modal="false" :visible.sync="viewDialogSh" custom-class="ViewDialogClass"
|
|
top="3%" width="60%">
|
|
<el-form label-position="right" label-width="120px" style="padding: 20px 0">
|
|
<vi-title title="个人信息"></vi-title>
|
|
<el-row gutter="20">
|
|
<el-col :span="8">
|
|
<el-form-item label="工号:">
|
|
{{ viewData.loginname }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item label="姓名:">
|
|
{{ viewData.username }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item label="职务:">
|
|
{{ viewData.zw }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item label="人事编制:">
|
|
{{ viewData.rsbz }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item label="性别:">
|
|
{{ viewData.sex }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item label="年龄:">
|
|
{{ viewData.age }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item label="所在单位:">
|
|
{{ viewData.unitname }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item label="手机号:">
|
|
{{ viewData.mobile }}
|
|
</el-form-item>
|
|
</el-col>
|
|
|
|
</el-row>
|
|
<vi-title title="曾获荣誉"></vi-title>
|
|
<el-table :data="viewData.chry" show-header="false" size="mini" style="width: 100%">
|
|
<el-table-column align="center" header-align="center" label="获得时间" prop="hdsj"
|
|
width="250px">
|
|
<template slot-scope="{row}">
|
|
<el-date-picker format="yyyy-MM-dd" readonly type="date"
|
|
v-model="row.hdsj"></el-date-picker>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="曾获荣誉" prop="shry">
|
|
<template slot-scope="{row}">
|
|
<el-input readonly v-model="row.shry"></el-input>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="附件" width="120px">
|
|
<template slot-scope="{row}">
|
|
<div @click="dd3s.download(row.ryfj,row.ryfj)" class="file-down-span">
|
|
<i class="el-icon-download"></i>
|
|
</div>
|
|
<el-image :src="'${AppFileDomain!}'+row.ryfj" @click="dd3s.showpic(row.ryfj)"
|
|
fit="cover"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
v-if="dd3s.isPic(row.ryfj)">
|
|
</el-image>
|
|
<el-image src="***"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
v-else>
|
|
<div class="image-slot" slot="error"
|
|
style="width: 100%;height: 100%; display:flex;align-items: center;text-align: center">
|
|
<span style="font-size: 12px;color: rgb(180,180,180);width: 100%;text-align: center;overflow: hidden;padding: 0 10px;
|
|
text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical">{{row.ryfj}}</span>
|
|
</div>
|
|
</el-image>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<template v-if="viewData.files&&viewData.files.length">
|
|
<vi-title title="身份证复印件"></vi-title>
|
|
<div style="text-align: left;">
|
|
<div style="display: inline-block;width: 100px;margin-right:10px"
|
|
v-for="item in viewData.files">
|
|
<div @click="dd3s.download(item.filepath,item.filename)" class="file-down-span">
|
|
<i class="el-icon-download"></i>
|
|
</div>
|
|
<el-image :src="'${AppFileDomain!}'+item.filepath" @click="dd3s.showpic(item.filepath)"
|
|
fit="cover"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
v-if="dd3s.isPic(item.filepath)">
|
|
</el-image>
|
|
<el-image src="***"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
v-else>
|
|
<div class="image-slot" slot="error"
|
|
style="width: 100%;height: 100%; display:flex;align-items: center;text-align: center">
|
|
<span style="font-size: 12px;color: rgb(180,180,180);width: 100%;text-align: center;overflow: hidden;padding: 0 10px;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical">{{item.filename}}</span>
|
|
</div>
|
|
</el-image>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<vi-title title="个人材料" style="margin-top: 10px"></vi-title>
|
|
<el-descriptions :column="2" border>
|
|
<el-descriptions-item label="附件">
|
|
<file-upload v-if="viewData.bmFiles && viewData.bmFiles.length > 0"
|
|
:files="viewData.bmFiles"
|
|
:view="true"></file-upload>
|
|
<span v-else>暂无个人材料</span>
|
|
</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-form>
|
|
<span class="dialog-footer" slot="footer" v-if="this.viewData.num==2">
|
|
<el-button type="danger" @click="grsh(4)" plain>不通过</el-button>
|
|
<el-button type="success" @click="grsh(5)" plain>通 过</el-button>
|
|
</span>
|
|
</el-dialog>
|
|
</div>
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
data() {
|
|
return {
|
|
tabKey: new Date().getTime(),
|
|
viewData: [],
|
|
lxyHd: [],
|
|
unions: [],
|
|
userOptions: [],
|
|
multipleSelection: [],
|
|
multipleSelectionGh: [],
|
|
viewDialogSh: false,
|
|
loading: false,
|
|
tabLoading: false,
|
|
userLoading: false,
|
|
showGh: true,
|
|
formData: {},
|
|
tableData: [],
|
|
bmTableData: [],
|
|
ghTableData: [],
|
|
pageForm: {
|
|
searchName: "name",
|
|
searchKeyword: "",
|
|
pageNumber: 1,
|
|
pageSize: 10,
|
|
totalCount: 0,
|
|
pageOrderName: "",
|
|
pageOrderBy: "",
|
|
isAudit: 1,
|
|
year: new Date().getFullYear() + "",
|
|
hdid: ""
|
|
},
|
|
ghPageForm: {
|
|
isAudit: 1,
|
|
year: new Date().getFullYear() + "",
|
|
searchName: "un.unionname",
|
|
searchKeyword: "",
|
|
pageNumber: 1,
|
|
pageSize: 10,
|
|
totalCount: 0,
|
|
pageOrderName: "",
|
|
pageOrderBy: "",
|
|
hdid: ""
|
|
},
|
|
}
|
|
},
|
|
methods: {
|
|
downLoadAll() {
|
|
location.href = '/platform/zgfw/lxy/xghsh/downLoadAll?year=' + this.pageForm.year +
|
|
'&hdid=' + this.pageForm.hdid + '&searchKeyword=' + this.pageForm.searchKeyword +
|
|
'&isAudit=' + this.pageForm.isAudit
|
|
},
|
|
checkboxT(row) {
|
|
if (row.bmzt == 5) {
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
},
|
|
dropdownCommand(command) {
|
|
const {type, data} = command
|
|
if (type == 'view') {
|
|
this.openView(data, 1)
|
|
} else if (type == 'Review') {
|
|
this.openView(data, 2)
|
|
}
|
|
},
|
|
async getLxyBmInfo(id) {
|
|
const {data} = await $.get(base + "/platform/zgfw/lxy/fghsh/getBmInfo", {id})
|
|
return data
|
|
},
|
|
async openView(row, num) {
|
|
|
|
this.viewData = await this.getLxyBmInfo(row.id)
|
|
this.viewData.num = num
|
|
this.ghPageForm.hdid = row.hdid
|
|
this.ghPageForm.uid = row.uid
|
|
this.viewData.unitname = row.unitname
|
|
this.viewDialogSh = true
|
|
},
|
|
openShGh(row) {
|
|
this.pageForm.hdid = row.id
|
|
$.post(base + "/platform/zgfw/lxy/xghsh/pageData", this.pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tabLoading = false
|
|
if (data.code == 0) {
|
|
this.ghTableData = data.data.list;
|
|
this.pageForm.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
},
|
|
|
|
openSh(row) {
|
|
this.ghPageForm.hdid = row.hdid
|
|
this.ghPageForm.ghid = row.ghid
|
|
this.$refs.guava.edit()
|
|
this.showGh = false
|
|
this.$nextTick(() => {
|
|
this.toggleSelection()
|
|
})
|
|
this.refresh(this.ghPageForm.ghid, this.ghPageForm.hdid)
|
|
|
|
},
|
|
refresh(ghid, hdid) {
|
|
$.post(base + "/platform/zgfw/lxy/xghsh/findBm", {
|
|
ghId: ghid,
|
|
hdId: hdid,
|
|
...this.ghPageForm
|
|
}, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tabLoading = false
|
|
if (data.code == 0) {
|
|
this.bmTableData = data.data.list;
|
|
this.ghPageForm.totalCount = data.data.totalCount
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
},
|
|
yjTg() {
|
|
if (this.multipleSelectionGh.length == 0) {
|
|
this.$message({
|
|
message: '请选择工会!',
|
|
type: 'warning'
|
|
});
|
|
return
|
|
}
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
text: '数据提交中...',
|
|
spinner: 'el-icon-loading',
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
let arr = []
|
|
this.multipleSelectionGh.map(v => {
|
|
arr.push({ghid: v.ghid, hdid: v.hdid})
|
|
})
|
|
$.post(base + "/platform/zgfw/lxy/xghsh/yjSh", {maps: JSON.stringify(arr)}, (data) => {
|
|
loading.close()
|
|
if (data.code == 0) {
|
|
this.$message({
|
|
message: '提交成功',
|
|
type: 'success'
|
|
});
|
|
this.toggleSelectionGh()
|
|
this.openShGh({id: this.pageForm.hdid});
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
},
|
|
sh(zt) {
|
|
if (this.multipleSelection.length == 0) {
|
|
this.$message({
|
|
message: '请选择人员!',
|
|
type: 'warning'
|
|
});
|
|
return
|
|
}
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
text: '数据提交中...',
|
|
spinner: 'el-icon-loading',
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
let arr = []
|
|
this.multipleSelection.map(v => {
|
|
arr.push(v.uid)
|
|
})
|
|
$.post(base + "/platform/zgfw/lxy/xghsh/sh", {
|
|
hdid: this.ghPageForm.hdid,
|
|
ghid: this.ghPageForm.ghid,
|
|
bmzt: zt,
|
|
users: JSON.stringify(arr)
|
|
}, (data) => {
|
|
loading.close()
|
|
if (data.code == 0) {
|
|
this.$message({
|
|
message: '提交成功',
|
|
type: 'success'
|
|
});
|
|
this.viewDialogSh = false
|
|
this.pageData()
|
|
this.toggleSelection()
|
|
this.refresh(this.ghPageForm.ghid, this.ghPageForm.hdid)
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
},
|
|
grsh(zt) {
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
text: '数据提交中...',
|
|
spinner: 'el-icon-loading',
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
$.post(base + "/platform/zgfw/lxy/xghsh/grsh", {
|
|
hdid: this.ghPageForm.hdid,
|
|
ghid: this.ghPageForm.ghid,
|
|
userid: this.viewData.userid,
|
|
bmzt: zt,
|
|
}, (data) => {
|
|
loading.close()
|
|
if (data.code == 0) {
|
|
this.$message({
|
|
message: '提交成功',
|
|
type: 'success'
|
|
});
|
|
this.viewDialogSh = false
|
|
this.pageData()
|
|
this.toggleSelection()
|
|
this.refresh(this.ghPageForm.ghid, this.ghPageForm.hdid)
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
},
|
|
toggleSelection(rows) {
|
|
if (rows) {
|
|
rows.forEach(row => {
|
|
this.$refs.multipleTableRy.toggleRowSelection(row);
|
|
});
|
|
} else {
|
|
this.$refs.multipleTableRy.clearSelection();
|
|
}
|
|
},
|
|
toggleSelectionGh(rows) {
|
|
if (rows) {
|
|
rows.forEach(row => {
|
|
this.$refs.multipleTableGh.toggleRowSelection(row);
|
|
});
|
|
} else {
|
|
this.$refs.multipleTableGh.clearSelection();
|
|
}
|
|
},
|
|
handleSelectionChange(val) {
|
|
this.multipleSelection = val;
|
|
},
|
|
handleSelectionChangeGh(val) {
|
|
this.multipleSelectionGh = val;
|
|
},
|
|
async userRemoteMethod(query) {
|
|
if (query) {
|
|
this.userLoading = true
|
|
const arr = await searchUser(query)
|
|
this.userOptions = this.userOptions.filter(v => {
|
|
return v.id == this.formData.hdfzr
|
|
}).concat(arr.filter(v => {
|
|
return v.id != this.formData.hdfzr
|
|
}));
|
|
|
|
this.userLoading = false
|
|
}
|
|
},
|
|
doSearch() {
|
|
this.tabKey = new Date().getTime()
|
|
this.pageForm.pageNumber = 1
|
|
this.pageData()
|
|
},
|
|
doSearchGh() {
|
|
this.tabKey = new Date().getTime()
|
|
this.pageForm.pageNumber = 1
|
|
this.openShGh({id: this.pageForm.hdid});
|
|
},
|
|
ghPageOrder(column) {//按字段排序
|
|
this.ghPageForm.pageOrderName = column.prop;
|
|
this.ghPageForm.pageOrderBy = column.order;
|
|
this.refresh(this.ghPageForm.ghid, this.ghPageForm.hdid)
|
|
},
|
|
ghPageNumberChange(val) {//页码更新操作
|
|
this.ghPageForm.pageNumber = val;
|
|
this.refresh(this.ghPageForm.ghid, this.ghPageForm.hdid)
|
|
},
|
|
ghPageSizeChange(val) {//分页大小更新操作
|
|
this.ghPageForm.pageSize = val;
|
|
this.refresh(this.ghPageForm.ghid, this.ghPageForm.hdid)
|
|
},
|
|
pageData() {
|
|
sublime.showLoadingbar();
|
|
this.tabLoading = true
|
|
$.post(base + "/platform/zgfw/lxy/xghsh/pageData", this.pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tabLoading = false
|
|
if (data.code == 0) {
|
|
this.ghTableData = data.data.list;
|
|
this.pageForm.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
},
|
|
},
|
|
async created() {
|
|
this.unions = await getUnions()
|
|
this.lxyHd = await getNowLxyHd()
|
|
this.pageForm.hdid = this.lxyHd[0].id
|
|
this.pageData();
|
|
}
|
|
})
|
|
</script>
|
|
<!--#layout("/platform/zgfw/lxy/dialogView.html"){}#-->
|
|
<!--#
|
|
}
|
|
#-->
|