From e7c41ca5a8309a99f3f3afb656ae7cbee3f9510d Mon Sep 17 00:00:00 2001
From: yanyizhou <2311759275@qq.com>
Date: Tue, 30 Nov 2021 15:15:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=B8=85=E5=8D=95=E8=83=BD?=
=?UTF-8?q?=E5=B8=A6=E5=85=A5=E6=8F=90=E4=BA=A4=E4=BC=81=E6=A0=87=E5=92=8C?=
=?UTF-8?q?=E6=94=BF=E7=AD=96=E4=BA=86=EF=BC=88=E8=83=BD=E6=9F=A5=E8=83=BD?=
=?UTF-8?q?=E6=8F=90=EF=BC=8C=E7=BC=96=E8=BE=91=E5=B7=AE=E7=82=B9=E6=84=8F?=
=?UTF-8?q?=E6=80=9D=EF=BC=8C=E6=98=BE=E7=A4=BA=E7=9A=84=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E4=B9=9F=E4=B8=8D=E5=A4=AA=E5=85=A8=EF=BC=8C=E9=AB=98=E7=BA=A7?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B9=9F=E4=B8=8D=E8=A1=8C=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/otherAddEit.vue | 193 +++++++++++++-----
1 file changed, 139 insertions(+), 54 deletions(-)
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue
index 02abd1b61..9e06b7c04 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue
@@ -166,7 +166,7 @@
align="center"
label="标准号">
- {{ scope.row.standNumber }}
+ {{ scope.row.standNumber || scope.row.lawsNumber || scope.row.standCode}}
- {{ scope.row.standName }}
+ {{ scope.row.standName || scope.row.lawsName}}
- {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format('YYYY-MM-DD') : '' }}
+ {{ scope.row.putTime ? $moment(scope.row.putTime).format('YYYY-MM-DD') : '' }}
- {{ textStatusMap[scope.row.textStatus] }}
+ {{ textStatusMap[scope.row.textStatus] || scope.row.standStatusShow}}
@@ -269,7 +270,7 @@
fixed="left"
label="标准号">
- {{ scope.row.standNumber }}
+ {{ scope.row.standNumber || scope.row.lawsNumber || scope.row.standCode}}
- {{ scope.row.standName }}
+ {{ scope.row.standName || scope.row.lawsName}}
- {{ scope.row.zccssrqgj.slice(0,10) }}
+
- {{ scope.row.xcxssrqgj.slice(0,10) }}
+
{
- this.sarAccessInfoSearchList = res.data.list
- this.sarAccessInfoSearchList.forEach(item => {
- if (item.standYear === null) {
- item.standNumber = item.standSortShow + ' ' + item.standNumber
- } else {
- item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
- }
- if (item.attrInfoMap === null) {
- this.$set(item, 'zccssrqgj', '')
- this.$set(item, 'xcxssrqgj', '')
- this.$set(item, 'ssrq', '')
- this.$set(item, 'sycpx', '')
- this.$set(item, 'typeApplicable', '')
- this.$set(item, 'nylx', '')
- this.$set(item, 'zrbm', '')
- this.$set(item, 'cycvppsbm', '')
- this.$set(item, 'cycvppscn', '')
- this.$set(item, 'kccvppsbm', '')
- this.$set(item, 'kccvppscn', '')
- }else {
- this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ)
- this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ)
- this.$set(item, 'ssrq', item.attrInfoMap.SSRQ)
- this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
- this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
- this.$set(item, 'nylx', item.attrInfoMap.NYLX)
- this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
- this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
- this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
- this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
- this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
- }
+ if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND') {
+ StandardsInfoPage(this.sarAccessInfoSearch).then(res => {
+ this.sarAccessInfoSearchList = res.data.list
+ this.sarAccessInfoSearchList.forEach(item => {
+ if (item.standYear === null) {
+ item.standNumber = item.standSortShow + ' ' + item.standNumber
+ } else {
+ item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
+ }
+ if (item.attrInfoMap === null) {
+ this.$set(item, 'zccssrqgj', '')
+ this.$set(item, 'xcxssrqgj', '')
+ this.$set(item, 'ssrq', '')
+ this.$set(item, 'sycpx', '')
+ this.$set(item, 'typeApplicable', '')
+ this.$set(item, 'nylx', '')
+ this.$set(item, 'zrbm', '')
+ this.$set(item, 'cycvppsbm', '')
+ this.$set(item, 'cycvppscn', '')
+ this.$set(item, 'kccvppsbm', '')
+ this.$set(item, 'kccvppscn', '')
+ } else {
+ this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ)
+ this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ)
+ this.$set(item, 'ssrq', item.attrInfoMap.SSRQ)
+ this.$set(item, 'sycpx', item.attrInfoMap.SYCPX)
+ this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX)
+ this.$set(item, 'nylx', item.attrInfoMap.NYLX)
+ this.$set(item, 'zrbm', item.attrInfoMap.ZRBM)
+ this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM)
+ this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN)
+ this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM)
+ this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN)
+ }
+ })
+ this.drawerTotal = res.data.count
+ }, e => {
})
- this.drawerTotal = res.data.count
- }, e => {
- })
+ }else if (this.sarAccessInfoSearch.dataSource === 'FOREIGN_LAWS'){
+ this.$http.get('lawss/sarLawsInfo/page', this.sarAccessInfoSearch, {
+ _this: this,
+ }, res => {
+ console.log('1640',res)
+ this.sarAccessInfoSearchList = res.data.list
+ }, e => {
+ })
+ }else if (this.sarAccessInfoSearch.dataSource === 'BUSINESS'){
+ this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', this.sarAccessInfoSearch, {
+ _this: this,
+ }, res => {
+ console.log('1648',res)
+ this.sarAccessInfoSearchList = res.data.list
+ }, e => {
+ })
+ }
},
// 查询数据搜索 table 数据
selectLawsStands () {
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') {
this.sarAccessInfoSearch.standType = 'INLAND'
this.pageInfo()
- } else {
+ } else if (this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND') {
this.sarAccessInfoSearch.standType = 'FOREIGN'
this.pageInfo()
+ }else if (this.sarAccessInfoSearch.dataSource === 'FOREIGN_LAWS') {
+ this.sarAccessInfoSearch.standType = 'LAWS'
+ this.pageInfo()
+ }else if (this.sarAccessInfoSearch.dataSource === 'BUSINESS') {
+ this.sarAccessInfoSearch.standType = 'BUSINESS'
+ this.pageInfo()
}
},
selectPage() {
@@ -1532,7 +1617,7 @@ export default {
},
// 数据搜索table判断checked状态
selectable (row) {
- return row.isRelateAccess === '1'
+ return row.isRelateAccess === '1' || row.isRelateAccess === undefined
},
// 数据搜索 table select事件
sarAccessInfoSearchSelect (val) {