活数据替换

lijinlong
许宏杰 1 year ago
parent 82137d9c3d
commit cb69e6df51

@ -0,0 +1,10 @@
import request from '@/utils/request.js'
// 查询字典
export function getDictList(query) {
return request({
url: '/system/dict/data/getlist',
method: 'get',
params: query
})
}

@ -59,3 +59,71 @@ export function listArticle(query) {
params: query params: query
}) })
} }
// 查询重点企业名录列表
export function listEnterprise(query) {
return request({
url: '/zongzhi/enterprise/list',
method: 'get',
params: query
})
}
// 查询重点领域监管列表
export function listDomain(query) {
return request({
url: '/zongzhi/domain/list',
method: 'get',
params: query
})
}
// 查询重点工作项目列表
export function listWork(query) {
return request({
url: '/zongzhi/work/list',
method: 'get',
params: query
})
}
// 查询工作动态列表
export function listDongtai(query) {
return request({
url: '/zongzhi/dongtai/list',
method: 'get',
params: query
})
}
// 查询等保系统列表
export function listSystem(query) {
return request({
url: '/zongzhi/system/list',
method: 'get',
params: query
})
}
// 查询等保单位列表
export function listUnit(query) {
return request({
url: '/zongzhi/dengbaounit/list',
method: 'get',
params: query
})
}
// 查询政府网站列表
export function listWeb(query) {
return request({
url: '/zongzhi/web/list',
method: 'get',
params: query
})
}
// 查询IDC单位列表
export function listIDCunit(query) {
return request({
url: '/zongzhi/idcunit/list',
method: 'get',
params: query
})
}

@ -1,28 +1,27 @@
<template> <template>
<div> <div>
<el-table :data="tableList" height="740"> <el-table :data="tableList" height="740">
<el-table-column <!-- <el-table-column
label="序号" label="序号"
type="index" type="index"
width="80" width="80"
align="center" align="center"
/> /> -->
<el-table-column <el-table-column
v-for="(item,key) in tableKey" v-for="(item,key) in tableKey"
v-if="!item.dictType"
:key="key" :key="key"
:prop="item.value" :prop="item.value"
:label="item.name" :label="item.name"
align="center"
:show-overflow-tooltip="true"
></el-table-column> ></el-table-column>
<el-table-column v-else :label="item.name" :show-overflow-tooltip="true">
<template scope="scope">
{{ $filterDict(item.dictType,scope.row[item.value]) }}
</template>
</el-table-column>
</el-table> </el-table>
<!-- <div style="text-align: right; margin-top: 10px">
<pagination
v-show="total > 0"
:total="total"
:page.sync="pageNum"
:limit.sync="pageSize"
@pagination="getList"
/>
</div> -->
</div> </div>
</template> </template>

@ -22,6 +22,8 @@ import router from './router'
import MyTable from '@/components/MyTable' import MyTable from '@/components/MyTable'
import Paginations from '@/components/Pagination' import Paginations from '@/components/Pagination'
import { filterDict } from '@/utils/common.js'
Vue.prototype.$filterDict = filterDict
Vue.component('MyTable', MyTable) Vue.component('MyTable', MyTable)
Vue.component('Paginations', Paginations) Vue.component('Paginations', Paginations)
import $ from 'jquery' import $ from 'jquery'

@ -6,12 +6,14 @@
* @LastEditors: Wiley.Yang * @LastEditors: Wiley.Yang
* @LastEditTime: 2022-02-16 15:50:20 * @LastEditTime: 2022-02-16 15:50:20
*/ */
import store from './store'
import router from './router' import router from './router'
// import store from './store' // import store from './store'
// import { Message } from 'element-ui' import { Message } from 'element-ui'
import NProgress from 'nprogress' // progress bar import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style import 'nprogress/nprogress.css' // progress bar style
import getPageTitle from '@/utils/get-page-title' import getPageTitle from '@/utils/get-page-title'
// import { error } from 'jquery'
// import { asyncRoutes, constantRoutes } from '@/router' // import { asyncRoutes, constantRoutes } from '@/router'
NProgress.configure({ showSpinner: false }) // NProgress Configuration NProgress.configure({ showSpinner: false }) // NProgress Configuration
@ -31,8 +33,20 @@ router.beforeEach(async(to, from, next) => {
// next(`/Screen`); // next(`/Screen`);
// NProgress.done(); // NProgress.done();
// } // }
// 获取大屏所用到的接口
if (JSON.stringify(store.state.dict.dictObject) === '{}') {
store
.dispatch('getDictType')
.then((res) => {
next() next()
})
.catch((error) => {
Message.error(error)
})
} else {
next()
}
NProgress.done() NProgress.done()
}) })

@ -7,6 +7,7 @@
* @LastEditTime: 2022-02-14 16:13:10 * @LastEditTime: 2022-02-14 16:13:10
*/ */
const getters = { const getters = {
fixedHeader: state => state.settings.fixedHeader fixedHeader: (state) => state.settings.fixedHeader,
dictObject: (state) => state.dict.dictObject
} }
export default getters export default getters

@ -10,12 +10,14 @@ import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import getters from './getters' import getters from './getters'
import settings from './modules/settings' import settings from './modules/settings'
import dict from './modules/dict'
Vue.use(Vuex) Vue.use(Vuex)
const store = new Vuex.Store({ const store = new Vuex.Store({
modules: { modules: {
settings settings,
dict
}, },
getters getters
}) })

@ -0,0 +1,30 @@
import { getDictList } from '@/api/zongzhi/common.js'
const dict = {
state: {
dictObject: {}
},
mutations: {
SET_DICT: (state, dict) => {
state.dictObject = dict
}
},
actions: {
getDictType({ commit }) {
return new Promise((resolve, reject) => {
const query = {
list: 'sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type'
}
getDictList(query)
.then((res) => {
commit('SET_DICT', res.data)
resolve()
})
.catch((error) => {
reject(error)
})
})
}
}
}
export default dict

