155 lines
6.6 KiB
HTML
155 lines
6.6 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
<template>
|
|
<el-card shadow="never">
|
|
<div class="search">
|
|
<div class="search-item">
|
|
<div class="search-item-label">年度:</div>
|
|
<div class="search-item-option">
|
|
<el-date-picker
|
|
placeholder="选择年度"
|
|
style="width: 100%"
|
|
type="year"
|
|
v-model="pageForm.year"
|
|
value-format="yyyy">
|
|
</el-date-picker>
|
|
</div>
|
|
</div>
|
|
<div class="search-item">
|
|
<div class="search-item-label">主题名称:</div>
|
|
<div class="search-item-option">
|
|
<el-input clearable maxlength="50" v-model="pageForm.subjectName"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="search-item">
|
|
<div class="search-item-label">分工会:</div>
|
|
<div class="search-item-option">
|
|
<el-select @change="unionChange" clearable filterable style="width: 100%"
|
|
v-model="pageForm.unionId">
|
|
<el-option :key="item.id"
|
|
:label="item.unionname"
|
|
:value="item.id"
|
|
v-for="item in unionOptions"></el-option>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="search-item">
|
|
<div class="search-item-label">单位:</div>
|
|
<div class="search-item-option">
|
|
<el-select clearable filterable style="width: 100%" v-model="pageForm.unitId">
|
|
<el-option :key="item.id"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
v-for="item in unitOptions"></el-option>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="search-query">
|
|
<el-button @click="doSearch" icon="el-icon-search" type="primary">搜索</el-button>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
|
|
<el-card class="mt10" shadow="never">
|
|
<table-tool :app="this" label="综合查询">
|
|
|
|
</table-tool>
|
|
<el-table :data="tableData" :size="tableSize" @sort-change="pageOrder"
|
|
align="center"
|
|
header-align="center">
|
|
<el-table-column :index="indexMethod" align="center" header-align="center" label="序号" type="index"
|
|
width="80px"></el-table-column>
|
|
<el-table-column
|
|
:label="column.label"
|
|
:prop="column.prop"
|
|
:sortable="column.sortable"
|
|
align="center"
|
|
header-align="center"
|
|
show-overflow-tooltip
|
|
v-for="column in tableColumns"
|
|
>
|
|
<template scope="{row}" v-if="column.prop=='subjectName'">
|
|
<el-link @click="openView(row.id)" type="primary">{{ row.subjectName }}</el-link>
|
|
</template>
|
|
<template scope="{row}" v-else-if="column.prop=='publicity'">
|
|
<template v-if="row.publicity!=null">
|
|
<span :class="row.publicity?'text-success':'text-danger'">{{row.publicity?'是':'否'}}</span>
|
|
</template>
|
|
<span v-else>无</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="操作" width="300px">
|
|
<template scope="{row}">
|
|
<el-button @click="openView(row.id)" size="mini" type="primary">查看</el-button>
|
|
<el-button @click="openAudit(row.id)" size="mini" type="primary"
|
|
v-if="row.stateCode===3015">审核
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<!--#include("/layouts/pagination.html"){}#-->
|
|
</el-card>
|
|
</template>
|
|
|
|
<template #view>
|
|
<offer-advice-info ref="offerAdviceView"></offer-advice-info>
|
|
</template>
|
|
</guava>
|
|
</div>
|
|
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
components: {
|
|
'offer-advice-info': httpVueLoader('/components/offerAdvice/OfferAdviceInfo.vue')
|
|
},
|
|
data() {
|
|
return {
|
|
typeOptions: [],
|
|
pageForm: {
|
|
subjectName: null,
|
|
year: null,
|
|
unionId: null,
|
|
unitId: null
|
|
},
|
|
tableColumns: [
|
|
{label: '主题', prop: 'subjectName'},
|
|
{label: '时间', prop: 'createTime'},
|
|
{label: '姓名', prop: 'createUserName'},
|
|
{label: '工号', prop: 'createLoginName'},
|
|
{label: '类型', prop: 'typeName'},
|
|
{label: '单位', prop: 'unitName'},
|
|
{label: '工会', prop: 'unionName'},
|
|
{label: '是否公示', prop: 'publicity'},
|
|
{label: '状态', prop: 'stateName'},
|
|
],
|
|
unitOptions: [],
|
|
unionOptions: []
|
|
}
|
|
},
|
|
methods: {
|
|
openView(id) {
|
|
this.$refs.guava.view()
|
|
this.$refs.offerAdviceView.openView(id)
|
|
},
|
|
async unionChange(id) {
|
|
this.$set(this.pageForm, 'unitId', null)
|
|
this.unitOptions = await getUnits(id)
|
|
}
|
|
},
|
|
async created() {
|
|
this.unionOptions = await getUnions(null)
|
|
this.pageData()
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<!--#
|
|
}
|
|
#--> |