commit
This commit is contained in:
@@ -1,203 +0,0 @@
|
||||
<!--#
|
||||
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-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="分管校领导审核">
|
||||
<template #func>
|
||||
<el-radio-group @change="doSearch" size="small" v-model="pageForm.auditState">
|
||||
<el-radio-button :label="0">全部</el-radio-button>
|
||||
<el-radio-button :label="1">已审核</el-radio-button>
|
||||
<el-radio-button :label="-1">未审核</el-radio-button>
|
||||
</el-radio-group>
|
||||
</template>
|
||||
</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 #edit>
|
||||
<offer-advice-info ref="offerAdviceAudit">
|
||||
<template #handle>
|
||||
<el-tab-pane label="分管校领导审核" name="leaderAudit">
|
||||
<el-form :model="formData" :rules="formRules" label-width="120px" ref="auditForm">
|
||||
<vi-title title="审核信息"></vi-title>
|
||||
<el-row gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="审核人" prop="username">
|
||||
<el-input readonly
|
||||
value="${@shiro.getPrincipalProperty('username')}"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="审核时间" prop="auditTime">
|
||||
<el-input :value="moment().format('YYYY-MM-DD HH:mm:ss')" readonly></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-form-item label="处理意见" prop="auditOpinion">
|
||||
<el-input
|
||||
:rows="5"
|
||||
maxlength="100"
|
||||
placeholder="请输入处理意见"
|
||||
type="textarea"
|
||||
v-model="formData.auditOpinion">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="是否公示" prop="publicity">
|
||||
<el-radio-group size="small" v-model="formData.publicity">
|
||||
<el-radio :label="true" border>是</el-radio>
|
||||
<el-radio :label="false" border>否</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row justify="end" type="flex">
|
||||
<el-button @click="$refs.guava.index()">取消</el-button>
|
||||
<el-button @click="doAudit" type="primary">提交</el-button>
|
||||
</el-row>
|
||||
|
||||
</el-tab-pane>
|
||||
</template>
|
||||
</offer-advice-info>
|
||||
</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,
|
||||
auditState: -1
|
||||
},
|
||||
tableColumns: [
|
||||
{label: '主题', prop: 'subjectName'},
|
||||
{label: '时间', prop: 'createTime'},
|
||||
{label: '姓名', prop: 'createUserName'},
|
||||
{label: '工号', prop: 'createLoginName'},
|
||||
{label: '类型', prop: 'typeName'},
|
||||
{label: '是否公示', prop: 'publicity'},
|
||||
{label: '状态', prop: 'stateName'},
|
||||
],
|
||||
formData: {
|
||||
auditOpinion: null,
|
||||
publicity: null
|
||||
},
|
||||
formRules: {
|
||||
auditOpinion: [{required: true, message: '请输入处理意见', trigger: ['blur', 'change']}],
|
||||
publicity: [{required: true, message: '请选择是否建议公示', trigger: ['blur', 'change']}],
|
||||
},
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openView(id) {
|
||||
this.$refs.guava.view()
|
||||
this.$refs.offerAdviceView.openView(id)
|
||||
},
|
||||
openAudit(id) {
|
||||
this.$refs.guava.edit()
|
||||
this.$refs.offerAdviceAudit.openAudit(id, 'leaderAudit')
|
||||
if (this.$refs.auditForm) {
|
||||
this.$refs.auditForm.resetFields()
|
||||
}
|
||||
this.formData.id = id
|
||||
},
|
||||
async doAudit() {
|
||||
const valid = await this.$refs.auditForm.validate()
|
||||
if (!valid) return
|
||||
const resp = await $.post(loc() + '/doAudit', this.formData)
|
||||
if (resp.code === 0) {
|
||||
this.pageData()
|
||||
this.$refs.guava.index()
|
||||
this.notifySuccess(resp.msg)
|
||||
} else {
|
||||
this.notifyWarning(resp.msg)
|
||||
}
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
this.pageData()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
Reference in New Issue
Block a user