eoss 0.1.0-alpha.30 → 0.1.0-alpha.31
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/eoss.common.js +472 -312
- package/lib/index.js +1 -1
- package/lib/lowcode-view.js +181 -110
- package/lib/lowcode.js +155 -104
- package/lib/main.js +83 -38
- package/lib/process-config.js +14 -18
- package/lib/process-module.js +9 -12
- package/lib/process-rule.js +2 -5
- package/lib/tabs.js +4 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/lowcode-view.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/wujie.js +2 -3
- package/package.json +1 -1
- package/packages/lowcode/src/attribute/javascript.vue +2 -0
- package/packages/lowcode/src/attribute/property.vue +38 -56
- package/packages/lowcode/src/attribute.vue +3 -1
- package/packages/lowcode/src/lowcode.vue +8 -2
- package/packages/lowcode/src/pages.vue +0 -1
- package/packages/lowcode/src/render.vue +15 -1
- package/packages/lowcode/src/util/source-generator.js +29 -15
- package/packages/lowcode/src/util/source-parser.js +35 -3
- package/packages/lowcode-view/src/{Modulels.vue → Modules.vue} +63 -74
- package/packages/lowcode-view/src/view.vue +44 -11
- package/packages/main/src/components/pages.vue +4 -1
- package/packages/main/src/components/router-page.vue +29 -1
- package/packages/main/src/components/sub-menu.vue +2 -0
- package/packages/main/src/early.vue +1 -0
- package/packages/main/src/gzw.vue +1 -0
- package/packages/main/src/minxs.js +7 -0
- package/packages/process-config/src/NodeConfig.vue +0 -1
- package/packages/process-config/src/NodeForm.vue +0 -1
- package/packages/process-module/src/FormList.vue +0 -1
- package/packages/process-module/src/main.vue +0 -2
- package/packages/process-rule/src/main.vue +0 -3
- package/packages/tabs/src/tabs.vue +5 -1
- package/packages/theme-chalk/src/lowcode-view.scss +1 -0
- package/packages/theme-chalk/src/tabs.scss +2 -1
- package/packages/wujie/src/wujie.vue +0 -1
- package/src/index.js +1 -1
package/lib/eoss.common.js
CHANGED
|
@@ -80712,8 +80712,8 @@ login.install = function (Vue) {
|
|
|
80712
80712
|
};
|
|
80713
80713
|
|
|
80714
80714
|
/* harmony default export */ var packages_login = (login);
|
|
80715
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/lowcode.vue?vue&type=template&id=
|
|
80716
|
-
var
|
|
80715
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/lowcode.vue?vue&type=template&id=ac68474e&
|
|
80716
|
+
var lowcodevue_type_template_id_ac68474e_render = function () {
|
|
80717
80717
|
var _vm = this
|
|
80718
80718
|
var _h = _vm.$createElement
|
|
80719
80719
|
var _c = _vm._self._c || _h
|
|
@@ -80797,7 +80797,7 @@ var lowcodevue_type_template_id_68d69ae9_render = function () {
|
|
|
80797
80797
|
attrs: {
|
|
80798
80798
|
title: "信息完善",
|
|
80799
80799
|
width: "600px",
|
|
80800
|
-
height: "
|
|
80800
|
+
height: "442px",
|
|
80801
80801
|
visible: _vm.visible,
|
|
80802
80802
|
"close-on-click-modal": false,
|
|
80803
80803
|
},
|
|
@@ -80836,6 +80836,23 @@ var lowcodevue_type_template_id_68d69ae9_render = function () {
|
|
|
80836
80836
|
],
|
|
80837
80837
|
1
|
|
80838
80838
|
),
|
|
80839
|
+
_c(
|
|
80840
|
+
"es-form-item",
|
|
80841
|
+
{ attrs: { label: "编码", prop: "code" } },
|
|
80842
|
+
[
|
|
80843
|
+
_c("es-input", {
|
|
80844
|
+
attrs: { placeholder: "请输入编码" },
|
|
80845
|
+
model: {
|
|
80846
|
+
value: _vm.form.code,
|
|
80847
|
+
callback: function ($$v) {
|
|
80848
|
+
_vm.$set(_vm.form, "code", $$v)
|
|
80849
|
+
},
|
|
80850
|
+
expression: "form.code",
|
|
80851
|
+
},
|
|
80852
|
+
}),
|
|
80853
|
+
],
|
|
80854
|
+
1
|
|
80855
|
+
),
|
|
80839
80856
|
_c(
|
|
80840
80857
|
"es-form-item",
|
|
80841
80858
|
{ attrs: { label: "描述", prop: "description" } },
|
|
@@ -81180,11 +81197,11 @@ var lowcodevue_type_template_id_68d69ae9_render = function () {
|
|
|
81180
81197
|
1
|
|
81181
81198
|
)
|
|
81182
81199
|
}
|
|
81183
|
-
var
|
|
81184
|
-
|
|
81200
|
+
var lowcodevue_type_template_id_ac68474e_staticRenderFns = []
|
|
81201
|
+
lowcodevue_type_template_id_ac68474e_render._withStripped = true
|
|
81185
81202
|
|
|
81186
81203
|
|
|
81187
|
-
// CONCATENATED MODULE: ./packages/lowcode/src/lowcode.vue?vue&type=template&id=
|
|
81204
|
+
// CONCATENATED MODULE: ./packages/lowcode/src/lowcode.vue?vue&type=template&id=ac68474e&
|
|
81188
81205
|
|
|
81189
81206
|
// CONCATENATED MODULE: ./src/utils/bus.js
|
|
81190
81207
|
/**
|
|
@@ -81933,8 +81950,8 @@ asidevue_type_template_id_c91dd452_render._withStripped = true
|
|
|
81933
81950
|
|
|
81934
81951
|
// CONCATENATED MODULE: ./packages/lowcode/src/aside.vue?vue&type=template&id=c91dd452&
|
|
81935
81952
|
|
|
81936
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/pages.vue?vue&type=template&id=
|
|
81937
|
-
var
|
|
81953
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/pages.vue?vue&type=template&id=efc766e8&
|
|
81954
|
+
var pagesvue_type_template_id_efc766e8_render = function () {
|
|
81938
81955
|
var _vm = this
|
|
81939
81956
|
var _h = _vm.$createElement
|
|
81940
81957
|
var _c = _vm._self._c || _h
|
|
@@ -82072,11 +82089,11 @@ var pagesvue_type_template_id_238a2346_render = function () {
|
|
|
82072
82089
|
1
|
|
82073
82090
|
)
|
|
82074
82091
|
}
|
|
82075
|
-
var
|
|
82076
|
-
|
|
82092
|
+
var pagesvue_type_template_id_efc766e8_staticRenderFns = []
|
|
82093
|
+
pagesvue_type_template_id_efc766e8_render._withStripped = true
|
|
82077
82094
|
|
|
82078
82095
|
|
|
82079
|
-
// CONCATENATED MODULE: ./packages/lowcode/src/pages.vue?vue&type=template&id=
|
|
82096
|
+
// CONCATENATED MODULE: ./packages/lowcode/src/pages.vue?vue&type=template&id=efc766e8&
|
|
82080
82097
|
|
|
82081
82098
|
// EXTERNAL MODULE: external "eoss/lib/menu-item"
|
|
82082
82099
|
var menu_item_ = __webpack_require__(92);
|
|
@@ -82232,7 +82249,6 @@ var pagesvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
82232
82249
|
* @param page 页面对象
|
|
82233
82250
|
*/
|
|
82234
82251
|
handleSelect: function handleSelect(data) {
|
|
82235
|
-
console.log('handleSelect', data);
|
|
82236
82252
|
if (data.childrens && data.childrens.length) {
|
|
82237
82253
|
return;
|
|
82238
82254
|
}
|
|
@@ -82310,8 +82326,8 @@ var pagesvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
82310
82326
|
|
|
82311
82327
|
var pages_component = Object(componentNormalizer["a" /* default */])(
|
|
82312
82328
|
src_pagesvue_type_script_lang_js_,
|
|
82313
|
-
|
|
82314
|
-
|
|
82329
|
+
pagesvue_type_template_id_efc766e8_render,
|
|
82330
|
+
pagesvue_type_template_id_efc766e8_staticRenderFns,
|
|
82315
82331
|
false,
|
|
82316
82332
|
null,
|
|
82317
82333
|
null,
|
|
@@ -82570,7 +82586,7 @@ var modules_component = Object(componentNormalizer["a" /* default */])(
|
|
|
82570
82586
|
|
|
82571
82587
|
)
|
|
82572
82588
|
|
|
82573
|
-
/* harmony default export */ var
|
|
82589
|
+
/* harmony default export */ var src_modules = (modules_component.exports);
|
|
82574
82590
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/aside.vue?vue&type=script&lang=js&
|
|
82575
82591
|
//
|
|
82576
82592
|
//
|
|
@@ -82716,7 +82732,7 @@ var modules_component = Object(componentNormalizer["a" /* default */])(
|
|
|
82716
82732
|
components: {
|
|
82717
82733
|
EsTooltip: tooltip_default.a,
|
|
82718
82734
|
Pages: pages,
|
|
82719
|
-
Modules:
|
|
82735
|
+
Modules: src_modules,
|
|
82720
82736
|
EsButton: button_default.a,
|
|
82721
82737
|
EsDialog: dialog_default.a,
|
|
82722
82738
|
EsForm: form_default.a,
|
|
@@ -83061,8 +83077,8 @@ canvasvue_type_template_id_3f236c3d_render._withStripped = true
|
|
|
83061
83077
|
|
|
83062
83078
|
// CONCATENATED MODULE: ./packages/lowcode/src/canvas.vue?vue&type=template&id=3f236c3d&
|
|
83063
83079
|
|
|
83064
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/render.vue?vue&type=template&id=
|
|
83065
|
-
var
|
|
83080
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/render.vue?vue&type=template&id=12ff94c0&
|
|
83081
|
+
var rendervue_type_template_id_12ff94c0_render = function () {
|
|
83066
83082
|
var _vm = this
|
|
83067
83083
|
var _h = _vm.$createElement
|
|
83068
83084
|
var _c = _vm._self._c || _h
|
|
@@ -83110,7 +83126,7 @@ var rendervue_type_template_id_35e81d00_render = function () {
|
|
|
83110
83126
|
"\n newNode.directives['show'] !== undefined\n ? newNode.directives['show']\n : true\n ",
|
|
83111
83127
|
},
|
|
83112
83128
|
],
|
|
83113
|
-
key: _vm.
|
|
83129
|
+
key: _vm.instanceKey,
|
|
83114
83130
|
tag: "component",
|
|
83115
83131
|
style: _vm.innerLayoutStyle,
|
|
83116
83132
|
},
|
|
@@ -83365,11 +83381,11 @@ var rendervue_type_template_id_35e81d00_render = function () {
|
|
|
83365
83381
|
2
|
|
83366
83382
|
)
|
|
83367
83383
|
}
|
|
83368
|
-
var
|
|
83369
|
-
|
|
83384
|
+
var rendervue_type_template_id_12ff94c0_staticRenderFns = []
|
|
83385
|
+
rendervue_type_template_id_12ff94c0_render._withStripped = true
|
|
83370
83386
|
|
|
83371
83387
|
|
|
83372
|
-
// CONCATENATED MODULE: ./packages/lowcode/src/render.vue?vue&type=template&id=
|
|
83388
|
+
// CONCATENATED MODULE: ./packages/lowcode/src/render.vue?vue&type=template&id=12ff94c0&
|
|
83373
83389
|
|
|
83374
83390
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/iframe.vue?vue&type=template&id=ceca7cf4&scoped=true&
|
|
83375
83391
|
var iframevue_type_template_id_ceca7cf4_scoped_true_render = function () {
|
|
@@ -83732,6 +83748,21 @@ var LAYOUT_PROPS = ['display', 'gap', 'grid-gap', 'grid-template-columns', 'flex
|
|
|
83732
83748
|
return result;
|
|
83733
83749
|
},
|
|
83734
83750
|
|
|
83751
|
+
/**
|
|
83752
|
+
* 组件实例 key:节点 id + props 签名。
|
|
83753
|
+
* 业务组件(如 backlog)在 created 里按 props 拉数据、不 watch prop 变化,
|
|
83754
|
+
* 源码视图改完 props 后必须换 key 强制重挂载,画布才会刷新
|
|
83755
|
+
*/
|
|
83756
|
+
instanceKey: function instanceKey() {
|
|
83757
|
+
var sig = '';
|
|
83758
|
+
try {
|
|
83759
|
+
sig = JSON.stringify(this.cleanProps);
|
|
83760
|
+
} catch (e) {
|
|
83761
|
+
sig = '';
|
|
83762
|
+
}
|
|
83763
|
+
return (this.newNode ? this.newNode.id : '') + ':' + sig;
|
|
83764
|
+
},
|
|
83765
|
+
|
|
83735
83766
|
/**
|
|
83736
83767
|
* 根据父容器布局类型调整子元素样式
|
|
83737
83768
|
* grid 模式下通过 grid-column: span N 控制跨列
|
|
@@ -84115,8 +84146,8 @@ var LAYOUT_PROPS = ['display', 'gap', 'grid-gap', 'grid-template-columns', 'flex
|
|
|
84115
84146
|
|
|
84116
84147
|
var render_component = Object(componentNormalizer["a" /* default */])(
|
|
84117
84148
|
src_rendervue_type_script_lang_js_,
|
|
84118
|
-
|
|
84119
|
-
|
|
84149
|
+
rendervue_type_template_id_12ff94c0_render,
|
|
84150
|
+
rendervue_type_template_id_12ff94c0_staticRenderFns,
|
|
84120
84151
|
false,
|
|
84121
84152
|
null,
|
|
84122
84153
|
null,
|
|
@@ -84790,8 +84821,8 @@ var canvas_component = Object(componentNormalizer["a" /* default */])(
|
|
|
84790
84821
|
)
|
|
84791
84822
|
|
|
84792
84823
|
/* harmony default export */ var canvas = (canvas_component.exports);
|
|
84793
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/attribute.vue?vue&type=template&id=
|
|
84794
|
-
var
|
|
84824
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/attribute.vue?vue&type=template&id=4827c20a&
|
|
84825
|
+
var attributevue_type_template_id_4827c20a_render = function () {
|
|
84795
84826
|
var _vm = this
|
|
84796
84827
|
var _h = _vm.$createElement
|
|
84797
84828
|
var _c = _vm._self._c || _h
|
|
@@ -84918,14 +84949,14 @@ var attributevue_type_template_id_47cd7152_render = function () {
|
|
|
84918
84949
|
1
|
|
84919
84950
|
)
|
|
84920
84951
|
}
|
|
84921
|
-
var
|
|
84922
|
-
|
|
84952
|
+
var attributevue_type_template_id_4827c20a_staticRenderFns = []
|
|
84953
|
+
attributevue_type_template_id_4827c20a_render._withStripped = true
|
|
84923
84954
|
|
|
84924
84955
|
|
|
84925
|
-
// CONCATENATED MODULE: ./packages/lowcode/src/attribute.vue?vue&type=template&id=
|
|
84956
|
+
// CONCATENATED MODULE: ./packages/lowcode/src/attribute.vue?vue&type=template&id=4827c20a&
|
|
84926
84957
|
|
|
84927
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/attribute/property.vue?vue&type=template&id=
|
|
84928
|
-
var
|
|
84958
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/attribute/property.vue?vue&type=template&id=69269d78&
|
|
84959
|
+
var propertyvue_type_template_id_69269d78_render = function () {
|
|
84929
84960
|
var _vm = this
|
|
84930
84961
|
var _h = _vm.$createElement
|
|
84931
84962
|
var _c = _vm._self._c || _h
|
|
@@ -84985,11 +85016,11 @@ var propertyvue_type_template_id_8e130472_render = function () {
|
|
|
84985
85016
|
1
|
|
84986
85017
|
)
|
|
84987
85018
|
}
|
|
84988
|
-
var
|
|
84989
|
-
|
|
85019
|
+
var propertyvue_type_template_id_69269d78_staticRenderFns = []
|
|
85020
|
+
propertyvue_type_template_id_69269d78_render._withStripped = true
|
|
84990
85021
|
|
|
84991
85022
|
|
|
84992
|
-
// CONCATENATED MODULE: ./packages/lowcode/src/attribute/property.vue?vue&type=template&id=
|
|
85023
|
+
// CONCATENATED MODULE: ./packages/lowcode/src/attribute/property.vue?vue&type=template&id=69269d78&
|
|
84993
85024
|
|
|
84994
85025
|
// CONCATENATED MODULE: ./packages/lowcode/src/util/source-generator.js
|
|
84995
85026
|
var source_generator_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
@@ -85069,6 +85100,11 @@ function genStyle(node) {
|
|
|
85069
85100
|
return " :style='{ " + parts.join(', ') + " }'";
|
|
85070
85101
|
}
|
|
85071
85102
|
|
|
85103
|
+
/** 属性值转义:& 与 " 转实体,解析端统一解码 */
|
|
85104
|
+
function escapeAttr(val) {
|
|
85105
|
+
return String(val).replace(/&/g, '&').replace(/"/g, '"');
|
|
85106
|
+
}
|
|
85107
|
+
|
|
85072
85108
|
/** 生成节点的 props 属性串 */
|
|
85073
85109
|
function genProps(node) {
|
|
85074
85110
|
var props = node.props;
|
|
@@ -85102,8 +85138,9 @@ function genProps(node) {
|
|
|
85102
85138
|
if (typeof val === 'number') {
|
|
85103
85139
|
return attrs + ' :' + key + '="' + val + '"';
|
|
85104
85140
|
}
|
|
85105
|
-
//
|
|
85106
|
-
|
|
85141
|
+
// 复杂值用绑定语法输出:单引号属性 + 紧凑 JSON(不转实体、不换行),
|
|
85142
|
+
// 解析端据此还原为真实数组/对象;值内单引号转 ' 避免截断属性
|
|
85143
|
+
return attrs + ' :' + key + "='" + JSON.stringify(val).replace(/'/g, ''') + "'";
|
|
85107
85144
|
}, '');
|
|
85108
85145
|
}
|
|
85109
85146
|
|
|
@@ -85214,15 +85251,18 @@ function genNode(node, indent) {
|
|
|
85214
85251
|
|
|
85215
85252
|
// 节点 id 以 data-id 输出,源码编辑后能原样解析回来
|
|
85216
85253
|
var idAttr = node.id ? ' data-id="' + node.id + '"' : '';
|
|
85254
|
+
// description 是编辑器标签(元信息),以属性承载,不作为插槽文本渲染;
|
|
85255
|
+
// 解析端对 description 属性单独识别,旧源码的文本写法仍兼容
|
|
85256
|
+
var descAttr = node.description ? ' description="' + escapeAttr(node.description) + '"' : '';
|
|
85217
85257
|
// 输出顺序:HTML 属性 + 组件 props + 指令 + 事件 + 样式
|
|
85218
|
-
var attrStr = idAttr + genAttrs(node) + genProps(node) + genDirectives(node) + genEvents(node) + genStyle(node);
|
|
85258
|
+
var attrStr = idAttr + descAttr + genAttrs(node) + genProps(node) + genDirectives(node) + genEvents(node) + genStyle(node);
|
|
85219
85259
|
var children = getChildren(node);
|
|
85220
85260
|
var lines = [];
|
|
85221
85261
|
|
|
85222
85262
|
// 检查是否有 text 指令
|
|
85223
85263
|
var vText = node.directives && node.directives['text'];
|
|
85224
85264
|
|
|
85225
|
-
if (!children.length && !
|
|
85265
|
+
if (!children.length && !vText) {
|
|
85226
85266
|
lines.push(pad + '<' + name + attrStr + '></' + name + '>');
|
|
85227
85267
|
return lines.join('\n');
|
|
85228
85268
|
}
|
|
@@ -85230,17 +85270,11 @@ function genNode(node, indent) {
|
|
|
85230
85270
|
if (vText) {
|
|
85231
85271
|
// v-text 属性转换为 {{xxx}} 形式
|
|
85232
85272
|
lines.push(pad + INDENT + '{{' + vText + '}}');
|
|
85233
|
-
} else {
|
|
85234
|
-
//
|
|
85235
|
-
|
|
85236
|
-
lines.push(
|
|
85237
|
-
}
|
|
85238
|
-
if (children.length) {
|
|
85239
|
-
// 子节点继续递归下钻
|
|
85240
|
-
children.forEach(function (child) {
|
|
85241
|
-
lines.push(genNode(child, indent + 1));
|
|
85242
|
-
});
|
|
85243
|
-
}
|
|
85273
|
+
} else if (children.length) {
|
|
85274
|
+
// 子节点继续递归下钻
|
|
85275
|
+
children.forEach(function (child) {
|
|
85276
|
+
lines.push(genNode(child, indent + 1));
|
|
85277
|
+
});
|
|
85244
85278
|
}
|
|
85245
85279
|
lines.push(pad + '</' + name + '>');
|
|
85246
85280
|
return lines.join('\n');
|
|
@@ -85724,6 +85758,27 @@ var propertyvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
|
|
|
85724
85758
|
this.$emit('edit', { name: item.name, label: item.label, cursorField: item.name }, scriptContent);
|
|
85725
85759
|
},
|
|
85726
85760
|
|
|
85761
|
+
/**
|
|
85762
|
+
* 字段值统一格式化为源码输出:对象或可解析的 JSON 字符串换行展开
|
|
85763
|
+
* (与整体源码编辑器的 serialize 缩进对齐);不可解析的字符串原样输出
|
|
85764
|
+
*/
|
|
85765
|
+
prettyJson: function prettyJson(val) {
|
|
85766
|
+
if (val === null || val === undefined || val === '') {
|
|
85767
|
+
return '';
|
|
85768
|
+
}
|
|
85769
|
+
if ((typeof val === 'undefined' ? 'undefined' : propertyvue_type_script_lang_js_typeof(val)) === 'object') {
|
|
85770
|
+
return JSON.stringify(val, null, 2);
|
|
85771
|
+
}
|
|
85772
|
+
if (typeof val === 'string') {
|
|
85773
|
+
try {
|
|
85774
|
+
return JSON.stringify(JSON.parse(val), null, 2);
|
|
85775
|
+
} catch (e) {
|
|
85776
|
+
return val;
|
|
85777
|
+
}
|
|
85778
|
+
}
|
|
85779
|
+
return String(val);
|
|
85780
|
+
},
|
|
85781
|
+
|
|
85727
85782
|
/**
|
|
85728
85783
|
* 构造完整的 Vue 组件源码(template + script + style)
|
|
85729
85784
|
* @returns {String} 完整的 Vue 组件源码
|
|
@@ -85734,33 +85789,13 @@ var propertyvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
|
|
|
85734
85789
|
var scriptParts = [];
|
|
85735
85790
|
|
|
85736
85791
|
// inject(始终输出,确保源码编辑器中可见)
|
|
85737
|
-
|
|
85738
|
-
if (injectValue && (typeof injectValue === 'undefined' ? 'undefined' : propertyvue_type_script_lang_js_typeof(injectValue)) === 'object') {
|
|
85739
|
-
scriptParts.push(' inject: ' + JSON.stringify(injectValue, null, 2));
|
|
85740
|
-
} else if (injectValue && injectValue !== '{}') {
|
|
85741
|
-
scriptParts.push(' inject: ' + injectValue);
|
|
85742
|
-
} else {
|
|
85743
|
-
scriptParts.push(' inject: {}');
|
|
85744
|
-
}
|
|
85792
|
+
scriptParts.push(' inject: ' + (this.prettyJson(this.models.inject) || '{}'));
|
|
85745
85793
|
|
|
85746
85794
|
// provide(始终输出)
|
|
85747
|
-
|
|
85748
|
-
if (provideValue && (typeof provideValue === 'undefined' ? 'undefined' : propertyvue_type_script_lang_js_typeof(provideValue)) === 'object') {
|
|
85749
|
-
scriptParts.push(' provide: ' + JSON.stringify(provideValue, null, 2));
|
|
85750
|
-
} else if (provideValue && provideValue !== '{}') {
|
|
85751
|
-
scriptParts.push(' provide: ' + provideValue);
|
|
85752
|
-
} else {
|
|
85753
|
-
scriptParts.push(' provide: {}');
|
|
85754
|
-
}
|
|
85795
|
+
scriptParts.push(' provide: ' + (this.prettyJson(this.models.provide) || '{}'));
|
|
85755
85796
|
|
|
85756
85797
|
// props
|
|
85757
|
-
|
|
85758
|
-
if (propsValue && Object.keys(propsValue).length > 0) {
|
|
85759
|
-
var propsStr = (typeof propsValue === 'undefined' ? 'undefined' : propertyvue_type_script_lang_js_typeof(propsValue)) === 'object' ? JSON.stringify(propsValue, null, 2) : propsValue;
|
|
85760
|
-
scriptParts.push(' props: ' + propsStr);
|
|
85761
|
-
} else {
|
|
85762
|
-
scriptParts.push(' props: {}');
|
|
85763
|
-
}
|
|
85798
|
+
scriptParts.push(' props: ' + (this.prettyJson(this.models.props) || '{}'));
|
|
85764
85799
|
|
|
85765
85800
|
// data
|
|
85766
85801
|
var dataValue = this.models.data;
|
|
@@ -85782,31 +85817,13 @@ var propertyvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
|
|
|
85782
85817
|
}
|
|
85783
85818
|
|
|
85784
85819
|
// computed
|
|
85785
|
-
|
|
85786
|
-
if (computedValue && Object.keys(computedValue).length > 0) {
|
|
85787
|
-
var computedStr = (typeof computedValue === 'undefined' ? 'undefined' : propertyvue_type_script_lang_js_typeof(computedValue)) === 'object' ? JSON.stringify(computedValue, null, 2) : computedValue;
|
|
85788
|
-
scriptParts.push(' computed: ' + computedStr);
|
|
85789
|
-
} else {
|
|
85790
|
-
scriptParts.push(' computed: {}');
|
|
85791
|
-
}
|
|
85820
|
+
scriptParts.push(' computed: ' + (this.prettyJson(this.models.computed) || '{}'));
|
|
85792
85821
|
|
|
85793
85822
|
// watch
|
|
85794
|
-
|
|
85795
|
-
if (watchValue && Object.keys(watchValue).length > 0) {
|
|
85796
|
-
var watchStr = (typeof watchValue === 'undefined' ? 'undefined' : propertyvue_type_script_lang_js_typeof(watchValue)) === 'object' ? JSON.stringify(watchValue, null, 2) : watchValue;
|
|
85797
|
-
scriptParts.push(' watch: ' + watchStr);
|
|
85798
|
-
} else {
|
|
85799
|
-
scriptParts.push(' watch: {}');
|
|
85800
|
-
}
|
|
85823
|
+
scriptParts.push(' watch: ' + (this.prettyJson(this.models.watch) || '{}'));
|
|
85801
85824
|
|
|
85802
85825
|
// methods
|
|
85803
|
-
|
|
85804
|
-
if (methodsValue && Object.keys(methodsValue).length > 0) {
|
|
85805
|
-
var methodsStr = (typeof methodsValue === 'undefined' ? 'undefined' : propertyvue_type_script_lang_js_typeof(methodsValue)) === 'object' ? JSON.stringify(methodsValue, null, 2) : methodsValue;
|
|
85806
|
-
scriptParts.push(' methods: ' + methodsStr);
|
|
85807
|
-
} else {
|
|
85808
|
-
scriptParts.push(' methods: {}');
|
|
85809
|
-
}
|
|
85826
|
+
scriptParts.push(' methods: ' + (this.prettyJson(this.models.methods) || '{}'));
|
|
85810
85827
|
|
|
85811
85828
|
// 生命周期钩子
|
|
85812
85829
|
var hooks = ['beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'beforeDestroy', 'destroyed'];
|
|
@@ -85879,8 +85896,8 @@ var propertyvue_type_script_lang_js_typeof = typeof Symbol === "function" && typ
|
|
|
85879
85896
|
|
|
85880
85897
|
var property_component = Object(componentNormalizer["a" /* default */])(
|
|
85881
85898
|
attribute_propertyvue_type_script_lang_js_,
|
|
85882
|
-
|
|
85883
|
-
|
|
85899
|
+
propertyvue_type_template_id_69269d78_render,
|
|
85900
|
+
propertyvue_type_template_id_69269d78_staticRenderFns,
|
|
85884
85901
|
false,
|
|
85885
85902
|
null,
|
|
85886
85903
|
null,
|
|
@@ -89289,8 +89306,8 @@ var dependency_component = Object(componentNormalizer["a" /* default */])(
|
|
|
89289
89306
|
)
|
|
89290
89307
|
|
|
89291
89308
|
/* harmony default export */ var dependency = (dependency_component.exports);
|
|
89292
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/attribute/javascript.vue?vue&type=template&id=
|
|
89293
|
-
var
|
|
89309
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/attribute/javascript.vue?vue&type=template&id=35a5cdd5&
|
|
89310
|
+
var javascriptvue_type_template_id_35a5cdd5_render = function () {
|
|
89294
89311
|
var _vm = this
|
|
89295
89312
|
var _h = _vm.$createElement
|
|
89296
89313
|
var _c = _vm._self._c || _h
|
|
@@ -89308,11 +89325,11 @@ var javascriptvue_type_template_id_1a4c1312_render = function () {
|
|
|
89308
89325
|
},
|
|
89309
89326
|
})
|
|
89310
89327
|
}
|
|
89311
|
-
var
|
|
89312
|
-
|
|
89328
|
+
var javascriptvue_type_template_id_35a5cdd5_staticRenderFns = []
|
|
89329
|
+
javascriptvue_type_template_id_35a5cdd5_render._withStripped = true
|
|
89313
89330
|
|
|
89314
89331
|
|
|
89315
|
-
// CONCATENATED MODULE: ./packages/lowcode/src/attribute/javascript.vue?vue&type=template&id=
|
|
89332
|
+
// CONCATENATED MODULE: ./packages/lowcode/src/attribute/javascript.vue?vue&type=template&id=35a5cdd5&
|
|
89316
89333
|
|
|
89317
89334
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode/src/editor.vue?vue&type=template&id=32ebd7e1&
|
|
89318
89335
|
var editorvue_type_template_id_32ebd7e1_render = function () {
|
|
@@ -90485,6 +90502,8 @@ var editor_component = Object(componentNormalizer["a" /* default */])(
|
|
|
90485
90502
|
if (errors.length) {
|
|
90486
90503
|
// 修不了的错误展示在底部状态栏,拦截保存
|
|
90487
90504
|
this.$refs.editorRef.setErrors(errors);
|
|
90505
|
+
// 拦截时给出明确提示,避免「按了保存却没有任何反应」的错觉
|
|
90506
|
+
this.$message.warning('校验未通过,保存已拦截:' + errors[0].message);
|
|
90488
90507
|
return;
|
|
90489
90508
|
}
|
|
90490
90509
|
this.$emit('save', value);
|
|
@@ -90515,8 +90534,8 @@ var editor_component = Object(componentNormalizer["a" /* default */])(
|
|
|
90515
90534
|
|
|
90516
90535
|
var javascript_component = Object(componentNormalizer["a" /* default */])(
|
|
90517
90536
|
attribute_javascriptvue_type_script_lang_js_,
|
|
90518
|
-
|
|
90519
|
-
|
|
90537
|
+
javascriptvue_type_template_id_35a5cdd5_render,
|
|
90538
|
+
javascriptvue_type_template_id_35a5cdd5_staticRenderFns,
|
|
90520
90539
|
false,
|
|
90521
90540
|
null,
|
|
90522
90541
|
null,
|
|
@@ -90572,7 +90591,15 @@ function findBalanced(text, openIndex) {
|
|
|
90572
90591
|
return -1;
|
|
90573
90592
|
}
|
|
90574
90593
|
|
|
90575
|
-
/**
|
|
90594
|
+
/** 属性值实体解码:与生成端的 escapeAttr / ' 转义对应 */
|
|
90595
|
+
function decodeEntities(val) {
|
|
90596
|
+
if (typeof val !== 'string') {
|
|
90597
|
+
return val;
|
|
90598
|
+
}
|
|
90599
|
+
return val.replace(/"/g, '"').replace(/'/g, "'").replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&');
|
|
90600
|
+
}
|
|
90601
|
+
|
|
90602
|
+
/** 解析标签属性:支持单/双引号,返回 { name, value, quote } 列表 */
|
|
90576
90603
|
function parseAttrs(str) {
|
|
90577
90604
|
var attrs = [];
|
|
90578
90605
|
var re = /([^\s=/>]+)(?:\s*=\s*("([^"]*)"|'([^']*)'))?/g;
|
|
@@ -90581,8 +90608,12 @@ function parseAttrs(str) {
|
|
|
90581
90608
|
if (!match[1]) {
|
|
90582
90609
|
continue;
|
|
90583
90610
|
}
|
|
90584
|
-
var
|
|
90585
|
-
attrs.push({
|
|
90611
|
+
var raw = match[3] !== undefined ? match[3] : match[4] !== undefined ? match[4] : null;
|
|
90612
|
+
attrs.push({
|
|
90613
|
+
name: match[1],
|
|
90614
|
+
value: raw === null ? null : decodeEntities(raw),
|
|
90615
|
+
quote: match[3] !== undefined ? '"' : "'"
|
|
90616
|
+
});
|
|
90586
90617
|
}
|
|
90587
90618
|
return attrs;
|
|
90588
90619
|
}
|
|
@@ -90597,6 +90628,11 @@ function applyAttrs(node, attrs) {
|
|
|
90597
90628
|
node.id = String(value);
|
|
90598
90629
|
return;
|
|
90599
90630
|
}
|
|
90631
|
+
if (name === 'description') {
|
|
90632
|
+
// 生成器以属性承载编辑器标签(元信息),不作为插槽文本
|
|
90633
|
+
node.description = String(value);
|
|
90634
|
+
return;
|
|
90635
|
+
}
|
|
90600
90636
|
if (name === ':style') {
|
|
90601
90637
|
// 支持生成器输出的对象字面量形式
|
|
90602
90638
|
if (typeof value === 'string' && value.trim().charAt(0) === '{') {
|
|
@@ -90617,6 +90653,16 @@ function applyAttrs(node, attrs) {
|
|
|
90617
90653
|
node.props = node.props || {};
|
|
90618
90654
|
var key = name.slice(1);
|
|
90619
90655
|
var trimmed = String(value).trim();
|
|
90656
|
+
// 单引号且以 [ / { 开头:生成器的复杂值载体(紧凑 JSON),还原为真实数组/对象;
|
|
90657
|
+
// 双引号仍按表达式字符串处理,保持历史语义
|
|
90658
|
+
if (attr.quote === "'" && /^[[{]/.test(trimmed)) {
|
|
90659
|
+
try {
|
|
90660
|
+
node.props[key] = new Function('return (' + trimmed + ');')();
|
|
90661
|
+
} catch (e) {
|
|
90662
|
+
node.props[key] = String(value);
|
|
90663
|
+
}
|
|
90664
|
+
return;
|
|
90665
|
+
}
|
|
90620
90666
|
// 数字/布尔直接还原类型,其它保留表达式字符串
|
|
90621
90667
|
if (/^-?\d+(\.\d+)?$/.test(trimmed)) {
|
|
90622
90668
|
node.props[key] = Number(trimmed);
|
|
@@ -91308,7 +91354,9 @@ var NATIVE_HTML_TAGS = new Set(['a', 'abbr', 'address', 'area', 'article', 'asid
|
|
|
91308
91354
|
// 在 children 中查找(HTML 元素)
|
|
91309
91355
|
if (this.page.children && this.page.children.length) {
|
|
91310
91356
|
var found = this.findInTree(this.page.children, this.selected);
|
|
91311
|
-
|
|
91357
|
+
// 只有原生 HTML 标签才算 HTML 元素(脚本级字段归页面);
|
|
91358
|
+
// 业务组件(如 backlog)必须回写自身,否则编辑会误落到 page 上
|
|
91359
|
+
if (found && found.id) return this.isNativeHtmlTag(found.name);
|
|
91312
91360
|
}
|
|
91313
91361
|
return false;
|
|
91314
91362
|
},
|
|
@@ -91747,8 +91795,8 @@ var NATIVE_HTML_TAGS = new Set(['a', 'abbr', 'address', 'area', 'article', 'asid
|
|
|
91747
91795
|
|
|
91748
91796
|
var attribute_component = Object(componentNormalizer["a" /* default */])(
|
|
91749
91797
|
src_attributevue_type_script_lang_js_,
|
|
91750
|
-
|
|
91751
|
-
|
|
91798
|
+
attributevue_type_template_id_4827c20a_render,
|
|
91799
|
+
attributevue_type_template_id_4827c20a_staticRenderFns,
|
|
91752
91800
|
false,
|
|
91753
91801
|
null,
|
|
91754
91802
|
null,
|
|
@@ -92327,6 +92375,9 @@ function lowcodevue_type_script_lang_js_objectWithoutProperties(obj, keys) { var
|
|
|
92327
92375
|
//
|
|
92328
92376
|
//
|
|
92329
92377
|
//
|
|
92378
|
+
//
|
|
92379
|
+
//
|
|
92380
|
+
//
|
|
92330
92381
|
|
|
92331
92382
|
|
|
92332
92383
|
|
|
@@ -92465,7 +92516,7 @@ function lowcodevue_type_script_lang_js_objectWithoutProperties(obj, keys) { var
|
|
|
92465
92516
|
},
|
|
92466
92517
|
rules: {
|
|
92467
92518
|
name: [{ required: true, message: '请输入名称', trigger: 'blur' }],
|
|
92468
|
-
code: [{ required: true, message: '请输入编码', trigger: 'blur' }]
|
|
92519
|
+
code: [{ required: true, message: '请输入编码', trigger: 'blur' }, { pattern: /^[a-zA-Z_][a-zA-Z0-9_]*$/, trigger: 'blur' }]
|
|
92469
92520
|
//title: [{ required: true, message: '请输入页面标题', trigger: 'blur' }],
|
|
92470
92521
|
//description: [
|
|
92471
92522
|
// { required: true, message: '请输入描述', trigger: 'blur' }
|
|
@@ -93301,8 +93352,8 @@ function lowcodevue_type_script_lang_js_objectWithoutProperties(obj, keys) { var
|
|
|
93301
93352
|
|
|
93302
93353
|
var lowcode_component = Object(componentNormalizer["a" /* default */])(
|
|
93303
93354
|
src_lowcodevue_type_script_lang_js_,
|
|
93304
|
-
|
|
93305
|
-
|
|
93355
|
+
lowcodevue_type_template_id_ac68474e_render,
|
|
93356
|
+
lowcodevue_type_template_id_ac68474e_staticRenderFns,
|
|
93306
93357
|
false,
|
|
93307
93358
|
null,
|
|
93308
93359
|
null,
|
|
@@ -93319,8 +93370,8 @@ lowcode.install = function (Vue) {
|
|
|
93319
93370
|
};
|
|
93320
93371
|
|
|
93321
93372
|
/* harmony default export */ var packages_lowcode = (lowcode);
|
|
93322
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/view.vue?vue&type=template&id=
|
|
93323
|
-
var
|
|
93373
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/view.vue?vue&type=template&id=5c7ae5e9&
|
|
93374
|
+
var viewvue_type_template_id_5c7ae5e9_render = function () {
|
|
93324
93375
|
var _vm = this
|
|
93325
93376
|
var _h = _vm.$createElement
|
|
93326
93377
|
var _c = _vm._self._c || _h
|
|
@@ -93503,11 +93554,13 @@ var viewvue_type_template_id_0f1c9eba_render = function () {
|
|
|
93503
93554
|
},
|
|
93504
93555
|
[
|
|
93505
93556
|
_vm.visible
|
|
93506
|
-
? _c("
|
|
93557
|
+
? _c("modules", {
|
|
93507
93558
|
attrs: {
|
|
93508
93559
|
modules: _vm.pagesMap,
|
|
93509
93560
|
filters: _vm.pages,
|
|
93510
93561
|
url: _vm.listsUrl,
|
|
93562
|
+
styles: _vm.containerStyle,
|
|
93563
|
+
pageStyle: _vm.pageStyle,
|
|
93511
93564
|
},
|
|
93512
93565
|
on: { add: _vm.handleAdd },
|
|
93513
93566
|
})
|
|
@@ -93519,11 +93572,11 @@ var viewvue_type_template_id_0f1c9eba_render = function () {
|
|
|
93519
93572
|
1
|
|
93520
93573
|
)
|
|
93521
93574
|
}
|
|
93522
|
-
var
|
|
93523
|
-
|
|
93575
|
+
var viewvue_type_template_id_5c7ae5e9_staticRenderFns = []
|
|
93576
|
+
viewvue_type_template_id_5c7ae5e9_render._withStripped = true
|
|
93524
93577
|
|
|
93525
93578
|
|
|
93526
|
-
// CONCATENATED MODULE: ./packages/lowcode-view/src/view.vue?vue&type=template&id=
|
|
93579
|
+
// CONCATENATED MODULE: ./packages/lowcode-view/src/view.vue?vue&type=template&id=5c7ae5e9&
|
|
93527
93580
|
|
|
93528
93581
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/render.vue?vue&type=template&id=30079e52&
|
|
93529
93582
|
var rendervue_type_template_id_30079e52_render = function () {
|
|
@@ -94220,8 +94273,8 @@ var src_render_component = Object(componentNormalizer["a" /* default */])(
|
|
|
94220
94273
|
)
|
|
94221
94274
|
|
|
94222
94275
|
/* harmony default export */ var lowcode_view_src_render = (src_render_component.exports);
|
|
94223
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/
|
|
94224
|
-
var
|
|
94276
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/Modules.vue?vue&type=template&id=00a7fee8&
|
|
94277
|
+
var Modulesvue_type_template_id_00a7fee8_render = function () {
|
|
94225
94278
|
var _vm = this
|
|
94226
94279
|
var _h = _vm.$createElement
|
|
94227
94280
|
var _c = _vm._self._c || _h
|
|
@@ -94244,6 +94297,7 @@ var Modulelsvue_type_template_id_1f83c988_render = function () {
|
|
|
94244
94297
|
{
|
|
94245
94298
|
ref: "waterfallContainer",
|
|
94246
94299
|
staticClass: "es-lowcode-view__modules--waterfall",
|
|
94300
|
+
style: _vm.styles,
|
|
94247
94301
|
model: {
|
|
94248
94302
|
value: _vm.models,
|
|
94249
94303
|
callback: function ($$v) {
|
|
@@ -94309,13 +94363,14 @@ var Modulelsvue_type_template_id_1f83c988_render = function () {
|
|
|
94309
94363
|
1
|
|
94310
94364
|
)
|
|
94311
94365
|
}
|
|
94312
|
-
var
|
|
94313
|
-
|
|
94366
|
+
var Modulesvue_type_template_id_00a7fee8_staticRenderFns = []
|
|
94367
|
+
Modulesvue_type_template_id_00a7fee8_render._withStripped = true
|
|
94314
94368
|
|
|
94315
94369
|
|
|
94316
|
-
// CONCATENATED MODULE: ./packages/lowcode-view/src/
|
|
94370
|
+
// CONCATENATED MODULE: ./packages/lowcode-view/src/Modules.vue?vue&type=template&id=00a7fee8&
|
|
94317
94371
|
|
|
94318
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/
|
|
94372
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/Modules.vue?vue&type=script&lang=js&
|
|
94373
|
+
//
|
|
94319
94374
|
//
|
|
94320
94375
|
//
|
|
94321
94376
|
//
|
|
@@ -94371,8 +94426,9 @@ Modulelsvue_type_template_id_1f83c988_render._withStripped = true
|
|
|
94371
94426
|
|
|
94372
94427
|
|
|
94373
94428
|
|
|
94374
|
-
|
|
94375
|
-
|
|
94429
|
+
|
|
94430
|
+
/* harmony default export */ var Modulesvue_type_script_lang_js_ = ({
|
|
94431
|
+
name: 'Modules',
|
|
94376
94432
|
|
|
94377
94433
|
components: {
|
|
94378
94434
|
EsPagination: pagination_default.a,
|
|
@@ -94385,6 +94441,18 @@ Modulelsvue_type_template_id_1f83c988_render._withStripped = true
|
|
|
94385
94441
|
|
|
94386
94442
|
props: {
|
|
94387
94443
|
url: String,
|
|
94444
|
+
styles: {
|
|
94445
|
+
type: Object,
|
|
94446
|
+
default: function _default() {
|
|
94447
|
+
return {};
|
|
94448
|
+
}
|
|
94449
|
+
},
|
|
94450
|
+
pageStyle: {
|
|
94451
|
+
type: Object,
|
|
94452
|
+
default: function _default() {
|
|
94453
|
+
return {};
|
|
94454
|
+
}
|
|
94455
|
+
},
|
|
94388
94456
|
filters: {
|
|
94389
94457
|
type: Array,
|
|
94390
94458
|
default: function _default() {
|
|
@@ -94396,9 +94464,7 @@ Modulelsvue_type_template_id_1f83c988_render._withStripped = true
|
|
|
94396
94464
|
default: function _default() {
|
|
94397
94465
|
return [];
|
|
94398
94466
|
}
|
|
94399
|
-
}
|
|
94400
|
-
columns: Number,
|
|
94401
|
-
gap: Number
|
|
94467
|
+
}
|
|
94402
94468
|
},
|
|
94403
94469
|
|
|
94404
94470
|
data: function data() {
|
|
@@ -94420,6 +94486,14 @@ Modulelsvue_type_template_id_1f83c988_render._withStripped = true
|
|
|
94420
94486
|
return this.filters.map(function (item) {
|
|
94421
94487
|
return item.id;
|
|
94422
94488
|
});
|
|
94489
|
+
},
|
|
94490
|
+
|
|
94491
|
+
// 列数/列间距与 view.vue 同源:从 pageStyle 解析,缺省 2 列 0 间距
|
|
94492
|
+
columnCount: function columnCount() {
|
|
94493
|
+
return parseInt((this.pageStyle || {}).columns || 2, 10);
|
|
94494
|
+
},
|
|
94495
|
+
columnGap: function columnGap() {
|
|
94496
|
+
return parseInt((this.pageStyle || {}).gap || 0, 10);
|
|
94423
94497
|
}
|
|
94424
94498
|
},
|
|
94425
94499
|
|
|
@@ -94443,7 +94517,7 @@ Modulelsvue_type_template_id_1f83c988_render._withStripped = true
|
|
|
94443
94517
|
var _this = this;
|
|
94444
94518
|
|
|
94445
94519
|
this.$nextTick(function () {
|
|
94446
|
-
_this.
|
|
94520
|
+
_this.layoutWaterfall();
|
|
94447
94521
|
});
|
|
94448
94522
|
},
|
|
94449
94523
|
|
|
@@ -94496,77 +94570,59 @@ Modulelsvue_type_template_id_1f83c988_render._withStripped = true
|
|
|
94496
94570
|
},
|
|
94497
94571
|
|
|
94498
94572
|
/**
|
|
94499
|
-
*
|
|
94500
|
-
*
|
|
94573
|
+
* 瀑布流布局:与 view.vue 保持同一套行为,
|
|
94574
|
+
* masonry 模式复用 util.layoutWaterfall 完成元素分配与定位,
|
|
94575
|
+
* 非 masonry(grid/flex)只清理子元素绝对定位残留,交还容器 CSS 控制
|
|
94501
94576
|
*/
|
|
94502
94577
|
layoutWaterfall: function layoutWaterfall() {
|
|
94503
94578
|
var _this3 = this;
|
|
94504
94579
|
|
|
94505
|
-
var
|
|
94580
|
+
var ref = this.$refs.waterfallContainer;
|
|
94581
|
+
var container = ref && ref.$el ? ref.$el : ref;
|
|
94506
94582
|
if (!container) return;
|
|
94583
|
+
if (this.results.length === 0) return;
|
|
94507
94584
|
|
|
94508
|
-
//
|
|
94509
|
-
|
|
94510
|
-
|
|
94511
|
-
|
|
94512
|
-
|
|
94513
|
-
|
|
94514
|
-
|
|
94515
|
-
|
|
94516
|
-
|
|
94585
|
+
// 非瀑布流模式:grid/flex 由容器 CSS(styles prop)控制,重置子元素为普通流式布局
|
|
94586
|
+
if ((this.pageStyle || {}).display !== 'masonry') {
|
|
94587
|
+
var display = (this.pageStyle || {}).display;
|
|
94588
|
+
this.results.forEach(function (item) {
|
|
94589
|
+
if (!item.style) _this3.$set(item, 'style', {});
|
|
94590
|
+
if (item.style.position !== undefined) {
|
|
94591
|
+
_this3.$set(item.style, 'position', '');
|
|
94592
|
+
}
|
|
94593
|
+
if (item.style.left !== undefined) {
|
|
94594
|
+
_this3.$set(item.style, 'left', '');
|
|
94595
|
+
}
|
|
94596
|
+
if (item.style.top !== undefined) {
|
|
94597
|
+
_this3.$set(item.style, 'top', '');
|
|
94598
|
+
}
|
|
94599
|
+
// grid 宽度由列宽/span 决定,移除瀑布流残留的 width
|
|
94600
|
+
if (display === 'grid' && item.style.width) {
|
|
94601
|
+
_this3.$delete(item.style, 'width');
|
|
94602
|
+
}
|
|
94603
|
+
});
|
|
94604
|
+
container.style.height = 'auto';
|
|
94605
|
+
container.style.position = '';
|
|
94606
|
+
return;
|
|
94607
|
+
}
|
|
94517
94608
|
|
|
94518
|
-
//
|
|
94609
|
+
// util 按 px 解析 width,百分比宽度(如 '100%')会被 parseInt
|
|
94610
|
+
// 误判成自定义像素宽度,这里先移除,让 util 回退到按 span 计算列宽
|
|
94519
94611
|
this.results.forEach(function (item) {
|
|
94520
|
-
var
|
|
94521
|
-
|
|
94522
|
-
|
|
94523
|
-
if (columnHeights[1] < columnHeights[0]) {
|
|
94524
|
-
minColIndex = 1;
|
|
94525
|
-
}
|
|
94526
|
-
|
|
94527
|
-
// 计算元素位置
|
|
94528
|
-
var left = 0;
|
|
94529
|
-
var top = 0;
|
|
94530
|
-
var width = parseInt(item.style.width ? item.style.width : item.width);
|
|
94531
|
-
var height = parseInt(item.style.height ? item.style.height : item.height);
|
|
94532
|
-
var eleWidth = columnWidth * span + _this3.gap * (span - 1);
|
|
94533
|
-
if (width == '100%' || span == _this3.columns) {
|
|
94534
|
-
// 通栏元素,放在第一列顶部
|
|
94535
|
-
left = 0;
|
|
94536
|
-
top = Math.max.apply(Math, columnHeights);
|
|
94537
|
-
// 更新两列的高度为相同值
|
|
94538
|
-
columnHeights[0] = columnHeights[1] = top + (height || 0) + _this3.gap;
|
|
94539
|
-
} else {
|
|
94540
|
-
// 普通元素,放在高度最小的列
|
|
94541
|
-
left = minColIndex * (eleWidth + _this3.gap);
|
|
94542
|
-
top = columnHeights[minColIndex];
|
|
94543
|
-
// 更新该列的高度
|
|
94544
|
-
columnHeights[minColIndex] += (height || 0) + _this3.gap;
|
|
94545
|
-
}
|
|
94546
|
-
|
|
94547
|
-
// 设置元素样式(使用Vue的$set确保响应式)
|
|
94548
|
-
if (!item.style) {
|
|
94549
|
-
_this3.$set(item, 'style', {});
|
|
94612
|
+
var width = item.style && item.style.width;
|
|
94613
|
+
if (width && /%$/.test(String(width).trim())) {
|
|
94614
|
+
_this3.$delete(item.style, 'width');
|
|
94550
94615
|
}
|
|
94551
|
-
_this3.$set(item.style, 'position', 'absolute');
|
|
94552
|
-
_this3.$set(item.style, 'width', width == '100%' ? '100%' : eleWidth + 'px');
|
|
94553
|
-
_this3.$set(item.style, 'height', height + 'px');
|
|
94554
|
-
_this3.$set(item.style, 'left', left + 'px');
|
|
94555
|
-
_this3.$set(item.style, 'top', top + 'px');
|
|
94556
|
-
|
|
94557
|
-
// 已在位置计算部分更新了列高度
|
|
94558
94616
|
});
|
|
94559
94617
|
|
|
94560
|
-
//
|
|
94561
|
-
|
|
94562
|
-
container.style.position = 'relative';
|
|
94563
|
-
container.style.height = maxHeight - this.gap + 'px'; // 减去最后一个间隙
|
|
94618
|
+
// 瀑布流核心计算复用 util,与页面渲染态保持同一套行为
|
|
94619
|
+
Object(utils_util["J" /* layoutWaterfall */])(this, container, this.results, this.columnCount, this.columnGap);
|
|
94564
94620
|
}
|
|
94565
94621
|
}
|
|
94566
94622
|
});
|
|
94567
|
-
// CONCATENATED MODULE: ./packages/lowcode-view/src/
|
|
94568
|
-
/* harmony default export */ var
|
|
94569
|
-
// CONCATENATED MODULE: ./packages/lowcode-view/src/
|
|
94623
|
+
// CONCATENATED MODULE: ./packages/lowcode-view/src/Modules.vue?vue&type=script&lang=js&
|
|
94624
|
+
/* harmony default export */ var src_Modulesvue_type_script_lang_js_ = (Modulesvue_type_script_lang_js_);
|
|
94625
|
+
// CONCATENATED MODULE: ./packages/lowcode-view/src/Modules.vue
|
|
94570
94626
|
|
|
94571
94627
|
|
|
94572
94628
|
|
|
@@ -94574,10 +94630,10 @@ Modulelsvue_type_template_id_1f83c988_render._withStripped = true
|
|
|
94574
94630
|
|
|
94575
94631
|
/* normalize component */
|
|
94576
94632
|
|
|
94577
|
-
var
|
|
94578
|
-
|
|
94579
|
-
|
|
94580
|
-
|
|
94633
|
+
var Modules_component = Object(componentNormalizer["a" /* default */])(
|
|
94634
|
+
src_Modulesvue_type_script_lang_js_,
|
|
94635
|
+
Modulesvue_type_template_id_00a7fee8_render,
|
|
94636
|
+
Modulesvue_type_template_id_00a7fee8_staticRenderFns,
|
|
94581
94637
|
false,
|
|
94582
94638
|
null,
|
|
94583
94639
|
null,
|
|
@@ -94585,10 +94641,12 @@ var Modulels_component = Object(componentNormalizer["a" /* default */])(
|
|
|
94585
94641
|
|
|
94586
94642
|
)
|
|
94587
94643
|
|
|
94588
|
-
/* harmony default export */ var
|
|
94644
|
+
/* harmony default export */ var Modules = (Modules_component.exports);
|
|
94589
94645
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/lowcode-view/src/view.vue?vue&type=script&lang=js&
|
|
94590
94646
|
var viewvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
94591
94647
|
|
|
94648
|
+
function viewvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
|
|
94649
|
+
|
|
94592
94650
|
function viewvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
94593
94651
|
|
|
94594
94652
|
//
|
|
@@ -94683,6 +94741,8 @@ function viewvue_type_script_lang_js_objectWithoutProperties(obj, keys) { var ta
|
|
|
94683
94741
|
//
|
|
94684
94742
|
//
|
|
94685
94743
|
//
|
|
94744
|
+
//
|
|
94745
|
+
//
|
|
94686
94746
|
|
|
94687
94747
|
|
|
94688
94748
|
|
|
@@ -94700,7 +94760,7 @@ var viewvue_type_script_lang_js_DROP_SPACE = 200;
|
|
|
94700
94760
|
/* harmony default export */ var viewvue_type_script_lang_js_ = ({
|
|
94701
94761
|
name: 'LowcodeView',
|
|
94702
94762
|
|
|
94703
|
-
components: { EsScrollbar: scrollbar_default.a, Render: lowcode_view_src_render,
|
|
94763
|
+
components: { EsScrollbar: scrollbar_default.a, Render: lowcode_view_src_render, Modules: Modules, EsButton: button_default.a, EsDialog: dialog_default.a, EsIcon: icon_default.a },
|
|
94704
94764
|
|
|
94705
94765
|
props: {
|
|
94706
94766
|
isEdit: {
|
|
@@ -94718,6 +94778,7 @@ var viewvue_type_script_lang_js_DROP_SPACE = 200;
|
|
|
94718
94778
|
|
|
94719
94779
|
data: function data() {
|
|
94720
94780
|
return {
|
|
94781
|
+
pageData: this.page,
|
|
94721
94782
|
// 组件列表
|
|
94722
94783
|
components: [],
|
|
94723
94784
|
// 列宽
|
|
@@ -94876,34 +94937,94 @@ var viewvue_type_script_lang_js_DROP_SPACE = 200;
|
|
|
94876
94937
|
params: {
|
|
94877
94938
|
mainPageComponentConfigId: this.pageId
|
|
94878
94939
|
}
|
|
94879
|
-
}).then(function (
|
|
94880
|
-
|
|
94940
|
+
}).then(function () {
|
|
94941
|
+
var _ref = viewvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(res) {
|
|
94942
|
+
var _ref2, pageInfo, targetList, content, page, parsed, userConfig, modules, _parsed, children, parseds;
|
|
94943
|
+
|
|
94944
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
94945
|
+
while (1) {
|
|
94946
|
+
switch (_context.prev = _context.next) {
|
|
94947
|
+
case 0:
|
|
94948
|
+
if (!(res.rCode != 0)) {
|
|
94949
|
+
_context.next = 2;
|
|
94950
|
+
break;
|
|
94951
|
+
}
|
|
94881
94952
|
|
|
94882
|
-
|
|
94883
|
-
pageInfo = _ref.pageInfo,
|
|
94884
|
-
targetList = _ref.targetList;
|
|
94953
|
+
return _context.abrupt('return');
|
|
94885
94954
|
|
|
94886
|
-
|
|
94887
|
-
|
|
94888
|
-
|
|
94889
|
-
// pageInfo.content 是一段 JSON 字符串,内部结构为 { children, style, ... }
|
|
94955
|
+
case 2:
|
|
94956
|
+
_ref2 = res.results || {}, pageInfo = _ref2.pageInfo, targetList = _ref2.targetList;
|
|
94957
|
+
//targetList后续需要完善
|
|
94890
94958
|
|
|
94891
|
-
|
|
94892
|
-
|
|
94959
|
+
if (pageInfo) {
|
|
94960
|
+
_context.next = 5;
|
|
94961
|
+
break;
|
|
94962
|
+
}
|
|
94893
94963
|
|
|
94894
|
-
|
|
94895
|
-
|
|
94896
|
-
|
|
94897
|
-
|
|
94898
|
-
|
|
94899
|
-
|
|
94900
|
-
|
|
94901
|
-
|
|
94902
|
-
|
|
94903
|
-
|
|
94904
|
-
|
|
94905
|
-
|
|
94906
|
-
|
|
94964
|
+
return _context.abrupt('return');
|
|
94965
|
+
|
|
94966
|
+
case 5:
|
|
94967
|
+
content = pageInfo.content, page = viewvue_type_script_lang_js_objectWithoutProperties(pageInfo, ['content']);
|
|
94968
|
+
parsed = {};
|
|
94969
|
+
|
|
94970
|
+
try {
|
|
94971
|
+
parsed = JSON.parse(content);
|
|
94972
|
+
} catch (e) {
|
|
94973
|
+
parsed = {};
|
|
94974
|
+
}
|
|
94975
|
+
// pageInfo.content 是一段 JSON 字符串,内部结构为 { children, style, ... }
|
|
94976
|
+
|
|
94977
|
+
if (!pageInfo.code) {
|
|
94978
|
+
_context.next = 15;
|
|
94979
|
+
break;
|
|
94980
|
+
}
|
|
94981
|
+
|
|
94982
|
+
_context.next = 11;
|
|
94983
|
+
return Object(utils_ajax["a" /* ajax */])({
|
|
94984
|
+
url: api["J" /* getByType */],
|
|
94985
|
+
params: {
|
|
94986
|
+
type: pageInfo.code
|
|
94987
|
+
}
|
|
94988
|
+
});
|
|
94989
|
+
|
|
94990
|
+
case 11:
|
|
94991
|
+
userConfig = _context.sent;
|
|
94992
|
+
|
|
94993
|
+
if (userConfig.rCode === 0 && userConfig.results && userConfig.results[pageInfo.code] && userConfig.results[pageInfo.code].userConfig) {
|
|
94994
|
+
modules = JSON.parse(userConfig.results[pageInfo.code].userConfig);
|
|
94995
|
+
_parsed = parsed, children = _parsed.children, parseds = viewvue_type_script_lang_js_objectWithoutProperties(_parsed, ['children']);
|
|
94996
|
+
|
|
94997
|
+
_this.pageData = viewvue_type_script_lang_js_extends({}, page, parseds, { children: modules });
|
|
94998
|
+
_this.pagesMap = children || [];
|
|
94999
|
+
} else {
|
|
95000
|
+
_this.pageData = viewvue_type_script_lang_js_extends({}, page, parsed);
|
|
95001
|
+
}
|
|
95002
|
+
_context.next = 16;
|
|
95003
|
+
break;
|
|
95004
|
+
|
|
95005
|
+
case 15:
|
|
95006
|
+
_this.pageData = viewvue_type_script_lang_js_extends({}, page, parsed);
|
|
95007
|
+
|
|
95008
|
+
case 16:
|
|
95009
|
+
// 合并:page 保留元信息,parsed 提供 children/style 等渲染所需结构
|
|
95010
|
+
_this.setPageData(_this.pageData);
|
|
95011
|
+
// mounted 时 pages 尚为空,异步拿到数据后需重新触发布局
|
|
95012
|
+
_this.$nextTick(function () {
|
|
95013
|
+
_this.init();
|
|
95014
|
+
});
|
|
95015
|
+
|
|
95016
|
+
case 18:
|
|
95017
|
+
case 'end':
|
|
95018
|
+
return _context.stop();
|
|
95019
|
+
}
|
|
95020
|
+
}
|
|
95021
|
+
}, _callee, _this);
|
|
95022
|
+
}));
|
|
95023
|
+
|
|
95024
|
+
return function (_x) {
|
|
95025
|
+
return _ref.apply(this, arguments);
|
|
95026
|
+
};
|
|
95027
|
+
}()).catch(function (err) {}).finally(function () {
|
|
94907
95028
|
loadingInstance.close();
|
|
94908
95029
|
});
|
|
94909
95030
|
},
|
|
@@ -94989,13 +95110,14 @@ var viewvue_type_script_lang_js_DROP_SPACE = 200;
|
|
|
94989
95110
|
method: 'post',
|
|
94990
95111
|
format: false,
|
|
94991
95112
|
data: {
|
|
94992
|
-
type:
|
|
95113
|
+
type: this.pageData.code,
|
|
94993
95114
|
userConfig: JSON.stringify(this.pages)
|
|
94994
95115
|
}
|
|
94995
95116
|
}).then(function (res) {
|
|
94996
95117
|
if (res.rCode == 0 || res.status == 'success') {
|
|
94997
95118
|
_this4.$message.success('保存成功!');
|
|
94998
|
-
|
|
95119
|
+
// 保存成功后重新拉取页面配置,刷新渲染数据
|
|
95120
|
+
_this4.getPagesMap();
|
|
94999
95121
|
_this4.edit = false;
|
|
95000
95122
|
_this4.$nextTick(function () {
|
|
95001
95123
|
_this4.layoutWaterfall();
|
|
@@ -95378,8 +95500,8 @@ var viewvue_type_script_lang_js_DROP_SPACE = 200;
|
|
|
95378
95500
|
|
|
95379
95501
|
var view_component = Object(componentNormalizer["a" /* default */])(
|
|
95380
95502
|
src_viewvue_type_script_lang_js_,
|
|
95381
|
-
|
|
95382
|
-
|
|
95503
|
+
viewvue_type_template_id_5c7ae5e9_render,
|
|
95504
|
+
viewvue_type_template_id_5c7ae5e9_staticRenderFns,
|
|
95383
95505
|
false,
|
|
95384
95506
|
null,
|
|
95385
95507
|
null,
|
|
@@ -95422,8 +95544,8 @@ mainvue_type_template_id_fa31784a_render._withStripped = true
|
|
|
95422
95544
|
|
|
95423
95545
|
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=fa31784a&
|
|
95424
95546
|
|
|
95425
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/early.vue?vue&type=template&id=
|
|
95426
|
-
var
|
|
95547
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/early.vue?vue&type=template&id=37bc3029&
|
|
95548
|
+
var earlyvue_type_template_id_37bc3029_render = function () {
|
|
95427
95549
|
var _vm = this
|
|
95428
95550
|
var _h = _vm.$createElement
|
|
95429
95551
|
var _c = _vm._self._c || _h
|
|
@@ -95588,6 +95710,7 @@ var earlyvue_type_template_id_87b5544a_render = function () {
|
|
|
95588
95710
|
backgroundColor: _vm.menuBackgroundColor,
|
|
95589
95711
|
"menu-icon": _vm.menuIcon,
|
|
95590
95712
|
active: _vm.subActive,
|
|
95713
|
+
"unique-opened": _vm.uniqueOpened,
|
|
95591
95714
|
},
|
|
95592
95715
|
on: {
|
|
95593
95716
|
"update:visible": function ($event) {
|
|
@@ -95730,11 +95853,11 @@ var earlyvue_type_template_id_87b5544a_render = function () {
|
|
|
95730
95853
|
1
|
|
95731
95854
|
)
|
|
95732
95855
|
}
|
|
95733
|
-
var
|
|
95734
|
-
|
|
95856
|
+
var earlyvue_type_template_id_37bc3029_staticRenderFns = []
|
|
95857
|
+
earlyvue_type_template_id_37bc3029_render._withStripped = true
|
|
95735
95858
|
|
|
95736
95859
|
|
|
95737
|
-
// CONCATENATED MODULE: ./packages/main/src/early.vue?vue&type=template&id=
|
|
95860
|
+
// CONCATENATED MODULE: ./packages/main/src/early.vue?vue&type=template&id=37bc3029&
|
|
95738
95861
|
|
|
95739
95862
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/application.vue?vue&type=template&id=7c084b4e&
|
|
95740
95863
|
var applicationvue_type_template_id_7c084b4e_render = function () {
|
|
@@ -99085,8 +99208,8 @@ var handler_component = Object(componentNormalizer["a" /* default */])(
|
|
|
99085
99208
|
)
|
|
99086
99209
|
|
|
99087
99210
|
/* harmony default export */ var components_handler = (handler_component.exports);
|
|
99088
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/sub-menu.vue?vue&type=template&id=
|
|
99089
|
-
var
|
|
99211
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/sub-menu.vue?vue&type=template&id=03fedcf9&
|
|
99212
|
+
var sub_menuvue_type_template_id_03fedcf9_render = function () {
|
|
99090
99213
|
var _vm = this
|
|
99091
99214
|
var _h = _vm.$createElement
|
|
99092
99215
|
var _c = _vm._self._c || _h
|
|
@@ -99180,6 +99303,7 @@ var sub_menuvue_type_template_id_e62b4e72_render = function () {
|
|
|
99180
99303
|
iconColors: _vm.backgroundColor,
|
|
99181
99304
|
"show-title": false,
|
|
99182
99305
|
collapse: _vm.fold,
|
|
99306
|
+
"unique-opened": _vm.uniqueOpened,
|
|
99183
99307
|
},
|
|
99184
99308
|
on: { select: _vm.handleSelect },
|
|
99185
99309
|
}),
|
|
@@ -99187,11 +99311,11 @@ var sub_menuvue_type_template_id_e62b4e72_render = function () {
|
|
|
99187
99311
|
1
|
|
99188
99312
|
)
|
|
99189
99313
|
}
|
|
99190
|
-
var
|
|
99191
|
-
|
|
99314
|
+
var sub_menuvue_type_template_id_03fedcf9_staticRenderFns = []
|
|
99315
|
+
sub_menuvue_type_template_id_03fedcf9_render._withStripped = true
|
|
99192
99316
|
|
|
99193
99317
|
|
|
99194
|
-
// CONCATENATED MODULE: ./packages/main/src/components/sub-menu.vue?vue&type=template&id=
|
|
99318
|
+
// CONCATENATED MODULE: ./packages/main/src/components/sub-menu.vue?vue&type=template&id=03fedcf9&
|
|
99195
99319
|
|
|
99196
99320
|
// EXTERNAL MODULE: external "eoss/lib/menu"
|
|
99197
99321
|
var menu_ = __webpack_require__(62);
|
|
@@ -99245,6 +99369,7 @@ var menu_default = /*#__PURE__*/__webpack_require__.n(menu_);
|
|
|
99245
99369
|
//
|
|
99246
99370
|
//
|
|
99247
99371
|
//
|
|
99372
|
+
//
|
|
99248
99373
|
|
|
99249
99374
|
|
|
99250
99375
|
|
|
@@ -99268,6 +99393,7 @@ var menu_default = /*#__PURE__*/__webpack_require__.n(menu_);
|
|
|
99268
99393
|
active: String,
|
|
99269
99394
|
mode: String,
|
|
99270
99395
|
collapse: Boolean,
|
|
99396
|
+
uniqueOpened: Boolean,
|
|
99271
99397
|
title: String,
|
|
99272
99398
|
closed: Boolean,
|
|
99273
99399
|
iconPosition: String,
|
|
@@ -99368,8 +99494,8 @@ var menu_default = /*#__PURE__*/__webpack_require__.n(menu_);
|
|
|
99368
99494
|
|
|
99369
99495
|
var sub_menu_component = Object(componentNormalizer["a" /* default */])(
|
|
99370
99496
|
components_sub_menuvue_type_script_lang_js_,
|
|
99371
|
-
|
|
99372
|
-
|
|
99497
|
+
sub_menuvue_type_template_id_03fedcf9_render,
|
|
99498
|
+
sub_menuvue_type_template_id_03fedcf9_staticRenderFns,
|
|
99373
99499
|
false,
|
|
99374
99500
|
null,
|
|
99375
99501
|
null,
|
|
@@ -100452,8 +100578,8 @@ var notice_component = Object(componentNormalizer["a" /* default */])(
|
|
|
100452
100578
|
)
|
|
100453
100579
|
|
|
100454
100580
|
/* harmony default export */ var components_notice = (notice_component.exports);
|
|
100455
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/pages.vue?vue&type=template&id=
|
|
100456
|
-
var
|
|
100581
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/pages.vue?vue&type=template&id=35e35b04&scoped=true&
|
|
100582
|
+
var pagesvue_type_template_id_35e35b04_scoped_true_render = function () {
|
|
100457
100583
|
var _vm = this
|
|
100458
100584
|
var _h = _vm.$createElement
|
|
100459
100585
|
var _c = _vm._self._c || _h
|
|
@@ -100683,14 +100809,14 @@ var pagesvue_type_template_id_2a374726_scoped_true_render = function () {
|
|
|
100683
100809
|
1
|
|
100684
100810
|
)
|
|
100685
100811
|
}
|
|
100686
|
-
var
|
|
100687
|
-
|
|
100812
|
+
var pagesvue_type_template_id_35e35b04_scoped_true_staticRenderFns = []
|
|
100813
|
+
pagesvue_type_template_id_35e35b04_scoped_true_render._withStripped = true
|
|
100688
100814
|
|
|
100689
100815
|
|
|
100690
|
-
// CONCATENATED MODULE: ./packages/main/src/components/pages.vue?vue&type=template&id=
|
|
100816
|
+
// CONCATENATED MODULE: ./packages/main/src/components/pages.vue?vue&type=template&id=35e35b04&scoped=true&
|
|
100691
100817
|
|
|
100692
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/router-page.vue?vue&type=template&id=
|
|
100693
|
-
var
|
|
100818
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/router-page.vue?vue&type=template&id=bcc739f0&
|
|
100819
|
+
var router_pagevue_type_template_id_bcc739f0_render = function () {
|
|
100694
100820
|
var _vm = this
|
|
100695
100821
|
var _h = _vm.$createElement
|
|
100696
100822
|
var _c = _vm._self._c || _h
|
|
@@ -100705,11 +100831,11 @@ var router_pagevue_type_template_id_256bd9c9_render = function () {
|
|
|
100705
100831
|
1
|
|
100706
100832
|
)
|
|
100707
100833
|
}
|
|
100708
|
-
var
|
|
100709
|
-
|
|
100834
|
+
var router_pagevue_type_template_id_bcc739f0_staticRenderFns = []
|
|
100835
|
+
router_pagevue_type_template_id_bcc739f0_render._withStripped = true
|
|
100710
100836
|
|
|
100711
100837
|
|
|
100712
|
-
// CONCATENATED MODULE: ./packages/main/src/components/router-page.vue?vue&type=template&id=
|
|
100838
|
+
// CONCATENATED MODULE: ./packages/main/src/components/router-page.vue?vue&type=template&id=bcc739f0&
|
|
100713
100839
|
|
|
100714
100840
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/components/router-page.vue?vue&type=script&lang=js&
|
|
100715
100841
|
var router_pagevue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -100749,11 +100875,22 @@ var router_pagevue_type_script_lang_js_extends = Object.assign || function (targ
|
|
|
100749
100875
|
keys: String
|
|
100750
100876
|
},
|
|
100751
100877
|
|
|
100878
|
+
provide: function provide() {
|
|
100879
|
+
return {
|
|
100880
|
+
// 向页面组件下发本页签独立解析的路由上下文,
|
|
100881
|
+
// 页面组件应 inject 使用,避免多页签同开时读全局 $route 互相串
|
|
100882
|
+
routerPageRoute: this.routeContext
|
|
100883
|
+
};
|
|
100884
|
+
},
|
|
100752
100885
|
data: function data() {
|
|
100753
100886
|
return {
|
|
100754
100887
|
matchedComponent: null,
|
|
100755
100888
|
resolvedRoute: null,
|
|
100756
|
-
refreshTrigger: false
|
|
100889
|
+
refreshTrigger: false,
|
|
100890
|
+
// 响应式路由上下文:route 为本页签 resolve 出的路由快照
|
|
100891
|
+
routeContext: {
|
|
100892
|
+
route: null
|
|
100893
|
+
}
|
|
100757
100894
|
};
|
|
100758
100895
|
},
|
|
100759
100896
|
|
|
@@ -100797,6 +100934,7 @@ var router_pagevue_type_script_lang_js_extends = Object.assign || function (targ
|
|
|
100797
100934
|
var record = matched[matched.length - 1];
|
|
100798
100935
|
this.matchedComponent = record.components.default;
|
|
100799
100936
|
this.resolvedRoute = resolved.route;
|
|
100937
|
+
this.routeContext.route = this.pickRoute(resolved.route);
|
|
100800
100938
|
}
|
|
100801
100939
|
|
|
100802
100940
|
// 同步地址栏(可选,保持 URL 反映当前激活的 tab)
|
|
@@ -100806,6 +100944,22 @@ var router_pagevue_type_script_lang_js_extends = Object.assign || function (targ
|
|
|
100806
100944
|
},
|
|
100807
100945
|
|
|
100808
100946
|
|
|
100947
|
+
/**
|
|
100948
|
+
* 提取路由快照:只保留页面组件常用的扁平字段,
|
|
100949
|
+
* 避免把含循环引用的完整 route 对象交给响应式系统
|
|
100950
|
+
*/
|
|
100951
|
+
pickRoute: function pickRoute(route) {
|
|
100952
|
+
return {
|
|
100953
|
+
path: route.path,
|
|
100954
|
+
fullPath: route.fullPath,
|
|
100955
|
+
name: route.name,
|
|
100956
|
+
meta: route.meta,
|
|
100957
|
+
params: router_pagevue_type_script_lang_js_extends({}, route.params),
|
|
100958
|
+
query: router_pagevue_type_script_lang_js_extends({}, route.query)
|
|
100959
|
+
};
|
|
100960
|
+
},
|
|
100961
|
+
|
|
100962
|
+
|
|
100809
100963
|
/**
|
|
100810
100964
|
* 刷新当前页签路由
|
|
100811
100965
|
* 先卸载再重新挂载,实现完整刷新
|
|
@@ -100844,8 +100998,8 @@ var router_pagevue_type_script_lang_js_extends = Object.assign || function (targ
|
|
|
100844
100998
|
|
|
100845
100999
|
var router_page_component = Object(componentNormalizer["a" /* default */])(
|
|
100846
101000
|
components_router_pagevue_type_script_lang_js_,
|
|
100847
|
-
|
|
100848
|
-
|
|
101001
|
+
router_pagevue_type_template_id_bcc739f0_render,
|
|
101002
|
+
router_pagevue_type_template_id_bcc739f0_staticRenderFns,
|
|
100849
101003
|
false,
|
|
100850
101004
|
null,
|
|
100851
101005
|
null,
|
|
@@ -101095,15 +101249,18 @@ var components_pagesvue_type_script_lang_js_extends = Object.assign || function
|
|
|
101095
101249
|
handler: function handler(val) {
|
|
101096
101250
|
if (this.isFourthTabs) {
|
|
101097
101251
|
this.newTabs = val.map(function (item) {
|
|
101252
|
+
console.log('item', item);
|
|
101098
101253
|
var defaultActive = ((item.fourthTabs || []).filter(function (ele) {
|
|
101099
|
-
return item.url
|
|
101254
|
+
return item.url.indexOf(ele.url) > -1;
|
|
101100
101255
|
})[0] || {}).id || '';
|
|
101101
101256
|
return defaultActive ? components_pagesvue_type_script_lang_js_extends({}, item, {
|
|
101102
101257
|
defaultActive: defaultActive
|
|
101103
101258
|
}) : item;
|
|
101104
101259
|
});
|
|
101260
|
+
console.log('tabs', this.newTabs);
|
|
101105
101261
|
return;
|
|
101106
101262
|
}
|
|
101263
|
+
console.log('tabs', val);
|
|
101107
101264
|
this.newTabs = val;
|
|
101108
101265
|
}
|
|
101109
101266
|
}
|
|
@@ -101370,11 +101527,11 @@ var components_pagesvue_type_script_lang_js_extends = Object.assign || function
|
|
|
101370
101527
|
|
|
101371
101528
|
var components_pages_component = Object(componentNormalizer["a" /* default */])(
|
|
101372
101529
|
src_components_pagesvue_type_script_lang_js_,
|
|
101373
|
-
|
|
101374
|
-
|
|
101530
|
+
pagesvue_type_template_id_35e35b04_scoped_true_render,
|
|
101531
|
+
pagesvue_type_template_id_35e35b04_scoped_true_staticRenderFns,
|
|
101375
101532
|
false,
|
|
101376
101533
|
null,
|
|
101377
|
-
"
|
|
101534
|
+
"35e35b04",
|
|
101378
101535
|
null
|
|
101379
101536
|
|
|
101380
101537
|
)
|
|
@@ -104041,6 +104198,8 @@ var appid = Object(utils_util["s" /* getParams */])('applicationId');
|
|
|
104041
104198
|
fold: false,
|
|
104042
104199
|
// 菜单样式是否折叠形式
|
|
104043
104200
|
isCollapse: this.collapse,
|
|
104201
|
+
// 菜单是否手风琴模式
|
|
104202
|
+
uniqueOpened: true,
|
|
104044
104203
|
// 人工智能配置
|
|
104045
104204
|
aiConfig: null,
|
|
104046
104205
|
// im配置
|
|
@@ -104657,6 +104816,11 @@ var appid = Object(utils_util["s" /* getParams */])('applicationId');
|
|
|
104657
104816
|
if (path.indexOf(':') === -1 && path.indexOf('*') === -1) {
|
|
104658
104817
|
return false;
|
|
104659
104818
|
}
|
|
104819
|
+
// 根级兜底('*'、'/*')语义是「其余一切」,不代表本站真有该页面;
|
|
104820
|
+
// 若算命中,任何外部地址都会被误判为站内路由,resolve 到兜底组件(回首页/404)
|
|
104821
|
+
if (path.replace(/\//g, '') === '*') {
|
|
104822
|
+
return false;
|
|
104823
|
+
}
|
|
104660
104824
|
var paths = path.split('/');
|
|
104661
104825
|
var names = target.split('/');
|
|
104662
104826
|
var optional = 0;
|
|
@@ -106407,6 +106571,7 @@ var appid = Object(utils_util["s" /* getParams */])('applicationId');
|
|
|
106407
106571
|
//
|
|
106408
106572
|
//
|
|
106409
106573
|
//
|
|
106574
|
+
//
|
|
106410
106575
|
|
|
106411
106576
|
|
|
106412
106577
|
|
|
@@ -106470,8 +106635,8 @@ var appid = Object(utils_util["s" /* getParams */])('applicationId');
|
|
|
106470
106635
|
|
|
106471
106636
|
var early_component = Object(componentNormalizer["a" /* default */])(
|
|
106472
106637
|
src_earlyvue_type_script_lang_js_,
|
|
106473
|
-
|
|
106474
|
-
|
|
106638
|
+
earlyvue_type_template_id_37bc3029_render,
|
|
106639
|
+
earlyvue_type_template_id_37bc3029_staticRenderFns,
|
|
106475
106640
|
false,
|
|
106476
106641
|
null,
|
|
106477
106642
|
null,
|
|
@@ -106480,8 +106645,8 @@ var early_component = Object(componentNormalizer["a" /* default */])(
|
|
|
106480
106645
|
)
|
|
106481
106646
|
|
|
106482
106647
|
/* harmony default export */ var early = (early_component.exports);
|
|
106483
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/gzw.vue?vue&type=template&id=
|
|
106484
|
-
var
|
|
106648
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/gzw.vue?vue&type=template&id=792ae2ad&
|
|
106649
|
+
var gzwvue_type_template_id_792ae2ad_render = function () {
|
|
106485
106650
|
var _vm = this
|
|
106486
106651
|
var _h = _vm.$createElement
|
|
106487
106652
|
var _c = _vm._self._c || _h
|
|
@@ -106574,6 +106739,7 @@ var gzwvue_type_template_id_db7a8e8a_render = function () {
|
|
|
106574
106739
|
"parent-menu-icon": _vm.parentMenuIcon,
|
|
106575
106740
|
"menu-icon": _vm.menuIcon,
|
|
106576
106741
|
active: _vm.subActive,
|
|
106742
|
+
"unique-opened": _vm.uniqueOpened,
|
|
106577
106743
|
},
|
|
106578
106744
|
on: {
|
|
106579
106745
|
command: _vm.handlerClickMenu,
|
|
@@ -106809,11 +106975,11 @@ var gzwvue_type_template_id_db7a8e8a_render = function () {
|
|
|
106809
106975
|
1
|
|
106810
106976
|
)
|
|
106811
106977
|
}
|
|
106812
|
-
var
|
|
106813
|
-
|
|
106978
|
+
var gzwvue_type_template_id_792ae2ad_staticRenderFns = []
|
|
106979
|
+
gzwvue_type_template_id_792ae2ad_render._withStripped = true
|
|
106814
106980
|
|
|
106815
106981
|
|
|
106816
|
-
// CONCATENATED MODULE: ./packages/main/src/gzw.vue?vue&type=template&id=
|
|
106982
|
+
// CONCATENATED MODULE: ./packages/main/src/gzw.vue?vue&type=template&id=792ae2ad&
|
|
106817
106983
|
|
|
106818
106984
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/gzw.vue?vue&type=script&lang=js&
|
|
106819
106985
|
var gzwvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -106998,6 +107164,7 @@ var gzwvue_type_script_lang_js_extends = Object.assign || function (target) { fo
|
|
|
106998
107164
|
//
|
|
106999
107165
|
//
|
|
107000
107166
|
//
|
|
107167
|
+
//
|
|
107001
107168
|
|
|
107002
107169
|
|
|
107003
107170
|
|
|
@@ -107215,8 +107382,8 @@ var gzwvue_type_script_lang_js_extends = Object.assign || function (target) { fo
|
|
|
107215
107382
|
|
|
107216
107383
|
var gzw_component = Object(componentNormalizer["a" /* default */])(
|
|
107217
107384
|
src_gzwvue_type_script_lang_js_,
|
|
107218
|
-
|
|
107219
|
-
|
|
107385
|
+
gzwvue_type_template_id_792ae2ad_render,
|
|
107386
|
+
gzwvue_type_template_id_792ae2ad_staticRenderFns,
|
|
107220
107387
|
false,
|
|
107221
107388
|
null,
|
|
107222
107389
|
null,
|
|
@@ -138553,7 +138720,11 @@ var tab_nav_component = Object(componentNormalizer["a" /* default */])(
|
|
|
138553
138720
|
|
|
138554
138721
|
if (this.$refs.nav) {
|
|
138555
138722
|
this.$nextTick(function () {
|
|
138723
|
+
// 路由切换/卸载可能发生在两层 nextTick 之间,nav 引用会变 undefined,
|
|
138724
|
+
// 回调内必须重新判空,否则抛错会打断同批 nextTick 回调队列
|
|
138725
|
+
if (!_this.$refs.nav) return;
|
|
138556
138726
|
_this.$refs.nav.$nextTick(function (_) {
|
|
138727
|
+
if (!_this.$refs.nav) return;
|
|
138557
138728
|
_this.$refs.nav.scrollToActiveTab();
|
|
138558
138729
|
});
|
|
138559
138730
|
});
|
|
@@ -150723,8 +150894,8 @@ upload_src.install = function (Vue) {
|
|
|
150723
150894
|
};
|
|
150724
150895
|
|
|
150725
150896
|
/* harmony default export */ var packages_upload = (upload_src);
|
|
150726
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/wujie/src/wujie.vue?vue&type=template&id=
|
|
150727
|
-
var
|
|
150897
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/wujie/src/wujie.vue?vue&type=template&id=3fa66ad9&
|
|
150898
|
+
var wujievue_type_template_id_3fa66ad9_render = function () {
|
|
150728
150899
|
var _vm = this
|
|
150729
150900
|
var _h = _vm.$createElement
|
|
150730
150901
|
var _c = _vm._self._c || _h
|
|
@@ -150771,11 +150942,11 @@ var wujievue_type_template_id_dd6facc4_render = function () {
|
|
|
150771
150942
|
1
|
|
150772
150943
|
)
|
|
150773
150944
|
}
|
|
150774
|
-
var
|
|
150775
|
-
|
|
150945
|
+
var wujievue_type_template_id_3fa66ad9_staticRenderFns = []
|
|
150946
|
+
wujievue_type_template_id_3fa66ad9_render._withStripped = true
|
|
150776
150947
|
|
|
150777
150948
|
|
|
150778
|
-
// CONCATENATED MODULE: ./packages/wujie/src/wujie.vue?vue&type=template&id=
|
|
150949
|
+
// CONCATENATED MODULE: ./packages/wujie/src/wujie.vue?vue&type=template&id=3fa66ad9&
|
|
150779
150950
|
|
|
150780
150951
|
// EXTERNAL MODULE: external "wujie-vue2"
|
|
150781
150952
|
var external_wujie_vue2_ = __webpack_require__(48);
|
|
@@ -150924,7 +151095,6 @@ var wujievue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus,
|
|
|
150924
151095
|
jsAfterLoaders: [{
|
|
150925
151096
|
callback: function callback() {
|
|
150926
151097
|
if (_this.loading) {
|
|
150927
|
-
console.log('[wujie] 脚本执行完成,关闭 loading', _this.name);
|
|
150928
151098
|
_this.loading = false;
|
|
150929
151099
|
_this._clearTimer();
|
|
150930
151100
|
}
|
|
@@ -151076,8 +151246,8 @@ var wujievue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus,
|
|
|
151076
151246
|
|
|
151077
151247
|
var wujie_component = Object(componentNormalizer["a" /* default */])(
|
|
151078
151248
|
src_wujievue_type_script_lang_js_,
|
|
151079
|
-
|
|
151080
|
-
|
|
151249
|
+
wujievue_type_template_id_3fa66ad9_render,
|
|
151250
|
+
wujievue_type_template_id_3fa66ad9_staticRenderFns,
|
|
151081
151251
|
false,
|
|
151082
151252
|
null,
|
|
151083
151253
|
null,
|
|
@@ -151097,8 +151267,8 @@ wujie.install = function (Vue) {
|
|
|
151097
151267
|
};
|
|
151098
151268
|
|
|
151099
151269
|
/* harmony default export */ var packages_wujie = (wujie);
|
|
151100
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-module/src/main.vue?vue&type=template&id=
|
|
151101
|
-
var
|
|
151270
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-module/src/main.vue?vue&type=template&id=d570eb5c&
|
|
151271
|
+
var mainvue_type_template_id_d570eb5c_render = function () {
|
|
151102
151272
|
var _vm = this
|
|
151103
151273
|
var _h = _vm.$createElement
|
|
151104
151274
|
var _c = _vm._self._c || _h
|
|
@@ -151152,14 +151322,14 @@ var mainvue_type_template_id_32273ad0_render = function () {
|
|
|
151152
151322
|
1
|
|
151153
151323
|
)
|
|
151154
151324
|
}
|
|
151155
|
-
var
|
|
151156
|
-
|
|
151325
|
+
var mainvue_type_template_id_d570eb5c_staticRenderFns = []
|
|
151326
|
+
mainvue_type_template_id_d570eb5c_render._withStripped = true
|
|
151157
151327
|
|
|
151158
151328
|
|
|
151159
|
-
// CONCATENATED MODULE: ./packages/process-module/src/main.vue?vue&type=template&id=
|
|
151329
|
+
// CONCATENATED MODULE: ./packages/process-module/src/main.vue?vue&type=template&id=d570eb5c&
|
|
151160
151330
|
|
|
151161
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-module/src/FormList.vue?vue&type=template&id=
|
|
151162
|
-
var
|
|
151331
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-module/src/FormList.vue?vue&type=template&id=678c45a2&
|
|
151332
|
+
var FormListvue_type_template_id_678c45a2_render = function () {
|
|
151163
151333
|
var _vm = this
|
|
151164
151334
|
var _h = _vm.$createElement
|
|
151165
151335
|
var _c = _vm._self._c || _h
|
|
@@ -151180,11 +151350,11 @@ var FormListvue_type_template_id_cddf9f64_render = function () {
|
|
|
151180
151350
|
)
|
|
151181
151351
|
)
|
|
151182
151352
|
}
|
|
151183
|
-
var
|
|
151184
|
-
|
|
151353
|
+
var FormListvue_type_template_id_678c45a2_staticRenderFns = []
|
|
151354
|
+
FormListvue_type_template_id_678c45a2_render._withStripped = true
|
|
151185
151355
|
|
|
151186
151356
|
|
|
151187
|
-
// CONCATENATED MODULE: ./packages/process-module/src/FormList.vue?vue&type=template&id=
|
|
151357
|
+
// CONCATENATED MODULE: ./packages/process-module/src/FormList.vue?vue&type=template&id=678c45a2&
|
|
151188
151358
|
|
|
151189
151359
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-module/src/FormList.vue?vue&type=script&lang=js&
|
|
151190
151360
|
//
|
|
@@ -151346,7 +151516,6 @@ FormListvue_type_template_id_cddf9f64_render._withStripped = true
|
|
|
151346
151516
|
});
|
|
151347
151517
|
},
|
|
151348
151518
|
cancel: function cancel() {
|
|
151349
|
-
console.log(123);
|
|
151350
151519
|
this.$emit('close', false);
|
|
151351
151520
|
}
|
|
151352
151521
|
}
|
|
@@ -151363,8 +151532,8 @@ FormListvue_type_template_id_cddf9f64_render._withStripped = true
|
|
|
151363
151532
|
|
|
151364
151533
|
var FormList_component = Object(componentNormalizer["a" /* default */])(
|
|
151365
151534
|
src_FormListvue_type_script_lang_js_,
|
|
151366
|
-
|
|
151367
|
-
|
|
151535
|
+
FormListvue_type_template_id_678c45a2_render,
|
|
151536
|
+
FormListvue_type_template_id_678c45a2_staticRenderFns,
|
|
151368
151537
|
false,
|
|
151369
151538
|
null,
|
|
151370
151539
|
null,
|
|
@@ -151458,7 +151627,6 @@ var process_module_src_mainvue_type_script_lang_js_extends = Object.assign || fu
|
|
|
151458
151627
|
events: [{
|
|
151459
151628
|
text: '编辑',
|
|
151460
151629
|
event: function event(row) {
|
|
151461
|
-
console.log('row', row);
|
|
151462
151630
|
_this.title = '编辑';
|
|
151463
151631
|
_this.show = true;
|
|
151464
151632
|
_this.id = row.id;
|
|
@@ -151521,7 +151689,6 @@ var process_module_src_mainvue_type_script_lang_js_extends = Object.assign || fu
|
|
|
151521
151689
|
companyname: Object(storage["a" /* getStorage */])('orgName'),
|
|
151522
151690
|
companyid: Object(storage["a" /* getStorage */])('orgId')
|
|
151523
151691
|
}, data);
|
|
151524
|
-
console.log(postData);
|
|
151525
151692
|
Object(utils_ajax["a" /* ajax */])({
|
|
151526
151693
|
method: 'post',
|
|
151527
151694
|
url: '/' + this.bootName + api["tb" /* moduleSave */],
|
|
@@ -151607,8 +151774,8 @@ var process_module_src_mainvue_type_script_lang_js_extends = Object.assign || fu
|
|
|
151607
151774
|
|
|
151608
151775
|
var process_module_src_main_component = Object(componentNormalizer["a" /* default */])(
|
|
151609
151776
|
packages_process_module_src_mainvue_type_script_lang_js_,
|
|
151610
|
-
|
|
151611
|
-
|
|
151777
|
+
mainvue_type_template_id_d570eb5c_render,
|
|
151778
|
+
mainvue_type_template_id_d570eb5c_staticRenderFns,
|
|
151612
151779
|
false,
|
|
151613
151780
|
null,
|
|
151614
151781
|
null,
|
|
@@ -151775,8 +151942,8 @@ audit_trajectory_src_main.install = function (Vue) {
|
|
|
151775
151942
|
};
|
|
151776
151943
|
|
|
151777
151944
|
/* harmony default export */ var audit_trajectory = (audit_trajectory_src_main);
|
|
151778
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-rule/src/main.vue?vue&type=template&id=
|
|
151779
|
-
var
|
|
151945
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-rule/src/main.vue?vue&type=template&id=432b6304&
|
|
151946
|
+
var mainvue_type_template_id_432b6304_render = function () {
|
|
151780
151947
|
var _vm = this
|
|
151781
151948
|
var _h = _vm.$createElement
|
|
151782
151949
|
var _c = _vm._self._c || _h
|
|
@@ -151955,11 +152122,11 @@ var mainvue_type_template_id_262b51ee_render = function () {
|
|
|
151955
152122
|
1
|
|
151956
152123
|
)
|
|
151957
152124
|
}
|
|
151958
|
-
var
|
|
151959
|
-
|
|
152125
|
+
var mainvue_type_template_id_432b6304_staticRenderFns = []
|
|
152126
|
+
mainvue_type_template_id_432b6304_render._withStripped = true
|
|
151960
152127
|
|
|
151961
152128
|
|
|
151962
|
-
// CONCATENATED MODULE: ./packages/process-rule/src/main.vue?vue&type=template&id=
|
|
152129
|
+
// CONCATENATED MODULE: ./packages/process-rule/src/main.vue?vue&type=template&id=432b6304&
|
|
151963
152130
|
|
|
151964
152131
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-rule/src/FormList.vue?vue&type=template&id=72af82a2&
|
|
151965
152132
|
var FormListvue_type_template_id_72af82a2_render = function () {
|
|
@@ -153176,7 +153343,6 @@ var process_rule_src_mainvue_type_script_lang_js_extends = Object.assign || func
|
|
|
153176
153343
|
this.id = '';
|
|
153177
153344
|
this.moduleListShow = false;
|
|
153178
153345
|
this.info = this.add + '?modulecode=' + this.moduleCode;
|
|
153179
|
-
console.log(this.info);
|
|
153180
153346
|
this.show = true;
|
|
153181
153347
|
},
|
|
153182
153348
|
|
|
@@ -153185,11 +153351,9 @@ var process_rule_src_mainvue_type_script_lang_js_extends = Object.assign || func
|
|
|
153185
153351
|
if (!this.multipleSelection) {
|
|
153186
153352
|
return this.$message.warning('您未勾选任何信息');
|
|
153187
153353
|
}
|
|
153188
|
-
console.log(this.multipleSelection);
|
|
153189
153354
|
var ids = this.multipleSelection.map(function (item) {
|
|
153190
153355
|
return item.id;
|
|
153191
153356
|
}).join(',');
|
|
153192
|
-
console.log(ids);
|
|
153193
153357
|
this.recall(ids);
|
|
153194
153358
|
},
|
|
153195
153359
|
recall: function recall(id) {
|
|
@@ -153459,8 +153623,8 @@ var process_rule_src_mainvue_type_script_lang_js_extends = Object.assign || func
|
|
|
153459
153623
|
|
|
153460
153624
|
var process_rule_src_main_component = Object(componentNormalizer["a" /* default */])(
|
|
153461
153625
|
packages_process_rule_src_mainvue_type_script_lang_js_,
|
|
153462
|
-
|
|
153463
|
-
|
|
153626
|
+
mainvue_type_template_id_432b6304_render,
|
|
153627
|
+
mainvue_type_template_id_432b6304_staticRenderFns,
|
|
153464
153628
|
false,
|
|
153465
153629
|
null,
|
|
153466
153630
|
null,
|
|
@@ -153790,8 +153954,8 @@ var process_config_src_FormList_component = Object(componentNormalizer["a" /* de
|
|
|
153790
153954
|
)
|
|
153791
153955
|
|
|
153792
153956
|
/* harmony default export */ var process_config_src_FormList = (process_config_src_FormList_component.exports);
|
|
153793
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeConfig.vue?vue&type=template&id=
|
|
153794
|
-
var
|
|
153957
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeConfig.vue?vue&type=template&id=47daa812&
|
|
153958
|
+
var NodeConfigvue_type_template_id_47daa812_render = function () {
|
|
153795
153959
|
var _vm = this
|
|
153796
153960
|
var _h = _vm.$createElement
|
|
153797
153961
|
var _c = _vm._self._c || _h
|
|
@@ -153847,14 +154011,14 @@ var NodeConfigvue_type_template_id_653db88d_render = function () {
|
|
|
153847
154011
|
1
|
|
153848
154012
|
)
|
|
153849
154013
|
}
|
|
153850
|
-
var
|
|
153851
|
-
|
|
154014
|
+
var NodeConfigvue_type_template_id_47daa812_staticRenderFns = []
|
|
154015
|
+
NodeConfigvue_type_template_id_47daa812_render._withStripped = true
|
|
153852
154016
|
|
|
153853
154017
|
|
|
153854
|
-
// CONCATENATED MODULE: ./packages/process-config/src/NodeConfig.vue?vue&type=template&id=
|
|
154018
|
+
// CONCATENATED MODULE: ./packages/process-config/src/NodeConfig.vue?vue&type=template&id=47daa812&
|
|
153855
154019
|
|
|
153856
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeForm.vue?vue&type=template&id=
|
|
153857
|
-
var
|
|
154020
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeForm.vue?vue&type=template&id=31c1ea4d&
|
|
154021
|
+
var NodeFormvue_type_template_id_31c1ea4d_render = function () {
|
|
153858
154022
|
var _vm = this
|
|
153859
154023
|
var _h = _vm.$createElement
|
|
153860
154024
|
var _c = _vm._self._c || _h
|
|
@@ -153875,11 +154039,11 @@ var NodeFormvue_type_template_id_5c583125_render = function () {
|
|
|
153875
154039
|
)
|
|
153876
154040
|
)
|
|
153877
154041
|
}
|
|
153878
|
-
var
|
|
153879
|
-
|
|
154042
|
+
var NodeFormvue_type_template_id_31c1ea4d_staticRenderFns = []
|
|
154043
|
+
NodeFormvue_type_template_id_31c1ea4d_render._withStripped = true
|
|
153880
154044
|
|
|
153881
154045
|
|
|
153882
|
-
// CONCATENATED MODULE: ./packages/process-config/src/NodeForm.vue?vue&type=template&id=
|
|
154046
|
+
// CONCATENATED MODULE: ./packages/process-config/src/NodeForm.vue?vue&type=template&id=31c1ea4d&
|
|
153883
154047
|
|
|
153884
154048
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeForm.vue?vue&type=script&lang=js&
|
|
153885
154049
|
//
|
|
@@ -153910,7 +154074,6 @@ NodeFormvue_type_template_id_5c583125_render._withStripped = true
|
|
|
153910
154074
|
};
|
|
153911
154075
|
},
|
|
153912
154076
|
mounted: function mounted() {
|
|
153913
|
-
console.log(this.id);
|
|
153914
154077
|
if (this.id) {
|
|
153915
154078
|
this.getData();
|
|
153916
154079
|
} else {
|
|
@@ -154096,8 +154259,8 @@ NodeFormvue_type_template_id_5c583125_render._withStripped = true
|
|
|
154096
154259
|
|
|
154097
154260
|
var NodeForm_component = Object(componentNormalizer["a" /* default */])(
|
|
154098
154261
|
src_NodeFormvue_type_script_lang_js_,
|
|
154099
|
-
|
|
154100
|
-
|
|
154262
|
+
NodeFormvue_type_template_id_31c1ea4d_render,
|
|
154263
|
+
NodeFormvue_type_template_id_31c1ea4d_staticRenderFns,
|
|
154101
154264
|
false,
|
|
154102
154265
|
null,
|
|
154103
154266
|
null,
|
|
@@ -154109,8 +154272,6 @@ var NodeForm_component = Object(componentNormalizer["a" /* default */])(
|
|
|
154109
154272
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/process-config/src/NodeConfig.vue?vue&type=script&lang=js&
|
|
154110
154273
|
var NodeConfigvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
154111
154274
|
|
|
154112
|
-
var NodeConfigvue_type_script_lang_js_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
154113
|
-
|
|
154114
154275
|
//
|
|
154115
154276
|
//
|
|
154116
154277
|
//
|
|
@@ -154191,7 +154352,6 @@ var NodeConfigvue_type_script_lang_js_typeof = typeof Symbol === "function" && t
|
|
|
154191
154352
|
title: '审批规则',
|
|
154192
154353
|
field: 'morenodeRule',
|
|
154193
154354
|
render: function render(h, params) {
|
|
154194
|
-
console.log(NodeConfigvue_type_script_lang_js_typeof(params.row.morenodeRule));
|
|
154195
154355
|
return h('span', params.row.morenodeRule === '0' ? '并行单人审批' : '并行多人审批');
|
|
154196
154356
|
}
|
|
154197
154357
|
}, { title: '创建用户名称', field: 'fillUsername' }, { title: '所属单位', field: 'companyname' }, {
|
|
@@ -154322,8 +154482,8 @@ var NodeConfigvue_type_script_lang_js_typeof = typeof Symbol === "function" && t
|
|
|
154322
154482
|
|
|
154323
154483
|
var NodeConfig_component = Object(componentNormalizer["a" /* default */])(
|
|
154324
154484
|
src_NodeConfigvue_type_script_lang_js_,
|
|
154325
|
-
|
|
154326
|
-
|
|
154485
|
+
NodeConfigvue_type_template_id_47daa812_render,
|
|
154486
|
+
NodeConfigvue_type_template_id_47daa812_staticRenderFns,
|
|
154327
154487
|
false,
|
|
154328
154488
|
null,
|
|
154329
154489
|
null,
|
|
@@ -154866,7 +155026,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
154866
155026
|
}
|
|
154867
155027
|
|
|
154868
155028
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
154869
|
-
version: '0.1.0-alpha.
|
|
155029
|
+
version: '0.1.0-alpha.31',
|
|
154870
155030
|
install: src_install,
|
|
154871
155031
|
CollapseTransition: collapse_transition,
|
|
154872
155032
|
Loading: packages_loading,
|