Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
396572590@qq.com
2022-07-13 11:04:43 +08:00
3 changed files with 56 additions and 21 deletions
@@ -4,17 +4,18 @@
<div class="back" title="返回" @click="back"> <div class="back" title="返回" @click="back">
<i class="el-icon-back"></i> <i class="el-icon-back"></i>
</div> </div>
<div class="title"> </div>
{{ detailInfoForm.dataTitle + '-详情' }} <!--title 标题-->
</div> <div class="details-header">
<span>
{{detailInfoForm.dataTitle}}
</span>
</div> </div>
<transition name="el-zoom-in-top"> <transition name="el-zoom-in-top">
<div class="transition-box"> <div class="transition-box">
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">类型</label> <label class="transition-box-label">类型</label>
<span class="transition-box-span"> <span class="transition-box-span">{{ detailInfoForm.dataType }}</span>
{{ detailInfoForm.dataType }}
</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">资料标题</label> <label class="transition-box-label">资料标题</label>
@@ -204,8 +205,8 @@ export default {
}, },
created() { created() {
this.detailInfoId = this.$route.params.id this.detailInfoId = this.$route.query.id
console.log('13', this.$route.params.id) console.log('13', this.$route.query.id)
}, },
mounted() { mounted() {
let fileId let fileId
@@ -250,15 +251,14 @@ export default {
.transition-box { .transition-box {
padding: 0 10% 0 10%; padding: 0 10% 0 10%;
background: #ffffff; background: #ffffff;
font-size: 28px; font-size: 16px;
.transition-box-p { .transition-box-p {
line-height: 50px; line-height: 50px;
border-bottom: 1px solid #E5E5E5;
.transition-box-label { .transition-box-label {
display: inline-block; display: inline-block;
font-weight: bolder; width: 100px;
width: 200px;
vertical-align: top; vertical-align: top;
} }
@@ -266,6 +266,8 @@ export default {
display: inline-block; display: inline-block;
color: #7e8083; color: #7e8083;
width: calc(~'100% - 100px'); width: calc(~'100% - 100px');
word-break: break-all;
white-space: pre-wrap;
} }
.file-box { .file-box {
@@ -277,6 +279,7 @@ export default {
width: 100%; width: 100%;
cursor: pointer; cursor: pointer;
color: #4498f0; color: #4498f0;
word-break: break-all;
} }
p { p {
@@ -309,4 +312,18 @@ export default {
} }
} }
} }
.details-header {
padding: 34px 20%;
font-size: 20px;
font-weight: bold;
color: #555555;
text-align: center;
word-break: break-all;
white-space: pre-wrap;
& > span {
width: 100%;
}
}
</style> </style>
@@ -81,9 +81,9 @@
<el-date-picker <el-date-picker
v-model="dataCenterSearch.dataUploadTime" v-model="dataCenterSearch.dataUploadTime"
clearable clearable
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd"
size="small" size="small"
type="datetimerange" type="daterange"
range-separator="" range-separator=""
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期">
@@ -134,12 +134,14 @@
prop="dataType" prop="dataType"
width="250" width="250"
label="类型" label="类型"
:show-overflow-tooltip="true"
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="dataTitle" prop="dataTitle"
min-width="250" min-width="250"
label="资料标题" label="资料标题"
:show-overflow-tooltip="true"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span> <span @click.stop="toDetail(scope.row)" style="cursor:pointer;color: #409eff">{{ scope.row.dataTitle }}</span>
@@ -296,7 +298,7 @@
:on-remove="handleRemove" :on-remove="handleRemove"
:before-remove="beforeRemove" :before-remove="beforeRemove"
multiple multiple
:limit="3" :limit="50"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:on-success="uploadSuccess" :on-success="uploadSuccess"
:file-list="fileList"> :file-list="fileList">
@@ -602,7 +604,7 @@ export default {
toDetail(row){ toDetail(row){
this.$router.push({ this.$router.push({
name: "dataCenterDetail", name: "dataCenterDetail",
params: { query: {
id: row.id id: row.id
} }
}); });
@@ -630,7 +632,7 @@ export default {
handlePreview(file) { handlePreview(file) {
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); this.$message.warning(`当前限制选择 50 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
}, },
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name}`); return this.$confirm(`确定移除 ${file.name}`);
@@ -666,8 +668,13 @@ export default {
}, },
searchInfo() { searchInfo() {
this.loading = true this.loading = true
this.dataCenterSearch.startDataUploadTime = this.dataCenterSearch.dataUploadTime[0] if(this.dataCenterSearch.dataUploadTime && this.dataCenterSearch.dataUploadTime.length !== 0){
this.dataCenterSearch.endDataUploadTime = this.dataCenterSearch.dataUploadTime[1] this.dataCenterSearch.startDataUploadTime = this.dataCenterSearch.dataUploadTime[0]
this.dataCenterSearch.endDataUploadTime = this.dataCenterSearch.dataUploadTime[1]
}else{
this.dataCenterSearch.startDataUploadTime =''
this.dataCenterSearch.endDataUploadTime = ''
}
this.$http.get('fileMaterialCenter/file-material', this.dataCenterSearch, { this.$http.get('fileMaterialCenter/file-material', this.dataCenterSearch, {
_this: this _this: this
}, res => { }, res => {
@@ -805,7 +812,6 @@ export default {
display: flex; display: flex;
} }
#left { #left {
width: calc(30% - 5px);
height: 100%; height: 100%;
float: left; float: left;
} }
@@ -671,6 +671,9 @@ export default {
case '查看': case '查看':
this.handleDetail(command[0]) this.handleDetail(command[0])
break break
case '订阅':
this.subscribe(command[0])
break
} }
}, },
handleDetail(row){ handleDetail(row){
@@ -686,6 +689,16 @@ export default {
}, e => { }, e => {
}) })
}, },
subscribe(row){
this.$http.postData('lawss/Subscription/insertSubscription',{
askId: row.id,
usId: this.$store.getters.userInfo.userId,
},{
_this: this
}, res => {
console.log(res);
})
},
refreshStandMap(){ refreshStandMap(){
this.standMap = new Map() this.standMap = new Map()
this.standList.forEach(item=>{ this.standList.forEach(item=>{
@@ -944,7 +957,6 @@ export default {
//清空 //清空
delSearch(){ delSearch(){
this.questionSerach = { this.questionSerach = {
classification: 'INLAND',
standardName: '', //标准名称 standardName: '', //标准名称
standardEncdoing: '', //标准编号 standardEncdoing: '', //标准编号
questioner: this.$store.getters.userInfo.userId, //提问人 questioner: this.$store.getters.userInfo.userId, //提问人