From 0f2aef50a1d9fb4b277b759817da6647903d6e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=B5=A9?= Date: Thu, 13 Jul 2023 17:44:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E6=94=B6?= =?UTF-8?q?=E9=9B=86=E6=B8=85=E5=8D=95=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/CollectionType/index.vue | 41 +++++++++++-------- .../CollectionTypeDisabled/index.vue | 31 ++++++++------ 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue index 5927e63fd..4b6bc0fc6 100644 --- a/jero-web/src/components/CollectionType/index.vue +++ b/jero-web/src/components/CollectionType/index.vue @@ -3,7 +3,7 @@
-
+
@@ -113,7 +113,7 @@
-
+
@@ -152,7 +152,7 @@
-
+
@@ -183,7 +183,7 @@
-
-
@@ -243,7 +243,7 @@
-
+
@@ -365,7 +365,7 @@
-
+
-
+
@@ -606,7 +606,7 @@
-
+
@@ -646,7 +646,7 @@
-
+
-
+
@@ -906,15 +906,24 @@ export default { // Object.keys(this.detailDate.paramsConfigData).sort().forEach(function(key) { // ordered[key] = that.detailDate.paramsConfigData[key] // }) - this.key = Object.keys(this.detailDate.paramsConfigData).sort((a, b) => { - let index = a.lastIndexOf('+') - let index1 = b.lastIndexOf('+') - return a.slice(0, index) - b.slice(0, index1) - }) + // this.key = Object.keys(this.detailDate.paramsConfigData).sort((a, b) => { + // let index = a.lastIndexOf('+') + // let index1 = b.lastIndexOf('+') + // return a.slice(0, index) - b.slice(0, index1) + // }) + // console.log(this.key) // this.detailDate.paramsConfigData = ordered // this.detailDate.paramsConfigData = { ...this.detailDate.paramsConfigData } }, methods: { + keyIndex(){ + let key = Object.keys(this.detailDate.paramsConfigData).sort((a, b) => { + let index = a.lastIndexOf('+') + let index1 = b.lastIndexOf('+') + return a.slice(0, index) - b.slice(0, index1) + }) + return key + }, selectChange(val) { this.$nextTick(() => { let element = document.querySelectorAll( diff --git a/jero-web/src/components/CollectionTypeDisabled/index.vue b/jero-web/src/components/CollectionTypeDisabled/index.vue index 5eb406f75..8c2a0d9e3 100644 --- a/jero-web/src/components/CollectionTypeDisabled/index.vue +++ b/jero-web/src/components/CollectionTypeDisabled/index.vue @@ -3,7 +3,7 @@
-
+
@@ -101,7 +101,7 @@
-
+
@@ -136,7 +136,7 @@
-
+
@@ -164,7 +164,7 @@
-
-
@@ -218,7 +218,7 @@
-
+
@@ -328,7 +328,7 @@
-
+
-
+
@@ -545,7 +545,7 @@
-
+
@@ -582,7 +582,7 @@
-
+
-
+
@@ -861,7 +861,14 @@ return id // return Math.random().toString(32) }, - + keyIndex(){ + let key = Object.keys(this.detailDate.paramsConfigData).sort((a, b) => { + let index = a.lastIndexOf('+') + let index1 = b.lastIndexOf('+') + return a.slice(0, index) - b.slice(0, index1) + }) + return key + }, addconfig() { let paramsConfigData = Object.keys(this.detailDate.paramsConfigData).sort((a, b) => { let index = a.lastIndexOf('+')