first commit
This commit is contained in:
@@ -0,0 +1,145 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
<style>
|
||||
.el-input-group__prepend>.el-select{
|
||||
width: 150px!important;
|
||||
}
|
||||
</style>
|
||||
<div id="app" v-cloak>
|
||||
<transition name="el-zoom-in-center">
|
||||
<div v-show="smm.status==='table'">
|
||||
<el-row class="header navbar bg-white shadow">
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-date-picker
|
||||
placeholder="年度"
|
||||
value-format="yyyy"
|
||||
format="yyyy年"
|
||||
v-model="pageForm.year"
|
||||
type="year">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-input placeholder="请输入关键字" v-model="pageForm.searchKeyword" clearable>
|
||||
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询类型" style="width: 120px;">
|
||||
<el-option label="被慰问人姓名" value="wwr.username"></el-option>
|
||||
<el-option label="被慰问人工号" value="wwr.loginname"></el-option>
|
||||
</el-select>
|
||||
</el-input>
|
||||
</div>
|
||||
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-select v-model="pageForm.unionid" clearable placeholder="请选择院级工会" filterable>
|
||||
<el-option
|
||||
v-for="item in unionList"
|
||||
:key="item.id"
|
||||
:label="item.unionname"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="btn-group tool-button mt5">
|
||||
<el-button icon="el-icon-search" @click="doSearch" type="primary"></el-button>
|
||||
</div>
|
||||
</el-row>
|
||||
|
||||
<el-row class="el-table-container">
|
||||
<el-table :data="tableData" @sort-change='pageOrder'>
|
||||
<el-table-column label="序号" type="index">
|
||||
<template scope="scope"><span>{{scope.$index+(pageForm.pageNumber - 1) * pageForm.pageSize + 1}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sqrusername" label="申请人"></el-table-column>
|
||||
<el-table-column prop="wwrusername" label="被慰问人"></el-table-column>
|
||||
<el-table-column prop="wwbm" label="慰问部门"></el-table-column>
|
||||
<el-table-column prop="wwuserzc" label="职称"></el-table-column>
|
||||
<el-table-column prop="wwsqje" label="申请金额(元)"></el-table-column>
|
||||
<el-table-column prop="planwwsj" label="拟慰问时间"></el-table-column>
|
||||
<el-table-column sortable prop="sqsj" label="申请时间"></el-table-column>
|
||||
<el-table-column sortable prop="status" label="状态">
|
||||
<template scope="{row}">
|
||||
<span v-if="row.status==0">待申请人修改</span>
|
||||
<span v-if="row.status==1">待基层工会审核</span>
|
||||
<span v-if="row.status==2">待校工会审核</span>
|
||||
<span v-if="row.status==3">基层工会审核不通过</span>
|
||||
<span v-if="row.status==4">校工会审核不通过</span>
|
||||
<span v-if="row.status==5">审核通过</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
width="100">
|
||||
<template slot-scope="{row}">
|
||||
<el-button size="mini" @click="openView(row)">查看</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>
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<wwj-info :smm.sync="smm"/>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
let vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [ddmixins],
|
||||
components: {
|
||||
'wwj-info': httpVueLoader('/components/wwj/wwj.vue')
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
smm:{status:'table',id:''},
|
||||
tableData: [],
|
||||
pageForm:{
|
||||
year:moment().format('YYYY'),
|
||||
unionid:'',
|
||||
wwrusername:'',
|
||||
searchName:'wwr.username'
|
||||
},
|
||||
unionList:[]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
pageData() {
|
||||
$.post('/platform/zgfw/wwj/zhcx/pageData', this.pageForm).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.tableData = res.data.list;
|
||||
this.pageForm.totalCount = res.data.totalCount;
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
openView(row){
|
||||
this.smm={
|
||||
status: 'detail',
|
||||
id:row.id,
|
||||
data:row,
|
||||
activeName:'1'
|
||||
}
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
this.pageData()
|
||||
this.unionList = await getUnion()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
Reference in New Issue
Block a user