commit
This commit is contained in:
@@ -1,244 +0,0 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
|
||||
<style>
|
||||
.el-input-number input {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.el-card {
|
||||
min-height: calc(100vh - 70px);
|
||||
}
|
||||
</style>
|
||||
<div id="app" v-cloak>
|
||||
<guava>
|
||||
<el-card shadow="never">
|
||||
<template #header>
|
||||
<h3 style="color: #1867b0">填写投稿</h3>
|
||||
</template>
|
||||
|
||||
|
||||
<div style="margin: 20px 250px 20px 250px">
|
||||
<el-form :model="formData" ref="form" :rules="formRules" label-width="140px" label-position="right"
|
||||
label-suffix=":">
|
||||
<el-row gutter="60">
|
||||
|
||||
<el-col :span="24">
|
||||
<el-form-item prop="userName" label="投稿人">
|
||||
<el-input v-model="formData.userName" readonly></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24">
|
||||
<el-form-item prop="type" label="投稿单位类型">
|
||||
<el-radio-group v-model="formData.type" @change="typeChange">
|
||||
<el-radio-button label="1" v-if="clubButton && ${@shiro.hasRole('H02')}">社团</el-radio-button>
|
||||
<el-radio-button label="2" v-if="unionButton">分工会</el-radio-button>
|
||||
<el-radio-button label="3" v-if="schoolButton">校工会</el-radio-button>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24">
|
||||
<el-form-item prop="manuscriptName" label="稿件标题">
|
||||
<el-input v-model="formData.manuscriptName" type="text"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24" v-if="formData.type==1">
|
||||
<el-form-item prop="clubId" label="所属社团">
|
||||
<el-select v-model="formData.clubId" placeholder="请选择所属社团" style="width: 100%"
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="i in clubOption"
|
||||
:key="i.id"
|
||||
:label="i.name+'('+i.code+')'"
|
||||
:value="i.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24" v-if="formData.type==2">
|
||||
<el-form-item prop="unionId" label="所属分工会">
|
||||
<el-select v-model="formData.unionId" placeholder="请选择所属分工会" style="width: 100%"
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="i in unionOption"
|
||||
:key="i.id"
|
||||
:label="i.unionname+'('+i.unioncode+')'"
|
||||
:value="i.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24">
|
||||
<el-form-item prop="manuscriptCode" label="稿件类型">
|
||||
<el-select v-model="formData.manuscriptCode" placeholder="请选择稿件类型" style="width: 100%"
|
||||
clearable>
|
||||
<el-option
|
||||
v-for="i in manuscriptOption"
|
||||
:key="i.manuscriptTypeCode"
|
||||
:label="i.manuscriptTypeName+'('+i.manuscriptTypeCode+')'"
|
||||
:value="i.manuscriptTypeCode">
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24">
|
||||
<el-form-item prop="remark" label="说明">
|
||||
<el-input v-model="formData.remark" type="textarea" rows="4"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24">
|
||||
<el-form-item prop="files" label="新闻稿件">
|
||||
<file-upload :files.sync="formData.files" card></file-upload>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div style="float: right;margin: 20px 0">
|
||||
<el-button @click="doAdd(false)">保 存</el-button>
|
||||
<el-button type="primary" @click="doAdd(true)">投 稿</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</guava>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [initTableMixins],
|
||||
data() {
|
||||
return {
|
||||
clubs: [],
|
||||
unions: [],
|
||||
clubButton: true,
|
||||
unionButton: true,
|
||||
schoolButton: true,
|
||||
manuscriptOption: [],
|
||||
clubOption: [],
|
||||
unionOption: [],
|
||||
formRules: {
|
||||
type: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||
manuscriptName: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||
manuscriptCode: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||
unionId: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||
clubId: [{required: true, message: '必填', trigger: ['blur', 'change']}],
|
||||
},
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
async typeChange(val) {
|
||||
if (val == 1 && "${@shiro.hasRole('sysadmin')}" === 'false' && "${@shiro.hasRole('club01')}" === 'true') {
|
||||
this.$set(this.formData, "type", 1)
|
||||
const id = await $.get(loc() + "/getClubByUserId")
|
||||
this.clubOption = this.clubOption.filter(v => v.id === id)
|
||||
this.$set(this.formData, "clubId", this.clubOption[0].id)
|
||||
|
||||
}
|
||||
if (val == 2 && "${@shiro.hasRole('sysadmin')}" === 'false' && "${@shiro.hasRole('manuscript')}" === 'true') {
|
||||
this.$set(this.formData, "type", 2)
|
||||
this.unionOption = this.unionOption.filter(v => v.id === "${@shiro.getPrincipalProperty('unit').getUnionid()}")
|
||||
if (this.unionOption && this.unionOption.length > 0) {
|
||||
this.$set(this.formData, "unionId", this.unionOption[0].id)
|
||||
}
|
||||
|
||||
}
|
||||
if (val == 3 && "${@shiro.hasRole('sysadmin')}" === 'false' && "${@shiro.hasRole('H10')}" === 'true') {
|
||||
this.$set(this.formData, "type", 3)
|
||||
this.clubButton = false
|
||||
this.unionButton = false
|
||||
}
|
||||
},
|
||||
async doAdd(flag) {
|
||||
const valid = await this.$refs["form"].validate()
|
||||
if (valid) {
|
||||
let method = this.formData.id ? "/doEdit" : "/doAdd"
|
||||
const formData = JSON.parse(JSON.stringify(this.formData))
|
||||
formData.files = JSON.stringify(formData.files)
|
||||
const data = await $.post(loc() + method, {
|
||||
data: JSON.stringify(formData),
|
||||
flag: flag
|
||||
})
|
||||
if (data.code == 0) {
|
||||
sublime.jumpPagePjax('/platform/manuscript/apply/list')
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
async openEdit(id) {
|
||||
const resp = await $.get("/platform/manuscript/apply/findOne", {id})
|
||||
if(resp.code===0){
|
||||
const data = resp.data
|
||||
this.formData = data
|
||||
if (data.type == 2) {
|
||||
this.clubButton = false
|
||||
this.schoolButton = false
|
||||
} else if (data.type == 1) {
|
||||
this.unionButton = false
|
||||
this.schoolButton = false
|
||||
} else {
|
||||
this.clubButton = false
|
||||
this.unionButton = false
|
||||
}
|
||||
this.$set(this.formData, "userName", (data.username + '(' + data.loginname + ')'))
|
||||
if (data.files) {
|
||||
data.files = JSON.parse(data.files)
|
||||
}
|
||||
}else{
|
||||
this.notifyWarning(resp.msg)
|
||||
}
|
||||
},
|
||||
async init() {
|
||||
const {data} = await $.get(loc() + "/getRoleByUserId")
|
||||
|
||||
this.$set(this.formData, "userName", "${@shiro.getPrincipalProperty('username')}" + ' (' + "${@shiro.getPrincipalProperty('loginname')}" + ')')
|
||||
if ("${@shiro.hasRole('sysadmin')}" === 'false' && "${@shiro.hasRole('club01')}" === 'true') {
|
||||
this.$set(this.formData, "type", 1)
|
||||
const id = await $.get(loc() + "/getClubByUserId")
|
||||
this.clubOption = this.clubOption.filter(v => v.id === id)
|
||||
this.$set(this.formData, "clubId", this.clubOption[0].id)
|
||||
|
||||
} else if ("${@shiro.hasRole('sysadmin')}" === 'false' && "${@shiro.hasRole('manuscript')}" === 'true') {
|
||||
this.$set(this.formData, "type", 2)
|
||||
this.unionOption = this.unionOption.filter(v => v.id === "${@shiro.getPrincipalProperty('unit').getUnionid()}")
|
||||
if (this.unionOption && this.unionOption.length > 0) {
|
||||
this.$set(this.formData, "unionId", this.unionOption[0].id)
|
||||
}
|
||||
|
||||
} else if ("${@shiro.hasRole('sysadmin')}" === 'false' && "${@shiro.hasRole('H10')}" === 'true') {
|
||||
this.$set(this.formData, "type", 3)
|
||||
this.clubButton = false
|
||||
this.unionButton = false
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
this.clubOption = await getClubs()
|
||||
this.unionOption = await getUnions(null)
|
||||
this.manuscriptOption = await manuscript.getManuscriptType()
|
||||
|
||||
let id = getQueryVariable("id")
|
||||
id ? this.openEdit(id) : this.init()
|
||||
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,197 +0,0 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<div id="app" v-cloak>
|
||||
<guava ref="guava">
|
||||
<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.searchKeyword"
|
||||
@keyup.enter.native="doSearch">
|
||||
<el-select v-model="pageForm.searchName" slot="prepend" placeholder="查询类型"
|
||||
style="width: 80px;">
|
||||
<el-option label="名称" value="manuscriptName"></el-option>
|
||||
</el-select>
|
||||
</el-input>
|
||||
</div>
|
||||
<div class="btn-group tool-button">
|
||||
<el-button type="primary" icon="el-icon-search" @click="doSearch"></el-button>
|
||||
</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 size="mini" @click="openEdit(row)"
|
||||
v-if="row.stateId==2500||
|
||||
(row.stateId==2560&&row.type==3)||
|
||||
(row.stateId==2560&&row.type==1)||
|
||||
(row.stateId==2520&&row.type==2)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button size="mini" @click="submit(row)" v-if="row.stateId==2500">提交
|
||||
</el-button>
|
||||
<el-button type="danger" size="mini" @click="doDelete(row.id)" v-if="row.stateId==2500">删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--#include("/layouts/pagination.html"){}#-->
|
||||
</el-card>
|
||||
|
||||
<template #view>
|
||||
<info ref="info"></info>
|
||||
</template>
|
||||
</guava>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [initTableMixins],
|
||||
data() {
|
||||
return {
|
||||
title: "",
|
||||
subDis: false,
|
||||
DialogVisible: false,
|
||||
pageForm: {
|
||||
year: new Date().getFullYear() + '',
|
||||
searchName: 'manuscriptName'
|
||||
},
|
||||
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: {
|
||||
openView(row) {
|
||||
const {id} = row
|
||||
this.$refs.info.getInfo(id)
|
||||
this.$refs.guava.view()
|
||||
},
|
||||
openEdit(row) {
|
||||
const {id} = row
|
||||
sublime.jumpPagePjax('/platform/manuscript/apply?id=' + id)
|
||||
},
|
||||
submit(row) {
|
||||
this.$confirm('确定要提交吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
callback: async (a, b) => {
|
||||
if ("confirm" === a) {
|
||||
const resp = await $.get(loc() + "/doSubmit", {id: row.id, type: row.type})
|
||||
if(resp.code===0){
|
||||
this.notifySuccess(resp.msg)
|
||||
this.pageData()
|
||||
}else{
|
||||
this.notifyWarning(resp.msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
async doDelete(id) {
|
||||
this.$confirm('确定要删除吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
callback: async (a, b) => {
|
||||
if ("confirm" === a) {
|
||||
const resp = await $.get(loc() + "/doDelete", {id: id})
|
||||
if(resp.code===0){
|
||||
this.notifySuccess(resp.msg)
|
||||
this.pageData()
|
||||
}else{
|
||||
this.notifyWarning(resp.msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
async created() {
|
||||
this.pageData()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,167 +0,0 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<div id="app" v-cloak>
|
||||
<guava>
|
||||
<el-card shadow="never">
|
||||
<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="manuscriptTypeName"></el-option>
|
||||
<el-option label="编码" value="manuscriptTypeCode"></el-option>
|
||||
</el-select>
|
||||
</el-input>
|
||||
</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-button type="primary" icon="el-icon-plus" @click="openAdd">添加类型</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-card shadow="never" class="mt20">
|
||||
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
|
||||
>
|
||||
<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
|
||||
></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="openEdit(row)">编辑
|
||||
</el-button>
|
||||
<el-button type="danger" size="mini" @click="doDelete(row.id)">删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--#include("/layouts/pagination.html"){}#-->
|
||||
</el-card>
|
||||
</guava>
|
||||
|
||||
<el-dialog :title="title" :visible.sync="DialogVisible" :close-on-click-modal="false" width="40%">
|
||||
<el-form :model="formData" ref="addForm" :rules="formRules"
|
||||
label-width="100px">
|
||||
<el-form-item label="类型编号" prop="manuscriptTypeCode">
|
||||
<el-input type="text" v-model="formData.manuscriptTypeCode" maxlength="50"
|
||||
placeholder="类型编号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="类型名称" prop="manuscriptTypeName">
|
||||
<el-input type="text" v-model="formData.manuscriptTypeName" maxlength="50"
|
||||
placeholder="请填写类型名称"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="DialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" :disabled="subDis" @click="operation">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [initTableMixins],
|
||||
data() {
|
||||
return {
|
||||
title: "",
|
||||
subDis: false,
|
||||
DialogVisible: false,
|
||||
pageForm: {
|
||||
searchName: 'manuscriptTypeName'
|
||||
},
|
||||
tableColumns: [
|
||||
{prop: 'manuscriptTypeCode', label: '类型编号'},
|
||||
{prop: 'manuscriptTypeName', label: '类型名称'}
|
||||
],
|
||||
formRules: {
|
||||
manuscriptTypeName: [{required: true, message: '必选', trigger: ['blur', 'change']}],
|
||||
manuscriptTypeCode: [{required: true, message: '必选', trigger: ['blur', 'change']}],
|
||||
},
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
openEdit(data) {
|
||||
this.title = "编辑类型"
|
||||
this.formData = data
|
||||
this.DialogVisible = true;
|
||||
},
|
||||
openAdd() {
|
||||
this.title = "添加类型"
|
||||
this.formData = {}
|
||||
this.DialogVisible = true;
|
||||
if (this.$refs['addForm']) {
|
||||
this.$refs['addForm'].resetFields()
|
||||
}
|
||||
},
|
||||
async operation() {
|
||||
let method = this.formData.id ? "/doEdit" : "/doAdd"
|
||||
this.$refs["addForm"].validate(async (valid) => {
|
||||
if (valid) {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: '正在提交...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: COVER_LAYER_COLOR
|
||||
});
|
||||
const resp = await $.post(loc() + method, {manuscriptType: JSON.stringify(this.formData)})
|
||||
loading.close()
|
||||
if(resp.code===0){
|
||||
this.DialogVisible = false;
|
||||
this.$notify.success({title: '成功', message: resp.msg});
|
||||
this.pageData();
|
||||
}else{
|
||||
this.notifyWarning(resp.msg)
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
async doDelete(id) {
|
||||
let self = this
|
||||
this.$confirm('确定要删除吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
callback: async (a, b) => {
|
||||
if ("confirm" === a) {
|
||||
const resp = await $.get(loc() + "/doDelete", {id: id})
|
||||
if(resp.code===0){
|
||||
self.notifySuccess(resp.msg)
|
||||
self.pageData()
|
||||
}else{
|
||||
self.notifyWarning(resp.msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
async created() {
|
||||
this.pageData()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,275 +0,0 @@
|
||||
<!--#
|
||||
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==2550">审核
|
||||
</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>
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,154 +0,0 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<div id="app" v-cloak>
|
||||
<guava ref="guava">
|
||||
<el-card shadow="never">
|
||||
<div class="btn-group tool-button">
|
||||
<el-date-picker
|
||||
@change="isManuscriptTypeChange"
|
||||
v-model="year"
|
||||
type="year"
|
||||
value-format="yyyy" style="width: 150px"
|
||||
placeholder="选择年">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<div class="btn-group tool-button">
|
||||
<el-radio-group v-model="isManuscriptType" @change="isManuscriptTypeChange">
|
||||
<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>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card shadow="never" class="mt20">
|
||||
<el-table :data="tableData" style="width: 100%" row-key="id" @sort-change="pageOrder"
|
||||
:show-summary="showSummary" :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>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<template v-if="isManuscriptType==3">
|
||||
<!--#include("/layouts/pagination.html"){}#-->
|
||||
</template>
|
||||
</el-card>
|
||||
|
||||
<template #view>
|
||||
<info ref="info"></info>
|
||||
</template>
|
||||
</guava>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [initTableMixins],
|
||||
data() {
|
||||
return {
|
||||
year: new Date().getFullYear() + "",
|
||||
showSummary: true,
|
||||
isManuscriptType: 1,
|
||||
tableColumns: [
|
||||
{prop: 'clubname', label: '社团名称'},
|
||||
{prop: 'manuscriptNum', label: '稿件数量'}
|
||||
],
|
||||
}
|
||||
},
|
||||
components: {},
|
||||
methods: {
|
||||
async getUnionTableNum() {
|
||||
const {data} = await $.get(loc() + "/unionTableNum", {year: this.year})
|
||||
this.tableColumns = [
|
||||
{prop: 'unionName', label: '分工会名称'},
|
||||
{prop: 'manuscriptNum', label: '稿件数量'}
|
||||
]
|
||||
this.tableData = data
|
||||
},
|
||||
async getClubTableNum() {
|
||||
const {data} = await $.get(loc() + "/clubTableNum", {year: this.year})
|
||||
this.tableColumns = [
|
||||
{prop: 'clubname', label: '社团名称'},
|
||||
{prop: 'manuscriptNum', label: '稿件数量'}
|
||||
]
|
||||
this.tableData = data
|
||||
},
|
||||
async pageData() {
|
||||
const page = this.pageForm
|
||||
page.isAudit = true
|
||||
page.year = this.year
|
||||
page.isManuscriptType = this.isManuscriptType
|
||||
const data = await $.get("/platform/manuscript/audit/school/pageData", page)
|
||||
this.tableColumns = [
|
||||
{prop: 'username', label: '投稿人工号'},
|
||||
{prop: 'loginname', label: '投稿人姓名'},
|
||||
{prop: 'manuscriptName', label: '稿件名称'},
|
||||
{prop: 'unitname', label: '投稿人单位'},
|
||||
{prop: 'unionname', label: '投稿人工会'},
|
||||
{prop: 'manuscriptTypeName', label: '稿件类型'},
|
||||
{prop: 'type', label: '投稿类型'},
|
||||
{prop: 'applyTime', label: '投稿时间'},
|
||||
]
|
||||
this.tableLoading = false
|
||||
if (data.code == 0) {
|
||||
this.tableData = data.data.list;
|
||||
this.pageForm.totalCount = data.data.totalCount;
|
||||
} else {
|
||||
this.$message.error(data.msg);
|
||||
}
|
||||
},
|
||||
async isManuscriptTypeChange() {
|
||||
if (this.isManuscriptType == 1) {
|
||||
this.showSummary = true
|
||||
await this.getClubTableNum()
|
||||
} else if (this.isManuscriptType == 2) {
|
||||
this.showSummary = true
|
||||
await this.getUnionTableNum()
|
||||
} else {
|
||||
this.showSummary = false
|
||||
await this.pageData()
|
||||
}
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
await this.isManuscriptTypeChange()
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,272 +0,0 @@
|
||||
<!--#
|
||||
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>
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
Reference in New Issue
Block a user