|
@@ -350,6 +350,7 @@
|
|
|
:name="item.value"
|
|
|
:ref="(el) => (checkboxRefs[index] = el)"
|
|
|
@click.stop
|
|
|
+ @click="toggle(index)"
|
|
|
/>
|
|
|
</template>
|
|
|
</van-cell>
|
|
@@ -373,6 +374,7 @@
|
|
|
v-model:show="hs_tissue"
|
|
|
title="宗教组织"
|
|
|
show-cancel-button
|
|
|
+ @confirm="tissue()"
|
|
|
>
|
|
|
<div class="dialog">
|
|
|
<van-list
|
|
@@ -391,7 +393,7 @@
|
|
|
@click="gettissue(item)"
|
|
|
>
|
|
|
<template #right-icon>
|
|
|
- <van-radio :name="item.id" />
|
|
|
+ <van-radio :name="item.id" @click="gettissue(item)"/>
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
</van-cell-group>
|
|
@@ -751,7 +753,6 @@ 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;
|
|
@@ -911,12 +912,16 @@ export default {
|
|
|
const checked1 = ref("");
|
|
|
const tissuelist = ref([]);
|
|
|
let hs_tissue = ref(false);
|
|
|
+ const tiname = ref('')
|
|
|
const gettissue = (val) => {
|
|
|
- tissueName.value = val.organizationName;
|
|
|
- const json = Object.assign(inputForm.value, { zjzz: { id: val.id } });
|
|
|
- inputForm.value = json;
|
|
|
+ tiname.value = val.organizationName;
|
|
|
checked1.value = val.id;
|
|
|
};
|
|
|
+ const tissue = ()=>{
|
|
|
+ tissueName.value = tiname.value
|
|
|
+ const json = Object.assign(inputForm.value, { zjzz: { id: checked1.value } });
|
|
|
+ inputForm.value = json;
|
|
|
+ }
|
|
|
const loading1 = ref(false);
|
|
|
const finished1 = ref(false);
|
|
|
const refreshing1 = ref(false);
|
|
@@ -1102,7 +1107,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
new placePerson().save(inputForm.value).then((res) => {
|
|
|
- console.log(res);
|
|
|
if (res.status == 200) {
|
|
|
xm.showToast({
|
|
|
message: "人员添加成功",
|
|
@@ -1114,7 +1118,6 @@ export default {
|
|
|
xm.showToast({
|
|
|
message: "人员添加失败",
|
|
|
});
|
|
|
- console.log(res);
|
|
|
}
|
|
|
});
|
|
|
};
|
|
@@ -1174,6 +1177,7 @@ export default {
|
|
|
checked1,
|
|
|
hs_tissue,
|
|
|
gettissue,
|
|
|
+ tissue,
|
|
|
tissuelist,
|
|
|
loading1,
|
|
|
finished1,
|