微心愿

This commit is contained in:
liuye
2023-06-06 11:59:52 +08:00
parent 75e6c5004f
commit 8c62d50bcb
2 changed files with 9 additions and 3 deletions

View File

@@ -233,7 +233,7 @@ export default {
this.form.girdName = v.girdName
},
toSelectType() {
uni.navigateTo({url: `./selectType`})
uni.navigateTo({url: `./selectType?groupId=${this.form.groupId}`})
}
}
}

View File

@@ -21,7 +21,6 @@
</template>
<script>
import {mapState} from 'vuex'
export default {
appName:"事件类型选择",
@@ -31,9 +30,11 @@ export default {
list: [],
cirIcon: require('./img/xz.png'),
checkIcon: require('./img/xzh.png'),
groupId: ''
}
},
onLoad(option) {
this.groupId = option.groupId
this.getList()
},
methods: {
@@ -41,7 +42,12 @@ export default {
this.$instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then(res => {
if (res.code == 0) {
res.data.records.map((item) => {
item.isCheck = false
if(item.id == this.groupId) {
item.isCheck = true
}else {
item.isCheck = false
}
})
this.list = res.data.records
}