eoss-mobiles 0.2.87 → 0.2.89
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/lib/checkbox.js +28 -1
- package/lib/eoss-mobile.common.js +2935 -2900
- package/lib/flow-btn.js +28 -1
- package/lib/flow-list.js +28 -1
- package/lib/flow.js +36 -9
- package/lib/index.js +1 -1
- package/lib/picker.js +28 -1
- package/lib/radio.js +28 -1
- package/lib/retrial-auth.js +28 -1
- package/lib/selector.js +43 -15
- package/lib/table-column.js +28 -1
- package/lib/table.js +28 -1
- package/lib/utils/util.js +28 -1
- package/package.json +1 -1
- package/packages/flow/src/components/StartFlow.vue +1 -1
- package/packages/selector/src/selector-tree.vue +8 -7
- package/src/index.js +1 -1
- package/src/utils/util.js +33 -1
package/lib/picker.js
CHANGED
|
@@ -1424,6 +1424,32 @@ var generateUUID = function generateUUID() {
|
|
|
1424
1424
|
});
|
|
1425
1425
|
return uuid;
|
|
1426
1426
|
};
|
|
1427
|
+
/**
|
|
1428
|
+
* toFunction
|
|
1429
|
+
* 兼容ie
|
|
1430
|
+
* @desc:函数字符串转函数
|
|
1431
|
+
* @author liufan
|
|
1432
|
+
* @date 2024年12月12日
|
|
1433
|
+
* @param {string} [str] - 函数字符串
|
|
1434
|
+
**/
|
|
1435
|
+
var toFunction = function toFunction(str) {
|
|
1436
|
+
if (str.indexOf('=>') > -1) {
|
|
1437
|
+
var renders = str.split('=>');
|
|
1438
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1439
|
+
// eslint-disable-next-line no-control-regex
|
|
1440
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1441
|
+
var fn = void 0;
|
|
1442
|
+
if (args.length) {
|
|
1443
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1444
|
+
} else {
|
|
1445
|
+
fn = new Function(fnStr);
|
|
1446
|
+
}
|
|
1447
|
+
return fn;
|
|
1448
|
+
} else {
|
|
1449
|
+
// eslint-disable-next-line no-eval
|
|
1450
|
+
return eval(str);
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1427
1453
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1428
1454
|
esEncrypt: esEncrypt,
|
|
1429
1455
|
esDecode: esDecode,
|
|
@@ -1469,7 +1495,8 @@ var generateUUID = function generateUUID() {
|
|
|
1469
1495
|
identical: identical,
|
|
1470
1496
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1471
1497
|
exportXls: exportXls,
|
|
1472
|
-
generateUUID: generateUUID
|
|
1498
|
+
generateUUID: generateUUID,
|
|
1499
|
+
toFunction: toFunction
|
|
1473
1500
|
});
|
|
1474
1501
|
|
|
1475
1502
|
/***/ }),
|
package/lib/radio.js
CHANGED
|
@@ -1424,6 +1424,32 @@ var generateUUID = function generateUUID() {
|
|
|
1424
1424
|
});
|
|
1425
1425
|
return uuid;
|
|
1426
1426
|
};
|
|
1427
|
+
/**
|
|
1428
|
+
* toFunction
|
|
1429
|
+
* 兼容ie
|
|
1430
|
+
* @desc:函数字符串转函数
|
|
1431
|
+
* @author liufan
|
|
1432
|
+
* @date 2024年12月12日
|
|
1433
|
+
* @param {string} [str] - 函数字符串
|
|
1434
|
+
**/
|
|
1435
|
+
var toFunction = function toFunction(str) {
|
|
1436
|
+
if (str.indexOf('=>') > -1) {
|
|
1437
|
+
var renders = str.split('=>');
|
|
1438
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1439
|
+
// eslint-disable-next-line no-control-regex
|
|
1440
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1441
|
+
var fn = void 0;
|
|
1442
|
+
if (args.length) {
|
|
1443
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1444
|
+
} else {
|
|
1445
|
+
fn = new Function(fnStr);
|
|
1446
|
+
}
|
|
1447
|
+
return fn;
|
|
1448
|
+
} else {
|
|
1449
|
+
// eslint-disable-next-line no-eval
|
|
1450
|
+
return eval(str);
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1427
1453
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1428
1454
|
esEncrypt: esEncrypt,
|
|
1429
1455
|
esDecode: esDecode,
|
|
@@ -1469,7 +1495,8 @@ var generateUUID = function generateUUID() {
|
|
|
1469
1495
|
identical: identical,
|
|
1470
1496
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1471
1497
|
exportXls: exportXls,
|
|
1472
|
-
generateUUID: generateUUID
|
|
1498
|
+
generateUUID: generateUUID,
|
|
1499
|
+
toFunction: toFunction
|
|
1473
1500
|
});
|
|
1474
1501
|
|
|
1475
1502
|
/***/ }),
|
package/lib/retrial-auth.js
CHANGED
|
@@ -1425,6 +1425,32 @@ var generateUUID = function generateUUID() {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
return uuid;
|
|
1427
1427
|
};
|
|
1428
|
+
/**
|
|
1429
|
+
* toFunction
|
|
1430
|
+
* 兼容ie
|
|
1431
|
+
* @desc:函数字符串转函数
|
|
1432
|
+
* @author liufan
|
|
1433
|
+
* @date 2024年12月12日
|
|
1434
|
+
* @param {string} [str] - 函数字符串
|
|
1435
|
+
**/
|
|
1436
|
+
var toFunction = function toFunction(str) {
|
|
1437
|
+
if (str.indexOf('=>') > -1) {
|
|
1438
|
+
var renders = str.split('=>');
|
|
1439
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1440
|
+
// eslint-disable-next-line no-control-regex
|
|
1441
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1442
|
+
var fn = void 0;
|
|
1443
|
+
if (args.length) {
|
|
1444
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1445
|
+
} else {
|
|
1446
|
+
fn = new Function(fnStr);
|
|
1447
|
+
}
|
|
1448
|
+
return fn;
|
|
1449
|
+
} else {
|
|
1450
|
+
// eslint-disable-next-line no-eval
|
|
1451
|
+
return eval(str);
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1428
1454
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1429
1455
|
esEncrypt: esEncrypt,
|
|
1430
1456
|
esDecode: esDecode,
|
|
@@ -1470,7 +1496,8 @@ var generateUUID = function generateUUID() {
|
|
|
1470
1496
|
identical: identical,
|
|
1471
1497
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1472
1498
|
exportXls: exportXls,
|
|
1473
|
-
generateUUID: generateUUID
|
|
1499
|
+
generateUUID: generateUUID,
|
|
1500
|
+
toFunction: toFunction
|
|
1474
1501
|
});
|
|
1475
1502
|
|
|
1476
1503
|
/***/ }),
|
package/lib/selector.js
CHANGED
|
@@ -1424,6 +1424,32 @@ var generateUUID = function generateUUID() {
|
|
|
1424
1424
|
});
|
|
1425
1425
|
return uuid;
|
|
1426
1426
|
};
|
|
1427
|
+
/**
|
|
1428
|
+
* toFunction
|
|
1429
|
+
* 兼容ie
|
|
1430
|
+
* @desc:函数字符串转函数
|
|
1431
|
+
* @author liufan
|
|
1432
|
+
* @date 2024年12月12日
|
|
1433
|
+
* @param {string} [str] - 函数字符串
|
|
1434
|
+
**/
|
|
1435
|
+
var toFunction = function toFunction(str) {
|
|
1436
|
+
if (str.indexOf('=>') > -1) {
|
|
1437
|
+
var renders = str.split('=>');
|
|
1438
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1439
|
+
// eslint-disable-next-line no-control-regex
|
|
1440
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1441
|
+
var fn = void 0;
|
|
1442
|
+
if (args.length) {
|
|
1443
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1444
|
+
} else {
|
|
1445
|
+
fn = new Function(fnStr);
|
|
1446
|
+
}
|
|
1447
|
+
return fn;
|
|
1448
|
+
} else {
|
|
1449
|
+
// eslint-disable-next-line no-eval
|
|
1450
|
+
return eval(str);
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1427
1453
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1428
1454
|
esEncrypt: esEncrypt,
|
|
1429
1455
|
esDecode: esDecode,
|
|
@@ -1469,7 +1495,8 @@ var generateUUID = function generateUUID() {
|
|
|
1469
1495
|
identical: identical,
|
|
1470
1496
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1471
1497
|
exportXls: exportXls,
|
|
1472
|
-
generateUUID: generateUUID
|
|
1498
|
+
generateUUID: generateUUID,
|
|
1499
|
+
toFunction: toFunction
|
|
1473
1500
|
});
|
|
1474
1501
|
|
|
1475
1502
|
/***/ }),
|
|
@@ -2186,8 +2213,8 @@ render._withStripped = true
|
|
|
2186
2213
|
|
|
2187
2214
|
// CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=17308961&
|
|
2188
2215
|
|
|
2189
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=
|
|
2190
|
-
var
|
|
2216
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/selector-tree.vue?vue&type=template&id=0cd56a16&
|
|
2217
|
+
var selector_treevue_type_template_id_0cd56a16_render = function () {
|
|
2191
2218
|
var _vm = this
|
|
2192
2219
|
var _h = _vm.$createElement
|
|
2193
2220
|
var _c = _vm._self._c || _h
|
|
@@ -2362,11 +2389,11 @@ var selector_treevue_type_template_id_ef7ffa54_render = function () {
|
|
|
2362
2389
|
1
|
|
2363
2390
|
)
|
|
2364
2391
|
}
|
|
2365
|
-
var
|
|
2366
|
-
|
|
2392
|
+
var selector_treevue_type_template_id_0cd56a16_staticRenderFns = []
|
|
2393
|
+
selector_treevue_type_template_id_0cd56a16_render._withStripped = true
|
|
2367
2394
|
|
|
2368
2395
|
|
|
2369
|
-
// CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=
|
|
2396
|
+
// CONCATENATED MODULE: ./packages/selector/src/selector-tree.vue?vue&type=template&id=0cd56a16&
|
|
2370
2397
|
|
|
2371
2398
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/tree.vue?vue&type=template&id=238091c2&
|
|
2372
2399
|
var treevue_type_template_id_238091c2_render = function () {
|
|
@@ -3860,10 +3887,10 @@ var _props, _methods;
|
|
|
3860
3887
|
if (rCode == 0) {
|
|
3861
3888
|
if (typeof _this5.selectList == 'string') {
|
|
3862
3889
|
_this5.selectData = [];
|
|
3863
|
-
_this5.list = _this5.getSelectData(res.results);
|
|
3890
|
+
_this5.list = _this5.getSelectData(JSON.parse(JSON.stringify(res.results)));
|
|
3864
3891
|
_this5.$emit('update:selectList', _this5.list);
|
|
3865
3892
|
}
|
|
3866
|
-
_this5.personnel = res.results;
|
|
3893
|
+
_this5.personnel = JSON.parse(JSON.stringify(res.results));
|
|
3867
3894
|
var _this = _this5;
|
|
3868
3895
|
_this5.list.filter(function (r) {
|
|
3869
3896
|
_this.personnel.find(function (i) {
|
|
@@ -3872,7 +3899,7 @@ var _props, _methods;
|
|
|
3872
3899
|
}
|
|
3873
3900
|
});
|
|
3874
3901
|
});
|
|
3875
|
-
_this5.genre = res.results;
|
|
3902
|
+
_this5.genre = JSON.parse(JSON.stringify(res.results));
|
|
3876
3903
|
} else {
|
|
3877
3904
|
_this5.$toast(msg);
|
|
3878
3905
|
}
|
|
@@ -3932,7 +3959,7 @@ var _props, _methods;
|
|
|
3932
3959
|
}
|
|
3933
3960
|
});
|
|
3934
3961
|
});
|
|
3935
|
-
if (_this7.isAllCheck && _this7.multiple) {
|
|
3962
|
+
if (_this7.isAllCheck && _this7.multiple && obj.children.length > 0) {
|
|
3936
3963
|
var checkList = obj.children.slice(1, obj.children.length).filter(function (x) {
|
|
3937
3964
|
return x.checked;
|
|
3938
3965
|
});
|
|
@@ -4073,6 +4100,7 @@ var _props, _methods;
|
|
|
4073
4100
|
this.$set(res.obj, 'checked', false);
|
|
4074
4101
|
}
|
|
4075
4102
|
} else {
|
|
4103
|
+
|
|
4076
4104
|
// if (!this.multiple && this.list.length >= 1) {
|
|
4077
4105
|
// this.$toast(this.promptText);
|
|
4078
4106
|
// return;
|
|
@@ -4083,18 +4111,18 @@ var _props, _methods;
|
|
|
4083
4111
|
model.map(function (x) {
|
|
4084
4112
|
_this9.$set(x, 'checked', true);
|
|
4085
4113
|
});
|
|
4086
|
-
(_list = this.list).
|
|
4114
|
+
(_list = this.list).push.apply(_list, model.slice(1, model.length));
|
|
4087
4115
|
} else {
|
|
4088
4116
|
this.$set(res.obj, 'checked', true);
|
|
4089
4117
|
if (!this.multiple) {
|
|
4090
4118
|
this.list = [res.obj];
|
|
4091
4119
|
this.setChecked(this.personnel, res.obj);
|
|
4092
4120
|
} else {
|
|
4093
|
-
this.list.
|
|
4121
|
+
this.list.push(res.obj);
|
|
4094
4122
|
}
|
|
4095
4123
|
}
|
|
4096
4124
|
}
|
|
4097
|
-
if (this.isAllCheck && this.multiple) {
|
|
4125
|
+
if (this.isAllCheck && this.multiple && model[0].isAllCheck) {
|
|
4098
4126
|
var checkList = model.slice(1, model.length).filter(function (x) {
|
|
4099
4127
|
return x.checked;
|
|
4100
4128
|
});
|
|
@@ -4147,8 +4175,8 @@ var _props, _methods;
|
|
|
4147
4175
|
|
|
4148
4176
|
var selector_tree_component = Object(componentNormalizer["a" /* default */])(
|
|
4149
4177
|
src_selector_treevue_type_script_lang_js_,
|
|
4150
|
-
|
|
4151
|
-
|
|
4178
|
+
selector_treevue_type_template_id_0cd56a16_render,
|
|
4179
|
+
selector_treevue_type_template_id_0cd56a16_staticRenderFns,
|
|
4152
4180
|
false,
|
|
4153
4181
|
null,
|
|
4154
4182
|
null,
|
package/lib/table-column.js
CHANGED
|
@@ -1424,6 +1424,32 @@ var generateUUID = function generateUUID() {
|
|
|
1424
1424
|
});
|
|
1425
1425
|
return uuid;
|
|
1426
1426
|
};
|
|
1427
|
+
/**
|
|
1428
|
+
* toFunction
|
|
1429
|
+
* 兼容ie
|
|
1430
|
+
* @desc:函数字符串转函数
|
|
1431
|
+
* @author liufan
|
|
1432
|
+
* @date 2024年12月12日
|
|
1433
|
+
* @param {string} [str] - 函数字符串
|
|
1434
|
+
**/
|
|
1435
|
+
var toFunction = function toFunction(str) {
|
|
1436
|
+
if (str.indexOf('=>') > -1) {
|
|
1437
|
+
var renders = str.split('=>');
|
|
1438
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1439
|
+
// eslint-disable-next-line no-control-regex
|
|
1440
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1441
|
+
var fn = void 0;
|
|
1442
|
+
if (args.length) {
|
|
1443
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1444
|
+
} else {
|
|
1445
|
+
fn = new Function(fnStr);
|
|
1446
|
+
}
|
|
1447
|
+
return fn;
|
|
1448
|
+
} else {
|
|
1449
|
+
// eslint-disable-next-line no-eval
|
|
1450
|
+
return eval(str);
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1427
1453
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1428
1454
|
esEncrypt: esEncrypt,
|
|
1429
1455
|
esDecode: esDecode,
|
|
@@ -1469,7 +1495,8 @@ var generateUUID = function generateUUID() {
|
|
|
1469
1495
|
identical: identical,
|
|
1470
1496
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1471
1497
|
exportXls: exportXls,
|
|
1472
|
-
generateUUID: generateUUID
|
|
1498
|
+
generateUUID: generateUUID,
|
|
1499
|
+
toFunction: toFunction
|
|
1473
1500
|
});
|
|
1474
1501
|
|
|
1475
1502
|
/***/ }),
|
package/lib/table.js
CHANGED
|
@@ -1425,6 +1425,32 @@ var generateUUID = function generateUUID() {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
return uuid;
|
|
1427
1427
|
};
|
|
1428
|
+
/**
|
|
1429
|
+
* toFunction
|
|
1430
|
+
* 兼容ie
|
|
1431
|
+
* @desc:函数字符串转函数
|
|
1432
|
+
* @author liufan
|
|
1433
|
+
* @date 2024年12月12日
|
|
1434
|
+
* @param {string} [str] - 函数字符串
|
|
1435
|
+
**/
|
|
1436
|
+
var toFunction = function toFunction(str) {
|
|
1437
|
+
if (str.indexOf('=>') > -1) {
|
|
1438
|
+
var renders = str.split('=>');
|
|
1439
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1440
|
+
// eslint-disable-next-line no-control-regex
|
|
1441
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1442
|
+
var fn = void 0;
|
|
1443
|
+
if (args.length) {
|
|
1444
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1445
|
+
} else {
|
|
1446
|
+
fn = new Function(fnStr);
|
|
1447
|
+
}
|
|
1448
|
+
return fn;
|
|
1449
|
+
} else {
|
|
1450
|
+
// eslint-disable-next-line no-eval
|
|
1451
|
+
return eval(str);
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1428
1454
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
1429
1455
|
esEncrypt: esEncrypt,
|
|
1430
1456
|
esDecode: esDecode,
|
|
@@ -1470,7 +1496,8 @@ var generateUUID = function generateUUID() {
|
|
|
1470
1496
|
identical: identical,
|
|
1471
1497
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1472
1498
|
exportXls: exportXls,
|
|
1473
|
-
generateUUID: generateUUID
|
|
1499
|
+
generateUUID: generateUUID,
|
|
1500
|
+
toFunction: toFunction
|
|
1474
1501
|
});
|
|
1475
1502
|
|
|
1476
1503
|
/***/ }),
|
package/lib/utils/util.js
CHANGED
|
@@ -1335,6 +1335,32 @@ var generateUUID = function generateUUID() {
|
|
|
1335
1335
|
});
|
|
1336
1336
|
return uuid;
|
|
1337
1337
|
};
|
|
1338
|
+
/**
|
|
1339
|
+
* toFunction
|
|
1340
|
+
* 兼容ie
|
|
1341
|
+
* @desc:函数字符串转函数
|
|
1342
|
+
* @author liufan
|
|
1343
|
+
* @date 2024年12月12日
|
|
1344
|
+
* @param {string} [str] - 函数字符串
|
|
1345
|
+
**/
|
|
1346
|
+
var toFunction = function toFunction(str) {
|
|
1347
|
+
if (str.indexOf('=>') > -1) {
|
|
1348
|
+
var renders = str.split('=>');
|
|
1349
|
+
var args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1350
|
+
// eslint-disable-next-line no-control-regex
|
|
1351
|
+
var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1352
|
+
var fn = void 0;
|
|
1353
|
+
if (args.length) {
|
|
1354
|
+
fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
|
|
1355
|
+
} else {
|
|
1356
|
+
fn = new Function(fnStr);
|
|
1357
|
+
}
|
|
1358
|
+
return fn;
|
|
1359
|
+
} else {
|
|
1360
|
+
// eslint-disable-next-line no-eval
|
|
1361
|
+
return eval(str);
|
|
1362
|
+
}
|
|
1363
|
+
};
|
|
1338
1364
|
exports.default = {
|
|
1339
1365
|
esEncrypt: esEncrypt,
|
|
1340
1366
|
esDecode: esDecode,
|
|
@@ -1380,5 +1406,6 @@ exports.default = {
|
|
|
1380
1406
|
identical: identical,
|
|
1381
1407
|
jsGoPayrollIndexAct: jsGoPayrollIndexAct,
|
|
1382
1408
|
exportXls: exportXls,
|
|
1383
|
-
generateUUID: generateUUID
|
|
1409
|
+
generateUUID: generateUUID,
|
|
1410
|
+
toFunction: toFunction
|
|
1384
1411
|
};
|
package/package.json
CHANGED
|
@@ -752,10 +752,10 @@ export default {
|
|
|
752
752
|
if (rCode == 0) {
|
|
753
753
|
if (typeof this.selectList == 'string') {
|
|
754
754
|
this.selectData = [];
|
|
755
|
-
this.list = this.getSelectData(res.results);
|
|
755
|
+
this.list = this.getSelectData(JSON.parse(JSON.stringify(res.results)));
|
|
756
756
|
this.$emit('update:selectList', this.list);
|
|
757
757
|
}
|
|
758
|
-
this.personnel =
|
|
758
|
+
this.personnel =JSON.parse(JSON.stringify(res.results));
|
|
759
759
|
let _this = this;
|
|
760
760
|
this.list.filter(r => {
|
|
761
761
|
_this.personnel.find(i => {
|
|
@@ -764,7 +764,7 @@ export default {
|
|
|
764
764
|
}
|
|
765
765
|
});
|
|
766
766
|
});
|
|
767
|
-
this.genre = res.results;
|
|
767
|
+
this.genre = JSON.parse(JSON.stringify(res.results));
|
|
768
768
|
} else {
|
|
769
769
|
this.$toast(msg);
|
|
770
770
|
}
|
|
@@ -830,7 +830,7 @@ export default {
|
|
|
830
830
|
}
|
|
831
831
|
});
|
|
832
832
|
});
|
|
833
|
-
if (this.isAllCheck && this.multiple) {
|
|
833
|
+
if (this.isAllCheck && this.multiple && obj.children.length>0) {
|
|
834
834
|
let checkList = obj.children
|
|
835
835
|
.slice(1, obj.children.length)
|
|
836
836
|
.filter(x => x.checked);
|
|
@@ -998,6 +998,7 @@ export default {
|
|
|
998
998
|
this.$set(res.obj, 'checked', false);
|
|
999
999
|
}
|
|
1000
1000
|
} else {
|
|
1001
|
+
|
|
1001
1002
|
// if (!this.multiple && this.list.length >= 1) {
|
|
1002
1003
|
// this.$toast(this.promptText);
|
|
1003
1004
|
// return;
|
|
@@ -1006,18 +1007,18 @@ export default {
|
|
|
1006
1007
|
model.map(x => {
|
|
1007
1008
|
this.$set(x, 'checked', true);
|
|
1008
1009
|
});
|
|
1009
|
-
this.list.
|
|
1010
|
+
this.list.push(...model.slice(1, model.length));
|
|
1010
1011
|
} else {
|
|
1011
1012
|
this.$set(res.obj, 'checked', true);
|
|
1012
1013
|
if (!this.multiple) {
|
|
1013
1014
|
this.list = [res.obj];
|
|
1014
1015
|
this.setChecked(this.personnel, res.obj);
|
|
1015
1016
|
} else {
|
|
1016
|
-
this.list.
|
|
1017
|
+
this.list.push(res.obj);
|
|
1017
1018
|
}
|
|
1018
1019
|
}
|
|
1019
1020
|
}
|
|
1020
|
-
if (this.isAllCheck && this.multiple) {
|
|
1021
|
+
if (this.isAllCheck && this.multiple && model[0].isAllCheck) {
|
|
1021
1022
|
let checkList = model.slice(1, model.length).filter(x => x.checked);
|
|
1022
1023
|
var obj = {};
|
|
1023
1024
|
this.list = this.list.reduce((item, next) => {
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -1377,6 +1377,37 @@ const generateUUID = () => {
|
|
|
1377
1377
|
});
|
|
1378
1378
|
return uuid;
|
|
1379
1379
|
};
|
|
1380
|
+
/**
|
|
1381
|
+
* toFunction
|
|
1382
|
+
* 兼容ie
|
|
1383
|
+
* @desc:函数字符串转函数
|
|
1384
|
+
* @author liufan
|
|
1385
|
+
* @date 2024年12月12日
|
|
1386
|
+
* @param {string} [str] - 函数字符串
|
|
1387
|
+
**/
|
|
1388
|
+
const toFunction = function (str) {
|
|
1389
|
+
if (str.indexOf('=>') > -1) {
|
|
1390
|
+
let renders = str.split('=>');
|
|
1391
|
+
let args = renders[0].replace('(', '').replace(')', '').split(',');
|
|
1392
|
+
// eslint-disable-next-line no-control-regex
|
|
1393
|
+
let fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
|
|
1394
|
+
let fn;
|
|
1395
|
+
if (args.length) {
|
|
1396
|
+
fn = new Function(
|
|
1397
|
+
...args,
|
|
1398
|
+
fnStr
|
|
1399
|
+
);
|
|
1400
|
+
} else {
|
|
1401
|
+
fn = new Function(
|
|
1402
|
+
fnStr
|
|
1403
|
+
);
|
|
1404
|
+
}
|
|
1405
|
+
return fn;
|
|
1406
|
+
} else {
|
|
1407
|
+
// eslint-disable-next-line no-eval
|
|
1408
|
+
return eval(str);
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1380
1411
|
export default {
|
|
1381
1412
|
esEncrypt,
|
|
1382
1413
|
esDecode,
|
|
@@ -1422,5 +1453,6 @@ export default {
|
|
|
1422
1453
|
identical,
|
|
1423
1454
|
jsGoPayrollIndexAct,
|
|
1424
1455
|
exportXls,
|
|
1425
|
-
generateUUID
|
|
1456
|
+
generateUUID,
|
|
1457
|
+
toFunction
|
|
1426
1458
|
};
|