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

@ -730,7 +730,7 @@ export default {
this.tableData.push({
网站名称: '百度',
真实IP: '220.181.111.188',
网站域名: 'www.baidu.com',
网站域名: 'https://www.xiaohongshu.com/explore',
备案许可证号: '京ICP证030173号',
numOrder: 1
})
@ -885,33 +885,35 @@ export default {
},
rowClick(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.$nextTick(() => {
docx.renderAsync(data, this.$refs.file) //
})
}
})
} else if (this.fileExtension === 'pdf') {
this.getNumPages(`${process.env.NODE_ENV === 'production' ? window._CONFIG['fileNginxUrl'] : '/fileApi'}${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.$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) {
axios({
@ -980,25 +982,27 @@ export default {
},
processDetails(val) {
this.fileExtension = 'docx'
if (
['生成整改通知书送达回执', '生成约谈通知书', '登记约谈'].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.$nextTick(() => {
docx.renderAsync(data, this.$refs.file) //
})
}
})
// 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.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file) //
// })
// }
// })
this.dialogTitle = val
}
}

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

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

@ -584,23 +584,24 @@ export default {
} else {
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.$nextTick(() => {
docx.renderAsync(data, this.$refs.file) //
})
}
})
} else if (this.fileExtension === 'pdf') {
const url = attUrl
this.getNumPages(url)
}
// if (this.fileExtension === 'docx' || this.fileExtension === 'doc') {
// axios({
// method: 'get',
// responseType: 'blob', //
// url: attUrl
// }).then(({ data }) => {
// if (data) {
// this.dialogStatus2 = true
// this.$nextTick(() => {
// docx.renderAsync(data, this.$refs.file) //
// })
// }
// })
// } else if (this.fileExtension === 'pdf') {
// const url = attUrl
// this.getNumPages(url)
// }
},
getNumPages(url) {
axios({

@ -476,33 +476,36 @@ export default {
} else {
row.url = `/网信办大屏内容文档/网络安全/通报处置/${row.url}`
}
this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1)
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) {
console.log(row, 'aaa')
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}`
)
}
// this.fileExtension = row.url.substring(row.url.lastIndexOf('.') + 1)
// 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.$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) {
axios({

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

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

@ -710,13 +710,15 @@ export default {
},
rowClick(row) {
if (this.dialogTitle === '聚焦本地媒体量') return
row.publishTime = row.publishTime.substring(0, 10)
opinionWarningDetail(
row
).then((res) => {
Object.assign(this.rowDta, res.data)
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() {
this.dialogStatus = false

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

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

Loading…
Cancel
Save