修改禅道已知bug
This commit is contained in:
@@ -52,67 +52,109 @@
|
||||
<span class="text-field-left" :title="ol.db_field_txt">{{ol.db_field_txt}}</span>
|
||||
<span class="text-field-right text-field-right-color" v-if="ol.urlClick" @click="urlClick(ol)"
|
||||
:title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
<span class="text-field-right" v-else-if="ol.field_show_type == 7">
|
||||
<a-button type="primary" class="button-text"
|
||||
v-if="ol.value"
|
||||
@click="clickButtonToUpload(ol.value)">
|
||||
{{ (ol.value === 'null' || ol.value === '' ||
|
||||
ol.value == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
<span v-else>--</span>
|
||||
</span>
|
||||
<span @click="relatedClick(ol)" class="text-field-right text-field-right-color"
|
||||
v-else-if="ol.field_show_type == 10" :title="ol.value">
|
||||
{{ol.value ? ol.value : '--'}}
|
||||
</span>
|
||||
<span class="text-field-right" v-else :title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="TextInformation" v-if="val == $t('textInformation')">
|
||||
<!-- <div class="TextInformationContent" v-for="(ol,index1) in item[val]" style="width: 100%">-->
|
||||
<!-- <span class="TextInformationContentLeft"-->
|
||||
<!-- :class="{'TextInformationContentLeft-left':-->
|
||||
<!-- ol.db_field_txt == (item[val][index1-1] && item[val][index1-1].db_field_txt?item[val][index1-1].db_field_txt:'')}">-->
|
||||
<!-- <span :title="ol.db_field_txt"-->
|
||||
<!-- v-if=" ol.db_field_txt != (item[val][index1-1] &&-->
|
||||
<!-- item[val][index1-1].db_field_txt?item[val][index1-1].db_field_txt:'')">-->
|
||||
<!-- {{ol.db_field_txt}}-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span style="margin-top: 2px">-->
|
||||
<!-- <span class="TextInformationContentcontent">-->
|
||||
<!-- <span style="cursor: pointer" :title="ol.value ? ol.value.fileName:''"-->
|
||||
<!-- @click="pdfPreview(ol.value)">-->
|
||||
<!-- {{ol.value ? ol.value.fileName : '--'}}-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- <span class="TextInformationContentright">-->
|
||||
<!-- <span v-show="ol.value" @click="download(ol.value)">-->
|
||||
<!-- <a-icon type="vertical-align-bottom"/>-->
|
||||
<!-- {{$t('download')}}-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </span>-->
|
||||
<!-- </div>-->
|
||||
<div class="TextInformation" v-else-if="val == $t('textInformation')">
|
||||
<table class="tableInformation">
|
||||
<tr v-for="(ol,index1) in item[val]" class="trInformation">
|
||||
<td class="tdInformation LeftTdInformation" :rowspan="ol.count"
|
||||
v-if=" index1 == 0 || (index1 > 0 && ol.db_field_txt != item[val][index1 - 1].db_field_txt) ">
|
||||
v-if=" index1 == 0 || (index1 > 0 && ol.db_field_txt != item[val][index1 - 1].db_field_txt)">
|
||||
{{ol.db_field_txt}}
|
||||
</td>
|
||||
<td class="tdInformation conteTdInformation">
|
||||
<span style="cursor: pointer" :title="ol.value ? ol.value.fileName:''"
|
||||
<td class="tdInformation conteTdInformation" v-if="ol.field_show_type==='7'">
|
||||
<span class="leftconteTdInformation" style="cursor: pointer"
|
||||
:title="ol.value ? ol.value.fileName:''"
|
||||
@click="pdfPreview(ol.value)">
|
||||
{{ol.value ? ol.value.fileName : '--'}}
|
||||
</span>
|
||||
<span class="Standard-breakdown" v-if="ol.splitFlag == 1" @click="breakdown(ol)">{{$t('StandardBreakdown')}}</span>
|
||||
</td>
|
||||
<td class="tdInformation rightTdInformation">
|
||||
<span v-if="ol.field_show_type==='7'" v-show="ol.value" @click="download(ol.value)">
|
||||
<span class="rightTdInformation" v-if="ol.field_show_type==='7'" v-show="ol.value"
|
||||
@click="download(ol.value)">
|
||||
<a-icon type="vertical-align-bottom"/>
|
||||
{{$t('download')}}
|
||||
</span>
|
||||
</td>
|
||||
<td class="tdInformation TextInformationContentcontentButton" v-else-if="ol.field_show_type==='10'">
|
||||
<span style="cursor: pointer" @click="relatedClick(ol)" v-if="ol.value"
|
||||
:title="ol.value">{{ol.value}}</span>
|
||||
<span style="cursor: pointer" v-else>--</span>
|
||||
</td>
|
||||
<td class="tdInformation TextInformationContentcontent" v-else>
|
||||
<span v-if="ol.urlClick" @click="urlClick(ol)"
|
||||
:title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
<span :title="ol.value" v-else>{{ol.value ? ol.value:'--'}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="TextInformation" v-else-if="val == $t('relatedInformation')">
|
||||
<div class="TextInformationContent" v-for="(ol,index1) in item[val]" style="width: 100%">
|
||||
<span class="TextInformationContentLeft">
|
||||
<span :title="ol.db_field_txt"
|
||||
>{{ol.db_field_txt}}</span>
|
||||
</span>
|
||||
<span class="TextInformationContentcontentButton">
|
||||
<span style="cursor: pointer" @click="relatedClick(ol)"
|
||||
:title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
<table class="tableInformation">
|
||||
<tr v-for="(ol,index1) in item[val]" class="trInformation">
|
||||
<td class="tdInformation LeftTdInformation" :rowspan="ol.count"
|
||||
v-if=" index1 == 0 || (index1 > 0 && ol.db_field_txt != item[val][index1 - 1].db_field_txt)">
|
||||
{{ol.db_field_txt}}
|
||||
</td>
|
||||
<td class="tdInformation conteTdInformation" v-if="ol.field_show_type==='7'">
|
||||
<span class="leftconteTdInformation" style="cursor: pointer"
|
||||
:title="ol.value ? ol.value.fileName:''"
|
||||
@click="pdfPreview(ol.value)">
|
||||
{{ol.value ? ol.value.fileName : '--'}}
|
||||
</span>
|
||||
<span class="Standard-breakdown" v-if="ol.splitFlag == 1" @click="breakdown(ol)">{{$t('StandardBreakdown')}}</span>
|
||||
<span class="rightTdInformation" v-if="ol.field_show_type==='7'" v-show="ol.value"
|
||||
@click="download(ol.value)">
|
||||
<a-icon type="vertical-align-bottom"/>
|
||||
{{$t('download')}}
|
||||
</span>
|
||||
</td>
|
||||
<td class="tdInformation TextInformationContentcontentButton" v-else-if="ol.field_show_type==='10'">
|
||||
<span style="cursor: pointer" @click="relatedClick(ol)" v-if="ol.value"
|
||||
:title="ol.value">{{ol.value}}</span>
|
||||
<span style="cursor: pointer" v-else>--</span>
|
||||
</td>
|
||||
<td class="tdInformation TextInformationContentcontent" v-else>
|
||||
<span v-if="ol.urlClick" @click="urlClick(ol)"
|
||||
:title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
<span :title="ol.value" v-else>{{ol.value ? ol.value:'--'}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="content-text" v-else>
|
||||
<div class="text-field" v-for="(ol,index1) in item[val]">
|
||||
<span class="text-field-left" :title="ol.db_field_txt">{{ol.db_field_txt}}</span>
|
||||
<span class="text-field-right text-field-right-color" v-if="ol.urlClick" @click="urlClick(ol)"
|
||||
:title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
<span class="text-field-right" v-else-if="ol.field_show_type == 7">
|
||||
<a-button type="primary" class="button-text"
|
||||
v-if="ol.value"
|
||||
@click="clickButtonToUpload(ol.value)">
|
||||
{{ (ol.value === 'null' || ol.value === '' ||
|
||||
ol.value == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
<span v-else>--</span>
|
||||
</span>
|
||||
<span @click="relatedClick(ol)" class="text-field-right text-field-right-color"
|
||||
v-else-if="ol.field_show_type == 10" :title="ol.value">
|
||||
{{ol.value ? ol.value : '--'}}
|
||||
</span>
|
||||
<span class="text-field-right" v-else :title="ol.value">{{ol.value ? ol.value : '--'}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -182,14 +224,19 @@
|
||||
</span>
|
||||
</a-table>
|
||||
</a-modal>
|
||||
<uploadFile ref="uploadFile" :isUploadFile="true" :disabled="true"></uploadFile>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getAction, postAction, downFile, downloadFile } from '@/api/manage'
|
||||
import { Base64 } from 'js-base64'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
|
||||
export default {
|
||||
name: 'docIndex',
|
||||
components: {
|
||||
uploadFile
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
url: {
|
||||
@@ -254,6 +301,17 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
clickButtonToUpload(item) {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
this.$refs.uploadFile.visible = true
|
||||
getAction('sys/common/getFileInfos', { id: item.id }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||
} else {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
}
|
||||
})
|
||||
},
|
||||
pdfPreview(fileQuery) {
|
||||
let fileName = fileQuery.fileName
|
||||
let index1 = fileName.lastIndexOf('.')
|
||||
@@ -357,6 +415,10 @@
|
||||
.highlight-class {
|
||||
color: #00B3BE;
|
||||
}
|
||||
|
||||
.uploadFile .ant-upload {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped>
|
||||
@import '~@assets/less/common.less';
|
||||
@@ -450,90 +512,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.TextInformation {
|
||||
height: auto;
|
||||
|
||||
.TextInformationContent {
|
||||
height: 56px;
|
||||
|
||||
.TextInformationContentLeft {
|
||||
width: 268px;
|
||||
height: 56px;
|
||||
float: left;
|
||||
border-top: 1px #eff1f3 solid;
|
||||
border-left: 1px #eff1f3 solid;
|
||||
display: inline-block;
|
||||
background: #f7f7f8;
|
||||
text-align: center;
|
||||
color: #040B29;
|
||||
line-height: 56px;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.TextInformationContentLeft-left {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.TextInformationContentcontent {
|
||||
width: calc(100% - 388px);
|
||||
float: left;
|
||||
height: 56px;
|
||||
border-top: 1px #eff1f3 solid;
|
||||
border-left: 1px #eff1f3 solid;
|
||||
line-height: 56px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #01A0AC;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.TextInformationContentright {
|
||||
width: 120px;
|
||||
height: 56px;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
display: inline-block;
|
||||
border-right: 1px #eff1f3 solid;
|
||||
border-top: 1px #eff1f3 solid;
|
||||
line-height: 56px;
|
||||
color: #00B3BE;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-align: right;
|
||||
padding: 0 20px 0 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.TextInformationContentcontentButton {
|
||||
width: calc(100% - 268px);
|
||||
border-top: 1px #eff1f3 solid;
|
||||
border-left: 1px #eff1f3 solid;
|
||||
border-right: 1px #eff1f3 solid;
|
||||
line-height: 56px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #00B3BE;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.TextInformationContent:last-child {
|
||||
border-bottom: 1px #eff1f3 solid;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -588,14 +566,17 @@
|
||||
}
|
||||
|
||||
.conteTdInformation {
|
||||
width: calc(100% - 388px);
|
||||
color: #01A0AC;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.leftconteTdInformation {
|
||||
width: calc(100% - 388px);
|
||||
display: inline-block;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.rightTdInformation {
|
||||
@@ -607,7 +588,9 @@
|
||||
text-align: right;
|
||||
padding: 0 20px 0 0;
|
||||
box-sizing: border-box;
|
||||
border-left: none;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
}
|
||||
|
||||
.Standard-breakdown {
|
||||
@@ -617,4 +600,26 @@
|
||||
margin-top: 1px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.TextInformationContentcontentButton {
|
||||
width: calc(100% - 268px);
|
||||
text-align: center;
|
||||
color: #01A0AC;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.TextInformationContentcontent {
|
||||
width: calc(100% - 268px);
|
||||
text-align: center;
|
||||
color: #040B29;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user