修改数据字典的验证

This commit is contained in:
qq787203167
2022-06-06 14:50:59 +08:00
parent 99b23477a5
commit 48aaf0ee71
4 changed files with 161 additions and 96 deletions
@@ -9,11 +9,9 @@
<a-tooltip placement="topLeft">
<template slot="title">
<span
v-html="titleHeader"></span>
v-html="serial_number"></span>
</template>
<span v-html="$route.query.serial_number"></span>
<span v-html="this.$route.query.title == undefined || this.$route.query.title == null
|| !this.$route.query.title ?'《'+ ''+'':''+ this.$route.query.title+'》'"></span>
<span v-html="serial_number"></span>
<span> {{$t('StandardDetails')}}</span>
</a-tooltip>
@@ -258,6 +256,7 @@
</span>
</a-table>
</a-modal>
<JLoading :loading="loading">{{$t('dataLoading')}}</JLoading>
<uploadFile ref="uploadFile" :isUploadFile="true" :disabled="true"></uploadFile>
</div>
</template>
@@ -275,10 +274,12 @@
return {
url: {
getInfo: 'document/bussDocumentLibraryEO/getInfoById',
list: 'log/bussLogEO/page'
list: 'log/bussLogEO/page',
getTitle: '/document/bussDocumentLibraryEO/getTitle'
},
titleHeader: '',
visibleFile: false,
loading: false,
columnsRelated: [
{
title: this.$t('standardName'),
@@ -306,6 +307,7 @@
dataSourceRelated: [],
detailList: [],
visible: false,
serial_number: '',
confirmLoading: false,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
loading: false,
@@ -341,24 +343,30 @@
}
},
created() {
this.getInfoById()
if (this.$route.query.serial_number && this.$route.query.title) {
this.titleHeader = this.$route.query.serial_number + ' 《' + this.$route.query.title + ' 》' + this.$t('StandardDetails')
} else if (!this.$route.query.serial_number && this.$route.query.title) {
this.titleHeader = '《' + this.$route.query.title + '》' + this.$t('StandardDetails')
} else if (this.$route.query.serial_number && !this.$route.query.title) {
this.titleHeader = this.$route.query.serial_number + ' 《' + ' 》' + this.$t('StandardDetails')
} else {
this.titleHeader = ' 《' + ' 》' + this.$t('StandardDetails')
}
let _this = this
this.loading = true
this.getTitle(function() {
_this.getInfoById()
})
},
methods: {
getTitle(callback) {
let _id = this.$route.query.documentId === undefined ? this.$route.query.id : this.$route.query.documentId
getAction(this.url.getTitle, { id: _id }).then((res) => {
if (res.success) {
this.serial_number = res.result
callback && callback()
} else {
this.serial_number = ''
}
})
},
getInfoById() {
let _id = this.$route.query.documentId === undefined ? this.$route.query.id : this.$route.query.documentId
console.log(_id)
getAction(this.url.getInfo, { id: _id }).then((res) => {
if (res.success) {
this.detailList = res.result
this.loading = false
} else {
this.detailList = []
}