Commit feae91b0 authored by ww-xxy's avatar ww-xxy

优化办不成事报表

parent 8b85efe6
...@@ -5,9 +5,12 @@ ...@@ -5,9 +5,12 @@
<a-button :loading="btnLoading" type="primary" class="addclass" @click="handleExportTable"> <a-button :loading="btnLoading" type="primary" class="addclass" @click="handleExportTable">
<span>{{ tableSelectedRows.length ? "导出" : "导出全部" }}</span> <span>{{ tableSelectedRows.length ? "导出" : "导出全部" }}</span>
</a-button> </a-button>
<div class="ml20">提交总次数:<span style="color:#1890ff;font-weight: bold;">{{ numObj ? numObj.count : 0 }}</span></div> <div class="ml20">提交总次数:<span style="color:#1890ff;font-weight: bold;">{{ numObj ? numObj.count : 0
<div class="ml20">回复总次数:<span style="color:#1890ff;font-weight: bold;">{{ numObj ? numObj.reply_count : 0 }}</span></div> }}</span></div>
<div style="font-size:12px;color:#a19a9a;margin-left: 20px;">统计时间段:{{ queryform.time[0] }} ~ {{ queryform.time[1] }}</div> <div class="ml20">回复总次数:<span style="color:#1890ff;font-weight: bold;">{{ numObj ? numObj.reply_count : 0
}}</span></div>
<div style="font-size:12px;color:#a19a9a;margin-left: 20px;">统计时间段:{{ queryform.time[0] }} ~ {{
queryform.time[1] }}</div>
</div> </div>
<a-form :model="queryform" layout="inline"> <a-form :model="queryform" layout="inline">
<a-form-item> <a-form-item>
...@@ -16,8 +19,8 @@ ...@@ -16,8 +19,8 @@
<a-form-item> <a-form-item>
<a-select v-model="queryform.source" style="width: 140px"> <a-select v-model="queryform.source" style="width: 140px">
<a-select-option value="">全部来源</a-select-option> <a-select-option value="">全部来源</a-select-option>
<a-select-option :value="item.value" v-for="item,index in deviceList" <a-select-option :value="item.value" v-for="item, index in deviceList"
:key="index">{{item.label}}</a-select-option> :key="index">{{ item.label }}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
...@@ -38,16 +41,16 @@ ...@@ -38,16 +41,16 @@
onChange: onSelectChange, onChange: onSelectChange,
}"> }">
<template slot="type" slot-scope="text, record, index"> <template slot="type" slot-scope="text, record, index">
<div>{{typeList.find(item=>record.type).label}}</div> <div>{{ typeList.find(item => record.type).label }}</div>
</template> </template>
<template slot="valid" slot-scope="text, record, index"> <template slot="valid" slot-scope="text, record, index">
<div>{{record.valid == 1 ? '' : ''}}</div> <div>{{ record.valid == 1 ? '' : '' }}</div>
</template> </template>
<template slot="secrecy" slot-scope="text, record, index"> <template slot="secrecy" slot-scope="text, record, index">
<div>{{record.secrecy == 1 ? '' : ''}}</div> <div>{{ record.secrecy == 1 ? '' : '' }}</div>
</template> </template>
<template slot="status" slot-scope="text, record, index"> <template slot="status" slot-scope="text, record, index">
<div>{{record.status == 1 ? '' : ''}}</div> <div>{{ record.status == 1 ? '' : '' }}</div>
</template> </template>
<template slot="操作" slot-scope="text, record, index"> <template slot="操作" slot-scope="text, record, index">
<a-button type="link" @click="detail(record)">详情</a-button> <a-button type="link" @click="detail(record)">详情</a-button>
...@@ -60,37 +63,37 @@ ...@@ -60,37 +63,37 @@
<div style="margin-bottom: 10px;">建议内容</div> <div style="margin-bottom: 10px;">建议内容</div>
<a-descriptions layout="vertical" :column="4"> <a-descriptions layout="vertical" :column="4">
<a-descriptions-item label="问题主题" :span="4"> <a-descriptions-item label="问题主题" :span="4">
{{detailData.title}} {{ detailData.title }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="具体问题" :span="4"> <a-descriptions-item label="具体问题" :span="4">
{{detailData.content}} {{ detailData.content }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="业务名称" :span="4"> <a-descriptions-item label="业务名称" :span="4">
{{detailData.business}} {{ detailData.business }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="办事区县" :span="4"> <a-descriptions-item label="办事区县" :span="4">
{{detailData.region}} {{ detailData.region }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="单位名称" :span="4"> <a-descriptions-item label="单位名称" :span="4">
{{detailData.dept_name}} {{ detailData.dept_name }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="真实姓名"> <a-descriptions-item label="真实姓名">
{{detailData.name}} {{ detailData.name }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="联系电话"> <a-descriptions-item label="联系电话">
{{detailData.phone}} {{ detailData.phone }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="身份证号"> <a-descriptions-item label="身份证号">
{{detailData.idcard}} {{ detailData.idcard }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="电子邮箱"> <a-descriptions-item label="电子邮箱">
{{detailData.email}} {{ detailData.email }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="联系地址" :span="4"> <a-descriptions-item label="联系地址" :span="4">
{{detailData.address}} {{ detailData.address }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="提交时间" :span="4"> <a-descriptions-item label="提交时间" :span="4">
{{detailData.create_time}} {{ detailData.create_time }}
</a-descriptions-item> </a-descriptions-item>
</a-descriptions> </a-descriptions>
</div> </div>
...@@ -98,22 +101,22 @@ ...@@ -98,22 +101,22 @@
<div style="margin-bottom: 10px;">建议答复</div> <div style="margin-bottom: 10px;">建议答复</div>
<a-descriptions layout="vertical" :column="1"> <a-descriptions layout="vertical" :column="1">
<a-descriptions-item label="所属部门"> <a-descriptions-item label="所属部门">
{{detailData.reply_dept}} {{ detailData.reply_dept }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="回复内容"> <a-descriptions-item label="回复内容">
{{detailData.reply_content}} {{ detailData.reply_content }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="附件"> <a-descriptions-item label="附件">
<div class="img-dv" v-if="detailData.reply_url && detailData.reply_url.length > 0"> <div class="img-dv" v-if="detailData.reply_url && detailData.reply_url.length > 0">
<thumbImage :src="item.url" :index="idx" @click="idx = index" fileType="img" <thumbImage :src="item.url" :index="idx" @click="idx = index" fileType="img"
v-for="item,index in detailData.reply_url" :key="index" /> v-for="item, index in detailData.reply_url" :key="index" />
</div> </div>
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="回复人"> <a-descriptions-item label="回复人">
{{detailData.reply_people}} {{ detailData.reply_people }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="回复时间"> <a-descriptions-item label="回复时间">
{{detailData.update_time}} {{ detailData.update_time }}
</a-descriptions-item> </a-descriptions-item>
</a-descriptions> </a-descriptions>
</div> </div>
...@@ -127,17 +130,17 @@ ...@@ -127,17 +130,17 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
getImpossible, getImpossible,
getImpossibleInfo, getImpossibleInfo,
getCountImpossible getCountImpossible
} from '@/api/dataAdmin.js' } from '@/api/dataAdmin.js'
import image from '@/components/image/thumbImage' import image from '@/components/image/thumbImage'
import { import {
export2Excel export2Excel
} from "@/utils/js/exportExcel"; } from "@/utils/js/exportExcel";
import moment from 'moment' import moment from 'moment'
export default { export default {
data() { data() {
return { return {
idx: 0, idx: 0,
...@@ -146,8 +149,8 @@ ...@@ -146,8 +149,8 @@
size: 10, size: 10,
source: '', source: '',
keyword: null, keyword: null,
time: [moment().format('yyyy-MM-DD'),moment().format('yyyy-MM-DD')], time: [moment().format('yyyy-MM-DD'), moment().format('yyyy-MM-DD')],
reply:'' reply: ''
}, },
deviceList: [{ deviceList: [{
label: '微官网', label: '微官网',
...@@ -257,17 +260,17 @@ ...@@ -257,17 +260,17 @@
}, },
async created() { async created() {
this.getlist() this.getlist()
let {
data
} = await getCountImpossible()
this.numObj = data
}, },
methods: { methods: {
getlist() { async getlist() {
getImpossible(this.queryform).then(res => { getImpossible(this.queryform).then(res => {
this.tabledataSource = res.data.data this.tabledataSource = res.data.data
this.pagination.total = res.data.total this.pagination.total = res.data.total
}) })
// 统计接口
let {data} = await getCountImpossible(this.queryform)
this.numObj = data || {}
}, },
changeTablePage(e) { changeTablePage(e) {
this.queryform.page = e.current this.queryform.page = e.current
...@@ -314,7 +317,7 @@ ...@@ -314,7 +317,7 @@
item.type = obj[keys]; item.type = obj[keys];
} }
}); });
item.status == 1?item.status= '':item.status= '' item.status == 1 ? item.status = '' : item.status = ''
}); });
} else { } else {
let datas = this.$_.cloneDeep( let datas = this.$_.cloneDeep(
...@@ -333,14 +336,14 @@ ...@@ -333,14 +336,14 @@
item.type = obj[key]; item.type = obj[key];
} }
}); });
item.status == 1?item.status= '':item.status= '' item.status == 1 ? item.status = '' : item.status = ''
} }
} }
const tHeader = [] const tHeader = []
const filterVal = [] const filterVal = []
this.tablecolumns.forEach(v=>{ this.tablecolumns.forEach(v => {
if(v.dataIndex){ if (v.dataIndex) {
tHeader.push(v.title) tHeader.push(v.title)
filterVal.push(v.dataIndex) filterVal.push(v.dataIndex)
} }
...@@ -354,23 +357,25 @@ ...@@ -354,23 +357,25 @@
this.btnLoading = false; this.btnLoading = false;
}, },
} }
} }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.form-box { .form-box {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 10px; margin-bottom: 10px;
.num-dv{
.num-dv {
display: flex; display: flex;
align-items: center; align-items: center;
.ml20{
.ml20 {
margin-left: 20px; margin-left: 20px;
} }
} }
} }
.img-dv { .img-dv {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -380,45 +385,44 @@ ...@@ -380,45 +385,44 @@
margin-right: 10px; margin-right: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
} }
/deep/.ant-spin-container{ /deep/.ant-spin-container {
display: block !important; display: block !important;
} }
/deep/.ant-drawer-body { /deep/.ant-drawer-body {
background: #f7f7f7; background: #f7f7f7;
padding: 15px; padding: 15px;
box-sizing: border-box; box-sizing: border-box;
min-height: calc(100vh - 55px); min-height: calc(100vh - 55px);
} }
/deep/td { /deep/td {
text-align: left; text-align: left;
} }
/deep/.ant-descriptions-item-label{ /deep/.ant-descriptions-item-label {
color: #1890ff; color: #1890ff;
} }
.btn-dv { .btn-dv {
background-color: #fff; background-color: #fff;
padding: 15px; padding: 15px;
margin-top: 20px; margin-top: 20px;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
.content-box { .content-box {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
} }
.content-dv { .content-dv {
width: calc(50% - 10px); width: calc(50% - 10px);
background: #fff; background: #fff;
border-radius: 10px; border-radius: 10px;
padding: 10px; padding: 10px;
} }</style>
</style> \ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment