vsyswin-ui 0.2.50 → 0.2.51
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/vsyswin-ui.common.js +103 -57
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +103 -57
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +7 -7
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/search-bar/src/search-bar.vue +73 -38
package/lib/vsyswin-ui.common.js
CHANGED
|
@@ -169,21 +169,6 @@ module.exports = String(test) === '[object z]';
|
|
|
169
169
|
})));
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
/***/ }),
|
|
173
|
-
|
|
174
|
-
/***/ "0208":
|
|
175
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
176
|
-
|
|
177
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
178
|
-
|
|
179
|
-
// load the styles
|
|
180
|
-
var content = __webpack_require__("c1f1");
|
|
181
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
182
|
-
if(content.locals) module.exports = content.locals;
|
|
183
|
-
// add the styles to the DOM
|
|
184
|
-
var add = __webpack_require__("499e").default
|
|
185
|
-
var update = add("36c06da8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
186
|
-
|
|
187
172
|
/***/ }),
|
|
188
173
|
|
|
189
174
|
/***/ "02fb":
|
|
@@ -13156,6 +13141,21 @@ module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callback
|
|
|
13156
13141
|
} : [].forEach;
|
|
13157
13142
|
|
|
13158
13143
|
|
|
13144
|
+
/***/ }),
|
|
13145
|
+
|
|
13146
|
+
/***/ "17d2":
|
|
13147
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
13148
|
+
|
|
13149
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
13150
|
+
|
|
13151
|
+
// load the styles
|
|
13152
|
+
var content = __webpack_require__("ff55");
|
|
13153
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
13154
|
+
if(content.locals) module.exports = content.locals;
|
|
13155
|
+
// add the styles to the DOM
|
|
13156
|
+
var add = __webpack_require__("499e").default
|
|
13157
|
+
var update = add("41fb8a68", content, true, {"sourceMap":false,"shadowMode":false});
|
|
13158
|
+
|
|
13159
13159
|
/***/ }),
|
|
13160
13160
|
|
|
13161
13161
|
/***/ "19aa":
|
|
@@ -36877,17 +36877,6 @@ module.exports = function (bitmap, value) {
|
|
|
36877
36877
|
})));
|
|
36878
36878
|
|
|
36879
36879
|
|
|
36880
|
-
/***/ }),
|
|
36881
|
-
|
|
36882
|
-
/***/ "5e8d":
|
|
36883
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
36884
|
-
|
|
36885
|
-
"use strict";
|
|
36886
|
-
/* 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_search_bar_vue_vue_type_style_index_0_id_1c97757c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0208");
|
|
36887
|
-
/* 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_search_bar_vue_vue_type_style_index_0_id_1c97757c_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_search_bar_vue_vue_type_style_index_0_id_1c97757c_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
36888
|
-
/* unused harmony reexport * */
|
|
36889
|
-
|
|
36890
|
-
|
|
36891
36880
|
/***/ }),
|
|
36892
36881
|
|
|
36893
36882
|
/***/ "5fbd":
|
|
@@ -37991,6 +37980,17 @@ if(content.locals) module.exports = content.locals;
|
|
|
37991
37980
|
var add = __webpack_require__("499e").default
|
|
37992
37981
|
var update = add("4299bdf5", content, true, {"sourceMap":false,"shadowMode":false});
|
|
37993
37982
|
|
|
37983
|
+
/***/ }),
|
|
37984
|
+
|
|
37985
|
+
/***/ "6be0":
|
|
37986
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
37987
|
+
|
|
37988
|
+
"use strict";
|
|
37989
|
+
/* 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_search_bar_vue_vue_type_style_index_0_id_59e7e580_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("17d2");
|
|
37990
|
+
/* 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_search_bar_vue_vue_type_style_index_0_id_59e7e580_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_search_bar_vue_vue_type_style_index_0_id_59e7e580_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
37991
|
+
/* unused harmony reexport * */
|
|
37992
|
+
|
|
37993
|
+
|
|
37994
37994
|
/***/ }),
|
|
37995
37995
|
|
|
37996
37996
|
/***/ "6ce3":
|
|
@@ -57162,20 +57162,6 @@ module.exports = function (input, PREFERRED_STRING) {
|
|
|
57162
57162
|
|
|
57163
57163
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module)))
|
|
57164
57164
|
|
|
57165
|
-
/***/ }),
|
|
57166
|
-
|
|
57167
|
-
/***/ "c1f1":
|
|
57168
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
57169
|
-
|
|
57170
|
-
// Imports
|
|
57171
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
57172
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
57173
|
-
// Module
|
|
57174
|
-
exports.push([module.i, ".syswin-searchbar[data-v-1c97757c]{position:relative}.syswin-searchbar .syswin-searchbar-container[data-v-1c97757c]{box-sizing:border-box;padding:16px 0;height:64px;overflow:hidden;display:flex;align-items:center}.syswin-searchbar .syswin-searchbar-container .el-button--small[data-v-1c97757c]{padding:8px 15px}.syswin-searchbar-container__input[data-v-1c97757c]{float:left;width:336px}.syswin-searchbar-container__input[data-v-1c97757c] .el-input__inner{border-radius:2px}.syswin-searchbar-container__filter[data-v-1c97757c]{margin-left:8px;color:#027aff;font-size:14px}.syswin-searchbar-container__filter .el-icon-caret-bottom[data-v-1c97757c]{transition:all .3s cubic-bezier(.645,.045,.355,1)}.syswin-searchbar-container__filter .el-icon-caret-bottom.is-rotate-180[data-v-1c97757c]{transform:rotate(180deg)}.syswin-searchbar-container__search[data-v-1c97757c]{padding:0;width:72px;height:32px;font-size:12px;border-radius:2px;background-color:#027aff}.syswin-searchbar-container__search.is-margin-left-16[data-v-1c97757c]{margin-left:16px}.syswin-searchbar-container__reset[data-v-1c97757c]{padding:0;width:72px;height:32px;font-size:12px;border-radius:2px}.syswin-searchbar-container__listBtns[data-v-1c97757c]{position:absolute;right:0}.syswin-searchbar-container__listBtns .el-button--text[data-v-1c97757c]{color:#027aff}.syswin-searchbar .syswin-searchbar-list[data-v-1c97757c]{box-sizing:border-box;position:absolute;padding:16px 24px;width:100%;background-color:#fafafa;box-shadow:0 6px 16px -8px rgba(0,0,0,.08),0 9px 28px 0 rgba(0,0,0,.05),0 12px 48px 16px rgba(0,0,0,.03);z-index:1000;overflow:hidden}.syswin-searchbar-list__wrap[data-v-1c97757c]{border:1px solid #eaedf1;border-bottom:none}.syswin-searchbar-list__footer[data-v-1c97757c]{display:flex;margin-top:16px}.syswin-searchbar-list__footer.align-right[data-v-1c97757c]{text-align:right;justify-content:flex-end}.syswin-searchbar .syswin-filter-item[data-v-1c97757c]{display:flex;align-items:stretch;border-bottom:1px solid #eaedf1;background-color:#f6f7fb}.syswin-filter-item__title[data-v-1c97757c]{box-sizing:border-box;width:96px;height:48px;margin:0;padding:0 8px;line-height:48px;text-align:center;color:#5e6470;font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.syswin-filter-item__content[data-v-1c97757c]{margin:0;padding:0;list-style:none;flex:1;border-left:1px solid #eaedf1;background-color:#fafafa;overflow:hidden}.syswin-filter-item__content .el-date-editor[data-v-1c97757c]{border-radius:2px}.syswin-filter-item__li[data-v-1c97757c]{float:left;padding:0 12px;line-height:48px;color:rgba(0,0,0,.65)}.syswin-filter-item__li[data-v-1c97757c] .el-select .el-input__icon{line-height:48px}.syswin-filter-item__span[data-v-1c97757c]{box-sizing:border-box;display:block;width:100%;height:100%;font-size:14px;cursor:pointer}.syswin-filter-item__span.is-active[data-v-1c97757c]{color:#027aff}.syswin-filter-item__name[data-v-1c97757c]{margin-right:5px}.syswin-filter-item__subTitle[data-v-1c97757c]{float:left;margin:0 8px 0 0;font-size:14px;font-weight:400}.syswin-filter-item__subContent[data-v-1c97757c]{margin:0;padding:0;list-style:none;background-color:#fafafa;overflow:hidden}.syswin-filter-item__subContent .el-date-editor[data-v-1c97757c]{border-radius:2px}.syswin-filter-item__subLi[data-v-1c97757c]{float:left;padding:0 12px;line-height:48px;color:rgba(0,0,0,.65)}.syswin-footer__save[data-v-1c97757c]{padding:0;width:72px;height:32px;font-size:12px;border-radius:2px}.syswin-footer__condition[data-v-1c97757c]{margin:0 16px;width:127px;height:32px}.syswin-footer__condition[data-v-1c97757c] .el-input__inner{border-radius:2px}.syswin-footer__label[data-v-1c97757c]{float:left;width:116px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.syswin-footer__edit[data-v-1c97757c]{color:#027aff}.syswin-footer__delete[data-v-1c97757c],.syswin-footer__edit[data-v-1c97757c]{float:right;margin-left:8px;line-height:34px}.syswin-footer__delete[data-v-1c97757c]{color:#ff4d4f}", ""]);
|
|
57175
|
-
// Exports
|
|
57176
|
-
module.exports = exports;
|
|
57177
|
-
|
|
57178
|
-
|
|
57179
57165
|
/***/ }),
|
|
57180
57166
|
|
|
57181
57167
|
/***/ "c430":
|
|
@@ -67224,24 +67210,24 @@ select_tree.install = function (Vue) {
|
|
|
67224
67210
|
|
|
67225
67211
|
|
|
67226
67212
|
/* harmony default export */ var packages_select_tree = (select_tree);
|
|
67227
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59e007e4-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!./packages/search-bar/src/search-bar.vue?vue&type=template&id=
|
|
67228
|
-
var
|
|
67213
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"59e007e4-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!./packages/search-bar/src/search-bar.vue?vue&type=template&id=59e7e580&scoped=true&
|
|
67214
|
+
var search_barvue_type_template_id_59e7e580_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClickOutside),expression:"handleClickOutside"}],staticClass:"syswin-searchbar"},[_c('div',{staticClass:"syswin-searchbar-container"},[_c('el-input',{staticClass:"syswin-searchbar-container__input",attrs:{"placeholder":_vm.placeholder,"clearable":"","size":"small"},on:{"clear":_vm.handleClearInput},model:{value:(_vm.keyword),callback:function ($$v) {_vm.keyword=$$v},expression:"keyword"}},[_vm._t("suffix",null,{"slot":"suffix"})],2),(_vm.showFilter)?_c('el-button',{staticClass:"syswin-searchbar-container__filter",attrs:{"type":"text","size":"small"},on:{"click":_vm.handleToggleFilterList}},[_vm._v(" "+_vm._s(_vm.shrinkFilterList ? '收起筛选' : '更多筛选')+" "),_c('i',{staticClass:"el-icon-caret-bottom",class:{ 'is-rotate-180': _vm.shrinkFilterList }})]):_vm._e(),_c('el-button',{staticClass:"syswin-searchbar-container__search",class:{ 'is-margin-left-16': !_vm.showFilter },attrs:{"type":"primary","size":"small"},on:{"click":function($event){return _vm.handleSearch()}}},[_vm._v(" "+_vm._s(_vm.searchButtonText)+" ")]),(_vm.showFilter)?_c('el-button',{staticClass:"syswin-searchbar-container__reset",attrs:{"size":"small"},on:{"click":_vm.handleReset}},[_vm._v(" "+_vm._s(_vm.resetButtonText)+" ")]):_vm._e(),_c('div',{staticClass:"syswin-searchbar-container__listBtns"},[_vm._t("listBtns")],2)],1),_c('transition',{attrs:{"name":"fade"}},[(_vm.shrinkFilterList)?_c('div',{staticClass:"syswin-searchbar-list"},[_c('div',{staticClass:"syswin-searchbar-list__wrap"},[_vm._t("default"),(_vm.currentSearchList.length <= _vm.maxConditionLength + 1)?_vm._l((_vm.currentSearchList),function(ele,index){return _c('div',{key:ele.id,staticClass:"syswin-filter-item"},[_c('h5',{staticClass:"syswin-filter-item__title"},[_vm._v(" "+_vm._s(ele.name)+" ")]),_c('ul',{staticClass:"syswin-filter-item__content"},_vm._l((ele.itemList),function(item,idx){return _c('li',{key:item.id,staticClass:"syswin-filter-item__li"},[(item.type === 'text')?[_c('span',{staticClass:"syswin-filter-item__span",class:{
|
|
67229
67215
|
'is-active': item.isActive
|
|
67230
|
-
},on:{"click":function($event){return _vm.handleClick(item, idx, index)}}},[_vm._v(_vm._s(item.name))])]:(item.type === 'daterange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"daterange","size":"small","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","editable":false,"unlink-panels":true,"value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'datetimerange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"datetimerange","size":"small","format":item.format ? item.format : 'yyyy-MM-dd HH:mm:ss',"default-time":['00:00:00', '23:59:59'],"unlink-panels":true,"prefix-icon":"el-icon-date","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'select')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-select',{style:({
|
|
67216
|
+
},on:{"click":function($event){return _vm.handleClick(item, idx, index)}}},[_vm._v(_vm._s(item.name))])]:(item.type === 'daterange')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"daterange","size":"small","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","editable":false,"unlink-panels":true,"value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'month' || item.type === 'year')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":item.type,"size":"small","placeholder":("选择" + (item.type === 'month' ? '月' : '年')),"value-format":("" + (item.type === 'month' ? 'yyyy-MM' : 'yyyy'))},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'datetimerange')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"datetimerange","size":"small","format":item.format ? item.format : 'yyyy-MM-dd HH:mm:ss',"default-time":['00:00:00', '23:59:59'],"unlink-panels":true,"prefix-icon":"el-icon-date","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'select')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-select',{style:({
|
|
67231
67217
|
width: item.width ? item.width : '200px'
|
|
67232
67218
|
}),attrs:{"multiple":!!item.multiple,"collapse-tags":"","clearable":"","placeholder":("请选择" + (item.name))},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}},_vm._l((item.options),function(opt){return _c('el-option',{key:opt.id,attrs:{"label":opt.label,"value":opt.value}})}),1)]:(item.type === 'slot')?[_vm._t(item.slot,[_vm._v("内容为空")],{"item":item})]:_vm._e()],2)}),0)])}):[_vm._l((_vm.currentSearchList.slice(0, _vm.maxConditionLength)),function(ele,index){return _c('div',{key:ele.id,staticClass:"syswin-filter-item"},[_c('h5',{staticClass:"syswin-filter-item__title"},[_vm._v(" "+_vm._s(ele.name)+" ")]),_c('ul',{staticClass:"syswin-filter-item__content"},_vm._l((ele.itemList),function(item,idx){return _c('li',{key:item.id,staticClass:"syswin-filter-item__li"},[(item.type === 'text')?[_c('span',{staticClass:"syswin-filter-item__span",class:{
|
|
67233
67219
|
'is-active': item.isActive
|
|
67234
|
-
},on:{"click":function($event){return _vm.handleClick(item, idx, index)}}},[_vm._v(_vm._s(item.name))])]:(item.type === 'daterange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"daterange","size":"small","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","editable":false,"unlink-panels":true,"value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'datetimerange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"datetimerange","size":"small","format":item.format ? item.format : 'yyyy-MM-dd HH:mm:ss',"default-time":['00:00:00', '23:59:59'],"unlink-panels":true,"prefix-icon":"el-icon-date","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'select')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-select',{style:({
|
|
67220
|
+
},on:{"click":function($event){return _vm.handleClick(item, idx, index)}}},[_vm._v(_vm._s(item.name))])]:(item.type === 'daterange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"daterange","size":"small","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","editable":false,"unlink-panels":true,"value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'month' || item.type === 'year')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":item.type,"size":"small","placeholder":("选择" + (item.type === 'month' ? '月' : '年')),"value-format":("" + (item.type === 'month' ? 'yyyy-MM' : 'yyyy'))},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'datetimerange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"datetimerange","size":"small","format":item.format ? item.format : 'yyyy-MM-dd HH:mm:ss',"default-time":['00:00:00', '23:59:59'],"unlink-panels":true,"prefix-icon":"el-icon-date","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'select')?[(item.name && !item.hideName)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-select',{style:({
|
|
67235
67221
|
width: item.width ? item.width : '200px'
|
|
67236
67222
|
}),attrs:{"multiple":!!item.multiple,"collapse-tags":"","clearable":"","placeholder":("请选择" + (item.name))},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}},_vm._l((item.options),function(opt){return _c('el-option',{key:opt.id,attrs:{"label":opt.label,"value":opt.value}})}),1)]:_vm._e()],2)}),0)])}),(_vm.currentSearchList.length > _vm.maxConditionLength)?_c('div',{staticClass:"syswin-filter-item"},[_c('h5',{staticClass:"syswin-filter-item__title"},[_vm._v("更多搜索")]),_c('ul',{staticClass:"syswin-filter-item__content"},_vm._l((_vm.currentSearchList.slice(_vm.maxConditionLength)),function(ele,index){return _c('li',{key:ele.id,staticClass:"syswin-filter-item__li"},[_c('h6',{staticClass:"syswin-filter-item__subTitle"},[_vm._v(" "+_vm._s(ele.name)+" ")]),_c('ul',{staticClass:"syswin-filter-item__subContent"},_vm._l((ele.itemList),function(item,idx){return _c('li',{key:item.id,staticClass:"syswin-filter-item__subLi"},[(item.type === 'text')?[_c('span',{staticClass:"syswin-filter-item__span",class:{
|
|
67237
67223
|
'is-active': item.isActive
|
|
67238
67224
|
},on:{"click":function($event){return _vm.handleClick(item, idx, index + _vm.maxConditionLength)}}},[_vm._v(_vm._s(item.name))])]:(item.type === 'daterange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"daterange","size":"small","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","editable":false,"unlink-panels":true,"value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index + _vm.maxConditionLength)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'datetimerange')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-date-picker',{attrs:{"type":"datetimerange","size":"small","format":item.format ? item.format : 'yyyy-MM-dd HH:mm:ss',"default-time":['00:00:00', '23:59:59'],"unlink-panels":true,"prefix-icon":"el-icon-date","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"timestamp"},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index + _vm.maxConditionLength)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}})]:(item.type === 'select')?[(item.name)?_c('span',{staticClass:"syswin-filter-item__name"},[_vm._v(_vm._s(item.name))]):_vm._e(),_c('el-select',{style:({
|
|
67239
67225
|
width: item.width ? item.width : '200px'
|
|
67240
67226
|
}),attrs:{"multiple":!!item.multiple,"collapse-tags":"","clearable":"","placeholder":("请选择" + (item.name))},on:{"change":function($event){return _vm.handleChangeDateragne(idx, index + _vm.maxConditionLength)}},model:{value:(item.value),callback:function ($$v) {_vm.$set(item, "value", $$v)},expression:"item.value"}},_vm._l((item.options),function(opt){return _c('el-option',{key:opt.id,attrs:{"label":opt.label,"value":opt.value}})}),1)]:(item.type === 'slot')?[_vm._t(item.slot,[_vm._v("内容为空")],{"item":item})]:_vm._e()],2)}),0)])}),0)]):_vm._e()]],2),(_vm.saveToLocal)?_c('save-local',{attrs:{"conditionList":_vm.conditionList,"curConditionValue":_vm.conditionValue},on:{"handleSave":_vm.handleSave,"handleChangeCondition":_vm.handleChangeCondition,"handleEditCondition":_vm.handleEditCondition,"handleDeleteCondition":_vm.handleDeleteCondition,"handleConfirmCondition":_vm.handleConfirmCondition},model:{value:(_vm.currentData),callback:function ($$v) {_vm.currentData=$$v},expression:"currentData"}}):_vm._e()],1):_vm._e()]),(_vm.tagList.length && !_vm.customTagList)?_c('div',{staticClass:"search-condition-list"},_vm._l((_vm.tagList),function(tag){return _c('el-tag',{key:((tag.pId) + "_" + (tag.id)),staticClass:"tags",attrs:{"size":"small"}},[_vm._v(" "+_vm._s(tag.pName)+": "+_vm._s(tag.name)+" ")])}),1):_vm._e()],1)}
|
|
67241
|
-
var
|
|
67227
|
+
var search_barvue_type_template_id_59e7e580_scoped_true_staticRenderFns = []
|
|
67242
67228
|
|
|
67243
67229
|
|
|
67244
|
-
// CONCATENATED MODULE: ./packages/search-bar/src/search-bar.vue?vue&type=template&id=
|
|
67230
|
+
// CONCATENATED MODULE: ./packages/search-bar/src/search-bar.vue?vue&type=template&id=59e7e580&scoped=true&
|
|
67245
67231
|
|
|
67246
67232
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
67247
67233
|
var es_array_find = __webpack_require__("7db0");
|
|
@@ -67876,6 +67862,15 @@ var save_local_component = normalizeComponent(
|
|
|
67876
67862
|
//
|
|
67877
67863
|
//
|
|
67878
67864
|
//
|
|
67865
|
+
//
|
|
67866
|
+
//
|
|
67867
|
+
//
|
|
67868
|
+
//
|
|
67869
|
+
//
|
|
67870
|
+
//
|
|
67871
|
+
//
|
|
67872
|
+
//
|
|
67873
|
+
//
|
|
67879
67874
|
// import Clickoutside from 'element-ui/src/utils/clickoutside'
|
|
67880
67875
|
|
|
67881
67876
|
|
|
@@ -68023,6 +68018,9 @@ var save_local_component = normalizeComponent(
|
|
|
68023
68018
|
|
|
68024
68019
|
if (item.type === 'text') {
|
|
68025
68020
|
obj.name = item.name;
|
|
68021
|
+
} else if (item.type === 'month' || item.type === 'year') {
|
|
68022
|
+
if (!item.value) return;
|
|
68023
|
+
obj.name = item.value + (item.type === 'month' ? '月' : '年');
|
|
68026
68024
|
} else if (item.type === 'daterange') {
|
|
68027
68025
|
if (!item.value || !item.value[0]) {
|
|
68028
68026
|
return;
|
|
@@ -68140,9 +68138,34 @@ var save_local_component = normalizeComponent(
|
|
|
68140
68138
|
currentSearchList.forEach(function (ele) {
|
|
68141
68139
|
ele.itemList.forEach(function (item) {
|
|
68142
68140
|
item.isActive = !!item.default;
|
|
68143
|
-
|
|
68144
|
-
|
|
68145
|
-
|
|
68141
|
+
|
|
68142
|
+
if (['month', 'year'].includes(item.type)) {
|
|
68143
|
+
item.value = item.default && item.defaultValue ? item.defaultValue : '';
|
|
68144
|
+
}
|
|
68145
|
+
|
|
68146
|
+
if (item.type === 'daterange' || item.type === 'datetimerange') {
|
|
68147
|
+
item.value = item.default && item.defaultValue ? item.defaultValue : null;
|
|
68148
|
+
}
|
|
68149
|
+
|
|
68150
|
+
if (item.type === 'select') {
|
|
68151
|
+
if (item.default && item.defaultValue) {
|
|
68152
|
+
if (item.multiple) {
|
|
68153
|
+
var valueOptions = item.defaultValue.map(function (x) {
|
|
68154
|
+
return item.options.find(function (f) {
|
|
68155
|
+
return f.value === x;
|
|
68156
|
+
});
|
|
68157
|
+
});
|
|
68158
|
+
item.value = valueOptions.map(function (x) {
|
|
68159
|
+
return x.value;
|
|
68160
|
+
});
|
|
68161
|
+
} else {
|
|
68162
|
+
item.value = item.defaultValue;
|
|
68163
|
+
}
|
|
68164
|
+
} else {
|
|
68165
|
+
item.value = null;
|
|
68166
|
+
}
|
|
68167
|
+
}
|
|
68168
|
+
|
|
68146
68169
|
item.type === 'slot' && item.setValue({
|
|
68147
68170
|
value: '',
|
|
68148
68171
|
name: ''
|
|
@@ -68171,6 +68194,9 @@ var save_local_component = normalizeComponent(
|
|
|
68171
68194
|
|
|
68172
68195
|
if (item.type === 'text') {
|
|
68173
68196
|
obj.name = item.name;
|
|
68197
|
+
} else if (item.type === 'month' || item.type === 'year') {
|
|
68198
|
+
if (!item.defaultValue) return;
|
|
68199
|
+
obj.name = item.defaultValue + (item.type === 'month' ? '月' : '年');
|
|
68174
68200
|
} else if (item.type === 'daterange') {
|
|
68175
68201
|
if (!item.defaultValue || !item.defaultValue[0]) {
|
|
68176
68202
|
return;
|
|
@@ -68200,9 +68226,11 @@ var save_local_component = normalizeComponent(
|
|
|
68200
68226
|
return x.label;
|
|
68201
68227
|
}).join(',');
|
|
68202
68228
|
} else {
|
|
68203
|
-
|
|
68229
|
+
var defaultItem = item.options.find(function (x) {
|
|
68204
68230
|
return x.value === item.defaultValue;
|
|
68205
|
-
})
|
|
68231
|
+
});
|
|
68232
|
+
obj.name = defaultItem.label;
|
|
68233
|
+
obj.value = defaultItem;
|
|
68206
68234
|
}
|
|
68207
68235
|
} else if (item.type === 'slot') {// slot选项不设置默认值
|
|
68208
68236
|
}
|
|
@@ -68227,6 +68255,10 @@ var save_local_component = normalizeComponent(
|
|
|
68227
68255
|
item.isActive = index === childIndex ? !childItem.isActive : false;
|
|
68228
68256
|
(item.type === 'daterange' || item.type === 'datetimerange') && (item.value = null);
|
|
68229
68257
|
|
|
68258
|
+
if (item.type === 'month' || item.type === 'year') {
|
|
68259
|
+
item.value = '';
|
|
68260
|
+
}
|
|
68261
|
+
|
|
68230
68262
|
if (item.type === 'select') {
|
|
68231
68263
|
item.value = item.multiple ? [] : null;
|
|
68232
68264
|
}
|
|
@@ -68259,7 +68291,7 @@ var save_local_component = normalizeComponent(
|
|
|
68259
68291
|
this.$set(this.currentSearchList, parentIndex, parentItem);
|
|
68260
68292
|
}
|
|
68261
68293
|
} else {
|
|
68262
|
-
item.value = null;
|
|
68294
|
+
item.value = item.type === 'month' || item.type === 'year' ? '' : null;
|
|
68263
68295
|
item.isActive = false;
|
|
68264
68296
|
this.$set(this.currentSearchList[parentIndex].itemList, childIndex, item);
|
|
68265
68297
|
}
|
|
@@ -68398,8 +68430,8 @@ var save_local_component = normalizeComponent(
|
|
|
68398
68430
|
});
|
|
68399
68431
|
// CONCATENATED MODULE: ./packages/search-bar/src/search-bar.vue?vue&type=script&lang=js&
|
|
68400
68432
|
/* harmony default export */ var src_search_barvue_type_script_lang_js_ = (search_barvue_type_script_lang_js_);
|
|
68401
|
-
// EXTERNAL MODULE: ./packages/search-bar/src/search-bar.vue?vue&type=style&index=0&id=
|
|
68402
|
-
var
|
|
68433
|
+
// EXTERNAL MODULE: ./packages/search-bar/src/search-bar.vue?vue&type=style&index=0&id=59e7e580&lang=scss&scoped=true&
|
|
68434
|
+
var search_barvue_type_style_index_0_id_59e7e580_lang_scss_scoped_true_ = __webpack_require__("6be0");
|
|
68403
68435
|
|
|
68404
68436
|
// CONCATENATED MODULE: ./packages/search-bar/src/search-bar.vue
|
|
68405
68437
|
|
|
@@ -68412,11 +68444,11 @@ var search_barvue_type_style_index_0_id_1c97757c_lang_scss_scoped_true_ = __webp
|
|
|
68412
68444
|
|
|
68413
68445
|
var search_bar_component = normalizeComponent(
|
|
68414
68446
|
src_search_barvue_type_script_lang_js_,
|
|
68415
|
-
|
|
68416
|
-
|
|
68447
|
+
search_barvue_type_template_id_59e7e580_scoped_true_render,
|
|
68448
|
+
search_barvue_type_template_id_59e7e580_scoped_true_staticRenderFns,
|
|
68417
68449
|
false,
|
|
68418
68450
|
null,
|
|
68419
|
-
"
|
|
68451
|
+
"59e7e580",
|
|
68420
68452
|
null
|
|
68421
68453
|
|
|
68422
68454
|
)
|
|
@@ -70301,6 +70333,20 @@ exports.push([module.i, ".syNewsearchbar .search-wrap[data-v-2592bd66]{position:
|
|
|
70301
70333
|
module.exports = exports;
|
|
70302
70334
|
|
|
70303
70335
|
|
|
70336
|
+
/***/ }),
|
|
70337
|
+
|
|
70338
|
+
/***/ "ff55":
|
|
70339
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
70340
|
+
|
|
70341
|
+
// Imports
|
|
70342
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
70343
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
70344
|
+
// Module
|
|
70345
|
+
exports.push([module.i, ".syswin-searchbar[data-v-59e7e580]{position:relative}.syswin-searchbar .syswin-searchbar-container[data-v-59e7e580]{box-sizing:border-box;padding:16px 0;height:64px;overflow:hidden;display:flex;align-items:center}.syswin-searchbar .syswin-searchbar-container .el-button--small[data-v-59e7e580]{padding:8px 15px}.syswin-searchbar-container__input[data-v-59e7e580]{float:left;width:336px}.syswin-searchbar-container__input[data-v-59e7e580] .el-input__inner{border-radius:2px}.syswin-searchbar-container__filter[data-v-59e7e580]{margin-left:8px;color:#027aff;font-size:14px}.syswin-searchbar-container__filter .el-icon-caret-bottom[data-v-59e7e580]{transition:all .3s cubic-bezier(.645,.045,.355,1)}.syswin-searchbar-container__filter .el-icon-caret-bottom.is-rotate-180[data-v-59e7e580]{transform:rotate(180deg)}.syswin-searchbar-container__search[data-v-59e7e580]{padding:0;width:72px;height:32px;font-size:12px;border-radius:2px;background-color:#027aff}.syswin-searchbar-container__search.is-margin-left-16[data-v-59e7e580]{margin-left:16px}.syswin-searchbar-container__reset[data-v-59e7e580]{padding:0;width:72px;height:32px;font-size:12px;border-radius:2px}.syswin-searchbar-container__listBtns[data-v-59e7e580]{position:absolute;right:0}.syswin-searchbar-container__listBtns .el-button--text[data-v-59e7e580]{color:#027aff}.syswin-searchbar .syswin-searchbar-list[data-v-59e7e580]{box-sizing:border-box;position:absolute;padding:16px 24px;width:100%;background-color:#fafafa;box-shadow:0 6px 16px -8px rgba(0,0,0,.08),0 9px 28px 0 rgba(0,0,0,.05),0 12px 48px 16px rgba(0,0,0,.03);z-index:1000;overflow:hidden}.syswin-searchbar-list__wrap[data-v-59e7e580]{border:1px solid #eaedf1;border-bottom:none}.syswin-searchbar-list__footer[data-v-59e7e580]{display:flex;margin-top:16px}.syswin-searchbar-list__footer.align-right[data-v-59e7e580]{text-align:right;justify-content:flex-end}.syswin-searchbar .syswin-filter-item[data-v-59e7e580]{display:flex;align-items:stretch;border-bottom:1px solid #eaedf1;background-color:#f6f7fb}.syswin-filter-item__title[data-v-59e7e580]{box-sizing:border-box;width:96px;height:48px;margin:0;padding:0 8px;line-height:48px;text-align:center;color:#5e6470;font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.syswin-filter-item__content[data-v-59e7e580]{margin:0;padding:0;list-style:none;flex:1;border-left:1px solid #eaedf1;background-color:#fafafa;overflow:hidden}.syswin-filter-item__content .el-date-editor[data-v-59e7e580]{border-radius:2px}.syswin-filter-item__li[data-v-59e7e580]{float:left;padding:0 12px;line-height:48px;color:rgba(0,0,0,.65)}.syswin-filter-item__li[data-v-59e7e580] .el-select .el-input__icon{line-height:48px}.syswin-filter-item__span[data-v-59e7e580]{box-sizing:border-box;display:block;width:100%;height:100%;font-size:14px;cursor:pointer}.syswin-filter-item__span.is-active[data-v-59e7e580]{color:#027aff}.syswin-filter-item__name[data-v-59e7e580]{margin-right:5px}.syswin-filter-item__subTitle[data-v-59e7e580]{float:left;margin:0 8px 0 0;font-size:14px;font-weight:400}.syswin-filter-item__subContent[data-v-59e7e580]{margin:0;padding:0;list-style:none;background-color:#fafafa;overflow:hidden}.syswin-filter-item__subContent .el-date-editor[data-v-59e7e580]{border-radius:2px}.syswin-filter-item__subLi[data-v-59e7e580]{float:left;padding:0 12px;line-height:48px;color:rgba(0,0,0,.65)}.syswin-footer__save[data-v-59e7e580]{padding:0;width:72px;height:32px;font-size:12px;border-radius:2px}.syswin-footer__condition[data-v-59e7e580]{margin:0 16px;width:127px;height:32px}.syswin-footer__condition[data-v-59e7e580] .el-input__inner{border-radius:2px}.syswin-footer__label[data-v-59e7e580]{float:left;width:116px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.syswin-footer__edit[data-v-59e7e580]{color:#027aff}.syswin-footer__delete[data-v-59e7e580],.syswin-footer__edit[data-v-59e7e580]{float:right;margin-left:8px;line-height:34px}.syswin-footer__delete[data-v-59e7e580]{color:#ff4d4f}", ""]);
|
|
70346
|
+
// Exports
|
|
70347
|
+
module.exports = exports;
|
|
70348
|
+
|
|
70349
|
+
|
|
70304
70350
|
/***/ }),
|
|
70305
70351
|
|
|
70306
70352
|
/***/ "ffff":
|