From 224b4885e7fbdc9b11ac571bd3eb07186ed190e5 Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Tue, 31 Jan 2023 11:56:22 +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=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/CollectionType/index.vue | 338 +++++++++---------
1 file changed, 174 insertions(+), 164 deletions(-)
diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue
index 0196295af..134966daa 100644
--- a/jero-web/src/components/CollectionType/index.vue
+++ b/jero-web/src/components/CollectionType/index.vue
@@ -2,10 +2,10 @@
-
-
-
-
+
+
+
@@ -97,21 +97,20 @@
v-model="itemval.dataValue"/>
-
-
-
+
+
+
-
-
-
-
+
+
+
@@ -132,21 +131,20 @@
v-model="itemval.dataValue"/>
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -209,21 +204,20 @@
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -559,22 +550,21 @@
itemval.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
{
- if(item.db_field_name&&item.db_field_name!=''){
- name.push(item.db_field_name)
- }
- })
- for (let key in this.recordList){
- if(name.toString().indexOf(key)>-1){
- if(this.recordList[key].paramsConfigData){
- this.detailDateList.push(this.recordList[key].paramsConfigData)
- }
-
- }
- }
- this.detailDateList.forEach((item) => {
- if (item.type === 'pull_more' && !item.dataValue) {
- item.dataValue = []
- }
+ this.detailDateList = []
+ let name = []
+ console.log(this.detailDate)
+ // this.columName.forEach(item => {
+ // if (item.db_field_name && item.db_field_name != '') {
+ // name.push(item.db_field_name)
+ // }
+ // })
+ // for (let key in this.recordList) {
+ // if (name.toString().indexOf(key) > -1) {
+ // if (this.recordList[key].paramsConfigData) {
+ // console.log(this.recordList[key].paramsConfigData)
+ // this.detailDateList = this.recordList[key].paramsConfigData
+ // }
+ // }
+ // }
+ this.detailDateList = this.detailDate.paramsConfigData
+ // this.detailDateList.forEach((item) => {
+ Object.keys(this.detailDateList).forEach(res => {
+ this.detailDateList[res].forEach(val => {
+ if (val.type === 'pull_more' && !val.dataValue) {
+ val.dataValue = []
+ }
+ })
+ // })
// this.detailDatetransformation.push(item)
})
- console.log(this.detailDateList,"oooooo")
+ console.log(this.detailDateList, 'oooooo')
},
methods: {
- selectChange(val){
+ selectChange(val) {
this.$nextTick(() => {
let element = document.querySelectorAll(
- ".tableclassname .ant-table-expanded-row"
- );
- let len = element.length / 2;
+ '.tableclassname .ant-table-expanded-row'
+ )
+ let len = element.length / 2
for (let i = 0; i < len; i++) {
- element[i + len].style.height = element[i].offsetHeight + "px";
+ element[i + len].style.height = element[i].offsetHeight + 'px'
}
- });
+ })
},
onInput(r) {
let value = r.target.value
@@ -891,24 +889,27 @@
}
})
},
- addconfig(){
- postAction('params/configData/add', { paramsCollectManifestId: this.recordList.id , paramsConfigId :this.detailDate.configId }).then((res) => {
+ addconfig() {
+ postAction('params/configData/add', {
+ paramsCollectManifestId: this.recordList.id,
+ paramsConfigId: this.detailDate.configId
+ }).then((res) => {
if (res.success) {
this.$emit('collectionForm')
} else {
}
})
},
- delconfig(){
- for (const key in this.detailDate.paramsConfigData){
- deleteAction('params/configData/delete', { id :key }).then((res) => {
+ delconfig() {
+ for (const key in this.detailDate.paramsConfigData) {
+ deleteAction('params/configData/delete', { id: key }).then((res) => {
if (res.success) {
this.$emit('collectionForm')
} else {
}
})
}
- },
+ }
},
watch: {
detailDate(newold, oldold) {
@@ -943,9 +944,11 @@
height: 38px !important;
line-height: 38px !important;
}
- .ant-select-selection-selected-value{
- height:100%;
+
+ .ant-select-selection-selected-value {
+ height: 100%;
}
+
.selectWid .ant-select-selection__rendered {
line-height: 36px !important;
}
@@ -956,12 +959,14 @@
height: calc(100% - 100px);
overflow: auto;
}
-///deep/ .ant-select-allow-clear{
-// height: 30px;
-//}
- /deep/.ant-table-row{
- height:69px;
+
+ ///deep/ .ant-select-allow-clear{
+ // height: 30px;
+ //}
+ /deep/ .ant-table-row {
+ height: 69px;
}
+
.text {
margin-right: 10px;
}
@@ -976,7 +981,8 @@
display: flex;
flex-direction: column;
}
- .iconRow,.valflex{
+
+ .iconRow, .valflex {
display: flex;
}
@@ -1003,21 +1009,25 @@
width: calc(33.3% - 5px);
margin-right: 5px;
float: left;
+ display: flex;
}
.add--number {
width: 101%;
}
- .addicon{
+
+ .addicon {
display: inline-block;
//margin-left: -34px;
margin-top: 8px;
}
- .delicon{
+
+ .delicon {
display: inline-block;
margin-left: 5px;
margin-top: 8px;
}
+
.ant-input-disabled {
color: rgba(0, 0, 0, 0.65);
}