@kmkf-fe-packages/services-components 0.13.0-alpha.6 → 0.13.0-alpha.7
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.
|
@@ -15,7 +15,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL } from "../../constant";
|
|
18
|
-
import { replaceCheck } from '@/model/servers/api';
|
|
18
|
+
// import { replaceCheck } from '@/model/servers/api';
|
|
19
19
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
20
20
|
var _this = this,
|
|
21
21
|
_options$componentCon;
|
|
@@ -138,7 +138,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
138
138
|
validator: function () {
|
|
139
139
|
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
140
140
|
var _this$componentConfig10;
|
|
141
|
-
var
|
|
141
|
+
var params;
|
|
142
142
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
143
143
|
while (1) switch (_context.prev = _context.next) {
|
|
144
144
|
case 0:
|
|
@@ -148,28 +148,21 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
148
148
|
}
|
|
149
149
|
return _context.abrupt("return", Promise.resolve());
|
|
150
150
|
case 2:
|
|
151
|
-
if (
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
case 6:
|
|
165
|
-
_yield$replaceCheck = _context.sent;
|
|
166
|
-
resultList = _yield$replaceCheck.data.resultList;
|
|
167
|
-
if (!((resultList === null || resultList === void 0 ? void 0 : (_resultList$ = resultList[0]) === null || _resultList$ === void 0 ? void 0 : _resultList$.repeatCount) > 0)) {
|
|
168
|
-
_context.next = 10;
|
|
169
|
-
break;
|
|
151
|
+
if ((_this$componentConfig10 = _this.componentConfig) !== null && _this$componentConfig10 !== void 0 && _this$componentConfig10.replaceWarn) {
|
|
152
|
+
params = {
|
|
153
|
+
templateId: _this.templateId,
|
|
154
|
+
needCheckComponentList: [{
|
|
155
|
+
componentKey: _this.formField,
|
|
156
|
+
componentValue: value
|
|
157
|
+
}]
|
|
158
|
+
}; // const {
|
|
159
|
+
// data: { resultList },
|
|
160
|
+
// } = await replaceCheck(params)
|
|
161
|
+
// if (resultList?.[0]?.repeatCount > 0) {
|
|
162
|
+
// return Promise.reject(new Error('内容已存在,不能重复提交'))
|
|
163
|
+
// }
|
|
170
164
|
}
|
|
171
|
-
|
|
172
|
-
case 10:
|
|
165
|
+
case 3:
|
|
173
166
|
case "end":
|
|
174
167
|
return _context.stop();
|
|
175
168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.13.0-alpha.
|
|
3
|
+
"version": "0.13.0-alpha.7",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "40d4a66d7a17643ac16dd4dea4d8cd7e1b4e234c"
|
|
44
44
|
}
|