@wakaka1/adaptive-page 2.1.12 → 2.1.13

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/README.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## 版本更新
2
2
 
3
+ ### 2.1.13
4
+
5
+ 扩展主子表的功能
6
+
7
+ - 主表按钮隐藏控制
8
+ - 字表请求自定义处理
9
+ - 子表数据自定义处理
10
+ - 字表 id 没有时自动生成
11
+
3
12
  ### 2.1.12
4
13
 
5
14
  - main-sub-table 增加 adaptive-page 插槽透传
@@ -2468,17 +2468,6 @@ if(content.locals) module.exports = content.locals;
2468
2468
  var add = __webpack_require__("499e").default
2469
2469
  var update = add("2afb35a3", content, true, {"sourceMap":false,"shadowMode":false});
2470
2470
 
2471
- /***/ }),
2472
-
2473
- /***/ "467a":
2474
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2475
-
2476
- "use strict";
2477
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_77fb2f89_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a424");
2478
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_77fb2f89_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_77fb2f89_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
2479
- /* unused harmony reexport * */
2480
-
2481
-
2482
2471
  /***/ }),
2483
2472
 
2484
2473
  /***/ "4728":
@@ -4099,6 +4088,20 @@ module.exports = function(options) {
4099
4088
  };
4100
4089
 
4101
4090
 
4091
+ /***/ }),
4092
+
4093
+ /***/ "5c37":
4094
+ /***/ (function(module, exports, __webpack_require__) {
4095
+
4096
+ // Imports
4097
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
4098
+ exports = ___CSS_LOADER_API_IMPORT___(false);
4099
+ // Module
4100
+ exports.push([module.i, ".content-page[data-v-88d49e6c]{height:100%;background-color:#fff;margin:16px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;position:relative}.content-page .header[data-v-88d49e6c]{padding:0 16px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #ebebeb}.content-page .header[data-v-88d49e6c],.content-page .header .header-operator[data-v-88d49e6c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.content-page .header .header-operator[data-v-88d49e6c]{margin:10px 0}.content-page .body[data-v-88d49e6c]{padding-left:200px;-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out;height:calc(100% - 46px)}.content-page .body.to-left[data-v-88d49e6c]{padding-left:0}.el-aside[data-v-88d49e6c]{background:transparent;-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:absolute;left:0;top:44px;bottom:-20px;padding:0;border-right:1px solid #ebebeb}.el-aside.hidden-aside[data-v-88d49e6c]{left:-210px}.arrow-btn i[data-v-88d49e6c]:hover{background:rgba(247,247,253,.8509803921568627)}.arrow-btn i[data-v-88d49e6c]{font-weight:700}.arrow-btn>i.flip[data-v-88d49e6c]{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.arrow-btn[data-v-88d49e6c]{color:var(--color-primary);width:20px;height:32px;background:#f7f7fd;-webkit-transition-property:left,right;transition-property:left,right;-webkit-transition-duration:.5s,.5s;transition-duration:.5s,.5s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:absolute;top:330px;z-index:99;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer}.arrow-btn.left[data-v-88d49e6c]{left:200px;border-top-left-radius:4px;border-bottom-left-radius:4px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.arrow-btn.to-left[data-v-88d49e6c]{left:0;-webkit-transform:rotate(0deg);transform:rotate(0deg);border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.puncher-item[data-v-88d49e6c]{list-style-type:none;margin:10px 8px;border:1px solid #ececec;border-radius:4px}.puncher-item.active[data-v-88d49e6c]{border:1px solid var(--color-primary);background-color:#f7f7fd}.puncher-item .puncher-item-main[data-v-88d49e6c]{margin:10px 10px 4px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:22px}.puncher-item .puncher-item-main .title[data-v-88d49e6c]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgba(0,0,0,.85);font-weight:700}.puncher-item .puncher-item-main .title.active[data-v-88d49e6c]{color:var(--color-primary)!important}.puncher-item .puncher-item-main div[data-v-88d49e6c]{font-family:PingFang SC;font-size:14px;font-weight:400;color:rgba(0,0,0,.85);-webkit-box-flex:1;-ms-flex:1;flex:1}.puncher-item .puncher-item-main .puncher-item-btn[data-v-88d49e6c]{margin-left:10px}.puncher-item .puncher-item-main .puncher-item-btn[data-v-88d49e6c]:hover{color:var(--color-primary)}.puncher-item .puncher-item-date[data-v-88d49e6c]{margin:4px 10px 10px 10px;font-family:PingFang SC;font-size:12px;font-weight:400;line-height:18px;color:rgba(0,0,0,.45)}.detail[data-v-88d49e6c]{margin:10px 16px 16px 16px;background:#f7f7fd;display:-webkit-box;display:-ms-flexbox;display:flex}.detail .detail-item[data-v-88d49e6c]{text-align:center;-webkit-box-flex:1;-ms-flex:1;flex:1}.detail .detail-item .detail-item-value[data-v-88d49e6c]{margin-top:16px;font-family:PingFang SC;font-size:16px;font-weight:400;line-height:16px;color:var(--color-primary)}.detail .detail-item .detail-item-label[data-v-88d49e6c]{margin-top:10px;margin-bottom:16px;font-family:PingFang SC;font-size:14px;font-weight:400;line-height:16px;color:rgba(0,0,0,.45)}.table-container[data-v-88d49e6c]{height:calc(100% - 100px)}.span-title[data-v-88d49e6c]{border-left:none;background:transparent}.btn-title[data-v-88d49e6c]{margin-left:10px;background:transparent;border-color:#ebebeb;font-family:Source Han Sans;font-weight:400;line-height:normal;color:rgba(0,0,0,.85);padding:2.5px 15px}.btn-title[data-v-88d49e6c],.btn-title .icon[data-v-88d49e6c]{font-size:12px}.btn-title.add[data-v-88d49e6c]{color:#fff;background:var(--color-primary);border-color:var(--color-primary);padding:2.5px 3px}.btn-title.add .icon[data-v-88d49e6c]{font-size:16px}.main-pagination[data-v-88d49e6c]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:48px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-top:1px solid #ebebeb}.line-label[data-v-88d49e6c]{color:rgba(0,0,0,.85);font-weight:700;position:relative;line-height:24px}.line-label.bold[data-v-88d49e6c]{font-size:18px}.line-label[data-v-88d49e6c]:before{content:\"\";width:4px;height:15px;display:inline-block;border-radius:3px;background:var(--color-primary);margin-right:4px;vertical-align:middle;position:relative;top:-1px}[data-v-88d49e6c] .header-operator .el-range-editor.el-input__inner{padding:1px 10px;height:24px}[data-v-88d49e6c] .header-operator .el-input__inner{height:24px;line-height:24px;text-align:left;padding-left:15px}[data-v-88d49e6c] .header-operator .el-form-item__content{line-height:24px}", ""]);
4101
+ // Exports
4102
+ module.exports = exports;
4103
+
4104
+
4102
4105
  /***/ }),
