273 lines
11 KiB
HTML
273 lines
11 KiB
HTML
<!--#
|
|
layout("/layouts/platform.html"){
|
|
#-->
|
|
|
|
<style>
|
|
|
|
</style>
|
|
<div id="app" v-cloak>
|
|
<guava ref="guava">
|
|
<template>
|
|
<el-card shadow="never">
|
|
<div class="btn-group tool-button">
|
|
<div class="block">
|
|
<span class="demonstration">年度:</span>
|
|
<el-date-picker
|
|
style="width: 150px"
|
|
v-model="pageForm.year"
|
|
type="year"
|
|
value-format="yyyy"
|
|
placeholder="选择年">
|
|
</el-date-picker>
|
|
</div>
|
|
</div>
|
|
<div class="btn-group tool-button">
|
|
<el-input placeholder="请输入内容" clearable v-model="pageForm.manuscriptName"
|
|
@keyup.enter.native="doSearch">
|
|
<template slot="prepend">稿件名称</template>
|
|
</el-input>
|
|
</div>
|
|
<div class="btn-group tool-button">
|
|
<el-input placeholder="请输入内容" clearable v-model="pageForm.searchKeyword"
|
|
@keyup.enter.native="doSearch">
|
|
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询类型"
|
|
style="width: 80px;">
|
|
<el-option label="姓名" value="us.username"></el-option>
|
|
<el-option label="工号" value="us.loginname"></el-option>
|
|
</el-select>
|
|
</el-input>
|
|
</div>
|
|
<div class="btn-group tool-button">
|
|
<el-select placeholder="所属工会" v-model="pageForm.unionId" style="width: 100%;"
|
|
clearable="true"
|
|
@change="flushUnits" @clear="flushUnits"
|
|
|
|
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}"
|
|
|
|
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">
|
|
<el-select placeholder="所属单位" v-model="pageForm.unitId" style="width: 100%;"
|
|
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">
|
|
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
|
|
</div>
|
|
<div class="pull-right offscreen-right">
|
|
<el-radio-group v-model="pageForm.isAudit" @change="doSearch">
|
|
<el-radio-button label="">全部</el-radio-button>
|
|
<el-radio-button :label="true">已审核</el-radio-button>
|
|
<el-radio-button :label="false">未审核</el-radio-button>
|
|
</el-radio-group>
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
<el-card shadow="never" class="mt20">
|
|
<table-tool label="分工会审核列表" :app="this">
|
|
|
|
</table-tool>
|
|
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder" :size="tableSize">
|
|
<el-table-column align="center" header-align="center" label="序号" width="120px">
|
|
<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"
|
|
v-for="column in tableColumns"
|
|
show-overflow-tooltip
|
|
:label="column.label"
|
|
:prop="column.prop"
|
|
sortable
|
|
>
|
|
<template v-if="column.prop=='unitname'" scope="{row}">
|
|
{{row.unitname}} ({{row.unitcode}})
|
|
</template>
|
|
|
|
<template v-else-if="column.prop=='unionname'" scope="{row}">
|
|
{{row.unionname}} ({{row.unioncode}})
|
|
</template>
|
|
|
|
<template v-else-if="column.prop=='manuscriptTypeName'" scope="{row}">
|
|
{{row.manuscriptTypeName}}({{row.manuscriptCode}})
|
|
</template>
|
|
|
|
<template v-else-if="column.prop=='type'" scope="{row}">
|
|
{{row.type==1?'社团投稿':row.type==2?'分工会投稿':'校工会投稿'}}
|
|
</template>
|
|
|
|
<template v-else-if="column.prop=='stateId'" scope="{row}">
|
|
<vi-table-state :state="row"></vi-table-state>
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column align="center" header-align="center" label="操作" fixed="right"
|
|
width="300px">
|
|
<template slot-scope="{row}">
|
|
<el-button size="mini" @click="openView(row)">查看
|
|
</el-button>
|
|
<el-button type="primary" size="mini" @click="openReview(row)"
|
|
v-if="row.stateId==2510||(row.stateId==2560&&row.type==2)">审核
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<!--#include("/layouts/pagination.html"){}#-->
|
|
</el-card>
|
|
|
|
</template>
|
|
|
|
<template #edit>
|
|
<info ref="info2" handle label="分工会审核">
|
|
<template #handle>
|
|
<el-form :model="formData" ref="form" :rules="formRules" label-position="right"
|
|
style="padding: 20px 0"
|
|
label-width="120px">
|
|
<el-form-item label="审核信息 " label-width="135px" class="view-header">
|
|
</el-form-item>
|
|
|
|
<el-row gutter="20">
|
|
<el-col :span="12">
|
|
<el-form-item prop="username" label="审核人员">
|
|
<el-input v-model="formData.username"
|
|
disabled></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-form-item prop="time" label="审核时间">
|
|
<el-input v-model="formData.auditTime" disabled></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
<el-form-item prop="opinion" label="审核意见">
|
|
<el-input type="textarea" v-model="formData.auditOpinion" rows="4" maxlength="500"
|
|
placeholder="请填写您的审核意见"></el-input>
|
|
</el-form-item>
|
|
</el-form>
|
|
|
|
<div style="float: right;margin: 20px 0">
|
|
<el-button @click="doReview(2)">拒
|
|
绝
|
|
</el-button>
|
|
<el-button @click="doReview(1)" type="danger">退回修改
|
|
</el-button>
|
|
<el-button type="primary" @click="doReview(3)">通
|
|
过
|
|
</el-button>
|
|
</div>
|
|
|
|
</el-form>
|
|
</template>
|
|
</info>
|
|
</template>
|
|
|
|
|
|
<template #view>
|
|
<info ref="info"></info>
|
|
</template>
|
|
|
|
|
|
</guava>
|
|
|
|
|
|
</div>
|
|
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
mixins: [initTableMixins],
|
|
data() {
|
|
return {
|
|
unions: [],
|
|
units: [],
|
|
title: "",
|
|
subDis: false,
|
|
DialogVisible: false,
|
|
pageForm: {
|
|
year: new Date().getFullYear() + '',
|
|
isAudit: false,
|
|
searchName: 'us.username'
|
|
},
|
|
tableColumns: [
|
|
{prop: 'loginname', label: '投稿人工号'},
|
|
{prop: 'username', label: '投稿人姓名'},
|
|
{prop: 'manuscriptName', label: '稿件名称'},
|
|
{prop: 'unitname', label: '所属单位'},
|
|
{prop: 'unionname', label: '所属工会'},
|
|
{prop: 'manuscriptTypeName', label: '稿件类型'},
|
|
{prop: 'type', label: '稿件来源'},
|
|
{prop: 'applyTime', label: '投稿时间'},
|
|
{prop: 'stateId', label: '状态'},
|
|
],
|
|
}
|
|
},
|
|
components: {
|
|
'info': httpVueLoader('/components/manuscriptInfo/manuscriptInfo.vue?v=' + new Date().getTime())
|
|
},
|
|
methods: {
|
|
doReview(flag) {
|
|
this.$refs["form"].validate(async (valid) => {
|
|
if (valid) {
|
|
this.formData.pass = flag
|
|
const resp = await $.post(loc() + "/doReview", this.formData)
|
|
if(resp.code===0){
|
|
this.pageData()
|
|
this.$refs.guava.index()
|
|
}else{
|
|
this.notifyWarning(resp.msg)
|
|
}
|
|
}
|
|
})
|
|
},
|
|
async openReview(row) {
|
|
const {id} = row
|
|
|
|
this.formData = {
|
|
id,
|
|
username: "${@shiro.getPrincipalProperty('username')}",
|
|
auditTime: moment().format('YYYY-MM-DD'),
|
|
}
|
|
|
|
this.$refs.info2.getInfo(id)
|
|
this.$refs.guava.edit()
|
|
if (this.$refs['form']) {
|
|
this.$refs['form'].resetFields()
|
|
}
|
|
},
|
|
openView(row) {
|
|
const {id} = row
|
|
this.$refs.info.getInfo(id)
|
|
this.$refs.guava.view()
|
|
},
|
|
async flushUnits() {
|
|
this.$set(this.pageForm, "unitId", "")
|
|
if ("${@shiro.hasRole('sysadmin')||@shiro.hasRole('A06')||@shiro.hasRole('H03')}" === 'true') {
|
|
this.units = await getUnits(this.pageForm.unionId)
|
|
} else {
|
|
this.units = await getUnits("${@shiro.getPrincipalProperty('unit').getUnionid()}")
|
|
}
|
|
},
|
|
|
|
},
|
|
async created() {
|
|
this.unions = await getUnions(null)
|
|
this.flushUnits()
|
|
this.pageData()
|
|
}
|
|
})
|
|
</script>
|
|
<!--#
|
|
}
|
|
#-->
|