vue2-client 1.9.167 → 1.9.168

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.167",
3
+ "version": "1.9.168",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -610,8 +610,8 @@ export default {
610
610
  * @param actionType 操作类型
611
611
  * @param fun 向上级传递的事件
612
612
  */
613
- action (record, id, actionType, fun = 'action') {
614
- this.$emit(fun, record, id, actionType)
613
+ action (record, id, actionType, fun = 'action', index) {
614
+ this.$emit(fun, record, id, actionType, index)
615
615
  },
616
616
  treeOnChecked (checkedKeys, deepNodes, deepKeys) {
617
617
  this.$emit('treeOnChecked', checkedKeys, deepNodes, deepKeys)
@@ -25,7 +25,7 @@ export default {
25
25
  data () {
26
26
  return {
27
27
  // 查询配置文件名
28
- queryParamsName: 'outpatientRegistrationCRUD',
28
+ queryParamsName: 'routineButtonCRUD',
29
29
  // 查询配置左侧tree
30
30
  // xTreeConfigName: 'addressType',
31
31
  // 新增表单固定值
@@ -247,7 +247,7 @@
247
247
  </a-dropdown>
248
248
  </template>
249
249
  <template v-if="!item.actionArr || item.actionArr.length === 0">
250
- <a @click="action(record, item.dataIndex)">{{ item.slotValue }}</a>
250
+ <a @click="action(record, item.dataIndex,'action', index)">{{ item.slotValue }}</a>
251
251
  </template>
252
252
  </span>
253
253
  </template>
@@ -579,7 +579,17 @@ export default {
579
579
  this.$emit('gotoUserDetail', key, value, record)
580
580
  },
581
581
  getFromItem (model, text, record, index) {
582
- const aa = this.formItems.find(item => item.model === model && item.editRow)
582
+ const aa = this.formItems.reduce((acc, item) => {
583
+ if (item.type === 'group') {
584
+ const foundItem = item.groupItems.find(_item => _item.model === model && _item.editRow)
585
+ if (foundItem) {
586
+ acc = foundItem
587
+ }
588
+ } else if (item.model === model && item.editRow) {
589
+ acc = item
590
+ }
591
+ return acc
592
+ }, null)
583
593
  if (aa) {
584
594
  const tempConfig = JSON.parse(JSON.stringify(aa))
585
595
  // 如果找到了字段
@@ -894,9 +904,10 @@ export default {
894
904
  * @param record 本条数据
895
905
  * @param actionType 操作类型
896
906
  * @param func 事件默认 action
907
+ * @param index 行下标
897
908
  */
898
- action (record, actionType, func = 'action') {
899
- this.$emit('action', record, record[this.getPrimaryKeyName()], actionType, func)
909
+ action (record, actionType, func = 'action', index) {
910
+ this.$emit('action', record, record[this.getPrimaryKeyName()], actionType, func, index)
900
911
  },
901
912
  // 看板点击事件
902
913
  handleCardEmit (data, eventName) {