4103
4106
 
4104
4107
  /***/ "5c6c":
@@ -4147,6 +4150,22 @@ module.exports = collection('Set', function (init) {
4147
4150
  }, collectionStrong);
4148
4151
 
4149
4152
 
4153
+ /***/ }),
4154
+
4155
+ /***/ "60aa":
4156
+ /***/ (function(module, exports, __webpack_require__) {
4157
+
4158
+ // style-loader: Adds some css to the DOM by adding a <style> tag
4159
+
4160
+ // load the styles
4161
+ var content = __webpack_require__("5c37");
4162
+ if(content.__esModule) content = content.default;
4163
+ if(typeof content === 'string') content = [[module.i, content, '']];
4164
+ if(content.locals) module.exports = content.locals;
4165
+ // add the styles to the DOM
4166
+ var add = __webpack_require__("499e").default
4167
+ var update = add("b2cd25e4", content, true, {"sourceMap":false,"shadowMode":false});
4168
+
4150
4169
  /***/ }),
4151
4170
 
4152
4171
  /***/ "60da":
@@ -5226,6 +5245,17 @@ if(content.locals) module.exports = content.locals;
5226
5245
  var add = __webpack_require__("499e").default
5227
5246
  var update = add("b83755ea", content, true, {"sourceMap":false,"shadowMode":false});
5228
5247
 
5248
+ /***/ }),
5249
+
5250
+ /***/ "794c":
5251
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5252
+
5253
+ "use strict";
5254
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_88d49e6c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("60aa");
5255
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_88d49e6c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_88d49e6c_prod_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
5256
+ /* unused harmony reexport * */
5257
+
5258
+
5229
5259
  /***/ }),
5230
5260
 
5231
5261
  /***/ "7b0b":
@@ -7958,22 +7988,6 @@ $({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
7958
7988
 
7959
7989
  /***/ }),
7960
7990
 
