vue2-client 1.8.151 → 1.8.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.151",
3
+ "version": "1.8.152",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -48,20 +48,20 @@
48
48
  <tr :key="rowIndex + '' + jsonArrayItemIndex" v-for="(item, jsonArrayItemIndex) in config.data[row.jsonArrayDataIndex]">
49
49
  <!-- 表头 -->
50
50
  <td class="tdWithBorder" colspan="6">
51
- <template v-if="receivedFunction[rowIndex].labelFunction(config).type === 'key'">
52
- {{ item[receivedFunction[rowIndex].labelFunction(config).content] }}
51
+ <template v-if="receivedFunction[rowIndex].labelFunction(config, item).type === 'key'">
52
+ {{ item[receivedFunction[rowIndex].labelFunction(config, item).content] }}
53
53
  </template>
54
- <template v-if="receivedFunction[rowIndex].labelFunction(config).type === 'value'">
55
- {{ receivedFunction[rowIndex].labelFunction(config).content }}
54
+ <template v-if="receivedFunction[rowIndex].labelFunction(config, item).type === 'value'">
55
+ {{ receivedFunction[rowIndex].labelFunction(config, item).content }}
56
56
  </template>
57
57
  </td>
58
58
  <!-- 内容 -->
59
59
  <td class="tdWithBorder" colspan="6">
60
- <template v-if="receivedFunction[rowIndex].valueFunction(config).type === 'key'">
61
- {{ item[receivedFunction[rowIndex].valueFunction(config).content] }}
60
+ <template v-if="receivedFunction[rowIndex].valueFunction(config, item).type === 'key'">
61
+ {{ item[receivedFunction[rowIndex].valueFunction(config, item).content] }}
62
62
  </template>
63
- <template v-if="receivedFunction[rowIndex].valueFunction(config).type === 'value'">
64
- {{ receivedFunction[rowIndex].valueFunction(config).content }}
63
+ <template v-if="receivedFunction[rowIndex].valueFunction(config, item).type === 'value'">
64
+ {{ receivedFunction[rowIndex].valueFunction(config, item).content }}
65
65
  </template>
66
66
  </td>
67
67
  </tr>
@@ -2,8 +2,9 @@
2
2
  <div>
3
3
  <!-- <XReport :config-name="'test_tableConfig'" :activated-slot-name="'test_tableConfig_slot'"/>-->
4
4
  <!-- <XReport :config-name="'test_tableConfig'" :local-config="test_config_withoutSlot" :config-data="test_config_data"/>-->
5
- <XReport :config-name="'test_tableConfig'" :local-config="test_yangchun" :config-data="test_yangchun_data" :dont-format="true"/>
6
- <!-- <XReport :config-name="'test_table_config_forEditor'" :dont-format="true"/>-->
5
+ <!-- <XReport :config-name="'test_tableConfig'" :local-config="test_yangchun_json" :config-data="test_yangchun_data" :dont-format="true"/>-->
6
+ <XReport :config-name="'test_tableConfig'" :local-config="test_yangchun_json" :config-data="test_yangchun_jsonData" :dont-format="true"/>
7
+ <!-- <XReport :config-name="'test_table_config_forEditor'" :dont-format="true"/>-->
7
8
  <!-- <XReport config-name="test_tableConfig" :local-config="test_config_json" :config-data="test_config_json_data"/>-->
8
9
  </div>
9
10
  </template>
@@ -1165,6 +1166,84 @@ export default {
1165
1166
  f_total_fee: '总金额',
1166
1167
  f_total_gas: '总气量'
1167
1168
  }
1169
+ },
1170
+ test_yangchun_json: {
1171
+ title: {
1172
+ type: 'titleKey',
1173
+ value: 'f_type'
1174
+ },
1175
+ content: [
1176
+ {
1177
+ customFunctionForLabel: "function (config,item) {\n\treturn { type: 'key', content: 'f_project' }\n}",
1178
+ customFunctionForValue: "function (config,item) {\n if (item.f_content === null) {\n return { type: 'value', content: '无' }\n }else {\n return { type: 'key', content: 'f_content'}\n }\n}",
1179
+ jsonArrayDataIndex: 'details',
1180
+ type: 'jsonArray'
1181
+ }
1182
+ ],
1183
+ designMode: 'json'
1184
+ },
1185
+ test_yangchun_jsonData: {
1186
+ imgs: [],
1187
+ details: [
1188
+ {
1189
+ f_project: '旧表表号',
1190
+ f_service_id: 35917,
1191
+ f_is_must: 'false',
1192
+ id: 224392,
1193
+ type: 'string'
1194
+ },
1195
+ {
1196
+ f_project: '新表表号',
1197
+ f_service_id: 35917,
1198
+ f_is_must: 'false',
1199
+ id: 224393,
1200
+ type: 'string'
1201
+ },
1202
+ {
1203
+ f_project: '引入方式',
1204
+ f_service_id: 35917,
1205
+ f_is_must: 'false',
1206
+ id: 224394,
1207
+ type: 'selector'
1208
+ },
1209
+ {
1210
+ f_project: '是否高空作业',
1211
+ f_service_id: 35917,
1212
+ f_is_must: 'false',
1213
+ id: 224395,
1214
+ type: 'selector'
1215
+ },
1216
+ {
1217
+ f_project: '处理结果',
1218
+ f_service_id: 35917,
1219
+ f_is_must: 'false',
1220
+ id: 224396,
1221
+ type: 'selector'
1222
+ },
1223
+ {
1224
+ f_project: '位置',
1225
+ f_service_id: 35917,
1226
+ f_is_must: 'false',
1227
+ id: 224397,
1228
+ type: 'selector'
1229
+ },
1230
+ {
1231
+ f_project: '补装管卡',
1232
+ f_service_id: 35917,
1233
+ f_is_must: 'false',
1234
+ id: 224398,
1235
+ type: 'selector'
1236
+ },
1237
+ {
1238
+ f_project: '备注',
1239
+ f_service_id: 35917,
1240
+ f_is_must: 'false',
1241
+ id: 224399,
1242
+ type: 'string'
1243
+ }
1244
+ ],
1245
+ id: 35917,
1246
+ f_type: '改管维修'
1168
1247
  }
1169
1248
  }
1170
1249
  },