修改禅道已知bug

This commit is contained in:
qq787203167
2022-03-09 17:44:28 +08:00
parent 41dc50d7fd
commit 13e8a09d15
12 changed files with 74 additions and 7 deletions
@@ -180,6 +180,7 @@
this.replacePage() this.replacePage()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.replacePage() this.replacePage()
} }
@@ -187,6 +187,7 @@
this.getTableList() this.getTableList()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.getTableList() this.getTableList()
}, },
@@ -155,6 +155,7 @@
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.getTableList() this.getTableList()
}, },
@@ -211,6 +211,7 @@
this.getTableList() this.getTableList()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.getTableList() this.getTableList()
}, },
@@ -207,6 +207,7 @@
this.getTableList() this.getTableList()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.getTableList() this.getTableList()
}, },
@@ -34,7 +34,7 @@
</div> </div>
</div> </div>
</div> </div>
<div style="overflow: auto;margin-top: 68px;background: #fff"> <div style="margin-top: 68px;background: #fff">
<div class="detail-content"> <div class="detail-content">
<div v-for="(item,index) in detailList" class="content-box"> <div v-for="(item,index) in detailList" class="content-box">
<div v-for="val in Object.keys(item)" class="content"> <div v-for="val in Object.keys(item)" class="content">
@@ -59,9 +59,11 @@
{{ol.value ? ol.value.fileName : '--'}} {{ol.value ? ol.value.fileName : '--'}}
</span> </span>
</span> </span>
<span class="TextInformationContentright" v-show="ol.value" @click="download(ol.value)"> <span class="TextInformationContentright">
<a-icon type="vertical-align-bottom"/> <span v-show="ol.value" @click="download(ol.value)">
<a-icon type="vertical-align-bottom"/>
{{$t('download')}} {{$t('download')}}
</span>
</span> </span>
</span> </span>
</div> </div>
@@ -69,11 +71,13 @@
<div class="TextInformation" v-else-if="val == $t('relatedInformation')"> <div class="TextInformation" v-else-if="val == $t('relatedInformation')">
<div class="TextInformationContent" v-for="(ol,index1) in item[val]" style="width: 100%"> <div class="TextInformationContent" v-for="(ol,index1) in item[val]" style="width: 100%">
<span class="TextInformationContentLeft"> <span class="TextInformationContentLeft">
<span :title="ol.db_field_txt" @click="relatedClick(ol)">{{ol.db_field_txt}}</span> <span :title="ol.db_field_txt"
>{{ol.db_field_txt}}</span>
</span> </span>
<span class="TextInformationContentcontentButton"> <span class="TextInformationContentcontentButton">
<span :title="ol.value">{{ol.value ? ol.value : '--'}}</span> <span style="cursor: pointer" @click="relatedClick(ol)"
</span> :title="ol.value">{{ol.value ? ol.value : '--'}}</span>
</span>
</div> </div>
</div> </div>
</div> </div>
@@ -112,6 +116,29 @@
/> />
</div> </div>
</a-modal> </a-modal>
<a-modal
:title="'标准'"
:width="600"
:visible="visibleRelated"
:maskClosable="false"
@ok="visibleRelated = false"
@cancel="visibleRelated = false"
>
<a-table
class="table"
:columns="columnsRelated"
:pagination="false"
:scroll="{y: 400}"
:data-source="dataSourceRelated"
:loading="loading"
>
<span slot="operation" slot-scope="text,record">
<a class="text" :title="text" @click="detailClick(record)">
{{text && text.length > 18?text.slice(0,17)+'...':text}}
</a>
</span>
</a-table>
</a-modal>
</div> </div>
</template> </template>
<script> <script>
@@ -125,6 +152,16 @@
getInfo: 'document/bussDocumentLibraryEO/getInfoById', getInfo: 'document/bussDocumentLibraryEO/getInfoById',
list: 'log/bussLogEO/page' list: 'log/bussLogEO/page'
}, },
columnsRelated: [
{
title: '标准名称',
dataIndex: 'title',
align: 'center',
ellipsis: true,
scopedSlots: { customRender: 'operation' }
}
],
dataSourceRelated: [],
detailList: [], detailList: [],
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
@@ -133,6 +170,7 @@
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
visibleRelated: false,
columns: [ columns: [
{ {
title: this.$t('ModificationContent'), title: this.$t('ModificationContent'),
@@ -171,6 +209,7 @@
}) })
}, },
pdfPreview(fileQuery) { pdfPreview(fileQuery) {
console.log(fileQuery)
let fileName = fileQuery.fileName let fileName = fileQuery.fileName
let index1 = fileName.lastIndexOf('.') let index1 = fileName.lastIndexOf('.')
let index2 = fileName.length let index2 = fileName.length
@@ -234,12 +273,25 @@
} }
}) })
}, },
relatedClick(val) { detailClick(val) {
let newUrl = this.$router.resolve({ let newUrl = this.$router.resolve({
path: '/docManage/library/detail', path: '/docManage/library/detail',
query: val query: val
}) })
this.visibleRelated = false
window.open(newUrl.href, '_blank') window.open(newUrl.href, '_blank')
},
relatedClick(val) {
if (val.list && val.list.length == 1) {
let newUrl = this.$router.resolve({
path: '/docManage/library/detail',
query: val.list[0]
})
window.open(newUrl.href, '_blank')
} else {
this.visibleRelated = true
this.dataSourceRelated = val.list
}
} }
} }
} }
@@ -432,4 +484,8 @@
overflow: hidden; overflow: hidden;
text-align: right; text-align: right;
} }
.content-box:last-child {
margin-bottom: 20px;
}
</style> </style>
@@ -328,6 +328,7 @@
this.pageNo = page this.pageNo = page
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
} }
} }
@@ -123,6 +123,7 @@
this.pageNo = page this.pageNo = page
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
} }
} }
@@ -114,6 +114,7 @@
this.queryProcess() this.queryProcess()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.queryProcess() this.queryProcess()
}, },
@@ -124,6 +124,7 @@
this.queryProcess() this.queryProcess()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.queryProcess() this.queryProcess()
}, },
@@ -123,6 +123,7 @@
this.queryProcess() this.queryProcess()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.queryProcess() this.queryProcess()
}, },
@@ -169,6 +169,7 @@
this.queryProcess() this.queryProcess()
}, },
SizeChange(page, pageSize) { SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize this.pageSize = pageSize
this.queryProcess() this.queryProcess()
}, },