7961
- /***/ "a424":
7962
- /***/ (function(module, exports, __webpack_require__) {
7963
-
7964
- // style-loader: Adds some css to the DOM by adding a <style> tag
7965
-
7966
- // load the styles
7967
- var content = __webpack_require__("f76f");
7968
- if(content.__esModule) content = content.default;
7969
- if(typeof content === 'string') content = [[module.i, content, '']];
7970
- if(content.locals) module.exports = content.locals;
7971
- // add the styles to the DOM
7972
- var add = __webpack_require__("499e").default
7973
- var update = add("46ba4c86", content, true, {"sourceMap":false,"shadowMode":false});
7974
-
7975
- /***/ }),
7976
-
7977
7991
  /***/ "a4d3":
7978
7992
  /***/ (function(module, exports, __webpack_require__) {
7979
7993
 
@@ -19018,20 +19032,6 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
19018
19032
  };
19019
19033
 
19020
19034
 
19021
- /***/ }),
19022
-
19023
- /***/ "f76f":
19024
- /***/ (function(module, exports, __webpack_require__) {
19025
-
19026
- // Imports
19027
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
19028
- exports = ___CSS_LOADER_API_IMPORT___(false);
19029
- // Module
19030
- exports.push([module.i, ".content-page[data-v-77fb2f89]{height:100%;background-color:#fff;margin:16px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto;position:relative}.content-page .header[data-v-77fb2f89]{padding:0 16px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #ebebeb}.content-page .header[data-v-77fb2f89],.content-page .header .header-operator[data-v-77fb2f89]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.content-page .header .header-operator[data-v-77fb2f89]{margin:10px 0}.content-page .body[data-v-77fb2f89]{padding-left:200px;-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out;height:calc(100% - 46px)}.content-page .body.to-left[data-v-77fb2f89]{padding-left:0}.el-aside[data-v-77fb2f89]{background:transparent;-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:absolute;left:0;top:44px;bottom:-20px;padding:0;border-right:1px solid #ebebeb}.el-aside.hidden-aside[data-v-77fb2f89]{left:-210px}.arrow-btn i[data-v-77fb2f89]:hover{background:rgba(247,247,253,.8509803921568627)}.arrow-btn i[data-v-77fb2f89]{font-weight:700}.arrow-btn>i.flip[data-v-77fb2f89]{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.arrow-btn[data-v-77fb2f89]{color:var(--color-primary);width:20px;height:32px;background:#f7f7fd;-webkit-transition-property:left,right;transition-property:left,right;-webkit-transition-duration:.5s,.5s;transition-duration:.5s,.5s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;position:absolute;top:330px;z-index:99;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer}.arrow-btn.left[data-v-77fb2f89]{left:200px;border-top-left-radius:4px;border-bottom-left-radius:4px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.arrow-btn.to-left[data-v-77fb2f89]{left:0;-webkit-transform:rotate(0deg);transform:rotate(0deg);border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.puncher-item[data-v-77fb2f89]{list-style-type:none;margin:10px 8px;border:1px solid #ececec;border-radius:4px}.puncher-item.active[data-v-77fb2f89]{border:1px solid var(--color-primary);background-color:#f7f7fd}.puncher-item .puncher-item-main[data-v-77fb2f89]{margin:10px 10px 4px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:22px}.puncher-item .puncher-item-main .title[data-v-77fb2f89]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:rgba(0,0,0,.85);font-weight:700}.puncher-item .puncher-item-main .title.active[data-v-77fb2f89]{color:var(--color-primary)!important}.puncher-item .puncher-item-main div[data-v-77fb2f89]{font-family:PingFang SC;font-size:14px;font-weight:400;color:rgba(0,0,0,.85);-webkit-box-flex:1;-ms-flex:1;flex:1}.puncher-item .puncher-item-main .puncher-item-btn[data-v-77fb2f89]{margin-left:10px}.puncher-item .puncher-item-main .puncher-item-btn[data-v-77fb2f89]:hover{color:var(--color-primary)}.puncher-item .puncher-item-date[data-v-77fb2f89]{margin:4px 10px 10px 10px;font-family:PingFang SC;font-size:12px;font-weight:400;line-height:18px;color:rgba(0,0,0,.45)}.detail[data-v-77fb2f89]{margin:10px 16px 16px 16px;background:#f7f7fd;display:-webkit-box;display:-ms-flexbox;display:flex}.detail .detail-item[data-v-77fb2f89]{text-align:center;-webkit-box-flex:1;-ms-flex:1;flex:1}.detail .detail-item .detail-item-value[data-v-77fb2f89]{margin-top:16px;font-family:PingFang SC;font-size:16px;font-weight:400;line-height:16px;color:var(--color-primary)}.detail .detail-item .detail-item-label[data-v-77fb2f89]{margin-top:10px;margin-bottom:16px;font-family:PingFang SC;font-size:14px;font-weight:400;line-height:16px;color:rgba(0,0,0,.45)}.table-container[data-v-77fb2f89]{height:calc(100% - 100px)}.span-title[data-v-77fb2f89]{border-left:none;background:transparent}.btn-title[data-v-77fb2f89]{margin-left:10px;background:transparent;border-color:#ebebeb;font-family:Source Han Sans;font-weight:400;line-height:normal;color:rgba(0,0,0,.85);padding:2.5px 15px}.btn-title[data-v-77fb2f89],.btn-title .icon[data-v-77fb2f89]{font-size:12px}.btn-title.add[data-v-77fb2f89]{color:#fff;background:var(--color-primary);border-color:var(--color-primary);padding:2.5px 3px}.btn-title.add .icon[data-v-77fb2f89]{font-size:16px}.main-pagination[data-v-77fb2f89]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:48px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-top:1px solid #ebebeb}.line-label[data-v-77fb2f89]{color:rgba(0,0,0,.85);font-weight:700;position:relative;line-height:24px}.line-label.bold[data-v-77fb2f89]{font-size:18px}.line-label[data-v-77fb2f89]:before{content:\"\";width:4px;height:15px;display:inline-block;border-radius:3px;background:var(--color-primary);margin-right:4px;vertical-align:middle;position:relative;top:-1px}[data-v-77fb2f89] .header-operator .el-range-editor.el-input__inner{padding:1px 10px;height:24px}[data-v-77fb2f89] .header-operator .el-input__inner{height:24px;line-height:24px;text-align:left;padding-left:15px}[data-v-77fb2f89] .header-operator .el-form-item__content{line-height:24px}", ""]);
19031
- // Exports
19032
- module.exports = exports;
19033
-
19034
-
19035
19035
  /***/ }),
