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
|
@@ -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)
|
|
@@ -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.
|
|
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) {
|