vue2-client 1.9.113 → 1.9.115

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.9.113",
3
+ "version": "1.9.115",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -21,7 +21,7 @@ export default {
21
21
 
22
22
  <template>
23
23
  <a-card>
24
- <x-add-native-form ref="xAddFrom" @getinfo="aaa"/>
24
+ <x-add-native-form ref="xAddFrom" @getinfo="aaa" @onSubmit="aaa"/>
25
25
  </a-card>
26
26
  </template>
27
27
 
@@ -184,6 +184,7 @@
184
184
  v-else-if="attr.type === 'checkbox' && show"
185
185
  :flex="attr.flex">
186
186
  <a-form-model-item
187
+ v-if="!attr.showMode || mode === '查询' || attr.showMode === 'select' "
187
188
  :ref="attr.model"
188
189
  :label="showLabel?attr.name:undefined"
189
190
  :prop="attr.prop ? attr.prop : attr.model">
@@ -249,6 +250,17 @@
249
250
  </a-select-option>
250
251
  </a-select>
251
252
  </a-form-model-item>
253
+ <a-form-model-item
254
+ v-else
255
+ :ref="attr.model"
256
+ :label="showLabel?attr.name:undefined"
257
+ :prop="attr.prop ? attr.prop : attr.model">
258
+ <a-checkbox-group
259
+ v-model="form[attr.model]"
260
+ :options="option"
261
+ @change="attr.dataChangeFunc && debouncedDataChangeFunc()"
262
+ />
263
+ </a-form-model-item>
252
264
  </x-form-col>
253
265
  <!-- 单选框 -->
254
266
  <x-form-col
@@ -1089,7 +1101,7 @@ export default {
1089
1101
  let source = this.attr.keyName.substring(7)
1090
1102
  const userid = this.currUser.id
1091
1103
  let roleName = 'roleName'
1092
- if (source.startsWith('根据角��[') && source.endsWith(']获取人员')) {
1104
+ if (source.startsWith('根据角色[') && source.endsWith(']获取人员')) {
1093
1105
  const startIndex = source.indexOf('[') + 1
1094
1106
  const endIndex = source.indexOf(']', startIndex)
1095
1107
  roleName = source.substring(startIndex, endIndex)
@@ -1223,7 +1235,7 @@ export default {
1223
1235
  this.emitFunc(func, groupName)
1224
1236
  },
1225
1237
  emitFunc (func, data) {
1226
- this.$emit('x-form-item-emit-func', func, data, data.model ? this.form[data.model] : this.form)
1238
+ this.$emit('x-form-item-emit-func', func, data, data?.model ? this.form[data.model] : this.form)
1227
1239
  },
1228
1240
  itemMounted (h) {
1229
1241
  this.$emit('mounted', h)
@@ -37,7 +37,7 @@ export default {
37
37
  data () {
38
38
  return {
39
39
  // configName: 'medicalRecordCover'
40
- configName: 'physicianOrderEntryCover'
40
+ configName: 'threeHealthCenterCover'
41
41
  // configName: 'medOrderManaActCover'
42
42
  }
43
43
  },
@@ -84,10 +84,10 @@ routerResource.example = {
84
84
  path: 'default',
85
85
  name: '示例页面',
86
86
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
87
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
87
+ component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
88
88
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
89
89
  // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
90
- component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
90
+ // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
91
91
  // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
92
92
  // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
93
93
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),