commit
This commit is contained in:
@@ -1,386 +0,0 @@
|
||||
<!--#
|
||||
layout("/layouts/platform.html"){
|
||||
#-->
|
||||
<style>
|
||||
.tr {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.tl {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.top_block {
|
||||
background-color: rgb(240, 240, 240);
|
||||
}
|
||||
|
||||
.top_card {
|
||||
border: none;
|
||||
border-top: 5px solid;
|
||||
cursor: pointer;
|
||||
min-width: 200px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.top_title {
|
||||
color: rgb(120, 120, 120);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.top_num {
|
||||
font-size: 32px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.v-tab .el-card__header {
|
||||
padding: 10px 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.v-tab .el-table-containe {
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
||||
.chart-card .el-card__header {
|
||||
border: none;
|
||||
padding: 10px 15px;
|
||||
}
|
||||
|
||||
.el-table-container {
|
||||
padding-top: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="app" v-cloak>
|
||||
<guava ref="guava">
|
||||
<template>
|
||||
<el-card shadow="never">
|
||||
<el-select v-model="pageForm.meetingId" @change="getNumData();changeType('all');drawChat()"
|
||||
style="width: 100%;font-weight:bold;" placeholder="请选择教代会">
|
||||
<el-option
|
||||
v-for="item in allJdhOptions"
|
||||
:label="item.jdhallname"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-card>
|
||||
|
||||
<div class="top_block mt10 mb10" v-loading="topBlockLoading">
|
||||
<el-row :gutter="20" style="flex-wrap: wrap" type="flex">
|
||||
<template v-for="item in types">
|
||||
<el-col :span="4">
|
||||
<el-card :style="'border-color:'+ item.color" class="top_card" shadow="hover">
|
||||
<div @click="changeType(item.key)" style="width: 100%;height: 100%">
|
||||
<div class="top_title">
|
||||
<span :style="'color:'+ item.color">
|
||||
<i :class="pageForm.type===item.key?'fa fa-flag':'fa fa-flag-o'"></i>
|
||||
</span>
|
||||
{{item.name}}
|
||||
<el-popover trigger="hover">
|
||||
<ul style="list-style-type: none;padding: 0;margin: 0">
|
||||
<li :style="{color:pageForm.type===litem.key?'red':''}"
|
||||
@click="childClick(item,litem)"
|
||||
style="border-bottom: 1px solid #f0f0f0;cursor: pointer;padding: 5px 0"
|
||||
v-for="(litem,lindex) in item.list">
|
||||
{{litem.name}}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<i class="el-icon-s-operation text-primary"
|
||||
slot="reference"
|
||||
v-if="item.list"
|
||||
></i>
|
||||
</el-popover>
|
||||
|
||||
</div>
|
||||
<div class="top_num">{{numData[item.key]?numData[item.key]:'--'}}</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</template>
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
<el-card shadow="never">
|
||||
<table-tool :app="this" label="提案列表">
|
||||
</table-tool>
|
||||
<el-table :data="tableData" :size="tableSize" @sort-change="pageOrder"
|
||||
align="center" header-align="center"
|
||||
ref="multipleTable">
|
||||
|
||||
<el-table-column type="expand">
|
||||
<template scope="scope">
|
||||
<el-card shadow="never">
|
||||
<el-table :data="scope.row.replyInfo" header-align="center" size="mini">
|
||||
<el-table-column label="承办单位" prop="unitName" width="200"></el-table-column>
|
||||
<el-table-column label="承办类型" prop="unitName" width="100">
|
||||
<template scope="{row}">
|
||||
<span style="color: #106898" v-if="row.underTakeType===1">主办</span>
|
||||
<span style="color: #156c20" v-else>协办</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="答复次数" prop="replyNumber" width="100"></el-table-column>
|
||||
<el-table-column label="负责人" prop="fzrxx" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="答复情况" prop="isReply" width="100">
|
||||
<template scope="{row}">
|
||||
<span class="text-success" v-if="row.isReply">已答复</span>
|
||||
<span class="text-danger" v-else>未答复</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="分管领导" prop="xldxx"></el-table-column>
|
||||
<el-table-column label="审批情况" prop="isLeaderAudit" width="100px">
|
||||
<template scope="{row}">
|
||||
<span class="text-success" v-if="row.isLeaderAudit">已审批</span>
|
||||
<span class="text-danger" v-else>未审批</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column align="center" header-align="center" label="序号" type="index" width="80">
|
||||
<template scope="scope">
|
||||
<span>{{ scope.$index + (pageForm.pageNumber - 1) * pageForm.pageSize + 1 }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
:align="column.align?column.align:'center'"
|
||||
:label="column.label"
|
||||
:min-width="column.width"
|
||||
:prop="column.prop"
|
||||
:sortable="column.sortable"
|
||||
:width="column.width"
|
||||
header-align="center"
|
||||
show-overflow-tooltip
|
||||
v-for="column in tableColumns"
|
||||
>
|
||||
<template scope="{row}" v-if="column.prop=='proposalName'">
|
||||
<el-link @click="openView(row)" type="primary">{{row.proposalName}}</el-link>
|
||||
</template>
|
||||
|
||||
<template scope="{row}" v-else-if="column.prop=='isConjoin'">
|
||||
<span :style="row.isConjoin === 1 ? 'color: #236eb4' : ''">{{[proposal.CASE].includes(row.stateCode) ? '暂无' : row.isConjoin === 1 ? '是' : '否'}}</span>
|
||||
</template>
|
||||
|
||||
<template scope="{row}" v-else-if="column.prop=='auditState'">
|
||||
<span v-if="![proposal.CASE].includes(row.stateCode)">已审核</span>
|
||||
<span v-else>待审核</span>
|
||||
</template>
|
||||
<template scope="{row}" v-else-if="column.prop=='resultName'">
|
||||
<el-link type="primary">
|
||||
{{row.resultName ? row.resultName:'暂未审核'}}
|
||||
</el-link>
|
||||
</template>
|
||||
<template scope="{row}" v-else-if="column.prop=='laLevelName'">
|
||||
<span>
|
||||
{{[proposal.CASE].includes(row.stateCode) ? '暂无' : !row.determineTypeCode ? '否' : row.determineTypeCode === 'emphasis' ? '重点' : '普通'}}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!--#include("/layouts/pagination.html"){}#-->
|
||||
</el-card>
|
||||
|
||||
|
||||
<!-- <el-row class="chart-card" v-loading="chatLoading">-->
|
||||
<!-- <el-card shadow="never">-->
|
||||
<!-- <div slot="header" class="clearfix">-->
|
||||
<!-- <span style="font-weight: bold">提案类型统计</span><br>-->
|
||||
<!-- <span style="font-size: 12px">单位(个)</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div id="chart" style="width: 100%;height: 400px;"></div>-->
|
||||
<!-- </el-card>-->
|
||||
<!-- </el-row>-->
|
||||
</template>
|
||||
|
||||
<template #view>
|
||||
<proposal-info ref="info"></proposal-info>
|
||||
</template>
|
||||
</guava>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let chart
|
||||
var vue = new Vue({
|
||||
el: '#app',
|
||||
mixins: [initTableMixins],
|
||||
data() {
|
||||
return {
|
||||
types: [{
|
||||
key: 'all',
|
||||
name: '提案总数',
|
||||
color: '#409EFF'
|
||||
}, {
|
||||
key: 'delegation',
|
||||
name: '待团长审核',
|
||||
color: '#00a2ae'
|
||||
}, {
|
||||
key: 'case',
|
||||
name: '待立案审核',
|
||||
color: '#F56C6C'
|
||||
}, {
|
||||
key: 'determine',
|
||||
name: '确定立案',
|
||||
color: '#67C23A'
|
||||
}, {
|
||||
key: 'opinion',
|
||||
name: '作为意见',
|
||||
color: '#E6A23C'
|
||||
}, {
|
||||
key: 'notGive',
|
||||
name: '不予立案',
|
||||
color: '#7265e6'
|
||||
}, {
|
||||
key: 'waitUnitReply',
|
||||
name: '待承办单位答复',
|
||||
color: '#F56C6C',
|
||||
list: [
|
||||
{
|
||||
key: 'waitUnitReply',
|
||||
name: '待承办单位答复',
|
||||
color: '#F56C6C',
|
||||
},
|
||||
{
|
||||
key: 'unitReplyFinish',
|
||||
name: '承办单位已答复',
|
||||
color: '#00a854',
|
||||
}
|
||||
]
|
||||
}, {
|
||||
key: 'awaitLeaderAuditReply',
|
||||
name: '待校领导审批答复',
|
||||
color: '#F56C6C',
|
||||
list: [
|
||||
{
|
||||
key: 'awaitLeaderAuditReply',
|
||||
name: '待校领导审批答复',
|
||||
color: '#F56C6C',
|
||||
},
|
||||
{
|
||||
key: 'LeaderAuditReplyFinish',
|
||||
name: '校领导已审批答复',
|
||||
color: '#00a854',
|
||||
}
|
||||
]
|
||||
}, {
|
||||
key: 'feedback',
|
||||
name: '待反馈评分',
|
||||
color: '#ffbf00'
|
||||
}, {
|
||||
key: 'caseCheck',
|
||||
name: '待提案委员会审查',
|
||||
color: '#ffbf00'
|
||||
}, {
|
||||
key: 'finish',
|
||||
name: '已完结',
|
||||
color: '#00a854'
|
||||
}, {
|
||||
key: 'other',
|
||||
name: '其它',
|
||||
color: '#00a854'
|
||||
}],
|
||||
chatLoading: true,
|
||||
topBlockLoading: true,
|
||||
tabLoading: false,
|
||||
allJdhOptions: [],
|
||||
tableData: [],
|
||||
numData: {},
|
||||
pageForm: {
|
||||
pageSize: 5,
|
||||
type: 'all',
|
||||
totalCount: 0
|
||||
},
|
||||
tableColumns: [
|
||||
{prop: 'proposalCode', label: '提案编号', width: "120", sortable: true, disabled: true},
|
||||
{prop: 'proposalName', label: '提案名称', width: "300", disabled: true},
|
||||
{prop: 'username', label: '提案人', disabled: true},
|
||||
{prop: 'typeCode', label: '提案类型编码', sortable: true, checked: 0},
|
||||
{prop: 'typeName', label: '提案类型', sortable: true},
|
||||
{prop: 'mannerCode', label: '提案方式编码', sortable: true, checked: 0},
|
||||
{prop: 'mannerName', label: '提案方式', sortable: true},
|
||||
{prop: 'meetingName', label: '届次', sortable: true, checked: 0},
|
||||
{prop: 'delegationCode', label: '代表团编码', sortable: true, checked: 0},
|
||||
{prop: 'delegationName', label: '代表团', sortable: true, checked: 0},
|
||||
{prop: 'resultName', label: '立案结果', sortable: true},
|
||||
{prop: 'isConjoin', label: '是否并案', sortable: true},
|
||||
// {prop: 'laLevelName', label: '是否重点', sortable: true},
|
||||
{prop: 'stateName', label: '提案状态', sortable: true},
|
||||
{prop: 'auditState', label: '审核状态', sortable: true},
|
||||
],
|
||||
replyPopVisible: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
'guava': httpVueLoader('/components/plugins/Guava.vue'),
|
||||
'proposal-info': httpVueLoader('/components/proposal/ProposalInfo.vue'),
|
||||
'proposal-table': httpVueLoader('/components/proposal/ProposalTable.vue')
|
||||
},
|
||||
methods: {
|
||||
openView(row) {
|
||||
this.$refs.guava.view()
|
||||
this.$refs.info.openView(row.id)
|
||||
},
|
||||
changeType(type) {
|
||||
this.pageForm.type = type
|
||||
this.doSearch()
|
||||
},
|
||||
childClick(item, litem) {
|
||||
item.name = litem.name
|
||||
item.key = litem.key
|
||||
item.color = litem.color
|
||||
this.pageForm.type = item.key
|
||||
this.doSearch()
|
||||
},
|
||||
async getNumData() {
|
||||
this.topBlockLoading = true
|
||||
const resp = await $.post(loc() + "/numData", {meetingId: this.pageForm.meetingId})
|
||||
|
||||
if(resp.code===0){
|
||||
this.numData = resp.data
|
||||
}else{
|
||||
this.notifyWarning(resp.msg)
|
||||
}
|
||||
this.topBlockLoading = false
|
||||
},
|
||||
async drawChat() {
|
||||
this.chatLoading = true
|
||||
const resp = await $.post(loc() + "/getChatData", {meetingId: this.pageForm.meetingId})
|
||||
this.chatLoading = false
|
||||
if(resp.code===0){
|
||||
const {data} = resp
|
||||
if (!chart) {
|
||||
chart = new G2Plot.Area('chart', {
|
||||
data,
|
||||
forceFit: true,
|
||||
xField: 'typeName',
|
||||
yField: 'num',
|
||||
seriesField: 'type',
|
||||
legend: {
|
||||
"position": "top-right",
|
||||
"flipPage": false
|
||||
}
|
||||
});
|
||||
chart.render();
|
||||
} else {
|
||||
chart.changeData(data)
|
||||
}
|
||||
}else{
|
||||
this.notifyWarning(resp.msg)
|
||||
}
|
||||
},
|
||||
},
|
||||
async created() {
|
||||
this.allJdhOptions = await proposal.getAllMeeting()
|
||||
this.pageForm.meetingId = this.allJdhOptions.length ? this.allJdhOptions[0].id : ''
|
||||
await this.getNumData()
|
||||
this.pageData()
|
||||
// await this.drawChat()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
Reference in New Issue
Block a user