19036
19036
 
19037
19037
  /***/ "f772":
@@ -19938,12 +19938,12 @@ var select_component = Object(componentNormalizer["a" /* default */])(
19938
19938
  )
19939
19939
 
19940
19940
  /* harmony default export */ var adaptive_page_select = (select_component.exports);
19941
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d2c1b37-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package/main-sub-table/index.vue?vue&type=template&id=77fb2f89&scoped=true&
19942
- var main_sub_tablevue_type_template_id_77fb2f89_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"content-page"},[_c('div',{staticClass:"header"},[_c('div',{staticClass:"line-label"},[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:"header-operator"},[_c('query-condition',{ref:"query-condition",attrs:{"loading":_vm.mainLoading || _vm.subLoading,"opts":_vm.queryOpts,"labelWidth":"0px","querySize":"mini"},on:{"submit":_vm.submit}}),(!!_vm.importBtn && !_vm.importBtn.hidden)?_c('el-button',_vm._b({directives:[{name:"permission",rawName:"v-permission",value:(_vm.importBtn.permission),expression:"importBtn.permission"}],staticClass:"btn-title",attrs:{"disabled":_vm.mainLoading || _vm.subLoading,"size":"mini"},on:{"click":_vm.onImportClicked}},'el-button',_vm.importBtn.bind,false),[_c('i',{staticClass:"icon fa fa-daoru"}),_vm._v(_vm._s(" " + _vm.$t("global.import")))]):_vm._e(),(!!_vm.exportBtn && !_vm.exportBtn.hidden)?_c('el-button',_vm._b({directives:[{name:"permission",rawName:"v-permission",value:(_vm.exportBtn.permission),expression:"exportBtn.permission"}],staticClass:"btn-title",attrs:{"disabled":_vm.mainLoading || _vm.subLoading,"size":"mini"},on:{"click":_vm.onExportClicked}},'el-button',_vm.exportBtn.bind,false),[_c('i',{staticClass:"icon fa fa-daochu"}),_vm._v(_vm._s(" " + _vm.$t("global.export")))]):_vm._e(),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.$t('global.add'),"placement":"top-start"}},[(!!_vm.addBtn && !_vm.addBtn.hidden)?_c('el-button',_vm._b({directives:[{name:"permission",rawName:"v-permission",value:(_vm.addBtn.permission),expression:"addBtn.permission"}],staticClass:"btn-title add",attrs:{"disabled":_vm.mainLoading || _vm.subLoading,"size":"mini"},on:{"click":function($event){_vm.addBtn.func || _vm.navTo()}}},'el-button',_vm.addBtn.bind,false),[_c('i',{staticClass:"icon el-icon-circle-plus-outline"})]):_vm._e()],1),_vm._t("header-operator")],2)]),_c('el-container',{staticClass:"body",class:{ 'to-left': !_vm.showLeftPanel }},[_c('div',{staticClass:"arrow-btn left",class:{ 'to-left': !_vm.showLeftPanel },on:{"click":_vm.switchLeftPanel}},[_c('i',{staticClass:"el-icon-d-arrow-right",class:{ flip: !_vm.showLeftPanel }})]),_c('el-aside',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.mainLoading),expression:"mainLoading"}],class:{ 'hidden-aside': !_vm.showLeftPanel },staticStyle:{"width":"200px"}},[(_vm.mainItems.length === 0)?_c('el-empty',{staticStyle:{"flex":"1"},attrs:{"description":_vm.$t('tagsView.noData')}}):[_c('ul',{staticStyle:{"overflow":"auto","list-style":"none","flex":"1"}},_vm._l((_vm.mainItems),function(item){return _c('li',{key:item.id,staticClass:"puncher-item",class:{ active: item.id === _vm.selectedMain.id },on:{"click":function($event){return _vm.selectItem(item)}}},[_c('div',{staticClass:"puncher-item-main"},[_c('div',{staticClass:"title",class:{ active: item.selected }},[_vm._v(" "+_vm._s(item[_vm.mainCardTitle])+" ")]),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.$t('global.edit'),"placement":"top-start"}},[_c('i',{directives:[{name:"permission",rawName:"v-permission",value:(_vm.editBtn.permission),expression:"editBtn.permission"}],staticClass:"el-icon-edit-outline puncher-item-btn",on:{"click":function($event){return _vm.onEditClicked(item)}}})]),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.$t('global.delete'),"placement":"top-start"}},[_c('i',{directives:[{name:"permission",rawName:"v-permission",value:(_vm.deleteBtn.permission),expression:"deleteBtn.permission"}],staticClass:"el-icon-delete puncher-item-btn",on:{"click":function($event){return _vm.onDeleteClicked(item)}}})])],1),_vm._l((_vm.mainCardList),function(content){return _c('div',{key:content.prop,staticClass:"puncher-item-date"},[_vm._v(" "+_vm._s(((content.label) + ": " + (content.formater ? content.formater(item[content.prop]) : item[content.prop])))+" ")])})],2)}),0),_c('div',{staticClass:"main-pagination"},[_c('div'),_c('el-pagination',{staticStyle:{"line-height":"16px","margin-right":"16px"},attrs:{"small":"","layout":"prev, pager, next","page-size":_vm.mainPage.pageSize,"current-page":_vm.mainPage.currentPage,"pager-count":5,"total":_vm.mainPage.total},on:{"update:currentPage":function($event){return _vm.$set(_vm.mainPage, "currentPage", $event)},"update:current-page":function($event){return _vm.$set(_vm.mainPage, "currentPage", $event)},"current-change":_vm.loadMain}})],1)]],2),_c('el-main',{staticStyle:{"padding":"0"}},[_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.mainLoading),expression:"mainLoading"}],staticClass:"detail"},_vm._l((_vm.descList),function(desc){return _c('div',{key:desc.prop,staticClass:"detail-item"},[_c('div',{staticClass:"detail-item-value"},[_vm._v(" "+_vm._s((desc.formater ? desc.formater(_vm.selectedMain[desc.prop]) : _vm.selectedMain[desc.prop]) || "--")+" ")]),_c('div',{staticClass:"detail-item-label"},[_vm._v(_vm._s(desc.label))])])}),0),_c('div',{staticClass:"table-container"},[_c('adaptive-page',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.subLoading || _vm.mainLoading),expression:"subLoading || mainLoading"}],ref:"adcrud",attrs:{"border":"","columns":_vm.subColumns,"table":_vm.table,"pageForm":_vm.subPage,"highlightCurrentRow":true,"is-show-search":false},on:{"handlePage":_vm.handlePageSize},scopedSlots:_vm._u([_vm._l((_vm.$scopedSlots),function(index,name){return {key:name,fn:function(data){return [_vm._t(name,null,null,data)]}}})],null,true)})],1)])],1)],1)}
19943
- var main_sub_tablevue_type_template_id_77fb2f89_scoped_true_staticRenderFns = []
19941
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d2c1b37-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package/main-sub-table/index.vue?vue&type=template&id=88d49e6c&scoped=true&
19942
+ var main_sub_tablevue_type_template_id_88d49e6c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"content-page"},[_c('div',{staticClass:"header"},[_c('div',{staticClass:"line-label"},[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:"header-operator"},[_c('query-condition',{ref:"query-condition",attrs:{"loading":_vm.mainLoading || _vm.subLoading,"opts":_vm.queryOpts,"labelWidth":"0px","querySize":"mini"},on:{"submit":_vm.submit}}),(!!_vm.importBtn && !_vm.importBtn.hidden)?_c('el-button',_vm._b({directives:[{name:"permission",rawName:"v-permission",value:(_vm.importBtn.permission),expression:"importBtn.permission"}],staticClass:"btn-title",attrs:{"disabled":_vm.mainLoading || _vm.subLoading,"size":"mini"},on:{"click":_vm.onImportClicked}},'el-button',_vm.importBtn.bind,false),[_c('i',{staticClass:"icon fa fa-daoru"}),_vm._v(_vm._s(" " + _vm.$t("global.import")))]):_vm._e(),(!!_vm.exportBtn && !_vm.exportBtn.hidden)?_c('el-button',_vm._b({directives:[{name:"permission",rawName:"v-permission",value:(_vm.exportBtn.permission),expression:"exportBtn.permission"}],staticClass:"btn-title",attrs:{"disabled":_vm.mainLoading || _vm.subLoading,"size":"mini"},on:{"click":_vm.onExportClicked}},'el-button',_vm.exportBtn.bind,false),[_c('i',{staticClass:"icon fa fa-daochu"}),_vm._v(_vm._s(" " + _vm.$t("global.export")))]):_vm._e(),_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.$t('global.add'),"placement":"top-start"}},[(!!_vm.addBtn && !_vm.addBtn.hidden)?_c('el-button',_vm._b({directives:[{name:"permission",rawName:"v-permission",value:(_vm.addBtn.permission),expression:"addBtn.permission"}],staticClass:"btn-title add",attrs:{"disabled":_vm.mainLoading || _vm.subLoading,"size":"mini"},on:{"click":function($event){_vm.addBtn.func || _vm.navTo()}}},'el-button',_vm.addBtn.bind,false),[_c('i',{staticClass:"icon el-icon-circle-plus-outline"})]):_vm._e()],1),_vm._t("header-operator")],2)]),_c('el-container',{staticClass:"body",class:{ 'to-left': !_vm.showLeftPanel }},[_c('div',{staticClass:"arrow-btn left",class:{ 'to-left': !_vm.showLeftPanel },on:{"click":_vm.switchLeftPanel}},[_c('i',{staticClass:"el-icon-d-arrow-right",class:{ flip: !_vm.showLeftPanel }})]),_c('el-aside',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.mainLoading),expression:"mainLoading"}],class:{ 'hidden-aside': !_vm.showLeftPanel },staticStyle:{"width":"200px"}},[(_vm.mainItems.length === 0)?_c('el-empty',{staticStyle:{"flex":"1"},attrs:{"description":_vm.$t('tagsView.noData')}}):[_c('ul',{staticStyle:{"overflow":"auto","list-style":"none","flex":"1"}},_vm._l((_vm.mainItems),function(item){return _c('li',{key:item.id,staticClass:"puncher-item",class:{ active: item.id === _vm.selectedMain.id },on:{"click":function($event){return _vm.selectItem(item)}}},[_c('div',{staticClass:"puncher-item-main"},[_c('div',{staticClass:"title",class:{ active: item.selected }},[_vm._v(" "+_vm._s(item[_vm.mainCardTitle] || "--")+" ")]),(!!_vm.editBtn && !_vm.editBtn.hidden)?_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.$t('global.edit'),"placement":"top-start"}},[_c('i',{directives:[{name:"permission",rawName:"v-permission",value:(_vm.editBtn.permission),expression:"editBtn.permission"}],staticClass:"el-icon-edit-outline puncher-item-btn",on:{"click":function($event){return _vm.onEditClicked(item)}}})]):_vm._e(),(!!_vm.deleteBtn && !_vm.deleteBtn.hidden)?_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":_vm.$t('global.delete'),"placement":"top-start"}},[_c('i',{directives:[{name:"permission",rawName:"v-permission",value:(_vm.deleteBtn.permission),expression:"deleteBtn.permission"}],staticClass:"el-icon-delete puncher-item-btn",on:{"click":function($event){return _vm.onDeleteClicked(item)}}})]):_vm._e()],1),_vm._l((_vm.mainCardList),function(content){return _c('div',{key:content.prop,staticClass:"puncher-item-date"},[_vm._v(" "+_vm._s(((content.label) + ": " + (content.formater ? content.formater(item[content.prop]) : item[content.prop])))+" ")])})],2)}),0),_c('div',{staticClass:"main-pagination"},[_c('div'),_c('el-pagination',{staticStyle:{"line-height":"16px","margin-right":"16px"},attrs:{"small":"","layout":"prev, pager, next","page-size":_vm.mainPage.pageSize,"current-page":_vm.mainPage.currentPage,"pager-count":5,"total":_vm.mainPage.total},on:{"update:currentPage":function($event){return _vm.$set(_vm.mainPage, "currentPage", $event)},"update:current-page":function($event){return _vm.$set(_vm.mainPage, "currentPage", $event)},"current-change":_vm.loadMain}})],1)]],2),_c('el-main',{staticStyle:{"padding":"0"}},[_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.mainLoading),expression:"mainLoading"}],staticClass:"detail"},_vm._l((_vm.descList),function(desc){return _c('div',{key:desc.prop,staticClass:"detail-item"},[_c('div',{staticClass:"detail-item-value"},[_vm._v(" "+_vm._s((desc.formater ? desc.formater(_vm.selectedMain[desc.prop]) : _vm.selectedMain[desc.prop]) || "--")+" ")]),_c('div',{staticClass:"detail-item-label"},[_vm._v(_vm._s(desc.label))])])}),0),_c('div',{staticClass:"table-container"},[_c('adaptive-page',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.subLoading || _vm.mainLoading),expression:"subLoading || mainLoading"}],ref:"adcrud",attrs:{"border":"","columns":_vm.subColumns,"table":_vm.table,"pageForm":_vm.subPage,"highlightCurrentRow":true,"is-show-search":false},on:{"handlePage":_vm.handlePageSize},scopedSlots:_vm._u([_vm._l((_vm.$scopedSlots),function(index,name){return {key:name,fn:function(data){return [_vm._t(name,null,null,data)]}}})],null,true)})],1)])],1)],1)}
19943
+ var main_sub_tablevue_type_template_id_88d49e6c_scoped_true_staticRenderFns = []
19944
19944
 
19945
19945
 
19946
- // CONCATENATED MODULE: ./src/package/main-sub-table/index.vue?vue&type=template&id=77fb2f89&scoped=true&
19946
+ // CONCATENATED MODULE: ./src/package/main-sub-table/index.vue?vue&type=template&id=88d49e6c&scoped=true&
19947
19947
 
19948
19948
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
19949
19949
  var es_symbol = __webpack_require__("a4d3");
@@ -20322,9 +20322,6 @@ function _regeneratorRuntime() {
20322
20322
  }
20323
20323
  }, exports;
20324
20324
  }
20325
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
20326
- var toConsumableArray = __webpack_require__("2909");
20327
-
20328
20325
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
20329
20326
 
20330
20327
 
@@ -20367,6 +20364,12 @@ var es_object_assign = __webpack_require__("cca6");
20367
20364
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
20368
20365
  var es_promise_finally = __webpack_require__("a79d");
20369
20366
 
20367
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
20368
+ var es_string_replace = __webpack_require__("5319");
20369
+
20370
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
20371
+ var es_regexp_to_string = __webpack_require__("25f0");
20372
+
20370
20373
  // EXTERNAL MODULE: ./src/package/adaptive-page/query-condition/flow.vue + 4 modules
20371
20374
  var flow = __webpack_require__("350f");
20372
20375
 
@@ -20398,6 +20401,9 @@ var CompType = {
20398
20401
 
20399
20402
 
20400
20403
 
20404
+
20405
+ //
20406
+ //
20401
20407
  //
20402
20408
  //
20403
20409
  //
@@ -20609,6 +20615,18 @@ var CompType = {
20609
20615
  apiSubList: {
20610
20616
  type: Function
20611
20617
  },
20618
+ /**
20619
+ * 使用父节点数据获取子数据请求参数,如果不提供,使用父节点的id数据请求
20620
+ */
20621
+ subListRequestFormatter: {
20622
+ type: Function
20623
+ },
20624
+ /**
20625
+ * 对子列表的应答数据进行处理, 返回格式必须是{data: [xx,yy]}, 其中可以对数据进行处理
20626
+ */
20627
+ subListCallback: {
20628
+ type: Function
20629
+ },
20612
20630
  /**
20613
20631
  * 导入按钮的相关配置,包括hidden(未提供时默认显示),permission, func(提供时优先执行该方法,否则跳转导入页面), importType(默认跳转的参数)
20614
20632
  */
@@ -20725,7 +20743,6 @@ var CompType = {
20725
20743
  }
20726
20744
  }
20727
20745
  }
20728
- console.log(res, "queryOpts");
20729
20746
  return res;
20730
20747
  },
20731
20748
  mainCardTitle: function mainCardTitle() {
@@ -20818,7 +20835,15 @@ var CompType = {
20818
20835
  pageSize: _this.mainPage.pageSize,
20819
20836
  example: example
20820
20837
  }).then(function (res) {
20821
- _this.mainItems = Object(toConsumableArray["a" /* default */])(res.data.data);
20838
+ var mainItems = [];
20839
+ for (var i = 0; i < res.data.data.length; i++) {
20840
+ var item = res.data.data[i];
20841
+ if (!item.id) {
20842
+ item.id = _this.generateUUID();
20843
+ }
20844
+ mainItems.push(item);
20845
+ }
20846
+ _this.mainItems = mainItems;
20822
20847
  if (_this.mainItems.length > 0) {
20823
20848
  _this.selectItem(_this.mainItems[0]);
20824
20849
  }
@@ -20834,15 +20859,35 @@ var CompType = {
20834
20859
  }, _callee);
20835
20860
  }))();
20836
20861
  },
