From 662d241358174e91590d4729ca5224656bf65207 Mon Sep 17 00:00:00 2001
From: shen_yan_pu <1975145892@qq.com>
Date: Mon, 26 Jul 2021 14:21:29 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=B8=85=E5=8D=95=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=88=97=E8=A1=A8=E6=B8=85=E7=A9=BA=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91=E9=A1=B5?=
=?UTF-8?q?=E7=9A=84=E5=88=A0=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/addEdit.vue | 36 ++++++++++------
.../pages/details.vue | 42 +++++++++++++++----
.../pages/otherAddEit.vue | 36 ++++++++++------
.../pages/projectAddEit.vue | 36 ++++++++++------
4 files changed, 102 insertions(+), 48 deletions(-)
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue
index 96f578574..77f06915a 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue
@@ -237,13 +237,13 @@
>
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
+ {{ scope.row.standNumber }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
+ {{ scope.row.standNumber }}
{
- // i 全部对象数组的下标
- // s 选中对象数组的下标
- for (var s in this.sarAccessInfoListArry) {
- for (var i in this.sarAccessInfoList) {
- if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) {
- this.sarAccessInfoList.splice(i, 1)
- }
+ let exits = []
+ this.sarAccessInfoListArry.map(item => {
+ let index
+ index = this.sarAccessInfoList.findIndex(items => {
+ return items.id = item
+ })
+ if (index > -1) {
+ this.sarAccessInfoList.splice(index, 1)
}
- }
+ exits.push(item)
+ })
this.sarAccessInfoListArry = []
this.$refs.entryTable.clearSelection()
}).catch(() => {})
@@ -1467,6 +1470,13 @@ export default {
selectLawsStands () {
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
+ }
+ })
this.drawerTotal = res.data.list.length
}, e => {
})
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue
index 3d3213f1e..32b738445 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue
@@ -117,10 +117,10 @@
-
-
+
+
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
+ {{ scope.row.standNumber }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
+ {{ scope.row.standNumber }}
{
- // i 全部对象数组的下标
- // s 选中对象数组的下标
- for (var s in this.sarAccessInfoListArry) {
- for (var i in this.sarAccessInfoList) {
- if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) {
- this.sarAccessInfoList.splice(i, 1)
- }
+ let exits = []
+ this.sarAccessInfoListArry.map(item => {
+ let index
+ index = this.sarAccessInfoList.findIndex(items => {
+ return items.id = item
+ })
+ if (index > -1) {
+ this.sarAccessInfoList.splice(index, 1)
}
- }
+ exits.push(item)
+ })
this.sarAccessInfoListArry = []
this.$refs.entryTable.clearSelection()
}).catch(() => {})
@@ -1278,6 +1281,13 @@ export default {
_this: this
}, 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
+ }
+ })
this.drawerTotal = res.data.list.length
}, e => {
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue
index 3c8704868..d636411a5 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue
@@ -215,13 +215,13 @@
>
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
+ {{ scope.row.standNumber }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
- {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
+ {{ scope.row.standNumber }}
{
- // i 全部对象数组的下标
- // s 选中对象数组的下标
- for (var s in this.sarAccessInfoListArry) {
- for (var i in this.sarAccessInfoList) {
- if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) {
- this.sarAccessInfoList.splice(i, 1)
- }
+ let exits = []
+ this.sarAccessInfoListArry.map(item => {
+ let index
+ index = this.sarAccessInfoList.findIndex(items => {
+ return items.id = item
+ })
+ if (index > -1) {
+ this.sarAccessInfoList.splice(index, 1)
}
- }
+ exits.push(item)
+ })
this.sarAccessInfoListArry = []
this.$refs.entryTable.clearSelection()
}).catch(() => {})
@@ -1276,6 +1279,13 @@ export default {
_this: this
}, 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
+ }
+ })
this.drawerTotal = res.data.list.length
}, e => {