357 lines
15 KiB
HTML
357 lines
15 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
<style>
|
|
input[type="file"] {
|
|
display: none
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
</style>
|
|
<div id="app" v-cloak>
|
|
|
|
<el-row class="header navbar bg-white shadow">
|
|
<div class="btn-group tool-button mt5">
|
|
<el-select v-model="pageForm.hdid" filterable clearable placeholder="请选择活动" @change="pageData">
|
|
<el-option
|
|
v-for="item in lxyHd"
|
|
:key="item.id"
|
|
:label="item.name"
|
|
:value="item.id">
|
|
</el-option>
|
|
</el-select>
|
|
</div>
|
|
<div class="btn-group tool-button mt5">
|
|
<el-date-picker
|
|
v-model="pageForm.year"
|
|
type="year"
|
|
value-format="yyyy"
|
|
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>
|
|
</el-row>
|
|
|
|
<el-row class="el-table-container">
|
|
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
|
|
v-loading="tabLoading">
|
|
<el-table-column align="center" header-align="center" label="序号" width="100px">
|
|
<template scope="scope">
|
|
<span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="报名人" prop="username" header-align="center" align="center"></el-table-column>
|
|
|
|
<el-table-column label="活动名称" prop="name" header-align="center" width="300px"
|
|
align="center">
|
|
<template scope="scope">
|
|
<el-link type="primary" @click="lxy_app.openView(scope.row.hdid)">
|
|
{{scope.row.name}}
|
|
</el-link>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="活动场地" prop="hdcd" header-align="center" show-overflow-tooltip
|
|
align="center"></el-table-column>
|
|
|
|
<el-table-column label="活动时间" prop="hdkssj" header-align="center" sortable
|
|
align="center">
|
|
<template scope="scope">
|
|
{{scope.row.hdkssj}} 至 {{scope.row.hdjssj}}
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="报名截止时间" prop="bmjzsj" header-align="center" sortable
|
|
align="center"></el-table-column>
|
|
|
|
<el-table-column label="报名状态" prop="bmzt" header-align="center" align="center">
|
|
<template scope="scope">
|
|
<span style="color: #E6A23C" v-if="scope.row.bmzt==6">待填写报名资料</span>
|
|
<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>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column align="center" header-align="center" label="操作" fixed="right" width="120px">
|
|
<template scope="scope">
|
|
<el-button size="mini" type="primary" @click="openSh(scope.row)" plain>审 核
|
|
</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"
|
|
:total="pageForm.totalCount">
|
|
</el-pagination>
|
|
</el-row>
|
|
|
|
<el-dialog title="分工会审核" top="3%" :visible.sync="viewDialogSh" custom-class="ViewDialogClass"
|
|
:close-on-click-modal="false" width="60%">
|
|
|
|
<table class="tabInfo">
|
|
<tr>
|
|
<td class="title" colspan="4"
|
|
style="font-size: 16px;color: rgb(100,100,100);font-weight: bolder;padding: 20px 50px">
|
|
个人信息
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="title">工号</td>
|
|
<td class="content"> {{viewData.loginname}}</td>
|
|
<td class="title">姓名</td>
|
|
<td class="content">{{viewData.username}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="title">职务</td>
|
|
<td class="content"> {{viewData.zw}}</td>
|
|
<td class="title">人事编制</td>
|
|
<td class="content">{{viewData.rsbz}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="title">性别</td>
|
|
<td class="content"> {{viewData.sex}}</td>
|
|
<td class="title">年龄</td>
|
|
<td class="content">{{viewData.age}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="title">所在单位</td>
|
|
<td class="content"> {{viewData.unitname}}</td>
|
|
<td class="title">手机号</td>
|
|
<td class="content">{{viewData.mobile}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="title" colspan="4">曾获荣誉</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="content" colspan="4" style="text-align: left">
|
|
<el-table :data="viewData.chry" size="mini" style="width: 100%" show-header="false">
|
|
<el-table-column prop="hdsj" label="获得时间" align="center" header-align="center"
|
|
width="250px">
|
|
<template slot-scope="{row}">
|
|
<el-date-picker v-model="row.hdsj" type="date" readonly
|
|
format="yyyy-MM-dd"></el-date-picker>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="shry" label="曾获荣誉" align="center" header-align="center">
|
|
<template slot-scope="{row}">
|
|
<el-input v-model="row.shry" readonly></el-input>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="附件" align="center" header-align="center" width="120px">
|
|
<template slot-scope="{row}">
|
|
<div class="file-down-span" @click="dd3s.download(row.ryfj,row.filename)">
|
|
<i class="el-icon-download"></i>
|
|
</div>
|
|
<el-image fit="cover" v-if="dd3s.isPic(row.ryfj)"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
:src="'${AppFileDomain!}'+row.ryfj" @click="dd3s.showpic(row.ryfj)">
|
|
</el-image>
|
|
<el-image v-else
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
src="***">
|
|
<div slot="error" class="image-slot"
|
|
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>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<template v-if="viewData.files&&viewData.files.length">
|
|
<tr>
|
|
<td class="title" colspan="4">身份证复印件</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="content" colspan="4" style="text-align: left">
|
|
<div style="text-align: left;">
|
|
<div v-for="item in viewData.files"
|
|
style="display: inline-block;width: 100px;margin-right:10px">
|
|
<div class="file-down-span" @click="dd3s.download(item.filepath,item.filename)">
|
|
<i class="el-icon-download"></i>
|
|
</div>
|
|
<el-image fit="cover" v-if="dd3s.isPic(item.filepath)"
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
:src="'${AppFileDomain!}'+item.filepath" @click="dd3s.showpic(item.filepath)">
|
|
</el-image>
|
|
<el-image v-else
|
|
style="width: 100px;height: 100px;box-shadow: 0 0 5px rgb(200,200,200)"
|
|
src="***">
|
|
<div slot="error" class="image-slot"
|
|
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>
|
|
</td>
|
|
</tr>
|
|
</template>
|
|
</table>
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="viewDialogSh = false" plain>关 闭</el-button>
|
|
<el-button type="danger" @click="sh(2)" plain>不通过</el-button>
|
|
<el-button type="success" @click="sh(3)" plain>通 过</el-button>
|
|
</span>
|
|
</el-dialog>
|
|
|
|
</div>
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
data() {
|
|
return {
|
|
lxyHd: [],
|
|
viewDialogSh: false,
|
|
loading: false,
|
|
tabLoading: false,
|
|
showGh: true,
|
|
viewData: {},
|
|
tableData: [],
|
|
bmTableData: [],
|
|
pageForm: {
|
|
searchName: "name",
|
|
searchKeyword: "",
|
|
pageNumber: 1,
|
|
pageSize: 10,
|
|
totalCount: 0,
|
|
pageOrderName: "",
|
|
pageOrderBy: "",
|
|
hdid: ""
|
|
},
|
|
}
|
|
},
|
|
methods: {
|
|
async getLxyBmInfo(id) {
|
|
const {data} = await $.get(base + "/platform/zgfw/lxy/fghsh/getBmInfo", {id})
|
|
return data
|
|
},
|
|
async openSh(row) {
|
|
this.viewData = await this.getLxyBmInfo(row.id)
|
|
console.log(this.viewData)
|
|
this.pageForm.hdid = row.hdid
|
|
this.pageForm.uid = row.uid
|
|
this.viewData.unitname = row.unitname
|
|
this.viewDialogSh = true
|
|
},
|
|
sh(zt) {
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
text: '数据提交中...',
|
|
spinner: 'el-icon-loading',
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
});
|
|
|
|
$.post(base + "/platform/zgfw/lxy/fghsh/sh", {
|
|
hdid: this.pageForm.hdid,
|
|
uid: this.pageForm.uid,
|
|
bmzt: zt,
|
|
}, (data) => {
|
|
loading.close()
|
|
if (data.code == 0) {
|
|
this.$message({
|
|
message: '提交成功',
|
|
type: 'success'
|
|
});
|
|
this.viewDialogSh = false
|
|
this.pageData()
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
|
|
},
|
|
|
|
doSearch() {
|
|
this.tabKey = new Date().getTime()
|
|
this.pageForm.pageNumber = 1
|
|
this.pageData()
|
|
},
|
|
pageOrder(column) {//按字段排序
|
|
this.pageForm.pageOrderName = column.prop;
|
|
this.pageForm.pageOrderBy = column.order;
|
|
this.pageData();
|
|
},
|
|
pageNumberChange(val) {//页码更新操作
|
|
this.pageForm.pageNumber = val;
|
|
this.pageData();
|
|
},
|
|
pageSizeChange(val) {//分页大小更新操作
|
|
this.pageForm.pageSize = val;
|
|
this.pageData();
|
|
},
|
|
|
|
pageData() {
|
|
sublime.showLoadingbar();
|
|
this.tabLoading = true
|
|
$.post(base + "/platform/zgfw/lxy/fghsh/pageData", this.pageForm, (data) => {
|
|
sublime.closeLoadingbar();
|
|
this.tabLoading = false
|
|
if (data.code == 0) {
|
|
this.tableData = data.data.list;
|
|
this.pageForm.totalCount = data.data.totalCount;
|
|
} else {
|
|
this.$message({
|
|
message: data.msg,
|
|
type: 'error'
|
|
});
|
|
}
|
|
}, "json");
|
|
},
|
|
},
|
|
async created() {
|
|
this.lxyHd = await getNowLxyHd()
|
|
this.pageData();
|
|
}
|
|
})
|
|
</script>
|
|
<!--#layout("/platform/zgfw/lxy/dialogView.html"){}#-->
|
|
<!--#
|
|
}
|
|
#--> |