|
@@ -229,7 +229,7 @@
|
|
|
@click="getsite(item)"
|
|
|
>
|
|
|
<template #right-icon>
|
|
|
- <van-radio :name="item.id" />
|
|
|
+ <van-radio :name="item.id" @click="getsite(item)"/>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
</van-cell-group>
|
|
@@ -867,8 +867,11 @@ export default {
|
|
|
const sitelist = ref([]);
|
|
|
let hs_site = ref(false);
|
|
|
const getsite = (val) => {
|
|
|
+ console.log(val);
|
|
|
+ let id = '';
|
|
|
+ id = val.id;
|
|
|
locationName.value = val.name;
|
|
|
- const json = Object.assign(inputForm.value, { location: { id: val.id } });
|
|
|
+ const json = Object.assign(inputForm.value, { location: { id: id } });
|
|
|
inputForm.value = json;
|
|
|
checked.value = val.id;
|
|
|
};
|