退回提示

历史记录对接接口
This commit is contained in:
zyx.net
2023-08-20 15:15:31 +08:00
parent f7e32ea89c
commit d8d40b2acd
2 changed files with 22 additions and 12 deletions
@@ -249,7 +249,7 @@
</div> </div>
<batSetting :url="url" @getList="getList" ref="batSettingRef"/> <batSetting :url="url" @getList="getList" ref="batSettingRef"/>
<applyforrematch :url="url" @getList="getList" ref="applyforrematchRef"/> <applyforrematch :url="url" @getList="getList" ref="applyforrematchRef"/>
<rejectReason :url="url" @getList="getList" ref="rejectReasonRef"/> <rejectReason :url="url" @getList="getList" @msgForm='msgForm' ref="rejectReasonRef"/>
<remark @remarkForm='remarkForm' ref="remarkRef"/> <remark @remarkForm='remarkForm' ref="remarkRef"/>
<vdrDetial @vdrDetial='vdrDetial' ref="vdrDetialRef"/> <vdrDetial @vdrDetial='vdrDetial' ref="vdrDetialRef"/>
<!-- 历史记录--> <!-- 历史记录-->
@@ -291,7 +291,7 @@
show-quick-jumper show-quick-jumper
show-size-changer show-size-changer
:page-size.sync="pageSizehistory" :page-size.sync="pageSizehistory"
:total="total" :total="historytotal"
:current="pageNohistory" :current="pageNohistory"
@change="onChangehistory" @change="onChangehistory"
@showSizeChange="SizeChangehistory" @showSizeChange="SizeChangehistory"
@@ -378,6 +378,7 @@ export default {
checkedList: [], checkedList: [],
serialNumber: '', serialNumber: '',
total: 0, total: 0,
historytotal: 0,
pageSize: 10, pageSize: 10,
pageNo: 1, pageNo: 1,
pageNohistory: 1, pageNohistory: 1,
@@ -397,7 +398,7 @@ export default {
columnshistory: [ columnshistory: [
{ {
title: this.$t('OperationDetails'), title: this.$t('OperationDetails'),
dataIndex: 'logContent', dataIndex: 'content',
align: 'left', align: 'left',
width: 320, width: 320,
ellipsis: true, ellipsis: true,
@@ -1098,22 +1099,21 @@ export default {
let query = { let query = {
pageNo: this.pageNohistory, pageNo: this.pageNohistory,
pageSize: this.pageSizehistory, pageSize: this.pageSizehistory,
paramsManifestId: this.$route.query.id, applyId: this.paramsReportDetailId
paramsCollectManifestId: this.paramsReportDetailId
} }
this.loading = true // this.loading = true
getAction('paramsCollectManifestLog/paramsCollectManifestLogEO/page', query).then((res) => { getAction('/ota/otaManageHistory/page', query).then((res) => {
if (res.success) { if (res.success) {
this.dataSourcehistory = res.result.records this.dataSourcehistory = res.result.records
if (this.dataSourcehistory && this.dataSourcehistory.length > 0) { if (this.dataSourcehistory && this.dataSourcehistory.length > 0) {
this.dataSourcehistory.forEach(val => { this.dataSourcehistory.forEach(val => {
val.logContent = val.logContent.replace(/\"/g, '<span class=\'textData\'>"</span>') val.content = val.content.replace(/\"/g, '<span class=\'textData\'>"</span>')
}) })
} }
this.total = res.result.total this.historytotal = res.result.total
this.loading = false // this.loading = false
} else { } else {
this.loading = false // this.loading = false
} }
}) })
}, },
@@ -1200,6 +1200,15 @@ export default {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
} }
}, },
msgForm(data){
if(data && data.length !== 0){
this.NotSelectedRowKeysValue = data
this.visibleoperationFailed = true
}else{
this.selectedRowKeys = []
this.getList()
}
},
// 备注编辑 // 备注编辑
getremark(item){ getremark(item){
this.$refs.remarkRef.edit(JSON.parse(JSON.stringify(item))) this.$refs.remarkRef.edit(JSON.parse(JSON.stringify(item)))
@@ -106,7 +106,8 @@ export default {
this.visible = false this.visible = false
this.confirmLoading = false this.confirmLoading = false
this.ids = [] this.ids = []
this.$emit('getList') this.$emit('msgForm',res.result.msgList)
// this.$emit('getList')
} else { } else {
this.$message.warning(this.$t('operationFailed')) this.$message.warning(this.$t('operationFailed'))
this.confirmLoading = false this.confirmLoading = false