修改页面选项内容

master
于肖磊 2025-10-23 11:53:08 +08:00
parent d0eaa44c80
commit 9b8e3e4767
6 changed files with 19 additions and 17 deletions

View File

@ -66,7 +66,7 @@
</view>
<!-- 上传视频或图片 -->
<view v-else-if="['upload-img', 'upload-video'].includes(data_item.key)" :class="propDirection == 'row' ? 'padding-vertical-sm' : ''">
<component-upload :propValue="data_item.com_data" :propType="data_item.key == 'upload-img' ? 'img' : ( data_item.key == 'upload-video' ? 'video' : 'file')" :propKey="propKey" :propDataFormId="propDataFormId" :propDataId="data_item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
<component-upload :propValue="data_item.com_data" :propType="data_item.key == 'upload-img' ? 'img' : ( data_item.key == 'upload-video' ? 'video' : 'file')" :propKey="propKey" :propFormInputId="propFormInputId" :propDataId="data_item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
</view>
<!-- 定位 -->
<view v-else-if="data_item.key == 'position'">
@ -75,7 +75,7 @@
<!-- #ifdef H5 || MP-WEIXIN || MP-QQ -->
<!-- 上传文件 -->
<view v-else-if="data_item.key == 'upload-attachments'">
<component-upload :propValue="data_item.com_data" propType="file" :propKey="propKey" :propDataFormId="propDataFormId" :propDataId="data_item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
<component-upload :propValue="data_item.com_data" propType="file" :propKey="propKey" :propFormInputId="propFormInputId" :propDataId="data_item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
</view>
<!-- #endif -->
</view>
@ -138,7 +138,7 @@ export default {
type: Object,
default: () => {},
},
propDataFormId: {
propFormInputId: {
type: [String, Number],
default: '',
},

View File

@ -83,7 +83,7 @@
</view>
<!-- 上传视频或图片 -->
<view v-else-if="['upload-img', 'upload-video'].includes(item.key)" :class="propDirection == 'row' ? 'padding-vertical-sm' : ''">
<component-upload :propValue="item.com_data" :propType="item.key == 'upload-img' ? 'img' : ( item.key == 'upload-video' ? 'video' : 'file')" :propKey="propKey" :propDataFormId="propDataFormId" :propDataId="item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
<component-upload :propValue="item.com_data" :propType="item.key == 'upload-img' ? 'img' : ( item.key == 'upload-video' ? 'video' : 'file')" :propKey="propKey" :propFormInputId="propFormInputId" :propDataId="item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
</view>
<!-- 定位 -->
<view v-else-if="item.key == 'position'">
@ -92,7 +92,7 @@
<!-- #ifdef H5 || MP-WEIXIN || MP-QQ -->
<!-- 上传文件 -->
<view v-else-if="item.key == 'upload-attachments'">
<component-upload :propValue="item.com_data" propType="file" :propKey="propKey" :propDataFormId="propDataFormId" :propDataId="item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
<component-upload :propValue="item.com_data" propType="file" :propKey="propKey" :propFormInputId="propFormInputId" :propDataId="item.id" :propMobile="propMobile" :propStyle="propComponentStyle" :propDirection="propDirection" @dataCheck="data_check"></component-upload>
</view>
<!-- #endif -->
<view v-if="!isEmpty(item.com_data.common_config.error_text)" class="field-invalid-info">{{ item.com_data.common_config.error_text }}</view>
@ -171,7 +171,7 @@ export default {
type: String,
default: '',
},
propDataFormId: {
propFormInputId: {
type: [String, Number],
default: '',
},

View File

@ -50,7 +50,7 @@
type: [String, Number],
default: 0,
},
propDataFormId: {
propFormInputId: {
type: [String, Number],
default: '',
},
@ -191,7 +191,7 @@
},
verify_send_handle() {
const post_data = {
forminput_id: this.propDataFormId,
forminput_id: this.propFormInputId,
forminput_item_id: this.propDataId,
accounts: this.form_value,
type: 'sms',

View File

@ -47,7 +47,7 @@
:propFieldLabelStyle="propFieldLabelStyle"
:propTitleStyle="propTitleStyle"
:propHelpIconStyle="propHelpIconStyle"
:propDataFormId="propDataFormId"
:propFormInputId="propFormInputId"
:propKey="propKey"
:propIndex="index"
:propDirection="propDirection"
@ -101,7 +101,7 @@
<view class="flex-1 wh-auto">
<components-combination
:propData="children_item"
:propDataFormId="propDataFormId"
:propFormInputId="propFormInputId"
:propKey="propKey"
:propIndex="index"
:propDirection="propDirection"
@ -147,7 +147,7 @@
:propFieldLabelStyle="propFieldLabelStyle"
:propTitleStyle="propTitleStyle"
:propHelpIconStyle="propHelpIconStyle"
:propDataFormId="propDataFormId"
:propFormInputId="propFormInputId"
:propKey="propKey"
:propIndex="table_more_index"
:propDirection="propDirection"
@ -240,7 +240,7 @@
type: String,
default: '20rpx',
},
propDataFormId: {
propFormInputId: {
type: [String, Number],
default: '',
},
@ -661,7 +661,8 @@
data_list: JSON.parse(JSON.stringify(this.children_list))
});
this.setData({ data_list: data });
this.$emit('subformDataChange', data, this.propDataId);
//
this.$emit('subformDataCheck', data, this.propDataId);
},
expand_all(e) {
const { value } = e.currentTarget.dataset;
@ -700,7 +701,8 @@
this.setData({
data_list: data
})
this.$emit('subformDataChange', data, this.propDataId);
//
this.$emit('subformDataCheck', data, this.propDataId);
},
// empty_conversion ,
data_conversion(item) {

View File

@ -22,7 +22,7 @@
type: [String, Number],
default: 0,
},
propDataFormId: {
propFormInputId: {
type: [String, Number],
default: '',
},
@ -71,7 +71,7 @@
this.setData({
com_data: com_data,
max_num: com_data.is_limit_num == '1' ? com_data.limit : 1000,
pathType: `forminputdata-${this.propDataFormId}`,
pathType: `forminputdata-${this.propFormInputId}`,
form_value: com_data.form_value || [],
border_style: common_form_styles_computer(com_data.common_config)
});

View File

@ -2,7 +2,7 @@
<view :class="theme_view">
<block v-if="(data || null) != null && (data.config || null) != null">
<!-- diy模块 -->
<component-form-input :propValue="data" :propDataFormId="data.id" :propKey="random_value" propIsMask @onLocationBack="user_back_choice_location">
<component-form-input :propValue="data" :propFormInputId="data.id" :propKey="random_value" propIsMask @onLocationBack="user_back_choice_location">
<!-- 底部内容 -->
<template slot="diy-bottom-content">
<!-- 结尾 -->