对接法规技术评估
This commit is contained in:
+1
@@ -92,6 +92,7 @@
|
||||
title: this.$t('relevantSections'),
|
||||
align: 'center',
|
||||
dataIndex: 'relatedSection',
|
||||
ellipsis: true,
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
|
||||
+5
-1
@@ -220,7 +220,11 @@
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
this.$message.warning(this.$t('theDoesNotSupportPreview'))
|
||||
if (item.createBy == this.userInfo().username){
|
||||
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
||||
}else{
|
||||
this.$message.warning(this.$t('theDoesNotSupportPreview'))
|
||||
}
|
||||
}
|
||||
},
|
||||
download(item) {
|
||||
|
||||
@@ -2,60 +2,98 @@
|
||||
<div class="monthlyReportRegulations-box">
|
||||
<div class="header-text">
|
||||
<div class="header-text-left">{{this.$t('monthlyReportRegulations')}}</div>
|
||||
<div class="header-text-right">
|
||||
<div class="header-text-right" @click="moreClick">
|
||||
More
|
||||
<img src="../../../assets/gengduo.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="monthlyReportRegulations-box-content">
|
||||
<div class="monthlyReportRegulations-text" v-for="item in monthlyReportRegulationsList">
|
||||
<div class="monthlyReportRegulations-box-content" v-if="monthlyReportRegulationsList.length > 0">
|
||||
<div class="monthlyReportRegulations-text" v-for="item in monthlyReportRegulationsList" @click="preview(item)">
|
||||
<div class="yuan"></div>
|
||||
<div class="text" :title="item.name">{{item.name}}</div>
|
||||
<div class="time">{{item.time}}</div>
|
||||
<div class="time">{{item.createTime}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else style="height: 300px;position: relative">
|
||||
<JNoData/>
|
||||
</div>
|
||||
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'monthlyReportRegulations',
|
||||
data() {
|
||||
return {
|
||||
monthlyReportRegulationsList: [
|
||||
{
|
||||
name: '蔚来汽车法规月报_202201_主页面 CN.docx',
|
||||
time: '2022-01-01 13:24:36'
|
||||
},
|
||||
{
|
||||
name: '蔚来汽车法规月报_202202_主页面 CN.docx',
|
||||
time: '2022-02-01 15:50:06'
|
||||
},
|
||||
{
|
||||
name: '蔚来汽车法规月报_202203_主页面 CN.docx',
|
||||
time: '2022-03-01 13:56:20'
|
||||
},
|
||||
{
|
||||
name: '蔚来汽车法规月报_202204_主页面 CN.docx',
|
||||
time: '2022-04-01 16:24:45'
|
||||
},
|
||||
{
|
||||
name: '蔚来汽车法规月报_202205_主页面 CN.docx',
|
||||
time: '2022-06-01 17:24:06'
|
||||
},
|
||||
{
|
||||
name: '蔚来汽车法规月报_202206_主页面 CN.docx',
|
||||
time: '2022-06-01 17:24:06'
|
||||
monthlyReportRegulationsList: [],
|
||||
loading: false,
|
||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||
url: {
|
||||
list: '/report/lawsMonthlyReportManageEO/page'
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
...mapGetters(['userInfo']),
|
||||
getList() {
|
||||
let query = {
|
||||
pageNo: 1,
|
||||
pageSize: 6,
|
||||
issueStatus: '1'
|
||||
}
|
||||
this.loading = true
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
if (res.success) {
|
||||
this.monthlyReportRegulationsList = res.result.records || []
|
||||
this.loading = false
|
||||
} else {
|
||||
this.loading = false
|
||||
}
|
||||
]
|
||||
})
|
||||
},
|
||||
moreClick() {
|
||||
this.$router.push({
|
||||
path: '/monthlyRegulationReport'
|
||||
})
|
||||
},
|
||||
preview(item) {
|
||||
let fileName = item.name
|
||||
let index1 = fileName.lastIndexOf('.')
|
||||
let index2 = fileName.length
|
||||
let fileSuffix = fileName.substring(index1, index2)
|
||||
if (fileSuffix === '.pdf') {
|
||||
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/jero-boot/sys/common/pdf/viewFile?id=' + item.fileId + '&userName=' + this.userInfo().username))
|
||||
} else if (fileSuffix === '.docx') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else if (fileSuffix === '.xlsx' || fileSuffix === '.xls') {
|
||||
let url = window._CONFIG['onlinePreviewDomainURL'] + '?url=' + Base64.encode(this.downLoadFileUrl + '/' + item.fileId + fileSuffix)
|
||||
window.open(url, '_blank')
|
||||
} else {
|
||||
if (item.createBy == this.userInfo().username){
|
||||
downloadFile('/sys/common/downLoadFile', item.name, { id: item.fileId, userName: this.userInfo().username })
|
||||
}else{
|
||||
this.$message.warning(this.$t('theDoesNotSupportPreview'))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
.monthlyReportRegulations-box {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
.header-text {
|
||||
width: 100%;
|
||||
@@ -73,6 +111,7 @@
|
||||
font-weight: 400;
|
||||
color: #9B9DA9;
|
||||
margin-top: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -181,6 +181,13 @@
|
||||
deleteData() {
|
||||
this.formInline.dataList.pop()
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
submitData(callBack) {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
callBack && callBack(this.formInline.dataList)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,13 +142,13 @@
|
||||
res.lawsOpinionGatherId = this.queryProject.id
|
||||
res.actiProcInstId = this.$route.query.prcId
|
||||
})
|
||||
postAction('/lawsOpinionGather/lawsOpinionAssessmentResultEO/insertBatch', { dataList:list }).then((res) => {
|
||||
postAction('/lawsOpinionGather/lawsOpinionAssessmentResultEO/insertBatch', { dataList: list }).then((res) => {
|
||||
if (res.success) {
|
||||
if (num == 1) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$router.push({
|
||||
path: '/collectionOfRegulatoryOpinions'
|
||||
})
|
||||
// this.$router.push({
|
||||
// path: '/collectionOfRegulatoryOpinions'
|
||||
// })
|
||||
this.loading = false
|
||||
} else {
|
||||
this.completeTask()
|
||||
@@ -162,8 +162,12 @@
|
||||
})
|
||||
},
|
||||
submit() {
|
||||
let dataList = this.$refs.feedbackInformationRef.formInline.dataList
|
||||
this.insertBatch(dataList, 2)
|
||||
this.$refs.feedbackInformationRef.submitData((res) => {
|
||||
this.loading = true
|
||||
this.insertBatch(res, 2)
|
||||
})
|
||||
// let dataList = this.$refs.feedbackInformationRef.formInline.dataList
|
||||
// this.insertBatch(dataList, 2)
|
||||
},
|
||||
completeTask() {
|
||||
let query = {
|
||||
|
||||
Reference in New Issue
Block a user