hookehuyr

refactor(components): 统一将score属性重命名为x_score

将CheckboxField、PickerField、RadioField组件及首页视图中的score属性统一更名为x_score,保持命名一致性
1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-11-24 16:50:52 4 + * @LastEditTime: 2025-11-24 17:53:08
5 * @FilePath: /data-table/src/components/CheckboxField/index.vue 5 * @FilePath: /data-table/src/components/CheckboxField/index.vue
6 * @Description: 多项选择控件 6 * @Description: 多项选择控件
7 --> 7 -->
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
14 <span v-if="item.component_props.max" style="color: gray"> 14 <span v-if="item.component_props.max" style="color: gray">
15 (最多可选数:&nbsp;{{ item.component_props.max }}) 15 (最多可选数:&nbsp;{{ item.component_props.max }})
16 </span> 16 </span>
17 - <span v-if="item.component_props.score" style="margin-left: 0.5rem; color: red;">( {{ item.component_props.score }} 分 )</span> 17 + <span v-if="item.component_props.x_score" style="margin-left: 0.5rem; color: red;">( {{ item.component_props.x_score }} 分 )</span>
18 </div> 18 </div>
19 <div v-if="item.component_props.note" class="note" v-html="item.component_props.note" /> 19 <div v-if="item.component_props.note" class="note" v-html="item.component_props.note" />
20 <van-field v-if="!item.component_props.readonly" :rules="item.rules" :border="false"> 20 <van-field v-if="!item.component_props.readonly" :rules="item.rules" :border="false">
......
1 <!-- 1 <!--
2 * @Date: 2022-08-30 13:46:51 2 * @Date: 2022-08-30 13:46:51
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-11-24 17:26:26 4 + * @LastEditTime: 2025-11-24 17:54:39
5 * @FilePath: /data-table/src/components/PickerField/index.vue 5 * @FilePath: /data-table/src/components/PickerField/index.vue
6 * @Description: 单列选择器组件 6 * @Description: 单列选择器组件
7 --> 7 -->
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <span v-if="item.component_props.disabled_show"><van-icon name="https://cdn.ipadbiz.cn/custom_form/icon/closed-eye1.png" /></span> 11 <span v-if="item.component_props.disabled_show"><van-icon name="https://cdn.ipadbiz.cn/custom_form/icon/closed-eye1.png" /></span>
12 <span v-if="item.component_props.required" style="color: red">&nbsp;*</span> 12 <span v-if="item.component_props.required" style="color: red">&nbsp;*</span>
13 <span :class="[ReadonlyShow ? 'readonly-show' : '']">{{ item.component_props.label }}</span> 13 <span :class="[ReadonlyShow ? 'readonly-show' : '']">{{ item.component_props.label }}</span>
14 - <span v-if="item.component_props.score" style="margin-left: 0.5rem; color: red;">( {{ item.component_props.score }} 分 )</span> 14 + <span v-if="item.component_props.x_score" style="margin-left: 0.5rem; color: red;">( {{ item.component_props.x_score }} 分 )</span>
15 </div> 15 </div>
16 <van-field :name="item.name" :rules="item.rules" style="padding: 0;"> 16 <van-field :name="item.name" :rules="item.rules" style="padding: 0;">
17 <template #input> 17 <template #input>
......
1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-11-24 17:25:36 4 + * @LastEditTime: 2025-11-24 17:54:22
5 * @FilePath: /data-table/src/components/RadioField/index.vue 5 * @FilePath: /data-table/src/components/RadioField/index.vue
6 * @Description: 单项选择控件 6 * @Description: 单项选择控件
7 --> 7 -->
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <span v-if="item.component_props.disabled_show"><van-icon name="https://cdn.ipadbiz.cn/custom_form/icon/closed-eye1.png" /></span> 11 <span v-if="item.component_props.disabled_show"><van-icon name="https://cdn.ipadbiz.cn/custom_form/icon/closed-eye1.png" /></span>
12 <span v-if="item.component_props.required" style="color: red">&nbsp;*</span> 12 <span v-if="item.component_props.required" style="color: red">&nbsp;*</span>
13 <span :class="[ReadonlyShow ? 'readonly-show' : '']">{{ item.component_props.label }}</span> 13 <span :class="[ReadonlyShow ? 'readonly-show' : '']">{{ item.component_props.label }}</span>
14 - <span v-if="item.component_props.score" style="margin-left: 0.5rem; color: red;">( {{ item.component_props.score }} 分 )</span> 14 + <span v-if="item.component_props.x_score" style="margin-left: 0.5rem; color: red;">( {{ item.component_props.x_score }} 分 )</span>
15 </div> 15 </div>
16 <div v-if="item.component_props.note" class="note" v-html="item.component_props.note" /> 16 <div v-if="item.component_props.note" class="note" v-html="item.component_props.note" />
17 <van-field v-if="!item.component_props.readonly" :rules="item.rules"> 17 <van-field v-if="!item.component_props.readonly" :rules="item.rules">
......
1 <!-- 1 <!--
2 * @Date: 2022-07-18 10:22:22 2 * @Date: 2022-07-18 10:22:22
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-11-24 17:47:31 4 + * @LastEditTime: 2025-11-24 17:52:07
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
20 <div v-if="PHeader.type === 'text'" class="PHeader-Text" v-html="PHeader.banner" /> 20 <div v-if="PHeader.type === 'text'" class="PHeader-Text" v-html="PHeader.banner" />
21 </template> 21 </template>
22 <div v-if="PHeader.label" class="table-title" v-html="PHeader.label" /> 22 <div v-if="PHeader.label" class="table-title" v-html="PHeader.label" />
23 - <div v-if="PHeader.score" style="font-weight: bold; color: red; text-align: center; font-size: 0.9rem;">总分: {{ PHeader.score }}</div> 23 + <div v-if="PHeader.x_total_score" style="font-weight: bold; color: red; text-align: center; font-size: 0.9rem;">总分: {{ PHeader.x_total_score }}</div>
24 <div v-if="PHeader.flow_node_name" style="text-align: center;">({{ PHeader.flow_node_name }})</div> 24 <div v-if="PHeader.flow_node_name" style="text-align: center;">({{ PHeader.flow_node_name }})</div>
25 <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" /> 25 <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" />
26 <van-config-provider :theme-vars="themeVars"> 26 <van-config-provider :theme-vars="themeVars">
...@@ -521,8 +521,8 @@ onMounted(async () => { ...@@ -521,8 +521,8 @@ onMounted(async () => {
521 // 处理分页表单结果数据 521 // 处理分页表单结果数据
522 if (object.x_score_map) { 522 if (object.x_score_map) {
523 const score_map = object.x_score_map; 523 const score_map = object.x_score_map;
524 - item.component_props.score = score_map[item.key] || ''; 524 + item.component_props.x_score = score_map[item.key] || '';
525 - PHeader.value.score = score_map.x_total_score || ''; 525 + PHeader.value.x_total_score = score_map.x_total_score || '';
526 } 526 }
527 } 527 }
528 }); 528 });
......