@xatlas/rainbow-core 2.3.4 → 2.3.6
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/dist/core.common.js +235 -196
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +235 -196
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +5 -5
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.common.js
CHANGED
|
@@ -1437,17 +1437,6 @@ module.exports =
|
|
|
1437
1437
|
|
|
1438
1438
|
}));
|
|
1439
1439
|
|
|
1440
|
-
/***/ }),
|
|
1441
|
-
|
|
1442
|
-
/***/ "10dd":
|
|
1443
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1444
|
-
|
|
1445
|
-
"use strict";
|
|
1446
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_283d0e70_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("29ca");
|
|
1447
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_283d0e70_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_283d0e70_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
1448
|
-
/* unused harmony reexport * */
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
1440
|
/***/ }),
|
|
1452
1441
|
|
|
1453
1442
|
/***/ "13e9":
|
|
@@ -1551,6 +1540,13 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
1551
1540
|
}
|
|
1552
1541
|
|
|
1553
1542
|
|
|
1543
|
+
/***/ }),
|
|
1544
|
+
|
|
1545
|
+
/***/ "1898":
|
|
1546
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1547
|
+
|
|
1548
|
+
// extracted by mini-css-extract-plugin
|
|
1549
|
+
|
|
1554
1550
|
/***/ }),
|
|
1555
1551
|
|
|
1556
1552
|
/***/ "1aba":
|
|
@@ -2693,23 +2689,25 @@ var view_store_getters = ['schema', 'model', 'idName', 'nodeName', 'parentIdName
|
|
|
2693
2689
|
},
|
|
2694
2690
|
computed: view_store_objectSpread(view_store_objectSpread(view_store_objectSpread({}, mapState(store_states)), mapGetters(view_store_getters)), {}, {
|
|
2695
2691
|
configs: function configs() {
|
|
2696
|
-
|
|
2697
|
-
_this$schema
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2692
|
+
if (this.schema) {
|
|
2693
|
+
var _this$schema = this.schema,
|
|
2694
|
+
_this$schema$configs = _this$schema.configs,
|
|
2695
|
+
configs = _this$schema$configs === void 0 ? [] : _this$schema$configs,
|
|
2696
|
+
_this$schema$resConfi = _this$schema.resConfigs,
|
|
2697
|
+
resConfigs = _this$schema$resConfi === void 0 ? [] : _this$schema$resConfi;
|
|
2698
|
+
var list = [].concat(store_toConsumableArray(configs), store_toConsumableArray(resConfigs));
|
|
2699
|
+
return Object.fromEntries(list.map(function (c) {
|
|
2700
|
+
var value = c.value;
|
|
2701
|
+
try {
|
|
2702
|
+
if (c.type === 'JSON') {
|
|
2703
|
+
value = JSON.parse(c.value);
|
|
2704
|
+
}
|
|
2705
|
+
} catch (error) {
|
|
2706
|
+
// console.error(error)
|
|
2707
2707
|
}
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
return [c.key, value];
|
|
2712
|
-
}));
|
|
2708
|
+
return [c.key, value];
|
|
2709
|
+
}));
|
|
2710
|
+
}
|
|
2713
2711
|
},
|
|
2714
2712
|
defaults: function defaults() {
|
|
2715
2713
|
var _this$schema2 = this.schema,
|
|
@@ -2770,8 +2768,8 @@ var view_store_getters = ['schema', 'model', 'idName', 'nodeName', 'parentIdName
|
|
|
2770
2768
|
};
|
|
2771
2769
|
};
|
|
2772
2770
|
});
|
|
2773
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/views/ModelList.vue?vue&type=template&id=
|
|
2774
|
-
var
|
|
2771
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/views/ModelList.vue?vue&type=template&id=c550d45a
|
|
2772
|
+
var ModelListvue_type_template_id_c550d45a_render = function render() {
|
|
2775
2773
|
var _vm = this,
|
|
2776
2774
|
_c = _vm._self._c;
|
|
2777
2775
|
return _c('a-spin', {
|
|
@@ -2988,9 +2986,9 @@ var ModelListvue_type_template_id_ed4461d6_render = function render() {
|
|
|
2988
2986
|
}
|
|
2989
2987
|
}, [_vm._v(" 确认 ")])], 1)], 1)], 1) : _vm._e()], 1) : _vm._e()], 1) : _vm._e()]);
|
|
2990
2988
|
};
|
|
2991
|
-
var
|
|
2989
|
+
var ModelListvue_type_template_id_c550d45a_staticRenderFns = [];
|
|
2992
2990
|
|
|
2993
|
-
// CONCATENATED MODULE: ../src/web/components/views/ModelList.vue?vue&type=template&id=
|
|
2991
|
+
// CONCATENATED MODULE: ../src/web/components/views/ModelList.vue?vue&type=template&id=c550d45a
|
|
2994
2992
|
|
|
2995
2993
|
// CONCATENATED MODULE: ../src/core/view/base.js
|
|
2996
2994
|
/* harmony default export */ var view_base = ({
|
|
@@ -4899,6 +4897,93 @@ function commit_asyncToGenerator(fn) { return function () { var self = this, arg
|
|
|
4899
4897
|
}
|
|
4900
4898
|
}
|
|
4901
4899
|
});
|
|
4900
|
+
// CONCATENATED MODULE: ../src/core/view/cell.js
|
|
4901
|
+
var listFilter = function listFilter(cellValue, attr) {
|
|
4902
|
+
var text = cellValue;
|
|
4903
|
+
var list = attr.list.split(',').map(function (item) {
|
|
4904
|
+
return item.split(':');
|
|
4905
|
+
});
|
|
4906
|
+
text = list.find(function (item) {
|
|
4907
|
+
return String(item[0]) === String(cellValue);
|
|
4908
|
+
});
|
|
4909
|
+
text = text ? text[1] ? text[1] : text[0] : '-';
|
|
4910
|
+
return text;
|
|
4911
|
+
};
|
|
4912
|
+
var wordbookFilter = function wordbookFilter(cellValue, attr) {
|
|
4913
|
+
var text = cellValue;
|
|
4914
|
+
var label = attr.typeObject.model.attrs.find(function (item) {
|
|
4915
|
+
return item.display === 'title';
|
|
4916
|
+
});
|
|
4917
|
+
var idName = attr.typeObject.model.idName;
|
|
4918
|
+
function find(value, list) {
|
|
4919
|
+
var result = null;
|
|
4920
|
+
for (var i = 0; i < list.length; i++) {
|
|
4921
|
+
if (String(list[i][idName]) === String(value)) {
|
|
4922
|
+
result = list[i];
|
|
4923
|
+
} else if (list[i]._childList) {
|
|
4924
|
+
result = find(value, list[i]._childList);
|
|
4925
|
+
}
|
|
4926
|
+
if (result) {
|
|
4927
|
+
return result;
|
|
4928
|
+
}
|
|
4929
|
+
}
|
|
4930
|
+
return result;
|
|
4931
|
+
}
|
|
4932
|
+
text = find(cellValue, attr.typeObject.data.collection);
|
|
4933
|
+
text = text ? text[label ? label.name : attr.typeObject.model.idName] : !cellValue ? '' : '-';
|
|
4934
|
+
return text;
|
|
4935
|
+
};
|
|
4936
|
+
var datetimeFilter = function datetimeFilter(cellValue, attr, moment) {
|
|
4937
|
+
var format;
|
|
4938
|
+
switch (attr.dataType) {
|
|
4939
|
+
case 'year':
|
|
4940
|
+
format = 'YYYY';
|
|
4941
|
+
break;
|
|
4942
|
+
case 'month':
|
|
4943
|
+
format = 'YYYY-MM';
|
|
4944
|
+
break;
|
|
4945
|
+
case 'date':
|
|
4946
|
+
format = 'YYYY-MM-DD';
|
|
4947
|
+
break;
|
|
4948
|
+
case 'datetime':
|
|
4949
|
+
format = 'YYYY-MM-DD HH:mm';
|
|
4950
|
+
break;
|
|
4951
|
+
default:
|
|
4952
|
+
format = 'YYYY-MM-DD HH:mm';
|
|
4953
|
+
break;
|
|
4954
|
+
}
|
|
4955
|
+
return moment(cellValue).format(format);
|
|
4956
|
+
};
|
|
4957
|
+
/* harmony default export */ var cell = ({
|
|
4958
|
+
methods: {
|
|
4959
|
+
formatter: function formatter(row, cellValue, attr) {
|
|
4960
|
+
var text = cellValue;
|
|
4961
|
+
if (attr.list && cellValue) {
|
|
4962
|
+
if (['checkbox', 'multiple', 'tree-suggests'].includes(attr.control)) {
|
|
4963
|
+
text = cellValue && cellValue.split(',').map(function (value) {
|
|
4964
|
+
return listFilter(value, attr);
|
|
4965
|
+
}).join(',');
|
|
4966
|
+
} else {
|
|
4967
|
+
text = listFilter(cellValue, attr);
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4970
|
+
if (attr.dataType === 'wordbook' && attr.typeObject && cellValue) {
|
|
4971
|
+
if (['checkbox', 'multiple', 'tree-suggests'].includes(attr.control)) {
|
|
4972
|
+
text = cellValue.split(',').map(function (value) {
|
|
4973
|
+
return wordbookFilter(value, attr);
|
|
4974
|
+
}).join(',');
|
|
4975
|
+
} else {
|
|
4976
|
+
text = wordbookFilter(cellValue, attr);
|
|
4977
|
+
}
|
|
4978
|
+
}
|
|
4979
|
+
var times = ['year', 'month', 'date', 'datetime', 'time'];
|
|
4980
|
+
if (times.includes(attr.dataType) && (cellValue || cellValue === 0)) {
|
|
4981
|
+
text = datetimeFilter(cellValue, attr, this.moment);
|
|
4982
|
+
}
|
|
4983
|
+
return text;
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
});
|
|
4902
4987
|
// CONCATENATED MODULE: ../src/core/view/action.js
|
|
4903
4988
|
function action_typeof(o) { "@babel/helpers - typeof"; return action_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, action_typeof(o); }
|
|
4904
4989
|
function action_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ action_regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == action_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(action_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
@@ -4915,6 +5000,7 @@ function action_toPrimitive(t, r) { if ("object" != action_typeof(t) || !t) retu
|
|
|
4915
5000
|
|
|
4916
5001
|
|
|
4917
5002
|
|
|
5003
|
+
|
|
4918
5004
|
var ACTION_ACCESS = {
|
|
4919
5005
|
create: ['createonly', 'write', 'deepwrite'],
|
|
4920
5006
|
update: ['updateonly', 'write', 'deepwrite']
|
|
@@ -4934,7 +5020,7 @@ var SHOW_RULES = {
|
|
|
4934
5020
|
}
|
|
4935
5021
|
};
|
|
4936
5022
|
/* harmony default export */ var view_action = ({
|
|
4937
|
-
mixins: [action_base, flow, action_commit],
|
|
5023
|
+
mixins: [action_base, flow, action_commit, cell],
|
|
4938
5024
|
data: function data() {
|
|
4939
5025
|
return {
|
|
4940
5026
|
action: null,
|
|
@@ -5384,15 +5470,17 @@ var SHOW_RULES = {
|
|
|
5384
5470
|
}();
|
|
5385
5471
|
|
|
5386
5472
|
// confirmActionDialog 有值则提交会二次弹窗提醒
|
|
5387
|
-
// 配置例子:{"confirmActionDialog":"${person_name}的状态是${seq_name}"},${}中可以取当前行上的字段
|
|
5388
5473
|
if (confirmActionDialog) {
|
|
5389
5474
|
var regex = /\$\{(\w+)\}/g;
|
|
5390
5475
|
|
|
5391
5476
|
// 首先,创建一个函数来替换单个对象的所有占位符
|
|
5392
5477
|
var replaceForOneSelection = function replaceForOneSelection(obj) {
|
|
5393
|
-
return confirmActionDialog.replace(regex, function (match) {
|
|
5478
|
+
return confirmActionDialog.content.replace(regex, function (match) {
|
|
5394
5479
|
var key = match.substring(2, match.length - 1);
|
|
5395
|
-
|
|
5480
|
+
var attr = _this5.columns.find(function (item) {
|
|
5481
|
+
return item.key === key;
|
|
5482
|
+
}) || null;
|
|
5483
|
+
return _this5.formatter(null, obj[key], attr === null || attr === void 0 ? void 0 : attr.schema);
|
|
5396
5484
|
});
|
|
5397
5485
|
};
|
|
5398
5486
|
|
|
@@ -5401,8 +5489,8 @@ var SHOW_RULES = {
|
|
|
5401
5489
|
return replaceForOneSelection(s);
|
|
5402
5490
|
});
|
|
5403
5491
|
|
|
5404
|
-
//
|
|
5405
|
-
var finalString = replacedStrings.join(',');
|
|
5492
|
+
// onfirmActionDialog.type 值为:summary(概括,只展示所选数据第一条数据的值)、detailed(详细,展示所选数据每一条数据的值,并用“,”隔开)
|
|
5493
|
+
var finalString = confirmActionDialog.type === 'summary' ? replacedStrings[0] : replacedStrings.join(',');
|
|
5406
5494
|
this.$confirm({
|
|
5407
5495
|
title: '请再次确认以下信息,确认无误后提交!',
|
|
5408
5496
|
content: "".concat(finalString, "\u3002"),
|
|
@@ -5501,93 +5589,6 @@ var SHOW_RULES = {
|
|
|
5501
5589
|
this.unwatchs = [];
|
|
5502
5590
|
}
|
|
5503
5591
|
});
|
|
5504
|
-
// CONCATENATED MODULE: ../src/core/view/cell.js
|
|
5505
|
-
var listFilter = function listFilter(cellValue, attr) {
|
|
5506
|
-
var text = cellValue;
|
|
5507
|
-
var list = attr.list.split(',').map(function (item) {
|
|
5508
|
-
return item.split(':');
|
|
5509
|
-
});
|
|
5510
|
-
text = list.find(function (item) {
|
|
5511
|
-
return String(item[0]) === String(cellValue);
|
|
5512
|
-
});
|
|
5513
|
-
text = text ? text[1] ? text[1] : text[0] : '-';
|
|
5514
|
-
return text;
|
|
5515
|
-
};
|
|
5516
|
-
var wordbookFilter = function wordbookFilter(cellValue, attr) {
|
|
5517
|
-
var text = cellValue;
|
|
5518
|
-
var label = attr.typeObject.model.attrs.find(function (item) {
|
|
5519
|
-
return item.display === 'title';
|
|
5520
|
-
});
|
|
5521
|
-
var idName = attr.typeObject.model.idName;
|
|
5522
|
-
function find(value, list) {
|
|
5523
|
-
var result = null;
|
|
5524
|
-
for (var i = 0; i < list.length; i++) {
|
|
5525
|
-
if (String(list[i][idName]) === String(value)) {
|
|
5526
|
-
result = list[i];
|
|
5527
|
-
} else if (list[i]._childList) {
|
|
5528
|
-
result = find(value, list[i]._childList);
|
|
5529
|
-
}
|
|
5530
|
-
if (result) {
|
|
5531
|
-
return result;
|
|
5532
|
-
}
|
|
5533
|
-
}
|
|
5534
|
-
return result;
|
|
5535
|
-
}
|
|
5536
|
-
text = find(cellValue, attr.typeObject.data.collection);
|
|
5537
|
-
text = text ? text[label ? label.name : attr.typeObject.model.idName] : !cellValue ? '' : '-';
|
|
5538
|
-
return text;
|
|
5539
|
-
};
|
|
5540
|
-
var datetimeFilter = function datetimeFilter(cellValue, attr, moment) {
|
|
5541
|
-
var format;
|
|
5542
|
-
switch (attr.dataType) {
|
|
5543
|
-
case 'year':
|
|
5544
|
-
format = 'YYYY';
|
|
5545
|
-
break;
|
|
5546
|
-
case 'month':
|
|
5547
|
-
format = 'YYYY-MM';
|
|
5548
|
-
break;
|
|
5549
|
-
case 'date':
|
|
5550
|
-
format = 'YYYY-MM-DD';
|
|
5551
|
-
break;
|
|
5552
|
-
case 'datetime':
|
|
5553
|
-
format = 'YYYY-MM-DD HH:mm';
|
|
5554
|
-
break;
|
|
5555
|
-
default:
|
|
5556
|
-
format = 'YYYY-MM-DD HH:mm';
|
|
5557
|
-
break;
|
|
5558
|
-
}
|
|
5559
|
-
return moment(cellValue).format(format);
|
|
5560
|
-
};
|
|
5561
|
-
/* harmony default export */ var cell = ({
|
|
5562
|
-
methods: {
|
|
5563
|
-
formatter: function formatter(row, cellValue, attr) {
|
|
5564
|
-
var text = cellValue;
|
|
5565
|
-
if (attr.list && cellValue) {
|
|
5566
|
-
if (['checkbox', 'multiple', 'tree-suggests'].includes(attr.control)) {
|
|
5567
|
-
text = cellValue && cellValue.split(',').map(function (value) {
|
|
5568
|
-
return listFilter(value, attr);
|
|
5569
|
-
}).join(',');
|
|
5570
|
-
} else {
|
|
5571
|
-
text = listFilter(cellValue, attr);
|
|
5572
|
-
}
|
|
5573
|
-
}
|
|
5574
|
-
if (attr.dataType === 'wordbook' && attr.typeObject && cellValue) {
|
|
5575
|
-
if (['checkbox', 'multiple', 'tree-suggests'].includes(attr.control)) {
|
|
5576
|
-
text = cellValue.split(',').map(function (value) {
|
|
5577
|
-
return wordbookFilter(value, attr);
|
|
5578
|
-
}).join(',');
|
|
5579
|
-
} else {
|
|
5580
|
-
text = wordbookFilter(cellValue, attr);
|
|
5581
|
-
}
|
|
5582
|
-
}
|
|
5583
|
-
var times = ['year', 'month', 'date', 'datetime', 'time'];
|
|
5584
|
-
if (times.includes(attr.dataType) && (cellValue || cellValue === 0)) {
|
|
5585
|
-
text = datetimeFilter(cellValue, attr, this.moment);
|
|
5586
|
-
}
|
|
5587
|
-
return text;
|
|
5588
|
-
}
|
|
5589
|
-
}
|
|
5590
|
-
});
|
|
5591
5592
|
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/widgets/list/Table.vue?vue&type=template&id=77844be2
|
|
5592
5593
|
var Tablevue_type_template_id_77844be2_render = function render() {
|
|
5593
5594
|
var _vm = this,
|
|
@@ -6130,8 +6131,9 @@ function form_base_toPrimitive(t, r) { if ("object" != form_base_typeof(t) || !t
|
|
|
6130
6131
|
}
|
|
6131
6132
|
}
|
|
6132
6133
|
});
|
|
6133
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=
|
|
6134
|
-
var
|
|
6134
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/forms/Item.vue?vue&type=template&id=e04613b0
|
|
6135
|
+
var Itemvue_type_template_id_e04613b0_render = function render() {
|
|
6136
|
+
var _vm$schema$params;
|
|
6135
6137
|
var _vm = this,
|
|
6136
6138
|
_c = _vm._self._c;
|
|
6137
6139
|
return (_vm.changeMode ? _vm.multiConditionStatus : _vm.showModel) ? _c('a-form-model-item', {
|
|
@@ -6139,7 +6141,6 @@ var Itemvue_type_template_id_283d0e70_render = function render() {
|
|
|
6139
6141
|
attrs: {
|
|
6140
6142
|
"label": _vm.label,
|
|
6141
6143
|
"help": _vm.help,
|
|
6142
|
-
"extra": _vm.extra,
|
|
6143
6144
|
"validate-status": _vm.validateStatus,
|
|
6144
6145
|
"colon": false,
|
|
6145
6146
|
"has-feedback": false,
|
|
@@ -6589,6 +6590,7 @@ var Itemvue_type_template_id_283d0e70_render = function render() {
|
|
|
6589
6590
|
},
|
|
6590
6591
|
slot: "addonAfter"
|
|
6591
6592
|
})], 1) : _vm.schema.control === 'textarea' ? _c('a-textarea', {
|
|
6593
|
+
ref: "aInput",
|
|
6592
6594
|
staticStyle: {
|
|
6593
6595
|
"width": "100%",
|
|
6594
6596
|
"min-width": "199px"
|
|
@@ -6613,6 +6615,7 @@ var Itemvue_type_template_id_283d0e70_render = function render() {
|
|
|
6613
6615
|
}
|
|
6614
6616
|
}
|
|
6615
6617
|
}) : _vm.schema.control === 'csv-json' ? _c('span', [_c('a-textarea', {
|
|
6618
|
+
ref: "aInput",
|
|
6616
6619
|
staticStyle: {
|
|
6617
6620
|
"width": "100%",
|
|
6618
6621
|
"min-width": "199px"
|
|
@@ -6860,11 +6863,25 @@ var Itemvue_type_template_id_283d0e70_render = function render() {
|
|
|
6860
6863
|
on: {
|
|
6861
6864
|
"selected": _vm.handlePickerSelected
|
|
6862
6865
|
}
|
|
6863
|
-
}, 'Picker', _vm.pickerViewOptions, false)) : _vm._e()], 1) : _vm._e()
|
|
6866
|
+
}, 'Picker', _vm.pickerViewOptions, false)) : _vm._e()], 1) : _vm._e(), (_vm$schema$params = _vm.schema.params) !== null && _vm$schema$params !== void 0 && (_vm$schema$params = _vm$schema$params.control) !== null && _vm$schema$params !== void 0 && _vm$schema$params.shortcut ? _c('div', {
|
|
6867
|
+
attrs: {
|
|
6868
|
+
"slot": "extra"
|
|
6869
|
+
},
|
|
6870
|
+
slot: "extra"
|
|
6871
|
+
}, _vm._l(_vm.schema.params.control.shortcut.split(','), function (item) {
|
|
6872
|
+
return _c('a-tag', {
|
|
6873
|
+
key: item,
|
|
6874
|
+
on: {
|
|
6875
|
+
"click": function click($event) {
|
|
6876
|
+
return _vm.handleTagInput(item);
|
|
6877
|
+
}
|
|
6878
|
+
}
|
|
6879
|
+
}, [_vm._v(" " + _vm._s(item) + " ")]);
|
|
6880
|
+
}), 1) : _vm._e()], 2) : _vm._e();
|
|
6864
6881
|
};
|
|
6865
|
-
var
|
|
6882
|
+
var Itemvue_type_template_id_e04613b0_staticRenderFns = [];
|
|
6866
6883
|
|
|
6867
|
-
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=
|
|
6884
|
+
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=template&id=e04613b0
|
|
6868
6885
|
|
|
6869
6886
|
// CONCATENATED MODULE: ../src/core/form/item.js
|
|
6870
6887
|
function item_typeof(o) { "@babel/helpers - typeof"; return item_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, item_typeof(o); }
|
|
@@ -6950,7 +6967,8 @@ function item_toPrimitive(t, r) { if ("object" != item_typeof(t) || !t) return t
|
|
|
6950
6967
|
multiConditionCheck: {},
|
|
6951
6968
|
multiConditionStatus: true,
|
|
6952
6969
|
changeMode: '',
|
|
6953
|
-
yearPickerPanelOpen: false
|
|
6970
|
+
yearPickerPanelOpen: false,
|
|
6971
|
+
cursorPosition: 0 // 输入框、文本域初始光标位置,快捷短语填入功能
|
|
6954
6972
|
};
|
|
6955
6973
|
},
|
|
6956
6974
|
computed: {
|
|
@@ -6968,9 +6986,9 @@ function item_toPrimitive(t, r) { if ("object" != item_typeof(t) || !t) return t
|
|
|
6968
6986
|
help: function help() {
|
|
6969
6987
|
return '';
|
|
6970
6988
|
},
|
|
6971
|
-
extra
|
|
6972
|
-
|
|
6973
|
-
},
|
|
6989
|
+
// extra () {
|
|
6990
|
+
// return ''
|
|
6991
|
+
// },
|
|
6974
6992
|
// required () {
|
|
6975
6993
|
// return this.schema.required
|
|
6976
6994
|
// },
|
|
@@ -7643,6 +7661,23 @@ function item_toPrimitive(t, r) { if ("object" != item_typeof(t) || !t) return t
|
|
|
7643
7661
|
return fn(current, this.moment);
|
|
7644
7662
|
}
|
|
7645
7663
|
return null;
|
|
7664
|
+
},
|
|
7665
|
+
handleTagInput: function handleTagInput(e) {
|
|
7666
|
+
var newValue = this.value || '';
|
|
7667
|
+
var inputEl = this.$refs.aInput.$refs.input || this.$refs.aInput.$el.querySelector('textarea');
|
|
7668
|
+
if (inputEl && inputEl.selectionStart !== undefined) {
|
|
7669
|
+
this.cursorPosition = inputEl.selectionStart;
|
|
7670
|
+
var newPosition = this.cursorPosition + e.length;
|
|
7671
|
+
var beforeText = newValue.slice(0, this.cursorPosition);
|
|
7672
|
+
var afterText = newValue.slice(this.cursorPosition);
|
|
7673
|
+
this.$emit('change', beforeText + e + afterText);
|
|
7674
|
+
this.$nextTick(function () {
|
|
7675
|
+
if (inputEl.setSelectionRange) {
|
|
7676
|
+
inputEl.focus();
|
|
7677
|
+
inputEl.setSelectionRange(newPosition, newPosition);
|
|
7678
|
+
}
|
|
7679
|
+
});
|
|
7680
|
+
}
|
|
7646
7681
|
}
|
|
7647
7682
|
}
|
|
7648
7683
|
});
|
|
@@ -9398,8 +9433,8 @@ var Popup_component = normalizeComponent(
|
|
|
9398
9433
|
});
|
|
9399
9434
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue?vue&type=script&lang=js
|
|
9400
9435
|
/* harmony default export */ var forms_Itemvue_type_script_lang_js = (Itemvue_type_script_lang_js);
|
|
9401
|
-
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=
|
|
9402
|
-
var
|
|
9436
|
+
// EXTERNAL MODULE: ../src/web/components/forms/Item.vue?vue&type=style&index=0&id=e04613b0&prod&lang=less
|
|
9437
|
+
var Itemvue_type_style_index_0_id_e04613b0_prod_lang_less = __webpack_require__("b21b");
|
|
9403
9438
|
|
|
9404
9439
|
// CONCATENATED MODULE: ../src/web/components/forms/Item.vue
|
|
9405
9440
|
|
|
@@ -9412,8 +9447,8 @@ var Itemvue_type_style_index_0_id_283d0e70_prod_lang_less = __webpack_require__(
|
|
|
9412
9447
|
|
|
9413
9448
|
var Item_component = normalizeComponent(
|
|
9414
9449
|
forms_Itemvue_type_script_lang_js,
|
|
9415
|
-
|
|
9416
|
-
|
|
9450
|
+
Itemvue_type_template_id_e04613b0_render,
|
|
9451
|
+
Itemvue_type_template_id_e04613b0_staticRenderFns,
|
|
9417
9452
|
false,
|
|
9418
9453
|
null,
|
|
9419
9454
|
null,
|
|
@@ -9875,7 +9910,7 @@ function ModelListvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Mo
|
|
|
9875
9910
|
}),
|
|
9876
9911
|
activated: function activated() {
|
|
9877
9912
|
// issue: 20240728; core支持单条数据直接进入详情页
|
|
9878
|
-
if (this.configs['profile.mode'] === 'true') {
|
|
9913
|
+
if (this.configs && this.configs['profile.mode'] === 'true') {
|
|
9879
9914
|
if (this.actionViewType !== 'Profile' && this.dataSource.length && !this.$route.params.id) {
|
|
9880
9915
|
this.handleModelProfile(this.dataSource[0]);
|
|
9881
9916
|
}
|
|
@@ -9884,7 +9919,7 @@ function ModelListvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Mo
|
|
|
9884
9919
|
mounted: function mounted() {
|
|
9885
9920
|
var _this = this;
|
|
9886
9921
|
// issue: 20240728; core支持单条数据直接进入详情页
|
|
9887
|
-
if (this.configs['profile.mode'] === 'true') {
|
|
9922
|
+
if (this.configs && this.configs['profile.mode'] === 'true') {
|
|
9888
9923
|
var unWatch = this.$watch('dataSource', function () {
|
|
9889
9924
|
if (_this.actionViewType !== 'Profile' && _this.dataSource.length && !_this.$route.params.id) {
|
|
9890
9925
|
_this.handleModelProfile(_this.dataSource[0]);
|
|
@@ -9896,8 +9931,8 @@ function ModelListvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Mo
|
|
|
9896
9931
|
});
|
|
9897
9932
|
// CONCATENATED MODULE: ../src/web/components/views/ModelList.vue?vue&type=script&lang=js
|
|
9898
9933
|
/* harmony default export */ var views_ModelListvue_type_script_lang_js = (ModelListvue_type_script_lang_js);
|
|
9899
|
-
// EXTERNAL MODULE: ../src/web/components/views/ModelList.vue?vue&type=style&index=0&id=
|
|
9900
|
-
var
|
|
9934
|
+
// EXTERNAL MODULE: ../src/web/components/views/ModelList.vue?vue&type=style&index=0&id=c550d45a&prod&lang=less
|
|
9935
|
+
var ModelListvue_type_style_index_0_id_c550d45a_prod_lang_less = __webpack_require__("cbe9");
|
|
9901
9936
|
|
|
9902
9937
|
// CONCATENATED MODULE: ../src/web/components/views/ModelList.vue
|
|
9903
9938
|
|
|
@@ -9910,8 +9945,8 @@ var ModelListvue_type_style_index_0_id_ed4461d6_prod_lang_less = __webpack_requi
|
|
|
9910
9945
|
|
|
9911
9946
|
var ModelList_component = normalizeComponent(
|
|
9912
9947
|
views_ModelListvue_type_script_lang_js,
|
|
9913
|
-
|
|
9914
|
-
|
|
9948
|
+
ModelListvue_type_template_id_c550d45a_render,
|
|
9949
|
+
ModelListvue_type_template_id_c550d45a_staticRenderFns,
|
|
9915
9950
|
false,
|
|
9916
9951
|
null,
|
|
9917
9952
|
null,
|
|
@@ -9920,8 +9955,8 @@ var ModelList_component = normalizeComponent(
|
|
|
9920
9955
|
)
|
|
9921
9956
|
|
|
9922
9957
|
/* harmony default export */ var ModelList = (ModelList_component.exports);
|
|
9923
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/views/ModelProfile.vue?vue&type=template&id=
|
|
9924
|
-
var
|
|
9958
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f0c52eea-vue-loader-template"}!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/babel-loader/lib!../node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/views/ModelProfile.vue?vue&type=template&id=b2d952ba
|
|
9959
|
+
var ModelProfilevue_type_template_id_b2d952ba_render = function render() {
|
|
9925
9960
|
var _vm = this,
|
|
9926
9961
|
_c = _vm._self._c;
|
|
9927
9962
|
return _c('a-spin', {
|
|
@@ -10086,9 +10121,9 @@ var ModelProfilevue_type_template_id_74b427ca_render = function render() {
|
|
|
10086
10121
|
}
|
|
10087
10122
|
}, [_vm._v(" 确认 ")])], 1)], 1)], 1) : _vm._e()], 1) : _vm._e()], 1)], 1);
|
|
10088
10123
|
};
|
|
10089
|
-
var
|
|
10124
|
+
var ModelProfilevue_type_template_id_b2d952ba_staticRenderFns = [];
|
|
10090
10125
|
|
|
10091
|
-
// CONCATENATED MODULE: ../src/web/components/views/ModelProfile.vue?vue&type=template&id=
|
|
10126
|
+
// CONCATENATED MODULE: ../src/web/components/views/ModelProfile.vue?vue&type=template&id=b2d952ba
|
|
10092
10127
|
|
|
10093
10128
|
// CONCATENATED MODULE: ../src/core/view/profile.js
|
|
10094
10129
|
function profile_typeof(o) { "@babel/helpers - typeof"; return profile_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, profile_typeof(o); }
|
|
@@ -11556,14 +11591,14 @@ function ModelProfilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
11556
11591
|
computed: {
|
|
11557
11592
|
// issue: 20240728; core支持单条数据直接进入详情页,并且详情页没有返回按钮
|
|
11558
11593
|
onlyProfile: function onlyProfile() {
|
|
11559
|
-
return this.configs['profile.mode'] === 'true';
|
|
11594
|
+
return this.configs ? this.configs['profile.mode'] === 'true' : null;
|
|
11560
11595
|
}
|
|
11561
11596
|
}
|
|
11562
11597
|
});
|
|
11563
11598
|
// CONCATENATED MODULE: ../src/web/components/views/ModelProfile.vue?vue&type=script&lang=js
|
|
11564
11599
|
/* harmony default export */ var views_ModelProfilevue_type_script_lang_js = (ModelProfilevue_type_script_lang_js);
|
|
11565
|
-
// EXTERNAL MODULE: ../src/web/components/views/ModelProfile.vue?vue&type=style&index=0&id=
|
|
11566
|
-
var
|
|
11600
|
+
// EXTERNAL MODULE: ../src/web/components/views/ModelProfile.vue?vue&type=style&index=0&id=b2d952ba&prod&lang=less
|
|
11601
|
+
var ModelProfilevue_type_style_index_0_id_b2d952ba_prod_lang_less = __webpack_require__("ff18");
|
|
11567
11602
|
|
|
11568
11603
|
// CONCATENATED MODULE: ../src/web/components/views/ModelProfile.vue
|
|
11569
11604
|
|
|
@@ -11576,8 +11611,8 @@ var ModelProfilevue_type_style_index_0_id_74b427ca_prod_lang_less = __webpack_re
|
|
|
11576
11611
|
|
|
11577
11612
|
var ModelProfile_component = normalizeComponent(
|
|
11578
11613
|
views_ModelProfilevue_type_script_lang_js,
|
|
11579
|
-
|
|
11580
|
-
|
|
11614
|
+
ModelProfilevue_type_template_id_b2d952ba_render,
|
|
11615
|
+
ModelProfilevue_type_template_id_b2d952ba_staticRenderFns,
|
|
11581
11616
|
false,
|
|
11582
11617
|
null,
|
|
11583
11618
|
null,
|
|
@@ -29709,17 +29744,6 @@ module.exports = require("monaco-editor");
|
|
|
29709
29744
|
|
|
29710
29745
|
}));
|
|
29711
29746
|
|
|
29712
|
-
/***/ }),
|
|
29713
|
-
|
|
29714
|
-
/***/ "272f":
|
|
29715
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29716
|
-
|
|
29717
|
-
"use strict";
|
|
29718
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelProfile_vue_vue_type_style_index_0_id_74b427ca_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2bb6");
|
|
29719
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelProfile_vue_vue_type_style_index_0_id_74b427ca_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelProfile_vue_vue_type_style_index_0_id_74b427ca_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
29720
|
-
/* unused harmony reexport * */
|
|
29721
|
-
|
|
29722
|
-
|
|
29723
29747
|
/***/ }),
|
|
29724
29748
|
|
|
29725
29749
|
/***/ "289a":
|
|
@@ -29729,13 +29753,6 @@ module.exports = require("vuedraggable");
|
|
|
29729
29753
|
|
|
29730
29754
|
/***/ }),
|
|
29731
29755
|
|
|
29732
|
-
/***/ "29ca":
|
|
29733
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
29734
|
-
|
|
29735
|
-
// extracted by mini-css-extract-plugin
|
|
29736
|
-
|
|
29737
|
-
/***/ }),
|
|
29738
|
-
|
|
29739
29756
|
/***/ "2a55":
|
|
29740
29757
|
/***/ (function(module, exports, __webpack_require__) {
|
|
29741
29758
|
|
|
@@ -30520,13 +30537,6 @@ function fromByteArray (uint8) {
|
|
|
30520
30537
|
|
|
30521
30538
|
/***/ }),
|
|
30522
30539
|
|
|
30523
|
-
/***/ "2bb6":
|
|
30524
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30525
|
-
|
|
30526
|
-
// extracted by mini-css-extract-plugin
|
|
30527
|
-
|
|
30528
|
-
/***/ }),
|
|
30529
|
-
|
|
30530
30540
|
/***/ "2e09":
|
|
30531
30541
|
/***/ (function(module, exports, __webpack_require__) {
|
|
30532
30542
|
|
|
@@ -30543,17 +30553,6 @@ function fromByteArray (uint8) {
|
|
|
30543
30553
|
/* unused harmony reexport * */
|
|
30544
30554
|
|
|
30545
30555
|
|
|
30546
|
-
/***/ }),
|
|
30547
|
-
|
|
30548
|
-
/***/ "31cd":
|
|
30549
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30550
|
-
|
|
30551
|
-
"use strict";
|
|
30552
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelList_vue_vue_type_style_index_0_id_ed4461d6_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5569");
|
|
30553
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelList_vue_vue_type_style_index_0_id_ed4461d6_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelList_vue_vue_type_style_index_0_id_ed4461d6_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
30554
|
-
/* unused harmony reexport * */
|
|
30555
|
-
|
|
30556
|
-
|
|
30557
30556
|
/***/ }),
|
|
30558
30557
|
|
|
30559
30558
|
/***/ "336c":
|
|
@@ -30670,13 +30669,6 @@ module.exports = require("@antv/g6");
|
|
|
30670
30669
|
|
|
30671
30670
|
/***/ }),
|
|
30672
30671
|
|
|
30673
|
-
/***/ "5569":
|
|
30674
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
30675
|
-
|
|
30676
|
-
// extracted by mini-css-extract-plugin
|
|
30677
|
-
|
|
30678
|
-
/***/ }),
|
|
30679
|
-
|
|
30680
30672
|
/***/ "5596":
|
|
30681
30673
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
30682
30674
|
|
|
@@ -31742,6 +31734,13 @@ module.exports = require("vue-router");
|
|
|
31742
31734
|
|
|
31743
31735
|
/***/ }),
|
|
31744
31736
|
|
|
31737
|
+
/***/ "7552":
|
|
31738
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
31739
|
+
|
|
31740
|
+
// extracted by mini-css-extract-plugin
|
|
31741
|
+
|
|
31742
|
+
/***/ }),
|
|
31743
|
+
|
|
31745
31744
|
/***/ "7826":
|
|
31746
31745
|
/***/ (function(module, exports, __webpack_require__) {
|
|
31747
31746
|
|
|
@@ -44756,6 +44755,17 @@ module.exports = g;
|
|
|
44756
44755
|
|
|
44757
44756
|
}));
|
|
44758
44757
|
|
|
44758
|
+
/***/ }),
|
|
44759
|
+
|
|
44760
|
+
/***/ "b21b":
|
|
44761
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
44762
|
+
|
|
44763
|
+
"use strict";
|
|
44764
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_e04613b0_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f23a");
|
|
44765
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_e04613b0_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Item_vue_vue_type_style_index_0_id_e04613b0_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
44766
|
+
/* unused harmony reexport * */
|
|
44767
|
+
|
|
44768
|
+
|
|
44759
44769
|
/***/ }),
|
|
44760
44770
|
|
|
44761
44771
|
/***/ "b472":
|
|
@@ -45949,6 +45959,17 @@ module.exports = require("moment");
|
|
|
45949
45959
|
|
|
45950
45960
|
// extracted by mini-css-extract-plugin
|
|
45951
45961
|
|
|
45962
|
+
/***/ }),
|
|
45963
|
+
|
|
45964
|
+
/***/ "cbe9":
|
|
45965
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
45966
|
+
|
|
45967
|
+
"use strict";
|
|
45968
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelList_vue_vue_type_style_index_0_id_c550d45a_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1898");
|
|
45969
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelList_vue_vue_type_style_index_0_id_c550d45a_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelList_vue_vue_type_style_index_0_id_c550d45a_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
45970
|
+
/* unused harmony reexport * */
|
|
45971
|
+
|
|
45972
|
+
|
|
45952
45973
|
/***/ }),
|
|
45953
45974
|
|
|
45954
45975
|
/***/ "ce44":
|
|
@@ -49244,6 +49265,13 @@ module.exports = require("vuex/dist/logger");
|
|
|
49244
49265
|
|
|
49245
49266
|
/***/ }),
|
|
49246
49267
|
|
|
49268
|
+
/***/ "f23a":
|
|
49269
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
49270
|
+
|
|
49271
|
+
// extracted by mini-css-extract-plugin
|
|
49272
|
+
|
|
49273
|
+
/***/ }),
|
|
49274
|
+
|
|
49247
49275
|
/***/ "f2fb":
|
|
49248
49276
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
49249
49277
|
|
|
@@ -49548,6 +49576,17 @@ module.exports = require("vuex/dist/logger");
|
|
|
49548
49576
|
/* unused harmony reexport * */
|
|
49549
49577
|
|
|
49550
49578
|
|
|
49579
|
+
/***/ }),
|
|
49580
|
+
|
|
49581
|
+
/***/ "ff18":
|
|
49582
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
49583
|
+
|
|
49584
|
+
"use strict";
|
|
49585
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelProfile_vue_vue_type_style_index_0_id_b2d952ba_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7552");
|
|
49586
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelProfile_vue_vue_type_style_index_0_id_b2d952ba_prod_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ModelProfile_vue_vue_type_style_index_0_id_b2d952ba_prod_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
49587
|
+
/* unused harmony reexport * */
|
|
49588
|
+
|
|
49589
|
+
|
|
49551
49590
|
/***/ }),
|
|
49552
49591
|
|
|
49553
49592
|
/***/ "ff21":
|