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( this.dialogDetails = true
row['材料路径'].lastIndexOf('.') + 1 // console.log(row)
) // this.fileExtension = row[''].substring(
console.log('fileExtension', this.fileExtension) // row[''].lastIndexOf('.') + 1
if (['png', 'jpg', 'jpeg'].includes(row.材料路径.substring(row.材料路径.lastIndexOf('.') + 1))) { // )
this.imgSrc = `${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['材料路径']}` // console.log('fileExtension', this.fileExtension)
this.dialogImg = true // if (['png', 'jpg', 'jpeg'].includes(row..substring(row..lastIndexOf('.') + 1))) {
} else if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { // this.imgSrc = `${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${row['']}`
axios({ // this.dialogImg = true
method: 'get', // } else if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
responseType: 'blob', // // axios({
url: `${ // method: 'get',
process.env.NODE_ENV === 'production' // responseType: 'blob', //
? window._CONFIG['fileNginxUrl'] // url: `${
: '/fileApi' // process.env.NODE_ENV === 'production'
}${row['材料路径']}` // ? window._CONFIG['fileNginxUrl']
}).then(({ data }) => { // : '/fileApi'
if (data) { // }${row['']}`
this.dialogDetails = true // }).then(({ data }) => {
this.$nextTick(() => { // if (data) {
docx.renderAsync(data, this.$refs.file) // // 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['材料路径']}`) // })
} // } 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({ this.dialogDetails = true
method: 'get', // axios({
responseType: 'blob', // // method: 'get',
url: `${ // responseType: 'blob', //
process.env.NODE_ENV === 'production' // url: `${
? window._CONFIG['fileNginxUrl'] // process.env.NODE_ENV === 'production'
: '/fileApi' // ? window._CONFIG['fileNginxUrl']
}/网信办大屏内容文档/网络管理/约谈流程/${val}.docx` // : '/fileApi'
}).then(({ data }) => { // }////${val}.docx`
if (data) { // }).then(({ data }) => {
this.dialogDetails = true // if (data) {
this.$nextTick(() => { // this.dialogDetails = true
docx.renderAsync(data, this.$refs.file) // // 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') { this.dialogStatus2 = true
axios({ // if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
method: 'get', // axios({
responseType: 'blob', // // method: 'get',
url: attUrl // responseType: 'blob', //
}).then(({ data }) => { // url: attUrl
if (data) { // }).then(({ data }) => {
this.dialogStatus2 = true // if (data) {
this.$nextTick(() => { // this.dialogStatus2 = true
docx.renderAsync(data, this.$refs.file) // // this.$nextTick(() => {
}) // docx.renderAsync(data, this.$refs.file) //
} // })
}) // }
} else if (this.fileExtension === 'pdf') { // })
const url = attUrl // } else if (this.fileExtension === 'pdf') {
this.getNumPages(url) // 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') { this.dialogDetails = true
axios({
method: 'get', // this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1)
responseType: 'blob', // // if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
url: `${ // axios({
process.env.NODE_ENV === 'production' // method: 'get',
? window._CONFIG['fileNginxUrl'] // responseType: 'blob', //
: '/fileApi' // url: `${
}${row.url}` // process.env.NODE_ENV === 'production'
}).then(({ data }) => { // ? window._CONFIG['fileNginxUrl']
if (data) { // : '/fileApi'
this.dialogDetails = true // }${row.url}`
this.$nextTick(() => { // }).then(({ data }) => {
docx.renderAsync(data, this.$refs.file1) // // 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' // } else if (this.fileExtension === 'pdf') {
? window._CONFIG['fileNginxUrl'] // this.getNumPages(
: '/fileApi' // `${
}${row.url}` // 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) this.dialogDetails = true
opinionWarningDetail( Object.assign(this.rowDta, { title: '标题', content: '这是内容', source: '这是来源', publishTime: '2023-08-04' })
row // row.publishTime = row.publishTime.substring(0, 10)
).then((res) => { // opinionWarningDetail(
Object.assign(this.rowDta, res.data) // row
this.dialogDetails = true // ).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 this.dialogDetails = true
if (type === 'details') {
this.fileExtension = row.substring(row.lastIndexOf('.') + 1) // let urlAddress
urlAddress = window._CONFIG['nginxUrl'] + `${row}` // if (type === 'details') {
} else { // this.fileExtension = row.substring(row.lastIndexOf('.') + 1)
if (this.dialogTitle === '提示单' || this.dialogTitle === '转办单') { // urlAddress = window._CONFIG['nginxUrl'] + `${row}`
this.fileExtension = row.attUrl.substring(row.attUrl.lastIndexOf('.') + 1) // } else {
urlAddress = window._CONFIG['nginxUrl'] + `${row.attUrl}` // if (this.dialogTitle === '' || this.dialogTitle === '') {
} else { // this.fileExtension = row.attUrl.substring(row.attUrl.lastIndexOf('.') + 1)
this.fileExtension = row['文件路径'].substring( // urlAddress = window._CONFIG['nginxUrl'] + `${row.attUrl}`
row['文件路径'].lastIndexOf('.') + 1 // } else {
) // this.fileExtension = row[''].substring(
urlAddress = `${process.env.NODE_ENV === 'production' // row[''].lastIndexOf('.') + 1
? window._CONFIG['fileNginxUrl'] // )
: '/fileApi' // urlAddress = `${process.env.NODE_ENV === 'production'
}${row['文件路径']}` // ? window._CONFIG['fileNginxUrl']
} // : '/fileApi'
} // }${row['']}`
console.log('this.fileExtension', this.fileExtension) // }
if (this.fileExtension === 'docx' || this.fileExtension === 'doc') { // }
axios({ // console.log('this.fileExtension', this.fileExtension)
method: 'get', // if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
responseType: 'blob', // // axios({
url: urlAddress // method: 'get',
}).then(({ data }) => { // responseType: 'blob', //
if (data) { // url: urlAddress
this.dialogDetails = true // }).then(({ data }) => {
this.$nextTick(() => { // if (data) {
docx.renderAsync(data, this.$refs.file) // // this.dialogDetails = true
}) // this.$nextTick(() => {
} // docx.renderAsync(data, this.$refs.file) //
}) // })
} else if (this.fileExtension === 'pdf') { // }
this.getNumPages(urlAddress) // })
} // } 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