|
|
@@ -303,7 +303,7 @@ export function tableEventList(obj, btnObj, row, opType = 'only') {
|
|
|
if (obj.$listeners && !obj.$listeners.onListEvent) {
|
|
|
console.error('未定义emit方法:onListEvent, ' + type)
|
|
|
}
|
|
|
- obj.$emit('onListEvent', type, row);//自定义事件
|
|
|
+ obj.$emit('onListEvent', type, row, btnObj);//自定义事件
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -995,7 +995,7 @@ export function unitInitDataTableList(obj) {
|
|
|
obj.loading = true;
|
|
|
obj.tableData = [];
|
|
|
let item = obj.queryURL['list'],
|
|
|
- queryData =!obj.queryParam || isTypeof(obj.queryParam) === 'function'
|
|
|
+ queryData = !obj.queryParam || isTypeof(obj.queryParam) === 'function'
|
|
|
? emitOnReqParams(obj, 'list')
|
|
|
: getQueryParams(obj, true),
|
|
|
// table中插入一条记录
|
|
|
@@ -1142,7 +1142,10 @@ export async function reloadItemSelectList(obj, type, field) {
|
|
|
}
|
|
|
|
|
|
post = item.params;
|
|
|
-
|
|
|
+ // 存在扩展参数函数
|
|
|
+ if (item.extParamsFunc && isTypeof(item.extParamsFunc) == 'function') {
|
|
|
+ post = item.extParamsFunc(obj.rowData, post)
|
|
|
+ }
|
|
|
let tmpAxios = Object.assign({}, obj.axios, item.axios);
|
|
|
await selectListRequest(selectlist, item, field, mergeRequestParams(post, obj._publicParams), tmpAxios, obj.options);
|
|
|
}
|