lijinlong
许宏杰 1 year ago
parent 657041332e
commit fe1bd1eb81

@ -730,7 +730,7 @@ export default {
this.tableData.push({ this.tableData.push({
网站名称: '百度', 网站名称: '百度',
真实IP: '220.181.111.188', 真实IP: '220.181.111.188',
网站域名: 'www.baidu.com', 网站域名: 'https://www.xiaohongshu.com/explore',
备案许可证号: '京ICP证030173号', 备案许可证号: '京ICP证030173号',
numOrder: 1 numOrder: 1
}) })
@ -885,33 +885,35 @@ export default {
}, },
rowClick(row) { rowClick(row) {
console.log(row) console.log(row)
this.fileExtension = row['材料路径'].substring(
row['材料路径'].lastIndexOf('.') + 1
)
console.log('fileExtension', this.fileExtension)
if (['png', 'jpg', 'jpeg'].includes(row.材料路径.substring(row.材料路径.lastIndexOf('.') + 1))) {
this.imgSrc = `${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['材料路径']}`
this.dialogImg = true
} else if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
axios({
method: 'get',
responseType: 'blob', //
url: `${
process.env.NODE_ENV === 'production'
? window._CONFIG['fileNginxUrl']
: '/fileApi'
}${row['材料路径']}`
}).then(({ data }) => {
if (data) {
this.dialogDetails = true this.dialogDetails = true
this.$nextTick(() => { // console.log(row)
docx.renderAsync(data, this.$refs.file) // // this.fileExtension = row[''].substring(
}) // row[''].lastIndexOf('.') + 1
} // )
}) // console.log('fileExtension', this.fileExtension)
} else if (this.fileExtension === 'pdf') { // if (['png', 'jpg', 'jpeg'].includes(row..substring(row..lastIndexOf('.') + 1))) {
this.getNumPages(`${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['材料路径']}`) // this.imgSrc = `${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['']}`
} // this.dialogImg = true
// } else if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
// axios({
// method: 'get',
// responseType: 'blob', //
// url: `${
// process.env.NODE_ENV === 'production'
// ? window._CONFIG['fileNginxUrl']
// : '/fileApi'
// }${row['']}`
// }).then(({ data }) => {
// if (data) {
// this.dialogDetails = true
// this.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file) //
// })
// }
// })
// } else if (this.fileExtension === 'pdf') {
// this.getNumPages(`${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['']}`)
// }
}, },
getNumPages(url) { getNumPages(url) {
axios({ axios({
@ -980,25 +982,27 @@ export default {
}, },
processDetails(val) { processDetails(val) {
this.fileExtension = 'docx' this.fileExtension = 'docx'
if ( if (
['生成整改通知书送达回执', '生成约谈通知书', '登记约谈'].includes(val) ['生成整改通知书送达回执', '生成约谈通知书', '登记约谈'].includes(val)
) { ) {
axios({
method: 'get',
responseType: 'blob', //
url: `${
process.env.NODE_ENV === 'production'
? window._CONFIG['fileNginxUrl']
: '/fileApi'
}/网信办大屏内容文档/网络管理/约谈流程/${val}.docx`
}).then(({ data }) => {
if (data) {
this.dialogDetails = true this.dialogDetails = true
this.$nextTick(() => { // axios({
docx.renderAsync(data, this.$refs.file) // // method: 'get',
}) // responseType: 'blob', //
} // url: `${
}) // process.env.NODE_ENV === 'production'
// ? window._CONFIG['fileNginxUrl']
// : '/fileApi'
// }////${val}.docx`
// }).then(({ data }) => {
// if (data) {
// this.dialogDetails = true
// this.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file) //
// })
// }
// })
this.dialogTitle = val this.dialogTitle = val
} }
} }

@ -365,6 +365,7 @@ export default {
openNewWindow(e) { openNewWindow(e) {
const index = e.target.dataset.curdata const index = e.target.dataset.curdata
this.href = this.dataList[index].url this.href = this.dataList[index].url
console.log(this.href)
this.dialogDetails = true this.dialogDetails = true
// const data = { // const data = {
// 'newsId': e.newsId, // 'newsId': e.newsId,

@ -1223,13 +1223,13 @@ export default {
let china = require("@/assets/Json/china.json"); let china = require("@/assets/Json/china.json");
let chinaOutLine = require("@/assets/Json/china-outline.json"); let chinaOutLine = require("@/assets/Json/china-outline.json");
const loader = new THREE.FileLoader(); // const loader = new THREE.FileLoader();
loader.load("@/assets/Json/china.json", () => { // loader.load("@/assets/Json/china.json", () => {
this.initMap(china); this.initMap(china);
}); // });
loader.load("@/assets/Json/china-outline.json", () => { // loader.load("@/assets/Json/china-outline.json", () => {
this.outLineMap(chinaOutLine); this.outLineMap(chinaOutLine);
}); // });
}, },
// //

@ -584,23 +584,24 @@ export default {
} else { } else {
attUrl = (process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi') + `${row}` attUrl = (process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi') + `${row}`
} }
if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
axios({
method: 'get',
responseType: 'blob', //
url: attUrl
}).then(({ data }) => {
if (data) {
this.dialogStatus2 = true this.dialogStatus2 = true
this.$nextTick(() => { // if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
docx.renderAsync(data, this.$refs.file) // // axios({
}) // method: 'get',
} // responseType: 'blob', //
}) // url: attUrl
} else if (this.fileExtension === 'pdf') { // }).then(({ data }) => {
const url = attUrl // if (data) {
this.getNumPages(url) // this.dialogStatus2 = true
} // this.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file) //
// })
// }
// })
// } else if (this.fileExtension === 'pdf') {
// const url = attUrl
// this.getNumPages(url)
// }
}, },
getNumPages(url) { getNumPages(url) {
axios({ axios({

@ -476,33 +476,36 @@ export default {
} else { } else {
row.url = `/网信办大屏内容文档/网络安全/通报处置/${row.url}` row.url = `/网信办大屏内容文档/网络安全/通报处置/${row.url}`
} }
this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1) console.log(row, 'aaa')
if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
axios({
method: 'get',
responseType: 'blob', //
url: `${
process.env.NODE_ENV === 'production'
? window._CONFIG['fileNginxUrl']
: '/fileApi'
}${row.url}`
}).then(({ data }) => {
if (data) {
this.dialogDetails = true this.dialogDetails = true
this.$nextTick(() => {
docx.renderAsync(data, this.$refs.file1) // // this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1)
}) // if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
} // axios({
}) // method: 'get',
} else if (this.fileExtension === 'pdf') { // responseType: 'blob', //
this.getNumPages( // url: `${
`${ // process.env.NODE_ENV === 'production'
process.env.NODE_ENV === 'production' // ? window._CONFIG['fileNginxUrl']
? window._CONFIG['fileNginxUrl'] // : '/fileApi'
: '/fileApi' // }${row.url}`
}${row.url}` // }).then(({ data }) => {
) // if (data) {
} // this.dialogDetails = true
// this.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file1) //
// })
// }
// })
// } else if (this.fileExtension === 'pdf') {
// this.getNumPages(
// `${
// process.env.NODE_ENV === 'production'
// ? window._CONFIG['fileNginxUrl']
// : '/fileApi'
// }${row.url}`
// )
// }
}, },
getNumPages(url) { getNumPages(url) {
axios({ axios({

@ -63,6 +63,7 @@ export default {
mixins: [MapCookieHandler], mixins: [MapCookieHandler],
data() { data() {
return { return {
// mapUrl: 'https://yqms.istarshine.com/v4/login',
mapUrl: mapUrl:
'http://2.35.253.24:10633/#/?codes=16C97BF3-63D0-41B8-8F96-1B300932EA3E', 'http://2.35.253.24:10633/#/?codes=16C97BF3-63D0-41B8-8F96-1B300932EA3E',
multiVideo: { multiVideo: {

@ -13,7 +13,7 @@
<div class="center"> <div class="center">
<iframe <iframe
class="iframe" class="iframe"
src="https://yqms.istarshine.com/v4/subject" src="https://yqms.istarshine.com/v4/login"
frameborder="0" frameborder="0"
></iframe> ></iframe>
</div> </div>
@ -21,7 +21,7 @@
</template> </template>
<script> <script>
// import md5 from 'js-md5' import md5 from 'js-md5'
export default { export default {
data() { data() {
return { return {

@ -710,13 +710,15 @@ export default {
}, },
rowClick(row) { rowClick(row) {
if (this.dialogTitle === '聚焦本地媒体量') return if (this.dialogTitle === '聚焦本地媒体量') return
row.publishTime = row.publishTime.substring(0, 10)
opinionWarningDetail(
row
).then((res) => {
Object.assign(this.rowDta, res.data)
this.dialogDetails = true this.dialogDetails = true
}) Object.assign(this.rowDta, { title: '标题', content: '这是内容', source: '这是来源', publishTime: '2023-08-04' })
// row.publishTime = row.publishTime.substring(0, 10)
// opinionWarningDetail(
// row
// ).then((res) => {
// Object.assign(this.rowDta, res.data)
// this.dialogDetails = true
// })
}, },
dialogClose() { dialogClose() {
this.dialogStatus = false this.dialogStatus = false

@ -115,8 +115,8 @@
v-for="(item, idx) in turnDetailsList" v-for="(item, idx) in turnDetailsList"
:key="idx" :key="idx"
class="monitor-list" class="monitor-list"
@click="rowClick(item.attUrl,'details')"
> >
<!-- @click="rowClick(item.attUrl,'details')" -->
<span :title="item.attName">{{ item.attName }}</span> <span :title="item.attName">{{ item.attName }}</span>
<span :title="item.deptName">{{ item.deptName }}</span> <span :title="item.deptName">{{ item.deptName }}</span>
<span :title="item.opinionStatusName" :style="activation(item.opinionStatusName)">{{ activationName(item.opinionStatusName) }}</span> <span :title="item.opinionStatusName" :style="activation(item.opinionStatusName)">{{ activationName(item.opinionStatusName) }}</span>
@ -458,25 +458,25 @@ export default {
}, },
// //
previousWarning() { previousWarning() {
if (this.currentWarningIndex > 0) { // if (this.currentWarningIndex > 0) {
this.currentWarningIndex-- // this.currentWarningIndex--
} // }
opinionWarningDetail( // opinionWarningDetail(
this.warningChangeList[this.currentWarningIndex] // this.warningChangeList[this.currentWarningIndex]
).then((res) => { // ).then((res) => {
Object.assign(this.currentWarningObj, res.data) // Object.assign(this.currentWarningObj, res.data)
}) // })
}, },
// //
async nextWarning() { async nextWarning() {
const length = this.warningChangeList.length // const length = this.warningChangeList.length
if (this.currentWarningIndex < length - 1) { // if (this.currentWarningIndex < length - 1) {
this.currentWarningIndex++ // this.currentWarningIndex++
} // }
const res = await opinionWarningDetail( // const res = await opinionWarningDetail(
this.warningChangeList[this.currentWarningIndex] // this.warningChangeList[this.currentWarningIndex]
) // )
this.currentWarningObj = res.data // this.currentWarningObj = res.data
}, },
// //
mouseOver() { mouseOver() {
@ -502,12 +502,18 @@ export default {
// const res = await getyqTsd() // const res = await getyqTsd()
this.tableHeader = [{ label: '标题名称', prop: 'attName' }] this.tableHeader = [{ label: '标题名称', prop: 'attName' }]
// this.tableData = res.data // this.tableData = res.data
this.tableData = [] this.tableData = [{
attName: '民情提示单202201',
'文件路径': '/网信办大屏内容文档/网络舆情/舆情报告/提示单/民情提示单202201.docx'
}]
} else if (val === '转办单') { } else if (val === '转办单') {
// const res = await getyqZbd() // const res = await getyqZbd()
this.tableHeader = [{ label: '标题名称', prop: 'attName' }] this.tableHeader = [{ label: '标题名称', prop: 'attName' }]
// this.tableData = res.data // this.tableData = res.data
this.tableData = [] this.tableData = [{
attName: '民情提示单202201',
'文件路径': '/网信办大屏内容文档/网络舆情/舆情报告/提示单/民情提示单202201.docx'
}]
} else { } else {
const tableObject = require('./data.json') const tableObject = require('./data.json')
this.tableData = tableObject[val] this.tableData = tableObject[val]
@ -537,41 +543,43 @@ export default {
this.setCurrentPageData() this.setCurrentPageData()
}, },
rowClick(row, type) { rowClick(row, type) {
let urlAddress
if (type === 'details') {
this.fileExtension = row.substring(row.lastIndexOf('.') + 1)
urlAddress = window._CONFIG['nginxUrl'] + `${row}`
} else {
if (this.dialogTitle === '提示单' || this.dialogTitle === '转办单') {
this.fileExtension = row.attUrl.substring(row.attUrl.lastIndexOf('.') + 1)
urlAddress = window._CONFIG['nginxUrl'] + `${row.attUrl}`
} else {
this.fileExtension = row['文件路径'].substring(
row['文件路径'].lastIndexOf('.') + 1
)
urlAddress = `${process.env.NODE_ENV === 'production'
? window._CONFIG['fileNginxUrl']
: '/fileApi'
}${row['文件路径']}`
}
}
console.log('this.fileExtension', this.fileExtension)
if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
axios({
method: 'get',
responseType: 'blob', //
url: urlAddress
}).then(({ data }) => {
if (data) {
this.dialogDetails = true this.dialogDetails = true
this.$nextTick(() => {
docx.renderAsync(data, this.$refs.file) // // let urlAddress
}) // if (type === 'details') {
} // this.fileExtension = row.substring(row.lastIndexOf('.') + 1)
}) // urlAddress = window._CONFIG['nginxUrl'] + `${row}`
} else if (this.fileExtension === 'pdf') { // } else {
this.getNumPages(urlAddress) // if (this.dialogTitle === '' || this.dialogTitle === '') {
} // this.fileExtension = row.attUrl.substring(row.attUrl.lastIndexOf('.') + 1)
// urlAddress = window._CONFIG['nginxUrl'] + `${row.attUrl}`
// } else {
// this.fileExtension = row[''].substring(
// row[''].lastIndexOf('.') + 1
// )
// urlAddress = `${process.env.NODE_ENV === 'production'
// ? window._CONFIG['fileNginxUrl']
// : '/fileApi'
// }${row['']}`
// }
// }
// console.log('this.fileExtension', this.fileExtension)
// if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
// axios({
// method: 'get',
// responseType: 'blob', //
// url: urlAddress
// }).then(({ data }) => {
// if (data) {
// this.dialogDetails = true
// this.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file) //
// })
// }
// })
// } else if (this.fileExtension === 'pdf') {
// this.getNumPages(urlAddress)
// }
}, },
getNumPages(url) { getNumPages(url) {
axios({ axios({

@ -25,7 +25,8 @@ module.exports = {
* In most cases please use '/' !!! * In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: './', // publicPath: './',
publicPath: '/demo/taicangzongzhi',
outputDir: 'dist', outputDir: 'dist',
assetsDir: 'static', assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development', lintOnSave: process.env.NODE_ENV === 'development',

Loading…
Cancel
Save