|
|
|
@ -15,21 +15,21 @@
|
|
|
|
|
v-for="(item, idx) in superviseObject"
|
|
|
|
|
:key="idx"
|
|
|
|
|
:class="['section-network-item', item.className]"
|
|
|
|
|
@click="openDetailDialog(item.title)"
|
|
|
|
|
@click="openDetailDialog(item.title,item.type)"
|
|
|
|
|
@mouseover="volunteerMouseoveer(item.title)"
|
|
|
|
|
@mouseleave="volunteerLeave(item.title)"
|
|
|
|
|
>
|
|
|
|
|
<div v-if="item.title === '网络文明志愿者' && volunteerFlag">
|
|
|
|
|
<div
|
|
|
|
|
class="section-volunteer-one"
|
|
|
|
|
@click="openDetailDialog('银龄生活')"
|
|
|
|
|
@click="openDetailDialog('银龄生活',1)"
|
|
|
|
|
>
|
|
|
|
|
<span> </span>
|
|
|
|
|
<span>银龄生活</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="section-volunteer-two"
|
|
|
|
|
@click="openDetailDialog('凌云燕')"
|
|
|
|
|
@click="openDetailDialog('凌云燕',2)"
|
|
|
|
|
>
|
|
|
|
|
<span></span>
|
|
|
|
|
<span>凌云燕</span>
|
|
|
|
@ -113,7 +113,20 @@
|
|
|
|
|
:modal="false"
|
|
|
|
|
>
|
|
|
|
|
<div style="height: 765px">
|
|
|
|
|
<el-table :data="currentPageData" height="740">
|
|
|
|
|
<MyTable
|
|
|
|
|
:table-list="tableList"
|
|
|
|
|
:table-key="tableKey"
|
|
|
|
|
/>
|
|
|
|
|
<div style="text-align: right; margin-top: 10px">
|
|
|
|
|
<paginations
|
|
|
|
|
v-show="total > 0"
|
|
|
|
|
:total="total"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
@pagination="getAllList"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <el-table :data="currentPageData" height="740">
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
@ -135,20 +148,8 @@
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div style="text-align: right; margin-top: 10px">
|
|
|
|
|
<el-pagination
|
|
|
|
|
:current-page="currentPage"
|
|
|
|
|
:page-sizes="[10, 20, 30, 50, 100]"
|
|
|
|
|
:page-size="pageSize"
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
:total="total"
|
|
|
|
|
popper-class="select_bottom"
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
>
|
|
|
|
|
</el-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</el-table> -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<span>
|
|
|
|
@ -234,6 +235,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
// import { getReviewArticle } from '@/api/common'
|
|
|
|
|
import { listSafetyadmin, listCommentator, listPingtai, listNetSafetyZcUnit, listPrincipal, listVolunteer } from '@/api/zongzhi/st.js'
|
|
|
|
|
import vueSeamlessScroll from 'vue-seamless-scroll'
|
|
|
|
|
window.JSZip = require('jszip')
|
|
|
|
|
export default {
|
|
|
|
@ -242,9 +244,18 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
currentTitle: '',
|
|
|
|
|
tableList: [],
|
|
|
|
|
tableKey: [],
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
type: undefined
|
|
|
|
|
},
|
|
|
|
|
productList: [], // 所有数据
|
|
|
|
|
totalPage: 1, // 统共页数,默认为1
|
|
|
|
|
total: 1, // 统共页数,默认为1
|
|
|
|
|
currentPage: 1, // 当前页数 ,默认为1
|
|
|
|
|
pageSize: 10, // 每页显示数量
|
|
|
|
|
currentPageData: [], // 当前页显示内容
|
|
|
|
@ -335,17 +346,20 @@ export default {
|
|
|
|
|
{
|
|
|
|
|
className: 'item1',
|
|
|
|
|
url: require('@/assets/privateOrder/positiveEnergy/普通网评员.png'),
|
|
|
|
|
title: '普通网评员'
|
|
|
|
|
title: '普通网评员',
|
|
|
|
|
type: 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
className: 'item2',
|
|
|
|
|
url: require('@/assets/privateOrder/positiveEnergy/骨干网评员.png'),
|
|
|
|
|
title: '骨干网评员'
|
|
|
|
|
title: '骨干网评员',
|
|
|
|
|
type: 2
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
className: 'item3',
|
|
|
|
|
url: require('@/assets/privateOrder/positiveEnergy/核心网评员.png'),
|
|
|
|
|
title: '核心网评员'
|
|
|
|
|
title: '核心网评员',
|
|
|
|
|
type: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
className: 'item4',
|
|
|
|
@ -413,22 +427,165 @@ export default {
|
|
|
|
|
this.automaticChange()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 重置 */
|
|
|
|
|
reset() {
|
|
|
|
|
this.tableList = []
|
|
|
|
|
this.tableKey = []
|
|
|
|
|
// 总条数
|
|
|
|
|
this.total = 0
|
|
|
|
|
this.queryParams = {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
type: undefined
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 打开信息弹窗
|
|
|
|
|
openDetailDialog(title) {
|
|
|
|
|
if (title !== '网络文明志愿者') {
|
|
|
|
|
openDetailDialog(title, type) {
|
|
|
|
|
this.reset()
|
|
|
|
|
this.currentTitle = title
|
|
|
|
|
if (title === '网络安全官') {
|
|
|
|
|
this.getNetAdmin(title)
|
|
|
|
|
} else if (title === '普通网评员' || title === '骨干网评员' || title === '核心网评员') {
|
|
|
|
|
this.queryParams.type = type
|
|
|
|
|
this.getNetPj(title)
|
|
|
|
|
} else if (title === '网络大V') {
|
|
|
|
|
this.getNetPt(title)
|
|
|
|
|
} else if (title === '网络安全支持单位') {
|
|
|
|
|
this.getZcEnterprise(title)
|
|
|
|
|
} else if (title === '网络民情责任人') {
|
|
|
|
|
this.getFzr(title)
|
|
|
|
|
} else if (title === '银龄生活' || title === '凌云燕') {
|
|
|
|
|
this.queryParams.type = type
|
|
|
|
|
this.getZyz(title)
|
|
|
|
|
}
|
|
|
|
|
// if (title !== '网络文明志愿者') {
|
|
|
|
|
},
|
|
|
|
|
/** 分页查询各个表格 */
|
|
|
|
|
getAllList() {
|
|
|
|
|
if (this.currentTitle === '网络安全官') {
|
|
|
|
|
this.getNetAdmin(this.currentTitle)
|
|
|
|
|
} else if (this.currentTitle === '普通网评员' || this.currentTitle === '骨干网评员' || this.currentTitle === '核心网评员') {
|
|
|
|
|
this.getNetPj(this.currentTitle)
|
|
|
|
|
} else if (this.currentTitle === '网络大V') {
|
|
|
|
|
this.getNetPt(this.currentTitle)
|
|
|
|
|
} else if (this.currentTitle === '网络安全支持单位') {
|
|
|
|
|
this.getZcEnterprise(this.currentTitle)
|
|
|
|
|
} else if (this.currentTitle === '网络民情责任人') {
|
|
|
|
|
this.getFzr(this.currentTitle)
|
|
|
|
|
} else if (this.currentTitle === '银龄生活' || this.currentTitle === '凌云燕') {
|
|
|
|
|
this.getZyz(this.currentTitle)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 文明志愿者
|
|
|
|
|
*/
|
|
|
|
|
getZyz(title) {
|
|
|
|
|
listVolunteer(this.queryParams).then(res => {
|
|
|
|
|
this.tableList = res.rows
|
|
|
|
|
this.tableKey = [
|
|
|
|
|
{ name: '姓名', value: 'name' },
|
|
|
|
|
{ name: '年龄', value: 'age' },
|
|
|
|
|
{ name: '活动内容', value: 'content' },
|
|
|
|
|
{ name: '单位', value: 'unit' },
|
|
|
|
|
{ name: '职务', value: 'duty' },
|
|
|
|
|
{ name: '联系电话', value: 'phoneNum' }
|
|
|
|
|
]
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.dialogTitle = title
|
|
|
|
|
this.centerDialogVisible = true
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/** 网络安全官 */
|
|
|
|
|
getNetAdmin(title) {
|
|
|
|
|
listSafetyadmin(this.queryParams).then(res => {
|
|
|
|
|
this.tableList = res.rows
|
|
|
|
|
this.tableKey = [
|
|
|
|
|
{ name: '单位', value: 'unit' },
|
|
|
|
|
{ name: '第一负责人', value: 'firstPrincipal' },
|
|
|
|
|
{ name: '职务', value: 'duty' },
|
|
|
|
|
{ name: '直接负责人', value: 'directPrincipal' },
|
|
|
|
|
{ name: '职务_1', value: 'duty1' },
|
|
|
|
|
{ name: '负责科室', value: 'fuzeKeshi' },
|
|
|
|
|
{ name: '网络安全官', value: 'networkAqg' },
|
|
|
|
|
{ name: '职务_2', value: 'duty2' },
|
|
|
|
|
{ name: '电话', value: 'tel' }
|
|
|
|
|
]
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.dialogTitle = title
|
|
|
|
|
const tableObject = require('./data.json')
|
|
|
|
|
this.tableData = tableObject[title]
|
|
|
|
|
this.tableHeader = []
|
|
|
|
|
for (const item in tableObject[title][0]) {
|
|
|
|
|
this.tableHeader.push(item)
|
|
|
|
|
}
|
|
|
|
|
this.total = this.tableData.length
|
|
|
|
|
this.totalPage = Math.ceil(this.tableData.length / this.pageSize)
|
|
|
|
|
this.totalPage = this.totalPage === 0 ? 1 : this.totalPage
|
|
|
|
|
this.setCurrentPageData()
|
|
|
|
|
}
|
|
|
|
|
this.centerDialogVisible = true
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/** 网评员 */
|
|
|
|
|
getNetPj(title) {
|
|
|
|
|
listCommentator(this.queryParams).then(res => {
|
|
|
|
|
this.tableList = res.rows
|
|
|
|
|
this.tableKey = [
|
|
|
|
|
{ name: '姓名', value: 'name' },
|
|
|
|
|
{ name: '性别', value: 'sex' },
|
|
|
|
|
{ name: '年龄', value: 'age' },
|
|
|
|
|
{ name: '名族', value: 'nationality' },
|
|
|
|
|
{ name: '政治面貌', value: 'politicsStatus' },
|
|
|
|
|
{ name: '单位', value: 'unit' },
|
|
|
|
|
{ name: '移动电话', value: 'phoneNum' },
|
|
|
|
|
{ name: '微信号', value: 'vxNum' }
|
|
|
|
|
]
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.dialogTitle = title
|
|
|
|
|
this.centerDialogVisible = true
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 网络大V
|
|
|
|
|
*/
|
|
|
|
|
getNetPt(title) {
|
|
|
|
|
listPingtai(this.queryParams).then(res => {
|
|
|
|
|
this.tableList = res.rows
|
|
|
|
|
this.tableKey = [
|
|
|
|
|
{ name: '分类', value: 'type' },
|
|
|
|
|
{ name: '账号名称', value: 'name' },
|
|
|
|
|
{ name: '属性', value: 'props' },
|
|
|
|
|
{ name: '简介', value: 'intro' },
|
|
|
|
|
{ name: '粉丝数', value: 'fansNum' }
|
|
|
|
|
]
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.dialogTitle = title
|
|
|
|
|
this.centerDialogVisible = true
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 网络安全支持企业
|
|
|
|
|
*/
|
|
|
|
|
getZcEnterprise(title) {
|
|
|
|
|
listNetSafetyZcUnit(this.queryParams).then(res => {
|
|
|
|
|
this.tableList = res.rows
|
|
|
|
|
this.tableKey = [
|
|
|
|
|
{ name: '支撑单位', value: 'name' },
|
|
|
|
|
{ name: '联系人', value: 'linkMan' },
|
|
|
|
|
{ name: '联系方式', value: 'phoneNum' }
|
|
|
|
|
]
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.dialogTitle = title
|
|
|
|
|
this.centerDialogVisible = true
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 民情负责人
|
|
|
|
|
*/
|
|
|
|
|
getFzr(title) {
|
|
|
|
|
listPrincipal(this.queryParams).then(res => {
|
|
|
|
|
this.tableList = res.rows
|
|
|
|
|
this.tableKey = [
|
|
|
|
|
{ name: '单位', value: 'unitName' },
|
|
|
|
|
{ name: '民情负责人', value: 'fuzeMan' },
|
|
|
|
|
{ name: '职务', value: 'duty' },
|
|
|
|
|
{ name: '联系电话', value: 'tel' },
|
|
|
|
|
{ name: '传真号码', value: 'faxNum' },
|
|
|
|
|
{ name: '手机号码', value: 'phoneNum' }
|
|
|
|
|
]
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.dialogTitle = title
|
|
|
|
|
this.centerDialogVisible = true
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 按钮切换
|
|
|
|
|
employClick(flag) {
|
|
|
|
@ -455,11 +612,11 @@ export default {
|
|
|
|
|
this.automaticChange()
|
|
|
|
|
},
|
|
|
|
|
// 设置当前页面数据,对数组操作的截取规则为[0~10],[10~20]...,
|
|
|
|
|
setCurrentPageData() {
|
|
|
|
|
const begin = (this.currentPage - 1) * this.pageSize
|
|
|
|
|
const end = this.currentPage * this.pageSize
|
|
|
|
|
this.currentPageData = this.tableData.slice(begin, end)
|
|
|
|
|
},
|
|
|
|
|
// setCurrentPageData() {
|
|
|
|
|
// const begin = (this.currentPage - 1) * this.pageSize
|
|
|
|
|
// const end = this.currentPage * this.pageSize
|
|
|
|
|
// this.currentPageData = this.tableData.slice(begin, end)
|
|
|
|
|
// },
|
|
|
|
|
handleSizeChange(val) {
|
|
|
|
|
this.pageSize = val
|
|
|
|
|
this.setCurrentPageData()
|
|
|
|
|