This commit is contained in:
花有清香月有阴
2021-12-14 17:59:01 +08:00
parent ffc1019944
commit 4455f34d73
3 changed files with 50 additions and 48 deletions

View File

@@ -15,9 +15,15 @@
<div v-if="DiyList.length > 0">
<u-collapse event-type="close" arrowaccordion>
<u-collapse-item v-for="(item, index) in DiyList" :title="item.menuLevel2Name" :key="index" @change="selectUser(item)">
<u-checkbox-group @change="checkboxGroupChange">
<u-checkbox @change="checkboxChange" v-model="e.checked" v-for="(e, index) in userList" :key="index" :name="e.create_user_name" shape="circle">{{ e.name00 }}</u-checkbox>
</u-checkbox-group>
<u-radio-group v-model="value">
<u-radio v-for="(item, index) in userList" :key="index" :name="item.create_user_name">
{{ item.create_user_name }}
</u-radio>
</u-radio-group>
<!-- <u-checkbox-group>
<u-checkbox v-model="e.checked" v-for="(e, index) in userList" :key="index" :name="e.create_user_name" shape="circle">{{ e.create_user_name }}</u-checkbox>
</u-checkbox-group> -->
</u-collapse-item>
</u-collapse>
</div>
@@ -64,6 +70,8 @@ export default {
],
nameList: [],
current: 1,
appId: '',
value: '',
}
},
computed: {},
@@ -81,7 +89,8 @@ export default {
},
selectUser(item) {
console.log(item)
console.log(item.id)
this.appId = item.id
this.$http.post(`/app/appapplicationinfo/list?appId=${item.id}&current=${this.current}&size=${99}`, { searchParam: this.keyword }).then((res) => {
if (res.code == 0) {
this.userList = res.data.records
@@ -89,19 +98,10 @@ export default {
})
},
checkboxGroupChange(a) {
console.log(a)
},
checkboxChange(e) {
console.log(e)
},
submit() {
this.userList.map((item) => {
if (item.checked == true) {
console.log(11, 'back', 'item')
this.$emit('back', item)
if (item.create_user_name == this.value) {
this.$emit('back', { item: item, appId: this.appId })
}
})
},
@@ -134,19 +134,15 @@ export default {
}
.Checkbox {
padding: 0 20px 0 30px;
::v-deep .u-checkbox-group {
.u-checkbox {
// position: relative;
height: 112px;
}
}
::v-deep .u-collapse {
.u-collapse-item {
.u-collapse-body {
display: inline;
.u-checkbox-group {
display: flex;
flex-direction: column;
// display: inline;
.u-radio-group {
.u-radio {
line-height: 0;
}
}
}
}
@@ -171,7 +167,6 @@ export default {
color: #ffffff;
}
.typeName {
// margin: 48px 0 44px 0;
margin: 36px 0 22px 0;
.typeName-box {
padding: 16px 14px;