@ -0,0 +1,13 @@
import store from '@/store'
export function filterDict(type, value) {
const dict = store.getters.dictObject
// console.log(dict, type, value)
// debugger
const result = dict[type].filter((item) => item.dictValue == value)
if (result.length > 0) {
return result[0].dictLabel
} else {
return '未匹配到'
}
}

@ -141,7 +141,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="section-dynamic" @click.stop="dynamicClick($event)"> <div class="section-dynamic">
<module-title>工作动态</module-title> <module-title>工作动态</module-title>
<vue-seamless-scroll <vue-seamless-scroll
:data="dynamicList" :data="dynamicList"
@ -152,15 +152,16 @@
v-for="(item, idx) in dynamicList" v-for="(item, idx) in dynamicList"
:key="idx" :key="idx"
class="scroll_item" class="scroll_item"
@click.stop="dynamicClick(item)"
> >
<div class="item_txt"> <div class="item_txt">
<span :data-obj="JSON.stringify(item)"> <span :data-obj="item.materialsName">
{{ item.dynamicName }} {{ item.materialsName }}
</span> </span>
</div> </div>
<div class="item_bottom"> <div class="item_bottom">
<div class="bottom_icon"></div> <div class="bottom_icon"></div>
<div class="bottom_name">{{ item.department }}</div> <div class="bottom_name">{{ item.type }}</div>
</div> </div>
</div> </div>
</vue-seamless-scroll> </vue-seamless-scroll>
@ -223,43 +224,23 @@
:modal-append-to-body="false" :modal-append-to-body="false"
center center
:modal="false" :modal="false"
:before-close="beForeClose"
> >
<div style="height: 765px"> <div style="height: 765px">
<el-table :data="currentPageData" height="750" highlight-current-row>
<el-table-column <MyTable
label="序号" :height="750"
type="index" :table-list="currentPageData"
:index=" :table-key="tableKey"
(index) => {
return index + 1 + (currentPage - 1) * pageSize;
}
"
width="80"
align="center"
/> />
<template v-for="item in tableHeader">
<el-table-column
v-if="item !== '序号'"
:key="item"
:prop="item"
show-overflow-tooltip
:label="item"
>
</el-table-column>
</template>
</el-table>
<div style="text-align: right"> <div style="text-align: right">
<el-pagination <paginations
:current-page="currentPage" v-show="total > 0"
:page-sizes="[10, 20, 30, 50, 100]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
popper-class="select_bottom" :page.sync="queryParams.pageNum"
@size-change="handleSizeChange" :limit.sync="queryParams.pageSize"
@current-change="handleCurrentChange" @pagination="inventoryBtn"
> />
</el-pagination>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
@ -285,7 +266,7 @@
highlight-current-row highlight-current-row
@row-click="rowClick" @row-click="rowClick"
> >
<el-table-column <!-- <el-table-column
label="序号" label="序号"
type="index" type="index"
:index=" :index="
@ -295,7 +276,7 @@
" "
width="80" width="80"
align="center" align="center"
/> /> -->
<template v-for="item in tableHeader"> <template v-for="item in tableHeader">
<el-table-column <el-table-column
v-if="item !== '序号'" v-if="item !== '序号'"
@ -501,6 +482,7 @@
<script> <script>
import vueSeamlessScroll from 'vue-seamless-scroll' import vueSeamlessScroll from 'vue-seamless-scroll'
import ModuleTitle from '../../common/ModuleTitle.vue' import ModuleTitle from '../../common/ModuleTitle.vue'
import { listEnterprise, listDomain, listWork, listDongtai } from '@/api/zongzhi/st.js'
import { import {
getBilibiliData, getBilibiliData,
getRedBookData, getRedBookData,
@ -524,6 +506,20 @@ export default {
}, },
data() { data() {
return { return {
currentIndex: 0,
//
total: 0,
queryParams: {
pageNum: 1,
pageSize: 10
},
dtTotal: 0,
dtParams: {
pageNum: 1,
pageSize: 10
},
currentPageData: [], //
tableKey: [],
threeTimer: null, threeTimer: null,
dialogImg: false, dialogImg: false,
imgSrc: '', imgSrc: '',
@ -532,7 +528,7 @@ export default {
href: null, href: null,
threeStatus: 1, threeStatus: 1,
pageDetails: false, pageDetails: false,
dynamicList: null, dynamicList: [],
zoologyIconList: [ zoologyIconList: [
{ {
name: '网站', name: '网站',
@ -598,7 +594,7 @@ export default {
total: 1, // 1 total: 1, // 1
currentPage: 1, // 1 currentPage: 1, // 1
pageSize: 10, // pageSize: 10, //
currentPageData: [], //
tableHeader: [], tableHeader: [],
tableData: [], tableData: [],
dialogTitle: '', dialogTitle: '',
@ -612,7 +608,7 @@ export default {
classOption() { classOption() {
return { return {
step: 0.4, // step: 0.4, //
limitMoveNum: this.dynamicList.length, // this.dataList.length limitMoveNum: 5, // this.dataList.length
hoverStop: true, // stop hoverStop: true, // stop
direction: 1, // 0 1 2 3 direction: 1, // 0 1 2 3
openWatch: true, // dom openWatch: true, // dom
@ -638,8 +634,12 @@ export default {
methods: { methods: {
// //
getDynamicData() { getDynamicData() {
const tableObject = require('./data.json') listDongtai(this.dtParams).then(res => {
this.dynamicList = tableObject['工作动态'] this.dynamicList = res.rows
this.dtTotal = res.total
})
// const tableObject = require('./data.json')
// this.dynamicList = tableObject['']
}, },
// //
@ -804,23 +804,89 @@ export default {
zoologyMouseLeave() { zoologyMouseLeave() {
this.getZoologyChange() this.getZoologyChange()
}, },
/**
* 重置
*/
reset() {
this.total = 0
this.queryParams = {
pageNum: 1,
pageSize: 10
}
this.currentPageData = [] //
this.tableKey = []
},
/**
* 关闭dialog弹出前的回调
*/
beForeClose(done) {
this.reset()
done()
},
// //
inventoryBtn(status, val) { inventoryBtn(status, val) {
this.currentPage = 1 this.currentIndex = status
this.pageSize = 10 if (this.currentIndex == 1) {
const tableObject = require('./data.json') listEnterprise(this.queryParams).then(res => {
this.threeStatus = status this.currentPageData = res.rows
this.dialogTitle = val this.tableKey = [
this.tableData = tableObject[val] { name: '企业名称', value: 'enterpriseName' },
this.tableHeader = [] { name: '企业类型', value: 'enterpriseType', dictType: 'tc_enter_type' },
for (const item in tableObject[val][0]) { { name: '互联网业务', value: 'networkYewu', dictType: 'tc_inlet_yewu' },
this.tableHeader.push(item) { name: '监管部门', value: 'jianguanBumen' },
{ name: '单位地址', value: 'address' },
{ name: '联系人', value: 'linkMan' },
{ name: '联系电话', value: 'phoneNum' },
{ name: '网址或平台名称', value: 'productName' },
{ name: '域名', value: 'dns' }
]
this.total = res.total
})
} else if (this.currentIndex == 2) {
listDomain(this.queryParams).then(res => {
this.currentPageData = res.rows
this.tableKey = [
{ name: '企业类型', value: 'enterpriseType', dictType: 'tc_enter_type' },
{ name: '重点监管监管对象', value: 'zdjgContent' },
{ name: '法律法规令禁止的有关行为', value: 'weifaXingwei' },
{ name: '主要监管部门', value: 'dep' },
{ name: '主要依据', value: 'zhuyaoYiju' }
]
this.total = res.total
})
} else if (this.currentIndex == 3) {
listWork(this.queryParams).then(res => {
this.currentPageData = res.rows
this.tableKey = [
{ name: '推进单位', value: 'unitName' },
{ name: '项目名称', value: 'projectName' },
{ name: '项目内容', value: 'projectContent' },
{ name: '项目类型', value: 'projectType', dictType: 'tc_item_type' },
{ name: '项目联系人', value: 'projectLinkMan' }
]
this.total = res.total
})
} }
this.total = this.tableData.length
this.totalPage = Math.ceil(this.tableData.length / this.pageSize) this.$nextTick(() => {
this.totalPage = this.totalPage === 0 ? 1 : this.totalPage this.dialogTitle = val
this.setCurrentPageData()
this.dialogStatus = true this.dialogStatus = true
})
// this.currentPage = 1
// this.pageSize = 10
// const tableObject = require('./data.json')
// this.threeStatus = status
// this.dialogTitle = val
// this.tableData = tableObject[val]
// this.tableHeader = []
// for (const item in tableObject[val][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.dialogStatus = true
}, },
// //
inventoryChange() { inventoryChange() {
@ -867,21 +933,33 @@ export default {
this.currentPage = val this.currentPage = val
this.setCurrentPageData() this.setCurrentPageData()
}, },
dynamicClick(e) { dynamicClick(item) {
const val = JSON.parse(e.target.dataset.obj) console.log('数据', item)
this.dialogTitle = val.dynamicName this.tableHeader.push({ name: '材料路径', value: 'name' })
this.tableData = val.fileList const fileName = item.materialsFileName.split(',')
this.tableHeader = [] const fileUrl = item.materialsFileUrl.split(',')
for (const item in val.fileList[0]) {
if (item !== '材料路径') { if (fileName.length > 0) {
this.tableHeader.push(item) fileName.forEach((item, index) => {
} this.tableData.push({ name: item, url: fileUrl[index] })
})
} else {
this.tableData = []
} }
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.dynamicStatus = true this.dynamicStatus = true
// this.dialogTitle = val.dynamicName
// this.tableData = val.fileList
// this.tableHeader = []
// for (const item in val.fileList[0]) {
// if (item !== '') {
// 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.dynamicStatus = true
}, },
rowClick(row) { rowClick(row) {
console.log(row) console.log(row)
@ -975,6 +1053,7 @@ export default {
return url return url
}, },
dialogClose() { dialogClose() {
this.reset()
this.dialogStatus = false this.dialogStatus = false
this.dynamicStatus = false this.dynamicStatus = false
this.pageSize = 20 this.pageSize = 20

@ -20,10 +20,10 @@
class="text-row" class="text-row"
:data-curData="idx" :data-curData="idx"
> >
<span :data-curData="idx" :title="item.title">{{ item.title }}</span> <span :data-curData="idx" :title="item.title">{{ item.articleTitle }}</span>
<div :data-curData="idx" style="text-align: right"> <div :data-curData="idx" style="text-align: right">
<span :title="item.source" :data-curData="idx">{{ item.source }}</span> <span :title="item.source" :data-curData="idx">{{ $filterDict('tc_yq_media',item.source) }}</span>
<span :data-curData="idx">{{ item.date.split(' ')[0] }}</span> <span :data-curData="idx">{{ item.releaseTime }}</span>
<div /> <div />
</div> </div>
</div> </div>
@ -77,6 +77,7 @@
<script> <script>
import { allProjects, newsList, opinionWarningDetail, sjmtMedia } from '@/api/common' import { allProjects, newsList, opinionWarningDetail, sjmtMedia } from '@/api/common'
import { listArticle } from '@/api/zongzhi/st.js'
import vueSeamlessScroll from 'vue-seamless-scroll' import vueSeamlessScroll from 'vue-seamless-scroll'
export default { export default {
components: { components: {
@ -84,232 +85,241 @@ export default {
}, },
data() { data() {
return { return {
employTimer: null,
queryParams: {
pageNum: 1,
pageSize: 10,
type: 4
},
total: 0,
tableTime: null, tableTime: null,
href: null, href: null,
dialogDetails: false, dialogDetails: false,
dataList: [ dataList: [
{ // {
序号: 1, // : 1,
title: '多地联合执法 打击非法捕捞', // title: ' ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '二三里资讯-社会', // source: '-',
url: 'https://www.ersanli.cn/article.html?newsId=122920652129632&uid=0&utm_uid=0&type=1&appId=1' // url: 'https://www.ersanli.cn/article.html?newsId=122920652129632&uid=0&utm_uid=0&type=1&appId=1'
}, // },
{ // {
序号: 2, // : 2,
title: '“康统”之后日清跟风涨价, 成本提升又遭预制菜挤压', // title: ', ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: 'UC头条', // source: 'UC',
url: 'http://m.uczzd.cn/ucnews/news?aid=18152418836666321505' // url: 'http://m.uczzd.cn/ucnews/news?aid=18152418836666321505'
}, // },
{ // {
序号: 3, // : 3,
title: '曹路宝在太仓检查调研', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪长微博', // source: '',
url: 'https://weibo.com/ttarticle/p/show?id=2309404741793936965690' // url: 'https://weibo.com/ttarticle/p/show?id=2309404741793936965690'
}, // },
{ // {
序号: 4, // : 4,
title: '黄浦人才周举办外国高端人才专场', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '东方网', // source: '',
url: 'https://j.eastday.com/p/1646013940044353' // url: 'https://j.eastday.com/p/1646013940044353'
}, // },
{ // {
序号: 5, // : 5,
title: '2021年苏州市全面深化改革综述以改革“关键招”破局开路', // title: '2021',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '引力播', // source: '',
url: 'https://app.suzhou-news.cn/news/300397424' // url: 'https://app.suzhou-news.cn/news/300397424'
}, // },
{ // {
序号: 6, // : 6,
title: '太仓首场直播带岗提供近600个优质岗位', // title: '600',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '名城苏州网', // source: '',
url: 'http://news.2500sz.com/doc/2022/02/28/816923.shtml' // url: 'http://news.2500sz.com/doc/2022/02/28/816923.shtml'
}, // }
{ // {
序号: 7, // : 7,
title: '中共安徽省商务厅党组关于巡视“回头看”整改进展情况的通报', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '安徽纪检监察网', // source: '',
url: 'http://www.ahjjjc.gov.cn/xsxc/p/101227.html' // url: 'http://www.ahjjjc.gov.cn/xsxc/p/101227.html'
}, // },
{ // {
序号: 8, // : 8,
title: '2021年苏州市全面深化改革综述', // title: '2021',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '名城苏州网', // source: '',
url: 'http://news.2500sz.com/doc/2022/02/28/816889.shtml' // url: 'http://news.2500sz.com/doc/2022/02/28/816889.shtml'
}, // },
{ // {
序号: 9, // : 9,
title: // title:
'曹路宝在太仓检查调研:坚持不懈织密扎牢疫情防控网 助力重点项目高质量发展', // ' ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '今日头条-时政', // source: '-',
url: 'http://www.toutiao.com/item/7069565519959114277/' // url: 'http://www.toutiao.com/item/7069565519959114277/'
}, // },
{ // {
序号: 10, // : 10,
title: '江苏港口表现亮眼 经济双循环生机勃勃', // title: ' ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '二三里资讯-财经,投资', // source: '-,',
url: 'https://www.ersanli.cn/article.html?newsId=122921846965934&uid=0&utm_uid=0&type=1&appId=1' // url: 'https://www.ersanli.cn/article.html?newsId=122921846965934&uid=0&utm_uid=0&type=1&appId=1'
}, // },
{ // {
序号: 11, // : 11,
title: // title:
'【第242期水星新经济早报|2.28】亚马逊有万亿美元市值未被市场挖掘出来', // '242|2.28亿',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '金斧子-私募社区', // source: '-',
url: 'https://v.jfz.com/detail-97815.html' // url: 'https://v.jfz.com/detail-97815.html'
}, // },
{ // {
序号: 12, // : 12,
title: '没有产业和城市分工就无所谓一体化', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪看点', // source: '',
url: 'https://k.sina.cn/article_7517400647_1c0126e4705902xe9v.html' // url: 'https://k.sina.cn/article_7517400647_1c0126e4705902xe9v.html'
}, // },
{ // {
序号: 13, // : 13,
title: '“千亿县”江湖 多了新面孔', // title: '亿 ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '绍兴日报-09版', // source: '-09',
url: 'http://epaper.sxnews.cn/sxrb/html/2022-02/28/content_11865_5782248.htm' // url: 'http://epaper.sxnews.cn/sxrb/html/2022-02/28/content_11865_5782248.htm'
}, // },
{ // {
序号: 14, // : 14,
title: '热点:剪式液压升降机设计的类比增型与油缸推力计算', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: 'seo准-互联网', // source: 'seo-',
url: 'http://www.seozhun.com/thread-2527413-1-1.html' // url: 'http://www.seozhun.com/thread-2527413-1-1.html'
}, // },
{ // {
序号: 15, // : 15,
title: '转发微博', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/6456696165/LhsVNdkC8' // url: 'https://weibo.com/6456696165/LhsVNdkC8'
}, // },
{ // {
序号: 16, // : 16,
title: '【品美术经典,学百年党史】井冈山八角楼', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '网易号', // source: '',
url: 'https://c.m.163.com/news/a/H185097K0514X3KG.html' // url: 'https://c.m.163.com/news/a/H185097K0514X3KG.html'
}, // },
{ // {
序号: 17, // : 17,
title: '江苏11个县获评“四好农村路”全国示范县', // title: '11',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '快资讯-domestic', // source: '-domestic',
url: 'https://www.360kuai.com/942b4412212c58912' // url: 'https://www.360kuai.com/942b4412212c58912'
}, // },
{ // {
序号: 18, // : 18,
title: // title:
'强推央视的【深度国际】 让我们深度了解一下俄乌为啥打架[二哈][二哈][二哈] 太仓市 ', // ' [][][] ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/1936880961/LhqSpwU1Y' // url: 'https://weibo.com/1936880961/LhqSpwU1Y'
}, // },
{ // {
序号: 19, // : 19,
title: '用植脂的,能不能便宜点?', // title: '便',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/5265081521/LhqkKwBDc' // url: 'https://weibo.com/5265081521/LhqkKwBDc'
}, // },
{ // {
序号: 20, // : 20,
title: '医生提醒……', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '企鹅号', // source: '',
url: 'https://page.om.qq.com/page/OsShDQUvzn_pyt_dVoM-Bgdg0' // url: 'https://page.om.qq.com/page/OsShDQUvzn_pyt_dVoM-Bgdg0'
}, // },
{ // {
序号: 21, // : 21,
title: // title:
'今日零售家乐福被强制执行盒马鲜生青岛关店Costco销售额超15%;罗森深圳首店将开业;星巴克再引争议;京东收购达达获批', // 'Costco15%',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '商业新知', // source: '',
url: 'https://www.shangyexinzhi.com/article/4626737.html' // url: 'https://www.shangyexinzhi.com/article/4626737.html'
}, // },
{ // {
序号: 22, // : 22,
title: '第七届广东省养老服务高峰论坛暨第五届粤港澳大湾区养老', // title: '广',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '养老之家网-养老动态', // source: '-',
url: 'https://0555mas.com/yanglaodongtai/99832.html' // url: 'https://0555mas.com/yanglaodongtai/99832.html'
}, // },
{ // {
序号: 23, // : 23,
title: '以梅为媒,莘庄如何持续发展梅花经济?', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '巴蜀论坛-科技 ', // source: '- ',
url: 'http://www.phoer.net/thread-3457650-1-1.html' // url: 'http://www.phoer.net/thread-3457650-1-1.html'
}, // },
{ // {
序号: 24, // : 24,
title: // title:
'支持维权!伸张正义!#第二批政法队伍教育整顿# #全国第二批政法队伍教育整顿# //@江苏省淮安市公检法制造冤假错案:依法治国,依法,依法,依法!执法不严,执法不公,如何依法治国?如何让法律落实?如何促进法律的不断完善?如何使百姓安居乐业?', // '## ## //@:使',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/7333562025/Lhnj5cPE4' // url: 'https://weibo.com/7333562025/Lhnj5cPE4'
}, // },
{ // {
序号: 25, // : 25,
title: '最新利好消息住建部透露2022年楼市走向上海...', // title: '2022...',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '搜狐新闻', // source: '',
url: 'https://3g.k.sohu.com/t/n586934197' // url: 'https://3g.k.sohu.com/t/n586934197'
}, // },
{ // {
序号: 26, // : 26,
title: // title:
'一周新消费| 杨国福麻辣烫提交上市申请书元气森林第6家自建工厂落地美团饿了么违反食品安全被罚', // '| 6饿',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '网易号', // source: '',
url: 'https://c.m.163.com/news/a/H16JN7SN05525SEG.html' // url: 'https://c.m.163.com/news/a/H16JN7SN05525SEG.html'
}, // },
{ // {
序号: 27, // : 27,
title: '海事一周要闻_港口_船舶_航运公司', // title: '___',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '西安资讯站-新闻聚焦', // source: '西-',
url: 'http://3566666.cn/html/news/36480.html' // url: 'http://3566666.cn/html/news/36480.html'
}, // },
{ // {
序号: 28, // : 28,
title: '央视“大幕开启”杂技剧《战上海》掀开一段跨越72年的时空对话', // title: '72',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪看点', // source: '',
url: 'https://k.sina.cn/article_7506583603_1bf6d6033001011bp6.html' // url: 'https://k.sina.cn/article_7506583603_1bf6d6033001011bp6.html'
}, // },
{ // {
序号: 29, // : 29,
title: '江苏设高速收费站疫情查验点85个36个收费站入口临时关闭', // title: '8536',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '今日头条-社会', // source: '-',
url: 'http://www.toutiao.com/item/7069027514345062925/#ocr' // url: 'http://www.toutiao.com/item/7069027514345062925/#ocr'
}, // },
{ // {
序号: 30, // : 30,
title: '城市植物|上海棉花往事,未完待续', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '搜狐新闻', // source: '',
url: 'https://3g.k.sohu.com/t/n586903578' // url: 'https://3g.k.sohu.com/t/n586903578'
} // }
] ]
} }
}, },
computed: { computed: {
classOption() { classOption() {
return { return {
total: 0,
step: 0.4, // step: 0.4, //
limitMoveNum: 7, // this.dataList.length limitMoveNum: 7, // this.dataList.length
hoverStop: true, // stop hoverStop: true, // stop
@ -322,7 +332,9 @@ export default {
} }
}, },
watch: {}, watch: {},
destroyed() { }, destroyed() {
clearInterval(this.employTimer)
},
mounted() { mounted() {
// this.getData() // this.getData()
// sjmtMedia().then(res => { // sjmtMedia().then(res => {
@ -335,8 +347,25 @@ export default {
// }) // })
// } // }
// }) // })
this.getWz()
this.employTimer = setInterval(() => {
if (this.dataList.length >= this.total) {
clearInterval(this.employTimer)
} else {
this.queryParams.pageNum = this.queryParams.pageNum + 1
this.getWz()
}
}, 6000)
}, },
methods: { methods: {
getWz() {
listArticle(this.queryParams).then(res => {
this.dataList = [...this.dataList, ...res.rows]
this.total = res.total
})
},
getData() { getData() {
allProjects().then(res => { allProjects().then(res => {
res['[]'].forEach(item => { res['[]'].forEach(item => {

@ -19,10 +19,10 @@
class="text-row" class="text-row"
:data-curData="idx" :data-curData="idx"
> >
<span :data-curData="idx" :title="item.title ">{{ item.title }}</span> <span :data-curData="idx" :title="item.title ">{{ item.articleTitle }}</span>
<div style="text-align: right" :data-curData="idx"> <div style="text-align: right" :data-curData="idx">
<span :title="item.source" :data-curData="idx">{{ item.source }}</span> <span :title="item.source" :data-curData="idx">{{ $filterDict('tc_yq_media',item.source) }}</span>
<span :data-curData="idx">{{ item.date.split(' ')[0] }}</span> <span :data-curData="idx">{{ item.releaseTime }}</span>
<div /> <div />
</div> </div>
</div> </div>
@ -73,7 +73,8 @@
</template> </template>
<script> <script>
import { loaclMedia, opinionWarningDetail } from '@/api/common' // import { loaclMedia, opinionWarningDetail } from '@/api/common'
import { listArticle } from '@/api/zongzhi/st.js'
import vueSeamlessScroll from 'vue-seamless-scroll' import vueSeamlessScroll from 'vue-seamless-scroll'
export default { export default {
components: { components: {
@ -81,231 +82,238 @@ export default {
}, },
data() { data() {
return { return {
employTimer: null,
queryParams: {
pageNum: 1,
pageSize: 10,
type: 5
},
total: 0,
tableTime: null, tableTime: null,
href: null, href: null,
tableData: null, tableData: null,
dialogDetails: false, dialogDetails: false,
dataList: [ dataList: [
{ // {
序号: 1, // : 1,
title: '//@苏州气象:', // title: '//@:',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/3957548062/LhwednwG9' // url: 'https://weibo.com/3957548062/LhwednwG9'
}, // },
{ // {
序号: 2, // : 2,
title: '万千岗位“纷至沓来” 太仓“云聘月”向你发出“春天的邀请”', // title: ' ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '川报观察', // source: '',
url: 'https://cbgc.scol.com.cn/news/3234477' // url: 'https://cbgc.scol.com.cn/news/3234477'
}, // },
{ // {
序号: 3, // : 3,
title: '[打call][打call][打call]#太仓新闻#', // title: '[call][call][call]##',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/3195619433/LhqRi7KJ5' // url: 'https://weibo.com/3195619433/LhqRi7KJ5'
}, // },
{ // {
序号: 4, // : 4,
title: '最新!苏州这些地方核酸采样点调整', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新黄河', // source: '',
url: 'https://api.jinantimes.com.cn/h5/content.html?catid=1&id=2303061' // url: 'https://api.jinantimes.com.cn/h5/content.html?catid=1&id=2303061'
}, // }
{ // {
序号: 5, // : 5,
title: '3月1日起开始“退钱”啦', // title: '31退',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '太融e', // source: 'e',
url: 'https://taironge.tc.taicangfmc.com/pages/2022/02/25/b4014e1c388b48fda3c60fbdf8ad0ab7.html' // url: 'https://taironge.tc.taicangfmc.com/pages/2022/02/25/b4014e1c388b48fda3c60fbdf8ad0ab7.html'
}, // },
{ // {
序号: 6, // : 6,
title: '春暖花开!我市多家景区明日起恢复开放', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '企鹅号', // source: '',
url: 'https://page.om.qq.com/page/OOHB5UQ4tD6_hei1UlY_JiAQ0' // url: 'https://page.om.qq.com/page/OOHB5UQ4tD6_hei1UlY_JiAQ0'
}, // },
{ // {
序号: 7, // : 7,
title: '转发微博', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/6570018317/Lhitkyhff' // url: 'https://weibo.com/6570018317/Lhitkyhff'
}, // },
{ // {
序号: 8, // : 8,
title: // title:
'苏州优秀的GDP成绩跟这一家家高科技的企业落户有很大关系只能说@苏州发布 @太仓发布 政府的工作做得优秀,才能有企业各种世界第一家、第一条落地地方,促进更多的就业机会,人才聚集活力四射//@梦龙MAGNUM:全世界第一条梦龙数字化柔性生产', // 'GDP@ @ //@MAGNUM:',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/1763303783/Lhg1alF24' // url: 'https://weibo.com/1763303783/Lhg1alF24'
}, // },
{ // {
序号: 9, // : 9,
title: '转发微博', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/2128406204/LhfaxynTW' // url: 'https://weibo.com/2128406204/LhfaxynTW'
}, // },
{ // {
序号: 10, // : 10,
title: '太仓发布娄江新城规划,高质量打造“未来之城”', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '百度百家', // source: '',
url: 'https://baijiahao.baidu.com/s?id=1725788414864520745' // url: 'https://baijiahao.baidu.com/s?id=1725788414864520745'
}, // },
{ // {
序号: 11, // : 11,
title: '金辉·悠步江来丨集聚新动能,拼出新气象!百亿项目落户太仓!', // title: '·亿',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '企鹅号', // source: '',
url: 'https://page.om.qq.com/page/OqmvD_9Y-sBrJgObhkliR30g0' // url: 'https://page.om.qq.com/page/OqmvD_9Y-sBrJgObhkliR30g0'
}, // },
{ // {
序号: 12, // : 12,
title: // title:
'苏州县市究竟有多少人4个县级市688.65万人份采样数据,昆山人最多。 昆山共287.39万人, 常熟共180.29万人, 张家港共128.27万人, 太仓共92.7万人, 这个数据还是有点准确的。苏州大市一起共729.23+68', // '4688.65 287.39 180.29 128.27 92.7 729.23+68',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '今日头条-微头条', // source: '-',
url: 'http://www.toutiao.com/item/1725646568614991/#ocr' // url: 'http://www.toutiao.com/item/1725646568614991/#ocr'
}, // },
{ // {
序号: 13, // : 13,
title: '元气森林', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '百度贴吧-太仓吧', // source: '-',
url: 'https://tieba.baidu.com/p/7740100089#ocr' // url: 'https://tieba.baidu.com/p/7740100089#ocr'
}, // },
{ // {
序号: 14, // : 14,
title: '总归希望有一天我的某一个公司也要落户太仓的。', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/1562147545/Lh9R3ihej' // url: 'https://weibo.com/1562147545/Lh9R3ihej'
}, // },
{ // {
序号: 15, // : 15,
title: // title:
'太仓发布“十四五”养老服务发展规划 打造“县域养老”全国示范区;解读《盐城市养老服务条例》太仓发布“十四五”养老服务发展规划 打造“县域养老”全国示范区;解读《盐城市养老服务条例》 ', // ' ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/2947651152/Lh9JUCd5d' // url: 'https://weibo.com/2947651152/Lh9JUCd5d'
}, // },
{ // {
序号: 16, // : 16,
title: // title:
'来出差差点要在太仓露宿街头信息系统录入故障没有办法出核酸报告酒店入住和离开太仓均需要48小时核酸。回不去的上海留不下的太仓在太仓南站还有几个像我一样系统差不到报告的人在到处打电话咨询没有答案。 24号上午在太仓人民医院核酸检测', // '宿48 24',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/2792805504/Lh8Z03s1H' // url: 'https://weibo.com/2792805504/Lh8Z03s1H'
}, // },
{ // {
序号: 17, // : 17,
title: '[鼓掌][鼓掌][鼓掌]', // title: '[][][]',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/1865783061/Lh8AnC0UY' // url: 'https://weibo.com/1865783061/Lh8AnC0UY'
}, // },
{ // {
序号: 18, // : 18,
title: // title:
'#太仓新闻#【#元气森林#来太仓啦】2月25日下午在2022太仓市重点项目云签约活动上元气森林华东生产运营基地项目计划在太建设元气森林华东生产运营基地和展示体验中心打造工业生产和工业旅游相结合的现代化工厂。元气森林期待@元气森', // '####2252022@',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/3195619433/Lh6W1gLOl' // url: 'https://weibo.com/3195619433/Lh6W1gLOl'
}, // },
{ // {
序号: 19, // : 19,
title: '转发微博', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/2604309930/Lh5aEDsaa' // url: 'https://weibo.com/2604309930/Lh5aEDsaa'
}, // },
{ // {
序号: 20, // : 20,
title: '最新!太仓核酸检测采样服务点名单', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '58本地版', // source: '58',
url: 'https://wxgfoctongzhen.ganji.com/new/frowstyvincula/search/c/hexosanpuffin/wechatSharingDetailNew?infoid=1363443717248606208&source=19' // url: 'https://wxgfoctongzhen.ganji.com/new/frowstyvincula/search/c/hexosanpuffin/wechatSharingDetailNew?infoid=1363443717248606208&source=19'
}, // },
{ // {
序号: 21, // : 21,
title: // title:
'全国首创!江苏太仓将进口企业疫情防控纳入“安全生产监管系统”大数据平台', // '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '汉风号', // source: '',
url: 'https://rmt-wap.hanfenghao.com/news_details.html?from=androidapp&id=680315&userId=not_login' // url: 'https://rmt-wap.hanfenghao.com/news_details.html?from=androidapp&id=680315&userId=not_login'
}, // },
{ // {
序号: 22, // : 22,
title: '全部阴性!关于太仓市区域核酸检测结果的通报', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '企鹅号', // source: '',
url: 'https://page.om.qq.com/page/OkhM9gC1CtRjyLnxARzWSoVA0' // url: 'https://page.om.qq.com/page/OkhM9gC1CtRjyLnxARzWSoVA0'
}, // },
{ // {
序号: 23, // : 23,
title: // title:
'太仓的数据如下OCR:IMG:985:3 X 全部阴性!关于太仓市区域核酸 检测结果的通报 太仓发布2022-D2- 1车0 园城 幸福 关于太仓市区域核酸检测 结果的通报 全市广大居民朋友 2月23日我市启动区域核酸检测 迅速完成“采、', // 'OCR:IMG:985:3 X 2022-D2- 10 广 223 ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '百度贴吧-老米吧', // source: '-',
url: 'http://tieba.baidu.com/p/7728286049?pid=143263219039&cid=0#143263219039#ocr' // url: 'http://tieba.baidu.com/p/7728286049?pid=143263219039&cid=0#143263219039#ocr'
}, // },
{ // {
序号: 24, // : 24,
title: // title:
'「太仓中南春江云锦」——【中南春江云锦】——-全面解析未来的升值前景', // '-',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '搜狐新闻', // source: '',
url: 'https://3g.k.sohu.com/t/n586403528' // url: 'https://3g.k.sohu.com/t/n586403528'
}, // },
{ // {
序号: 25, // : 25,
title: // title:
'江苏太仓『中南春江云锦』中南春江云锦首页:售楼中心—官方网站【官】', // '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '搜狐新闻', // source: '',
url: 'https://www.sohu.com/a/525158004_120965097' // url: 'https://www.sohu.com/a/525158004_120965097'
}, // },
{ // {
序号: 26, // : 26,
title: '全部阴性!苏州太仓通报区域核酸检测结果', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '现代快报-江苏', // source: '-',
url: 'http://www.xdkb.net/p1/js/20220224/259732.html' // url: 'http://www.xdkb.net/p1/js/20220224/259732.html'
}, // },
{ // {
序号: 27, // : 27,
title: '江苏太仓完成区域核酸检测采样92.7万人,结果均为阴性', // title: '92.7',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '快资讯-domestic', // source: '-domestic',
url: 'https://www.360kuai.com/98897c3e1c87c059d' // url: 'https://www.360kuai.com/98897c3e1c87c059d'
}, // },
{ // {
序号: 28, // : 28,
title: // title:
'#太仓新闻#【太仓第二轮区域核酸检测更有序、更高效、更便捷】2月23日我市开展 第二轮区域核酸检测,现场更有序、更高效、更便捷!小布带你去现场看看 太仓发布的微博视频 ', // '##便223 便 ',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '新浪微博', // source: '',
url: 'https://weibo.com/3195619433/LgVFBkilA' // url: 'https://weibo.com/3195619433/LgVFBkilA'
}, // },
{ // {
序号: 29, // : 29,
title: '苏州四个县级市关于开展新一轮区域核酸检测的公告', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '生活圈-新乡圈', // source: '-',
url: 'http://tz.fafengtuqiang.cn/weizhan/article/0/31980345564/1564484' // url: 'http://tz.fafengtuqiang.cn/weizhan/article/0/31980345564/1564484'
}, // },
{ // {
序号: 30, // : 30,
title: '苏州四个县级市开展新一轮区域核酸检测', // title: '',
date: this.$moment().format('YYYY-MM-DD'), // date: this.$moment().format('YYYY-MM-DD'),
source: '手机新浪网-新浪资讯', // source: '-',
url: 'https://zx.sina.cn/2022-02-24/detail-imcwipih5040209.d.html' // url: 'https://zx.sina.cn/2022-02-24/detail-imcwipih5040209.d.html'
} // }
] ]
} }
}, },
@ -324,7 +332,9 @@ export default {
} }
}, },
watch: {}, watch: {},
destroyed() { }, destroyed() {
clearInterval(this.employTimer)
},
mounted() { mounted() {
// loaclMedia().then(res => { // loaclMedia().then(res => {
// this.tableData = res['T_LOCAL_MEDIA[]'] // this.tableData = res['T_LOCAL_MEDIA[]']
@ -337,8 +347,22 @@ export default {
// }) // })
// } // }
// }) // })
this.getWz()
this.employTimer = setInterval(() => {
if (this.dataList.length >= this.total) {
clearInterval(this.employTimer)
} else {
this.queryParams.pageNum = this.queryParams.pageNum + 1
this.getWz()
}
}, 6000)
}, },
methods: { methods: {
getWz() {
listArticle(this.queryParams).then(res => {
this.dataList = [...this.dataList, ...res.rows]
})
},
openNewWindow(e) { openNewWindow(e) {
const index = e.target.dataset.curdata const index = e.target.dataset.curdata
// if (url.includes('www.taicangdaily.com')) { // if (url.includes('www.taicangdaily.com')) {

@ -213,6 +213,7 @@
<script> <script>
// import { getReviewArticle } from '@/api/common' // import { getReviewArticle } from '@/api/common'
import { listSafetyadmin, listCommentator, listPingtai, listNetSafetyZcUnit, listPrincipal, listVolunteer, listArticle } from '@/api/zongzhi/st.js' import { listSafetyadmin, listCommentator, listPingtai, listNetSafetyZcUnit, listPrincipal, listVolunteer, listArticle } from '@/api/zongzhi/st.js'
import vueSeamlessScroll from 'vue-seamless-scroll' import vueSeamlessScroll from 'vue-seamless-scroll'
window.JSZip = require('jszip') window.JSZip = require('jszip')
export default { export default {
@ -501,7 +502,7 @@ export default {
this.tableList = res.rows this.tableList = res.rows
this.tableKey = [ this.tableKey = [
{ name: '姓名', value: 'name' }, { name: '姓名', value: 'name' },
{ name: '性别', value: 'sex' }, { name: '性别', value: 'sex', isDict: true, dictType: 'sys_user_sex' },
{ name: '年龄', value: 'age' }, { name: '年龄', value: 'age' },
{ name: '名族', value: 'nationality' }, { name: '名族', value: 'nationality' },
{ name: '政治面貌', value: 'politicsStatus' }, { name: '政治面貌', value: 'politicsStatus' },
@ -523,7 +524,7 @@ export default {
this.tableKey = [ this.tableKey = [
{ name: '分类', value: 'type' }, { name: '分类', value: 'type' },
{ name: '账号名称', value: 'name' }, { name: '账号名称', value: 'name' },
{ name: '属性', value: 'props' }, { name: '属性', value: 'props', isDict: true, dictType: 'tc_net_sx' },
{ name: '简介', value: 'intro' }, { name: '简介', value: 'intro' },
{ name: '粉丝数', value: 'fansNum' } { name: '粉丝数', value: 'fansNum' }
] ]
@ -623,7 +624,7 @@ export default {
this.setCurrentPageData() this.setCurrentPageData()
}, },
rowClick(row) { rowClick(row) {
// this.dialogTitle = row.label // this.dialogTitle = row.labe
this.href = row.url this.href = row.url
this.pageDetails = true this.pageDetails = true
// this.dialogTitle = row.label // this.dialogTitle = row.label

@ -285,6 +285,7 @@ import vueSeamlessScroll from 'vue-seamless-scroll'
import ModuleTitle from '../../common/ModuleTitle.vue' import ModuleTitle from '../../common/ModuleTitle.vue'
import attackSituation from './attackSituation.vue' import attackSituation from './attackSituation.vue'
import ExcelTable from '@/components/ExcelTable' import ExcelTable from '@/components/ExcelTable'
import { listSystem, listUnit, listWeb, listIDCunit } from '@/api/zongzhi/st.js'
import { import {
yingTanZhen, yingTanZhen,
yingTanZhenKeyValue, yingTanZhenKeyValue,
@ -553,7 +554,7 @@ export default {
showAttack(item = '安全监测', total) { showAttack(item = '安全监测', total) {
this.tableTotal = total // this.tableTotal = total //
this.dialogStatus = false this.dialogStatus = false
setTimeout(() => { // setTimeout(() => {
if (item === '硬探针') { if (item === '硬探针') {
this.dialogWidth = '1800px' this.dialogWidth = '1800px'
this.excelData = yingTanZhen this.excelData = yingTanZhen
@ -599,7 +600,7 @@ export default {
this.dialogType = item.target.dataset.obj this.dialogType = item.target.dataset.obj
} }
this.dialogStatus = true this.dialogStatus = true
}, 0) // }, 0)
}, },
// //
getDataSource() { getDataSource() {

Loading…
Cancel
Save