20862
+ generateUUID: function generateUUID() {
20863
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
20864
+ var r = Math.random() * 16 | 0;
20865
+ var v = c === "x" ? r : r & 0x3 | 0x8;
20866
+ return v.toString(16);
20867
+ });
20868
+ },
20837
20869
  selectItem: function selectItem(item) {
20838
20870
  var _this2 = this;
20839
20871
  this.selectedMain = item;
20840
20872
  this.subLoading = true;
20841
- this.apiSubList({
20873
+ var requestData = {
20842
20874
  id: item.id
20843
- }).then(function (res) {
20844
- _this2.subItems = res.data;
20845
- _this2.subPage.total = res.data.length;
20875
+ };
20876
+ if (this.subListRequestFormatter) {
20877
+ requestData = this.subListRequestFormatter(item);
20878
+ }
20879
+ this.apiSubList(requestData).then(function (res) {
20880
+ if (_this2.subListCallback) {
20881
+ var formatSubData = _this2.subListCallback(res);
20882
+ _this2.subItems = formatSubData.data;
20883
+ _this2.subPage.total = formatSubData.data.length;
20884
+ if (formatSubData.main) {
20885
+ _this2.selectedMain = Object.assign(item, formatSubData.main);
20886
+ }
20887
+ } else {
20888
+ _this2.subItems = res.data;
20889
+ _this2.subPage.total = res.data.length;
20890
+ }
20846
20891
  _this2.subPage.currentPage = 1;
20847
20892
  _this2.refreshSubTable();
20848
20893
  }).finally(function () {
@@ -20943,8 +20988,8 @@ var CompType = {
20943
20988
  });
20944
20989
  // CONCATENATED MODULE: ./src/package/main-sub-table/index.vue?vue&type=script&lang=js&
20945
20990
  /* harmony default export */ var package_main_sub_tablevue_type_script_lang_js_ = (main_sub_tablevue_type_script_lang_js_);
20946
- // EXTERNAL MODULE: ./src/package/main-sub-table/index.vue?vue&type=style&index=0&id=77fb2f89&prod&lang=scss&scoped=true&
20947
- var main_sub_tablevue_type_style_index_0_id_77fb2f89_prod_lang_scss_scoped_true_ = __webpack_require__("467a");
20991
+ // EXTERNAL MODULE: ./src/package/main-sub-table/index.vue?vue&type=style&index=0&id=88d49e6c&prod&lang=scss&scoped=true&
20992
+ var main_sub_tablevue_type_style_index_0_id_88d49e6c_prod_lang_scss_scoped_true_ = __webpack_require__("794c");
20948
20993
 
20949
20994
  // CONCATENATED MODULE: ./src/package/main-sub-table/index.vue
20950
20995
 
@@ -20957,11 +21002,11 @@ var main_sub_tablevue_type_style_index_0_id_77fb2f89_prod_lang_scss_scoped_true_
20957
21002
 
20958
21003
  var main_sub_table_component = Object(componentNormalizer["a" /* default */])(
20959
21004
  package_main_sub_tablevue_type_script_lang_js_,
20960
- main_sub_tablevue_type_template_id_77fb2f89_scoped_true_render,
20961
- main_sub_tablevue_type_template_id_77fb2f89_scoped_true_staticRenderFns,
21005
+ main_sub_tablevue_type_template_id_88d49e6c_scoped_true_render,
21006
+ main_sub_tablevue_type_template_id_88d49e6c_scoped_true_staticRenderFns,
20962
21007
  false,
20963
21008
  null,
20964
- "77fb2f89",
21009
+ "88d49e6c",
20965
21010
  null
20966
21011
 
20967
21012
  )