vue2-client 1.18.52 → 1.18.54

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.18.52",
3
+ "version": "1.18.54",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -523,12 +523,16 @@ export default {
523
523
  * @param {Object} conditionParams - 额外的查询条件参数
524
524
  */
525
525
  submitForm(conditionParams = {}) {
526
+ // 备份一下 form 这个函数传递的 condition 仅临时用一下
527
+ // 如果要实质修改 form 从其他地方赋值
528
+ const _from = JSON.parse(JSON.stringify(this.form))
526
529
  // 将外部参数合并到表单中
527
530
  if (Object.keys(conditionParams).length > 0) {
528
531
  this.form = Object.assign({}, this.form, conditionParams)
529
532
  }
530
533
  // 调用现有的 onSubmit 方法,触发 emit
531
534
  this.onSubmit()
535
+ this.form = _from
532
536
  }
533
537
  },
534
538
  mounted() {
@@ -1,5 +1,8 @@
1
1
  <template>
2
2
  <a-card :bordered="false">
3
+ <div style="margin-bottom: 16px">
4
+ <a-button type="primary" @click="handleCustomQuery">查询 XianFeng 数据</a-button>
5
+ </div>
3
6
  <x-form-table
4
7
  title="示例表单"
5
8
  :queryParamsName="queryParamsName"
@@ -14,10 +17,9 @@
14
17
  :defaultQueryForm="{
15
18
  s_f_user_name: '张三'
16
19
  }"
17
- serviceName="af-system"
20
+ serviceName="af-revenue"
18
21
  ref="xFormTable"
19
22
  ></x-form-table>
20
- <div style="height: 100px; width: 100%; background-color: #f0f2f5"></div>
21
23
  </a-card>
22
24
  </template>
23
25
 
@@ -32,7 +34,7 @@ export default {
32
34
  data() {
33
35
  return {
34
36
  // 查询配置文件名
35
- queryParamsName: 'ceshiCRUD',
37
+ queryParamsName: 'ChargeCenterQueryUserCRUD',
36
38
  // 查询配置左侧tree
37
39
  xTreeConfigName: 'addressType',
38
40
  // 新增表单固定值
@@ -51,7 +53,12 @@ export default {
51
53
  },
52
54
 
53
55
  methods: {
54
- // ========== 原有方法 ==========
56
+ handleCustomQuery() {
57
+ this.$refs.xFormTable.queryTable({
58
+ uf_f_alias: 'XianFeng',
59
+ uf_f_card_id: '10500030'
60
+ })
61
+ },
55
62
  rowDblClick(record) {
56
63
  console.log('rowDblClick', record)
57
64
  },
@@ -55,13 +55,13 @@ routerResource.example = {
55
55
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
56
56
  // component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
57
57
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
58
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
58
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
59
59
  // component: () => import('@vue2-client/base-client/components/common/ImagePreviewModal/demo.vue'),
60
60
  // component: () => import('@vue2-client/components/xScrollBox/example.vue'),
61
61
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
62
62
  // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
63
63
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
64
- component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue')
64
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue')
65
65
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
66
66
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
67
67
  // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),