update 文档比对
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div class="detail-content-box">
|
||||
<div class="detail-content-left">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQueryLeft">
|
||||
<a-row :gutter="24">
|
||||
<a-row>
|
||||
<a-col :md="8" :sm="8">
|
||||
<a-form-item :label="$t('number')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input :placeholder="$t('pleaseEnter')+$t('number')"
|
||||
@@ -54,7 +54,7 @@
|
||||
</div>
|
||||
<div class="detail-content-right">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQueryRight">
|
||||
<a-row :gutter="24">
|
||||
<a-row>
|
||||
<a-col :md="8" :sm="8">
|
||||
<a-form-item :label="$t('number')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input :placeholder="$t('pleaseEnter')+$t('number')"
|
||||
@@ -134,12 +134,12 @@
|
||||
|
||||
<script>
|
||||
import JTable from '../../../components/jero/JTable.vue'
|
||||
import { getAction, downloadFile, getFileAccessHttpUrl } from '../../../api/manage.js'
|
||||
import { downloadFile, getFileAccessHttpUrl } from '../../../api/manage.js'
|
||||
import { previewPdf } from '../../../utils/previewPdf.js'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
import InternalDetailPage from '../../../components/InternalDetailPage.vue'
|
||||
import { getInitComparsionPageData, submitInitComparsion } from '../../../api/documentToolApi.js'
|
||||
|
||||
export default {
|
||||
name: 'InitiateComparison',
|
||||
@@ -151,7 +151,7 @@ export default {
|
||||
span: 6
|
||||
},
|
||||
wrapperCol: {
|
||||
span: 14
|
||||
span: 18
|
||||
},
|
||||
loadingLeft: false,
|
||||
queryParamLeft: {},
|
||||
@@ -273,10 +273,6 @@ export default {
|
||||
width: 79
|
||||
}
|
||||
],
|
||||
url: {
|
||||
list: '/split/sarFileSplitInfo/page',
|
||||
add: '/compare/sarFileCompareInfo/fullTextComparison'
|
||||
},
|
||||
image: false,
|
||||
imageUrl: ''
|
||||
}
|
||||
@@ -342,38 +338,36 @@ export default {
|
||||
this.getListRight()
|
||||
},
|
||||
submit () {
|
||||
this.$router.push({
|
||||
path: '/documentTool/DocumentDataComparison'
|
||||
if (!this.selectedRowsRight[0] || !this.selectedRowsLeft[0]) {
|
||||
this.$message.warning(this.$t('pleaseSelectTheDataCompared'))
|
||||
return
|
||||
}
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
this.loading = true
|
||||
const query = {
|
||||
leftStandard: this.selectedRowsLeft[0].id,
|
||||
rightStandard: this.selectedRowsRight[0].id,
|
||||
remark: this.formInline.remark
|
||||
}
|
||||
submitInitComparsion(query).then((res) => {
|
||||
if (res.success) {
|
||||
console.log(res)
|
||||
this.loading = false
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
this.$router.push({
|
||||
path: '/documentTool/DocumentDataComparison',
|
||||
query: {
|
||||
id: res.result
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.loading = false
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
// if (!this.selectedRowsRight[0] || !this.selectedRowsLeft[0]) {
|
||||
// this.$message.warning(this.$t('pleaseSelectTheDataCompared'))
|
||||
// return
|
||||
// }
|
||||
// this.$refs.ruleForm.validate(valid => {
|
||||
// if (valid) {
|
||||
// this.loading = true
|
||||
// const query = {
|
||||
// leftStandard: this.selectedRowsLeft[0].id,
|
||||
// rightStandard: this.selectedRowsRight[0].id,
|
||||
// remark: this.formInline.remark
|
||||
// }
|
||||
// postAction(this.url.add, query).then((res) => {
|
||||
// if (res.success) {
|
||||
// this.loading = false
|
||||
// this.$message.success(this.$t('operationSuccessful'))
|
||||
// this.$router.push({
|
||||
// path: '/documentDataComparison',
|
||||
// query: {
|
||||
// id: res.result
|
||||
// }
|
||||
// })
|
||||
// } else {
|
||||
// this.loading = false
|
||||
// this.$message.warning(this.$t('operationFailed'))
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
},
|
||||
getListLeft () {
|
||||
const queryParam = JSON.parse(JSON.stringify(this.queryParamLeft))
|
||||
@@ -389,7 +383,7 @@ export default {
|
||||
...queryParam
|
||||
}
|
||||
this.loadingLeft = true
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
getInitComparsionPageData(query).then((res) => {
|
||||
if (res.success) {
|
||||
if (res.result.current > 1 && res.result.records.length === 0) {
|
||||
this.ipaginationLeft.current = 1
|
||||
@@ -447,7 +441,7 @@ export default {
|
||||
...queryParam
|
||||
}
|
||||
this.loadingRight = true
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
getInitComparsionPageData(query).then((res) => {
|
||||
if (res.success) {
|
||||
if (res.result.current > 1 && res.result.records.length === 0) {
|
||||
this.pageNoRight = 1
|
||||
|
||||
Reference in New Issue
Block a user