微心愿

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 this.form.girdName = v.girdName
}, },
toSelectType() { toSelectType() {
uni.navigateTo({url: `./selectType`}) uni.navigateTo({url: `./selectType?groupId=${this.form.groupId}`})
} }
} }
} }

View File

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