hookehuyr

fix

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-12-06 16:13:12
* @LastEditTime: 2022-12-06 16:41:55
* @FilePath: /data-table/src/App.vue
* @Description:
-->
......@@ -72,7 +72,8 @@ onMounted(async () => {
// console.warn(err);
// });
// 数据收集设置
const { data, extend } = await getFormSettingAPI({ form_code: $route.query.code });
const code = $route.query.code;
const { data, extend } = await getFormSettingAPI({ form_code: code });
const form_setting = {};
if (data.length) {
data[0].property_list.forEach((prop) => {
......
<!--
* @Date: 2022-08-30 14:32:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-12-06 15:42:08
* @LastEditTime: 2022-12-06 16:33:22
* @FilePath: /data-table/src/components/AreaPickerField/index.vue
* @Description: 省市区选择控件
-->
......@@ -23,15 +23,17 @@
:placeholder="item.component_props.placeholder"
@blur="onBlur"
:rules="item.rules"
:border="true"
:border="false"
/>
<div
<!-- <div
v-if="show_empty"
class="van-field__error-message"
style="padding: 0 1rem 1rem 1rem"
>
地址不能为空
</div>
</div> -->
<van-divider />
<van-popup v-model:show="showPicker" position="bottom">
<van-area
v-model="item.city_code"
......@@ -116,4 +118,5 @@ defineExpose({ validAreaPicker });
}
}
}
</style>
......