epx-frame 5.0.6 → 5.1.1
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/0.js +1 -1
- package/lib/1.js +1 -1
- package/lib/115.js +1 -1
- package/lib/2.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/add-form-item.js +1 -1
- package/lib/components/add-form.js +2 -2
- package/lib/components/ai-agent-page.js +1 -1
- package/lib/components/ai-chat-page.js +1 -1
- package/lib/components/ai-import-page.js +2 -2
- package/lib/components/ai-import.js +1 -1
- package/lib/components/alert.js +1 -1
- package/lib/components/app-index.js +1 -1
- package/lib/components/app-nav.js +2 -2
- package/lib/components/app-tabs.js +1 -1
- package/lib/components/apply-form.js +1 -1
- package/lib/components/approval-index-page.js +2 -2
- package/lib/components/approval-index.js +2 -2
- package/lib/components/base-page.js +2 -2
- package/lib/components/button.js +1 -1
- package/lib/components/card-form-item.js +1 -1
- package/lib/components/card.js +1 -1
- package/lib/components/carousel.js +1 -1
- package/lib/components/category-list.js +1 -1
- package/lib/components/chart.js +2 -2
- package/lib/components/check-history.js +2 -2
- package/lib/components/collapse.js +1 -1
- package/lib/components/color-picker.js +1 -1
- package/lib/components/component.js +1 -1
- package/lib/components/config-page.js +2 -2
- package/lib/components/contacts.js +1 -1
- package/lib/components/dashboard.js +3 -1
- package/lib/components/div.js +1 -1
- package/lib/components/dropdown.js +2 -2
- package/lib/components/edit-entity-list.js +1 -1
- package/lib/components/entity-add-page.js +2 -2
- package/lib/components/entity-apply-page.js +2 -2
- package/lib/components/entity-card-list.js +1 -1
- package/lib/components/entity-list-find-page.js +2 -2
- package/lib/components/entity-list-find.js +2 -2
- package/lib/components/entity-list-page.js +2 -2
- package/lib/components/entity-list.js +2 -2
- package/lib/components/entity-no-submit-sub-list.js +1 -1
- package/lib/components/entity-sub-grid.js +2 -2
- package/lib/components/entity-sub-list.js +2 -2
- package/lib/components/entity-tree-find-page.js +2 -2
- package/lib/components/entity-tree-find.js +2 -2
- package/lib/components/export-file.js +1 -1
- package/lib/components/export.js +2 -2
- package/lib/components/flow-num.js +1 -1
- package/lib/components/footer.js +1 -1
- package/lib/components/form-field.js +1 -1
- package/lib/components/form-item.js +2 -2
- package/lib/components/form.js +2 -2
- package/lib/components/formula.js +1 -1
- package/lib/components/gauge.js +1 -1
- package/lib/components/grid.js +1 -1
- package/lib/components/header.js +1 -1
- package/lib/components/html.js +1 -1
- package/lib/components/icon.js +1 -1
- package/lib/components/iframe.js +1 -1
- package/lib/components/image.js +1 -1
- package/lib/components/import-file.js +1 -1
- package/lib/components/import.js +2 -2
- package/lib/components/layout.js +1 -1
- package/lib/components/list.js +1 -1
- package/lib/components/load-page.js +1 -1
- package/lib/components/m-entity-add-page.js +2 -2
- package/lib/components/m-entity-dept-find.js +1 -1
- package/lib/components/m-entity-list-find.js +1 -1
- package/lib/components/m-entity-list.js +1 -1
- package/lib/components/m-entity-no-submit-sub-list.js +2 -2
- package/lib/components/m-entity-tree-find.js +1 -1
- package/lib/components/m-entity-user-find.js +1 -1
- package/lib/components/menu-index.js +1 -1
- package/lib/components/menu.js +1 -1
- package/lib/components/mine.js +1 -1
- package/lib/components/module-index-page.js +2 -2
- package/lib/components/module-list-page.js +2 -2
- package/lib/components/module-list.js +1 -1
- package/lib/components/module-tabs-page.js +2 -2
- package/lib/components/nav-add-form.js +1 -1
- package/lib/components/num.js +1 -1
- package/lib/components/org-chart.js +1 -1
- package/lib/components/page-help.js +1 -1
- package/lib/components/page-tabs.js +1 -1
- package/lib/components/page.js +2 -2
- package/lib/components/pagination.js +1 -1
- package/lib/components/progress-chart.js +1 -1
- package/lib/components/progress.js +1 -1
- package/lib/components/report-chart.js +2 -2
- package/lib/components/report-html.js +2 -2
- package/lib/components/report-preview.js +2 -2
- package/lib/components/report.js +2 -2
- package/lib/components/router-view.js +1 -1
- package/lib/components/scope.js +2 -2
- package/lib/components/search-bar.js +1 -1
- package/lib/components/search-list.js +1 -1
- package/lib/components/search.js +2 -2
- package/lib/components/step-item.js +1 -1
- package/lib/components/step.js +1 -1
- package/lib/components/tab-bar.js +1 -1
- package/lib/components/tab-tags.js +1 -1
- package/lib/components/tabs.js +1 -1
- package/lib/components/tag.js +1 -1
- package/lib/components/task-list-page.js +2 -2
- package/lib/components/task-list.js +2 -2
- package/lib/components/template.js +2 -2
- package/lib/components/text-editor.js +1 -1
- package/lib/components/text.js +1 -1
- package/lib/components/title.js +1 -1
- package/lib/components/video.js +1 -1
- package/lib/components/visual-config-page.js +2 -2
- package/lib/epx-frame.common.js +2 -2
- package/lib/http.js +2 -2
- package/lib/router.js +2 -2
- package/lib/store.js +2 -2
- package/lib/utils/Config.js +1 -1
- package/lib/utils/axios.js +2 -2
- package/lib/utils/chartTheme.js +1 -1
- package/lib/utils/fieldFactory.js +2 -2
- package/lib/utils/formula.js +1 -1
- package/lib/utils/index.js +2 -2
- package/lib/utils/loadComponent.js +1 -1
- package/lib/utils/loadLibrary.js +1 -1
- package/lib/utils/meta.js +1 -1
- package/lib/utils/mixins/component.js +2 -2
- package/lib/utils/mixins/global.js +2 -2
- package/lib/utils/mixins/index.js +2 -2
- package/lib/utils/page.js +1 -1
- package/lib/utils/pdf.viewer.js +2 -2
- package/lib/utils/util.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=794)}({1:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(9);var o=r(14);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10:function(e,t){e.exports=require("core-js/modules/es.array.map.js")},12:function(e,t){e.exports=require("core-js/modules/es.regexp.exec.js")},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(9);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},170:function(e,t){e.exports=require("epx-frame/lib/utils/mixins")},19:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},2:function(e,t,r){"use strict";function n(e,t,r,n,o,i,s,a){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):o&&(u=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var d=c.render;c.render=function(e,t){return u.call(t),d(e,t)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:e,options:c}}r.d(t,"a",(function(){return n}))},25:function(e,t){e.exports=require("core-js/modules/es.iterator.map.js")},26:function(e,t){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},3:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function a(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],c=r[u]||0,d="".concat(u," ").concat(c);r[u]=c+1;var l=a(d),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(s[l].references++,s[l].updater(p)):s.push({identifier:d,updater:x(p,t),references:1}),n.push(d)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=i(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var d,l=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,m=0;function x(e,t){var r,n,o;if(t.singleton){var i=m++;r=h||(h=c(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=c(t),n=f.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=a(r[n]);s[o].references--}for(var i=u(e,t),c=0;c<r.length;c++){var d=a(r[c]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}r=i}}}},30:function(e,t){e.exports=require("core-js/modules/es.array.filter.js")},35:function(e,t){e.exports=require("core-js/modules/es.string.iterator.js")},38:function(e,t){e.exports=require("core-js/modules/es.array.join.js")},39:function(e,t){e.exports=require("core-js/modules/es.array.iterator.js")},4:function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},43:function(e,t){e.exports=require("core-js/modules/es.iterator.filter.js")},48:function(e,t){e.exports=require("core-js/modules/es.set.js")},547:function(e,t,r){"use strict";var n=r(4),o=r.n(n)()((function(e){return e[1]}));o.push([e.i,":root{--color-primary: 8,116,231 }.epx-search-bar{display:flex;width:812px;margin:0 auto;position:relative}.epx-search-bar__input{width:680px;height:60px;background:hsla(0,0%,100%,.8);margin-right:20px}.epx-search-bar__input .el-input__inner{height:60px;font-size:16px;line-height:60px}.epx-search-bar__input .el-input-group__append{font-size:20px;background-color:#0874e7}[data-theme=purple] .epx-search-bar__input .el-input-group__append{background-color:#7569e2}[data-theme=palevioletred] .epx-search-bar__input .el-input-group__append{background-color:#ce4545}[data-theme=forestgreen] .epx-search-bar__input .el-input-group__append{background-color:#3d8a50}[data-theme=deepblue] .epx-search-bar__input .el-input-group__append{background-color:#0f5fbd}[data-theme=orange] .epx-search-bar__input .el-input-group__append{background-color:#ea6000}[data-theme=skyblue] .epx-search-bar__input .el-input-group__append{background-color:#1a4586}[data-theme=aurorablue] .epx-search-bar__input .el-input-group__append{background-color:#383b9e}[data-theme=tiffanyblue] .epx-search-bar__input .el-input-group__append{background-color:#00aaad}[data-theme=tsinghuapurple] .epx-search-bar__input .el-input-group__append{background-color:#5f2167}[data-theme=creativeblue] .epx-search-bar__input .el-input-group__append{background-color:#418cff}[data-theme=njhkht] .epx-search-bar__input .el-input-group__append{background-color:#1d2088}[data-theme=custom] .epx-search-bar__input .el-input-group__append{background-color:rgba(var(--color-primary), 1)}.epx-search-bar__input .el-input-group__append{color:#fff}.epx-search-bar__input .el-input-group__append .el-button{padding:20px 28px}.epx-search-bar__more{font-size:16px;color:#444}.epx-search-bar__autocomplete{position:absolute;bottom:0;z-index:101;transform:translateY(100%);width:calc(100% - 132px);padding:10px 0;background:#fff;box-shadow:0px 2px 12px -2px rgba(0,0,0,.15);border-radius:4px}.epx-search-bar__autocomplete-list{max-height:300px;overflow:auto}.epx-search-bar__autocomplete-item{padding:10px 20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.epx-search-bar__autocomplete-item:hover{background:#f5f7fa}.epx-search-bar__autocomplete-item span{color:#444;margin-right:20px}",""]),t.a=o},58:function(e,t){e.exports=require("core-js/modules/esnext.set.add-all.js")},59:function(e,t){e.exports=require("core-js/modules/esnext.set.delete-all.js")},6:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},60:function(e,t){e.exports=require("core-js/modules/esnext.set.difference.js")},61:function(e,t){e.exports=require("core-js/modules/esnext.set.every.js")},62:function(e,t){e.exports=require("core-js/modules/esnext.set.filter.js")},63:function(e,t){e.exports=require("core-js/modules/esnext.set.find.js")},64:function(e,t){e.exports=require("core-js/modules/esnext.set.intersection.js")},65:function(e,t){e.exports=require("core-js/modules/esnext.set.is-disjoint-from.js")},66:function(e,t){e.exports=require("core-js/modules/esnext.set.is-subset-of.js")},67:function(e,t){e.exports=require("core-js/modules/esnext.set.is-superset-of.js")},68:function(e,t){e.exports=require("core-js/modules/esnext.set.join.js")},69:function(e,t){e.exports=require("core-js/modules/esnext.set.map.js")},70:function(e,t){e.exports=require("core-js/modules/esnext.set.reduce.js")},71:function(e,t){e.exports=require("core-js/modules/esnext.set.some.js")},72:function(e,t){e.exports=require("core-js/modules/esnext.set.symmetric-difference.js")},73:function(e,t){e.exports=require("core-js/modules/esnext.set.union.js")},74:function(e,t){e.exports=require("core-js/modules/es.set.difference.v2.js")},75:function(e,t){e.exports=require("core-js/modules/es.set.intersection.v2.js")},76:function(e,t){e.exports=require("core-js/modules/es.set.is-disjoint-from.v2.js")},77:function(e,t){e.exports=require("core-js/modules/es.set.is-subset-of.v2.js")},78:function(e,t){e.exports=require("core-js/modules/es.set.is-superset-of.v2.js")},79:function(e,t){e.exports=require("core-js/modules/es.set.symmetric-difference.v2.js")},794:function(e,t,r){"use strict";r.r(t);r(8);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"epx-search-bar"},[t("el-input",{staticClass:"epx-search-bar__input",attrs:{placeholder:e.keywordsPlaceHolder},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search",type:"primary"},on:{click:e.goKeywordSearchListPage},slot:"append"})],1),t("el-button",{staticClass:"epx-search-bar__more",on:{click:e.goSearchListPage}},[e._v("更多查询")]),e.data.length>0?t("div",{staticClass:"epx-search-bar__autocomplete"},[t("ul",{staticClass:"epx-search-bar__autocomplete-list"},e._l(e.data,(function(r){return t("li",{key:r[e.$metaKey],staticClass:"epx-search-bar__autocomplete-item",on:{click:function(t){return e.viewEntity(r)}}},e._l(e.keywordFields,(function(n){return t("span",{key:n},[e._v(e._s(r[n+"#"]))])})),0)})),0)]):e._e()],1)};n._withStripped=!0;var o=r(1),i=(r(30),r(39),r(38),r(10),r(6),r(12),r(48),r(35),r(87),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(67),r(68),r(69),r(70),r(71),r(72),r(73),r(26),r(19),r(43),r(25),r(74),r(75),r(76),r(77),r(78),r(79),r(80),{name:"epx-search-bar",mixins:[r(170).component],data:function(){return{keywordFieldConfigs:[],keyword:"",data:[]}},computed:{keywordFields:function(){return this.keywordFieldConfigs.map((function(e){return e.attriName||e}))},keywordsPlaceHolder:function(){var e=this.keywordFieldConfigs.filter((function(e){return!!e})).map((function(e){return e.attriLabel||""}));return this.$t("input")+(e.join("、")||this.$t("antistop"))+this.$t("inquire")}},watch:{keyword:function(){this.debounceSearch()}},methods:{initComponent:function(){this.getFields()},getFields:function(){var e=this,t=this.$configs.keywordFields;this.$meta&&(t||(t=Object(o.a)(new Set([this.$meta.label]))),0!==t.length?this.$FieldFactory.createFields({fields:t,meta:this.$meta,metaId:this.$metaId}).then((function(t){e.keywordFieldConfigs=Object(o.a)(t)})):this.keywordFieldConfigs=[])},search:function(){var e=this;this.keyword?this.$http.list({entityId:this.$metaId,metaViewId:this.$configs.metaViewId,keywordFields:this.keywordFields.join(","),keywordValue:this.keyword,limit:20,columnFieldNames:this.keywordFields.join("#,")+"#"}).then((function(t){e.data=t.entitys})):this.data=[]},viewEntity:function(e){this.goPage({metaId:this.$metaId,metaViewId:this.$configs.metaViewId,component:"entity-add-page",pageType:"DETAIL",pageId:this.$configs.detailPageId,params:{id:e[this.$metaKey]}})},goSearchListPage:function(){this.goPage({title:"更多查询",metaId:this.$metaId,metaViewId:this.$configs.metaViewId,component:"search-list-page",pageId:this.$configs.listPageId})},goKeywordSearchListPage:function(){this.keyword?this.goPage({title:"更多查询",metaId:this.$metaId,metaViewId:this.$configs.metaViewId,component:"search-list-page",pageId:this.$configs.listPageId,params:{keywordFields:this.keywordFields.join(","),keywordValue:this.keyword}}):this.$message.error("请输入关键词")}},mounted:function(){this.debounceSearch=this.$_.debounce(this.search,500)}}),s=r(3),a=r.n(s),u=r(547),c={insert:"head",singleton:!1},d=(a()(u.a,c),u.a.locals,r(2)),l=Object(d.a)(i,n,[],!1,null,null,null).exports;l.install=function(e){e.component(l.name,l)};t.default=l},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")},80:function(e,t){e.exports=require("core-js/modules/es.set.union.v2.js")},87:function(e,t){e.exports=require("core-js/modules/es.string.search.js")},9:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))}});
|
|
1
|
+
module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=800)}({1:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(9);var o=r(14);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10:function(e,t){e.exports=require("core-js/modules/es.array.map.js")},12:function(e,t){e.exports=require("core-js/modules/es.regexp.exec.js")},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(9);function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},17:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},171:function(e,t){e.exports=require("epx-frame/lib/utils/mixins")},2:function(e,t,r){"use strict";function n(e,t,r,n,o,i,s,a){var u,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):o&&(u=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var d=c.render;c.render=function(e,t){return u.call(t),d(e,t)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:e,options:c}}r.d(t,"a",(function(){return n}))},24:function(e,t){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},27:function(e,t){e.exports=require("core-js/modules/es.iterator.map.js")},3:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},31:function(e,t){e.exports=require("core-js/modules/es.array.filter.js")},32:function(e,t){e.exports=require("core-js/modules/es.string.iterator.js")},37:function(e,t){e.exports=require("core-js/modules/es.array.join.js")},39:function(e,t){e.exports=require("core-js/modules/es.array.iterator.js")},4:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function a(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],c=r[u]||0,d="".concat(u," ").concat(c);r[u]=c+1;var l=a(d),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==l?(s[l].references++,s[l].updater(p)):s.push({identifier:d,updater:x(p,t),references:1}),n.push(d)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=i(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var d,l=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=l(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var h=null,m=0;function x(e,t){var r,n,o;if(t.singleton){var i=m++;r=h||(h=c(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=c(t),n=f.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=a(r[n]);s[o].references--}for(var i=u(e,t),c=0;c<r.length;c++){var d=a(r[c]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}r=i}}}},41:function(e,t){e.exports=require("core-js/modules/es.iterator.filter.js")},44:function(e,t){e.exports=require("core-js/modules/es.set.js")},5:function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},53:function(e,t){e.exports=require("core-js/modules/esnext.set.add-all.js")},54:function(e,t){e.exports=require("core-js/modules/esnext.set.delete-all.js")},547:function(e,t,r){"use strict";var n=r(5),o=r.n(n)()((function(e){return e[1]}));o.push([e.i,":root{--color-primary: 8,116,231 }.epx-search-bar{display:flex;width:812px;margin:0 auto;position:relative}.epx-search-bar__input{width:680px;height:60px;background:hsla(0,0%,100%,.8);margin-right:20px}.epx-search-bar__input .el-input__inner{height:60px;font-size:16px;line-height:60px}.epx-search-bar__input .el-input-group__append{font-size:20px;background-color:#0874e7}[data-theme=purple] .epx-search-bar__input .el-input-group__append{background-color:#7569e2}[data-theme=palevioletred] .epx-search-bar__input .el-input-group__append{background-color:#ce4545}[data-theme=forestgreen] .epx-search-bar__input .el-input-group__append{background-color:#3d8a50}[data-theme=deepblue] .epx-search-bar__input .el-input-group__append{background-color:#0f5fbd}[data-theme=orange] .epx-search-bar__input .el-input-group__append{background-color:#ea6000}[data-theme=skyblue] .epx-search-bar__input .el-input-group__append{background-color:#1a4586}[data-theme=aurorablue] .epx-search-bar__input .el-input-group__append{background-color:#383b9e}[data-theme=tiffanyblue] .epx-search-bar__input .el-input-group__append{background-color:#00aaad}[data-theme=tsinghuapurple] .epx-search-bar__input .el-input-group__append{background-color:#5f2167}[data-theme=creativeblue] .epx-search-bar__input .el-input-group__append{background-color:#418cff}[data-theme=njhkht] .epx-search-bar__input .el-input-group__append{background-color:#1d2088}[data-theme=custom] .epx-search-bar__input .el-input-group__append{background-color:rgba(var(--color-primary), 1)}.epx-search-bar__input .el-input-group__append{color:#fff}.epx-search-bar__input .el-input-group__append .el-button{padding:20px 28px}.epx-search-bar__more{font-size:16px;color:#444}.epx-search-bar__autocomplete{position:absolute;bottom:0;z-index:101;transform:translateY(100%);width:calc(100% - 132px);padding:10px 0;background:#fff;box-shadow:0px 2px 12px -2px rgba(0,0,0,.15);border-radius:4px}.epx-search-bar__autocomplete-list{max-height:300px;overflow:auto}.epx-search-bar__autocomplete-item{padding:10px 20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.epx-search-bar__autocomplete-item:hover{background:#f5f7fa}.epx-search-bar__autocomplete-item span{color:#444;margin-right:20px}",""]),t.a=o},55:function(e,t){e.exports=require("core-js/modules/esnext.set.difference.js")},56:function(e,t){e.exports=require("core-js/modules/esnext.set.every.js")},57:function(e,t){e.exports=require("core-js/modules/esnext.set.filter.js")},58:function(e,t){e.exports=require("core-js/modules/esnext.set.find.js")},59:function(e,t){e.exports=require("core-js/modules/esnext.set.intersection.js")},60:function(e,t){e.exports=require("core-js/modules/esnext.set.is-disjoint-from.js")},61:function(e,t){e.exports=require("core-js/modules/esnext.set.is-subset-of.js")},62:function(e,t){e.exports=require("core-js/modules/esnext.set.is-superset-of.js")},63:function(e,t){e.exports=require("core-js/modules/esnext.set.join.js")},64:function(e,t){e.exports=require("core-js/modules/esnext.set.map.js")},65:function(e,t){e.exports=require("core-js/modules/esnext.set.reduce.js")},66:function(e,t){e.exports=require("core-js/modules/esnext.set.some.js")},67:function(e,t){e.exports=require("core-js/modules/esnext.set.symmetric-difference.js")},68:function(e,t){e.exports=require("core-js/modules/esnext.set.union.js")},69:function(e,t){e.exports=require("core-js/modules/es.set.difference.v2.js")},70:function(e,t){e.exports=require("core-js/modules/es.set.intersection.v2.js")},71:function(e,t){e.exports=require("core-js/modules/es.set.is-disjoint-from.v2.js")},72:function(e,t){e.exports=require("core-js/modules/es.set.is-subset-of.v2.js")},73:function(e,t){e.exports=require("core-js/modules/es.set.is-superset-of.v2.js")},74:function(e,t){e.exports=require("core-js/modules/es.set.symmetric-difference.v2.js")},75:function(e,t){e.exports=require("core-js/modules/es.set.union.v2.js")},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")},800:function(e,t,r){"use strict";r.r(t);r(8);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"epx-search-bar"},[t("el-input",{staticClass:"epx-search-bar__input",attrs:{placeholder:e.keywordsPlaceHolder},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search",type:"primary"},on:{click:e.goKeywordSearchListPage},slot:"append"})],1),t("el-button",{staticClass:"epx-search-bar__more",on:{click:e.goSearchListPage}},[e._v("更多查询")]),e.data.length>0?t("div",{staticClass:"epx-search-bar__autocomplete"},[t("ul",{staticClass:"epx-search-bar__autocomplete-list"},e._l(e.data,(function(r){return t("li",{key:r[e.$metaKey],staticClass:"epx-search-bar__autocomplete-item",on:{click:function(t){return e.viewEntity(r)}}},e._l(e.keywordFields,(function(n){return t("span",{key:n},[e._v(e._s(r[n+"#"]))])})),0)})),0)]):e._e()],1)};n._withStripped=!0;var o=r(1),i=(r(31),r(39),r(37),r(10),r(3),r(12),r(44),r(32),r(88),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(67),r(68),r(24),r(17),r(41),r(27),r(69),r(70),r(71),r(72),r(73),r(74),r(75),{name:"epx-search-bar",mixins:[r(171).component],data:function(){return{keywordFieldConfigs:[],keyword:"",data:[]}},computed:{keywordFields:function(){return this.keywordFieldConfigs.map((function(e){return e.attriName||e}))},keywordsPlaceHolder:function(){var e=this.keywordFieldConfigs.filter((function(e){return!!e})).map((function(e){return e.attriLabel||""}));return this.$t("input")+(e.join("、")||this.$t("antistop"))+this.$t("inquire")}},watch:{keyword:function(){this.debounceSearch()}},methods:{initComponent:function(){this.getFields()},getFields:function(){var e=this,t=this.$configs.keywordFields;this.$meta&&(t||(t=Object(o.a)(new Set([this.$meta.label]))),0!==t.length?this.$FieldFactory.createFields({fields:t,meta:this.$meta,metaId:this.$metaId}).then((function(t){e.keywordFieldConfigs=Object(o.a)(t)})):this.keywordFieldConfigs=[])},search:function(){var e=this;this.keyword?this.$http.list({entityId:this.$metaId,metaViewId:this.$configs.metaViewId,keywordFields:this.keywordFields.join(","),keywordValue:this.keyword,limit:20,columnFieldNames:this.keywordFields.join("#,")+"#"}).then((function(t){e.data=t.entitys})):this.data=[]},viewEntity:function(e){this.goPage({metaId:this.$metaId,metaViewId:this.$configs.metaViewId,component:"entity-add-page",pageType:"DETAIL",pageId:this.$configs.detailPageId,params:{id:e[this.$metaKey]}})},goSearchListPage:function(){this.goPage({title:"更多查询",metaId:this.$metaId,metaViewId:this.$configs.metaViewId,component:"search-list-page",pageId:this.$configs.listPageId})},goKeywordSearchListPage:function(){this.keyword?this.goPage({title:"更多查询",metaId:this.$metaId,metaViewId:this.$configs.metaViewId,component:"search-list-page",pageId:this.$configs.listPageId,params:{keywordFields:this.keywordFields.join(","),keywordValue:this.keyword}}):this.$message.error("请输入关键词")}},mounted:function(){this.debounceSearch=this.$_.debounce(this.search,500)}}),s=r(4),a=r.n(s),u=r(547),c={insert:"head",singleton:!1},d=(a()(u.a,c),u.a.locals,r(2)),l=Object(d.a)(i,n,[],!1,null,null,null).exports;l.install=function(e){e.component(l.name,l)};t.default=l},88:function(e,t){e.exports=require("core-js/modules/es.string.search.js")},9:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(e){var t={};function a(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(i,r,function(t){return e[t]}.bind(null,r));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/dist/",a(a.s=820)}({0:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var i=a(7);function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function n(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){Object(i.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}},1:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var i=a(9);var r=a(14);function n(e){return function(e){if(Array.isArray(e))return Object(i.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10:function(e,t){e.exports=require("core-js/modules/es.array.map.js")},11:function(e,t){e.exports=require("core-js/modules/es.array.find.js")},123:function(e,t){e.exports=require("epx-frame/lib/components/entity-list")},13:function(e,t){e.exports=require("core-js/modules/es.array.includes.js")},130:function(e,t){e.exports=require("axios")},14:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(9);function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Object(i.a)(e,t):void 0}}},16:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(14);function r(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=Object(i.a)(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(c)throw o}}}}},19:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},2:function(e,t,a){"use strict";function i(e,t,a,i,r,n,o,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),n&&(l._scopeId="data-v-"+n),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}a.d(t,"a",(function(){return i}))},20:function(e,t){e.exports=require("core-js/modules/es.array.concat.js")},21:function(e,t){e.exports=require("core-js/modules/es.string.includes.js")},22:function(e,t){e.exports=require("core-js/modules/es.object.keys.js")},223:function(e,t,a){"use strict";var i=a(4),r=a.n(i)()((function(e){return e[1]}));r.push([e.i,"[data-v-997f96fe]:root{--color-primary: 8,116,231 }.field-container[data-v-997f96fe]{width:680px}.field-operates[data-v-997f96fe]{margin:16px 0;display:flex;align-items:center;justify-content:space-between}.parent-tree[data-v-997f96fe]{max-height:400px;overflow:auto}.parent-tree[data-v-997f96fe] .el-tree-node__content{height:40px;line-height:40px}.parent-tree__input[data-v-997f96fe]{width:280px;font-weight:bold}.parent-tree__input[data-v-997f96fe] .el-input__inner{cursor:pointer}.alphabet[data-v-997f96fe]{width:465px;text-align:center;padding:3px 0;background-color:rgba(8,116,231,.1)}[data-theme=purple] .alphabet[data-v-997f96fe]{background-color:rgba(117,105,226,.1)}[data-theme=palevioletred] .alphabet[data-v-997f96fe]{background-color:rgba(206,69,69,.1)}[data-theme=forestgreen] .alphabet[data-v-997f96fe]{background-color:rgba(61,138,80,.1)}[data-theme=deepblue] .alphabet[data-v-997f96fe]{background-color:rgba(15,95,189,.1)}[data-theme=orange] .alphabet[data-v-997f96fe]{background-color:rgba(234,96,0,.1)}[data-theme=skyblue] .alphabet[data-v-997f96fe]{background-color:rgba(26,69,134,.1)}[data-theme=aurorablue] .alphabet[data-v-997f96fe]{background-color:rgba(56,59,158,.1)}[data-theme=tiffanyblue] .alphabet[data-v-997f96fe]{background-color:rgba(0,170,173,.1)}[data-theme=tsinghuapurple] .alphabet[data-v-997f96fe]{background-color:rgba(95,33,103,.1)}[data-theme=creativeblue] .alphabet[data-v-997f96fe]{background-color:rgba(65,140,255,.1)}[data-theme=njhkht] .alphabet[data-v-997f96fe]{background-color:rgba(29,32,136,.1)}[data-theme=custom] .alphabet[data-v-997f96fe]{background-color:rgba(var(--color-primary), 0.1)}.alphabet[data-v-997f96fe]{border-radius:14px;font-size:16px;color:#888;line-height:18px;letter-spacing:6px}.alphabet>span[data-v-997f96fe]{cursor:pointer}.alphabet>span.is-active[data-v-997f96fe]{color:#0874e7}[data-theme=purple] .alphabet>span.is-active[data-v-997f96fe]{color:#7569e2}[data-theme=palevioletred] .alphabet>span.is-active[data-v-997f96fe]{color:#ce4545}[data-theme=forestgreen] .alphabet>span.is-active[data-v-997f96fe]{color:#3d8a50}[data-theme=deepblue] .alphabet>span.is-active[data-v-997f96fe]{color:#0f5fbd}[data-theme=orange] .alphabet>span.is-active[data-v-997f96fe]{color:#ea6000}[data-theme=skyblue] .alphabet>span.is-active[data-v-997f96fe]{color:#1a4586}[data-theme=aurorablue] .alphabet>span.is-active[data-v-997f96fe]{color:#383b9e}[data-theme=tiffanyblue] .alphabet>span.is-active[data-v-997f96fe]{color:#00aaad}[data-theme=tsinghuapurple] .alphabet>span.is-active[data-v-997f96fe]{color:#5f2167}[data-theme=creativeblue] .alphabet>span.is-active[data-v-997f96fe]{color:#418cff}[data-theme=njhkht] .alphabet>span.is-active[data-v-997f96fe]{color:#1d2088}[data-theme=custom] .alphabet>span.is-active[data-v-997f96fe]{color:rgba(var(--color-primary), 1)}.alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(57.4,143.8,235.8)}[data-theme=purple] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(144.6,135,231.8)}[data-theme=palevioletred] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(215.8,106.2,106.2)}[data-theme=forestgreen] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(99.8,161.4,115)}[data-theme=deepblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(63,127,202.2)}[data-theme=orange] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(238.2,127.8,51)}[data-theme=skyblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(71.8,106.2,158.2)}[data-theme=aurorablue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(95.8,98.2,177.4)}[data-theme=tiffanyblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(51,187,189.4)}[data-theme=tsinghuapurple] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(127,77.4,133.4)}[data-theme=creativeblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:#67a3ff}[data-theme=njhkht] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(74.2,76.6,159.8)}[data-theme=custom] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgba(var(--color-primary), 0.8)}.field-list[data-v-997f96fe]{margin:7px -7px;min-height:180px;max-height:500px;overflow:auto}.field-item[data-v-997f96fe]{float:left;background:#f5f7fa;border-radius:4px;padding:6px 10px;margin:7px;line-height:20px;cursor:pointer;flex-shrink:0}.field-item[data-v-997f96fe]:hover{box-shadow:0px 2px 4px 0px rgba(0,0,0,.15)}.field-item.is-active[data-v-997f96fe]{background-color:rgba(8,116,231,.2)}[data-theme=purple] .field-item.is-active[data-v-997f96fe]{background-color:rgba(117,105,226,.2)}[data-theme=palevioletred] .field-item.is-active[data-v-997f96fe]{background-color:rgba(206,69,69,.2)}[data-theme=forestgreen] .field-item.is-active[data-v-997f96fe]{background-color:rgba(61,138,80,.2)}[data-theme=deepblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(15,95,189,.2)}[data-theme=orange] .field-item.is-active[data-v-997f96fe]{background-color:rgba(234,96,0,.2)}[data-theme=skyblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(26,69,134,.2)}[data-theme=aurorablue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(56,59,158,.2)}[data-theme=tiffanyblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(0,170,173,.2)}[data-theme=tsinghuapurple] .field-item.is-active[data-v-997f96fe]{background-color:rgba(95,33,103,.2)}[data-theme=creativeblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(65,140,255,.2)}[data-theme=njhkht] .field-item.is-active[data-v-997f96fe]{background-color:rgba(29,32,136,.2)}[data-theme=custom] .field-item.is-active[data-v-997f96fe]{background-color:rgba(var(--color-primary), 0.2)}",""]),t.a=r},224:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"field-container",on:{click:e.closePopover}},[t("el-input",{attrs:{type:"text",placeholder:"搜索字段","suffix-icon":"el-icon-search",size:"medium",clearable:""},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}}),t("div",{staticClass:"field-operates"},[t("el-popover",{staticClass:"parent-tree__popover",attrs:{placement:"bottom",width:"200",trigger:"manual"},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[t("el-input",{staticClass:"parent-tree__input",attrs:{slot:"reference",size:"medium",readonly:"",placeholder:"请选择对象","suffix-icon":"el-icon-arrow-down"},nativeOn:{click:function(t){e.showPopover=!e.showPopover}},slot:"reference",model:{value:e.activeMeta.text,callback:function(t){e.$set(e.activeMeta,"text",t)},expression:"activeMeta.text"}}),t("el-tree",{staticClass:"parent-tree",attrs:{data:e.parentTree,"node-key":"linkFlag",props:e.treeProps,"default-expanded-keys":e.defaultExpandKey,"auto-expand-parent":!1},on:{"node-click":e.switchMeta},scopedSlots:e._u([{key:"default",fn:function({node:a,data:i}){return t("span",{staticClass:"parent-tree__node",style:i.isSub&&"1"===i.relationType?{color:"red"}:{}},[e._v("\n "+e._s(a.label)+"\n ")])}}])})],1),t("div",[t("el-checkbox",{model:{value:e.showLogField,callback:function(t){e.showLogField=t},expression:"showLogField"}},[e._v("日志字段")]),t("el-checkbox",{model:{value:e.orderByFirstLetter,callback:function(t){e.orderByFirstLetter=t},expression:"orderByFirstLetter"}},[e._v("按首字母排序")])],1)],1),e.orderByFirstLetter?t("div",{staticClass:"alphabet"},e._l(e.alphabet,(function(a){return t("span",{key:a,class:{"is-active":e.filterLetter===a},on:{click:function(t){e.filterLetter=a}}},[e._v(e._s(a))])})),0):e._e(),t("div",{staticClass:"field-content"},[t("ul",{staticClass:"field-list"},["1"===e.activeMeta.relationType?t("li",{staticClass:"field-item",on:{click:function(t){return e.$emit("select",e.activeMeta,e.activeMeta)}}},[e._v("查询记录数")]):e._e(),e._l(e.showFields,(function(a){return t("li",{key:a.field,staticClass:"field-item",class:{"is-active":e.orderByFirstLetter&&e.filterLetter===a.initial},on:{click:function(t){return e.$emit("select",a,e.activeMeta)}}},[e._v(e._s(a.text))])}))],2)])],1)};i._withStripped=!0;var r=a(0),n=(a(30),a(13),a(10),a(81),a(6),a(21),a(19),a(43),a(25),a(33)),o={name:"epx-meta-field-library",props:{metaId:String,metaViewId:String,fields:Array},data:function(){return{treeProps:{children:"children",label:"text"},showPopover:!1,searchText:"",parentTree:[],activeMeta:{},mapFields:{},showLogField:!1,orderByFirstLetter:!1,alphabet:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],filterLetter:""}},computed:Object(r.a)(Object(r.a)({},Object(n.mapGetters)(["getMetaViewFields"])),{},{metaFields:function(){return this.fields||this.getMetaViewFields(this.metaId,this.metaViewId)},showFields:function(){var e=this,t=this.activeMeta,a=t.linkFlag,i=t.code,r=this.mapFields[a||i]||[];return r=r.filter((function(t){return!(!e.showLogField&&["ID","LOG_C_TIME","LOG_C_USER","LOG_U_TIME","LOG_U_USER"].includes(t.code))})),this.searchText&&(r=r.filter((function(t){return t.text.includes(e.searchText)}))),this.orderByFirstLetter&&(r=r.sort((function(e,t){return e.initial>t.initial?1:-1}))),r}}),watch:{showPopover:function(e){console.log(e)},metaFields:{handler:function(e){e&&e.length>0&&this.formatMetaFields()},immediate:!0}},methods:{getMetaFields:function(){this.metaId&&this.$store.dispatch({type:"ADD_META_VIEW_FIELDS",metaId:this.metaId,viewId:this.metaViewId})},formatMetaFields:function(){var e={},t=function(a){return a.filter((function(a){return!!(a.children&&a.children.length>0)&&(e[a.linkFlag||a.code]=a.children.filter((function(e){return"field"===e.type})).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{children:null})})),a.children=t(a.children),!0)}))};this.parentTree=t(this.$_.cloneDeep(this.metaFields)),this.activeMeta=this.parentTree[0]||{},this.mapFields=e},switchMeta:function(e){this.activeMeta=e,"1"===e.relationType&&(this.showPopover=!1)},closePopover:function(){this.showPopover=!1}},created:function(){this.metaFields||this.getMetaFields()},mounted:function(){window.addEventListener("click",this.closePopover)},beforeDestroy:function(){window.removeEventListener("click",this.closePopover)}},s=a(3),c=a.n(s),l=a(223),d={insert:"head",singleton:!1},u=(c()(l.a,d),l.a.locals,a(2)),p=Object(u.a)(o,i,[],!1,null,"997f96fe",null);t.default=p.exports},23:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(5);function r(e){var t=function(e,t){if("object"!=Object(i.a)(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=Object(i.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(i.a)(t)?t:t+""}},25:function(e,t){e.exports=require("core-js/modules/es.iterator.map.js")},26:function(e,t){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},27:function(e,t){e.exports=require("core-js/modules/es.array.push.js")},28:function(e,t){e.exports=require("core-js/modules/es.iterator.find.js")},29:function(e,t){e.exports=require("core-js/modules/es.array.splice.js")},3:function(e,t,a){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},n=function(){var e={};return function(t){if(void 0===e[t]){var a=document.querySelector(t);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[t]=a}return e[t]}}(),o=[];function s(e){for(var t=-1,a=0;a<o.length;a++)if(o[a].identifier===e){t=a;break}return t}function c(e,t){for(var a={},i=[],r=0;r<e.length;r++){var n=e[r],c=t.base?n[0]+t.base:n[0],l=a[c]||0,d="".concat(c," ").concat(l);a[c]=l+1;var u=s(d),p={css:n[1],media:n[2],sourceMap:n[3]};-1!==u?(o[u].references++,o[u].updater(p)):o.push({identifier:d,updater:v(p,t),references:1}),i.push(d)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=a.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var o=n(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function p(e,t,a,i){var r=a?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var n=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(n,o[t]):e.appendChild(n)}}function f(e,t,a){var i=a.css,r=a.media,n=a.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,m=0;function v(e,t){var a,i,r;if(t.singleton){var n=m++;a=h||(h=l(t)),i=p.bind(null,a,n,!1),r=p.bind(null,a,n,!0)}else a=l(t),i=f.bind(null,a,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(a)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var a=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<a.length;i++){var r=s(a[i]);o[r].references--}for(var n=c(e,t),l=0;l<a.length;l++){var d=s(a[l]);0===o[d].references&&(o[d].updater(),o.splice(d,1))}a=n}}}},30:function(e,t){e.exports=require("core-js/modules/es.array.filter.js")},33:function(e,t){e.exports=require("vuex")},36:function(e,t){e.exports=require("core-js/modules/es.number.constructor.js")},38:function(e,t){e.exports=require("core-js/modules/es.array.join.js")},39:function(e,t){e.exports=require("core-js/modules/es.array.iterator.js")},4:function(e,t,a){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var a=e(t);return t[2]?"@media ".concat(t[2]," {").concat(a,"}"):a})).join("")},t.i=function(e,a,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var n=0;n<this.length;n++){var o=this[n][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&r[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),t.push(c))}},t}},40:function(e,t){e.exports=require("core-js/modules/es.json.stringify.js")},43:function(e,t){e.exports=require("core-js/modules/es.iterator.filter.js")},5:function(e,t,a){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a.d(t,"a",(function(){return i}))},51:function(e,t){e.exports=require("core-js/modules/es.object.values.js")},548:function(e,t,a){"use strict";var i=a(4),r=a.n(i)()((function(e){return e[1]}));r.push([e.i,":root{--color-primary: 8,116,231 }.epx-search-list__search{background:#fff;position:relative}.epx-search-list__search .el-tabs__nav-scroll{padding:0 20px}.epx-search-list__search .el-tabs__item{height:50px;line-height:50px}.epx-search-list__metaview-list{position:absolute;right:20px;top:7px;z-index:1}.epx-search-list__metaview-list .el-input__inner{height:36px;line-height:36px}.epx-search-list__scope-item{display:flex;border-bottom:1px solid #e4e7ed;with:100%;padding:10px 20px}.epx-search-list__search-header{display:flex;justify-content:space-between;align-items:center;padding:0 20px 15px;border-bottom:1px solid #e4e7ed}.epx-search-list__condition-content:last-child .epx-search-list__condition-link{display:none}.epx-search-list__condition-text{padding:8px 10px;line-height:36px;background:#f5f7fa;border-radius:4px}.epx-search-list__condition-text>i{margin-left:2px;cursor:pointer}.epx-search-list__condition-link{margin:0 4px}.epx-search-list__scope-operates{padding-bottom:10px}.epx-search-list__set-condition{display:flex;align-items:center}.epx-search-list__condition-item{margin-right:8px}",""]),t.a=r},57:function(e,t){e.exports=require("core-js/modules/es.string.link.js")},6:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},7:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(23);function r(e,t,a){return(t=Object(i.a)(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")},81:function(e,t){e.exports=require("core-js/modules/es.array.sort.js")},820:function(e,t,a){"use strict";a.r(t);a(8);var i=a(1),r=a(16),n=a(0),o=a(7),s=(a(20),a(30),a(11),a(13),a(39),a(38),a(10),a(81),a(29),a(36),a(22),a(6),a(51),a(57),a(26),a(27),a(19),a(43),a(28),a(25),a(40),a(130)),c=a.n(s),l=a(123),d=a.n(l),u=a(224),p=a(33),f={name:"epx-search-list",components:Object(o.a)({},u.default.name,u.default),extends:d.a,data:function(){return{searchType:"quick",showSearch:!0,metaViewId:null,metaViewList:null,scopeConfig:{},showBrace:!1,quickScope:{},advanceScopeParams:[],showLogField:!0,showSubField:!1,keywordValue:"",linkOption:[]}},computed:Object(n.a)(Object(n.a)({},Object(p.mapGetters)(["getMetaViewFields"])),{},{metaView:function(){var e=this;return this.metaViewList.find((function(t){return t.id===e.metaViewId}))},fieldStore:function(){return this.getMetaViewFields(this.$metaId,this.metaViewId)||[]},showFields:function(){var e=this,t=function(a){return a.filter((function(a){return!(!e.showLogField&&["ID","LOG_C_TIME","LOG_C_USER","LOG_U_TIME","LOG_U_USER"].includes(a.code))&&(!(!e.showSubField&&("1"===a.relationType||a.isSub))&&(a.children&&(a.children=t(a.children)),!0))}))},a=this.$_.cloneDeep(this.fieldStore);return t(a)},quickSearchFields:function(){var e=this;return this.metaView&&this.metaView.searchFields?JSON.parse(this.metaView.searchFields).map((function(t){return e.getField(t)})).filter((function(e){return!!e})):[]},scopeText:function(){var e=this;return function(t){var a=e.getField(t.field),i=e.scopeConfig[["multiobject","dept","user"].includes(a.dataType)?"object":a.dataType],r=t.mode,n=t["mode#"];return!n&&i&&(n=r?i.options.find((function(e){return e.value===r})).name:i.defaultOption.name||i.options[0].value),"".concat(a.text," ").concat("COUNT"===t.field_function?"记录数":""," ").concat(n," ").concat(t["values#"]||t.values||"")}},quickScopeParams:function(){var e=this;return Object.values(this.quickScope).filter((function(e){return!("is_null"!==e.mode&&"not_null"!==e.mode&&!e.values&&!e.valueType)})).map((function(t){var a=e.getField(t.field),i=e.scopeConfig[["multiobject","dept","user"].includes(a.dataType)?"object":a.dataType];return i?Object(n.a)(Object(n.a)({},t),{},{mode:t.mode||i.defaultOption.value||i.options[0].value}):Object(n.a)({},t)}))}}),watch:{quickScope:function(){Object.values(this.quickScope).length<=0&&!this.keywordValue&&(this.showSearch=!0)},advanceScopeParams:function(){0!==this.advanceScopeParams.length||this.keywordValue||(this.showSearch=!0)},searchType:function(){this.showSearch=!0},keywordValue:function(){this.keywordValue||("quick"===this.searchType&&Object.values(this.quickScope).length<=0||"advance"===this.searchType&&0===this.advanceScopeParams.length)&&(this.showSearch=!0)}},methods:{initComponent:function(){if(this.getMetaViewInfo(),this.getFieldStore(),this.getScopeConfig(),this.getScopeLinkOption(),this.setKeyword(),this.showFlag){var e=null,t=this.$configs.pageSize;this.pageSize=Number(t),this.getDefaultOperates(),this.metaView&&this.metaView.listFields&&(e=JSON.parse(this.metaView.listFields)),this.getFields(e)}},changeMetaView:function(e){this.getFieldStore();var t=null;this.metaView&&this.metaView.listFields&&(t=JSON.parse(this.metaView.listFields)),this.getFields(t),this.quickScope={},this.advanceScopeParams=[],this.showSearch=!0},getDefaultOperates:function(){var e=this.$configs,t=e.operates,a=e.columnOperates,i=[{text:this.$t("export"),handler:"goPage",pageFlag:"v_export",component:"export-page",params:{selects:"#[".concat(this.$metaKey,"]"),total:"$[total]",params:"$[params]",scopeParams:"$[scopeParams]",fields:"$[exportFields]"}}];t||this.$set(this.configs,"operates",i),a||this.$set(this.configs,"columnOperates",[])},getMetaViewInfo:function(){this.$meta.metaView&&(this.metaViewList=Object.values(this.$meta.metaView),this.$query.metaViewId&&(this.metaViewId=this.$query.metaViewId)),this.metaView||(this.searchType="advance")},getFieldStore:function(){this.fieldStore&&this.fieldStore.length>0||this.$store.dispatch({type:"ADD_META_VIEW_FIELDS",metaId:this.$metaId,viewId:this.metaViewId})},getScopeConfig:function(){var e=this;this.$http.$request({action:"getAllSearchConfig",entityId:"FM_SEARCH_CONFIG"}).then((function(t){e.scopeConfig=Object(n.a)({},t)}))},setKeyword:function(){var e=this.$query.keywordValue;e&&(this.keywordValue=e,this.showSearch=!1)},getField:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.fieldStore,i=Object(r.a)(a);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.field===e)return n;if(n.children){var o=this.getField(e,n.children);if(o)return o}}}catch(e){i.e(e)}finally{i.f()}},updateScopeItem:function(e,t){var a=t.key,i=t.value,r=t["value#"],o=this.quickSearchFields[e],s=this.quickScope[o.field]||{};if(null===i||""===i){if("values"===a&&!["equal","not_equal"].includes(s.mode))return void this.$delete(this.quickScope,o.field);delete s[a],delete s[a+"#"]}else s[a]=i,s[a+"#"]=r;this.$set(this.quickScope,o.field,Object(n.a)({field:o.field},s))},deleteScopeItem:function(e){var t=this.quickSearchFields[e];this.$delete(this.quickScope,t.field)},addScopeItem:function(e,t){if("folder"!==e.type&&!e.isMain){e.relationMeta&&e.relationMeta.id&&(e.codeKey=e.relationMeta.id);var a="meta"===e.type?"num":"time"===e.dataType?"datetime":"treeList"===e.optionType?e.optionType:e.dataType,i=this.scopeConfig["treeList"===a?"list":a]||{};"date"===a&&(i=e.datePrecision&&i[e.datePrecision]||i.date);var r=i.options,n=void 0===r?[]:r,o=i.defaultOption,s=void 0===o?{}:o,c=[];if("meta"!==e.type){c="num"===a?this.linkOption.filter((function(e){return"GROUP_CONCAT"!==e.value})):this.linkOption.filter((function(e){return"GROUP_CONCAT"===e.value||"COUNT"===e.value}));var l={key:this.$util.genId(),field:e.field,label:(t&&!t.isMain?t.text+".":"")+e.text,dataType:a,datePrecision:e.datePrecision,codeKey:e.codeKey,relationSort:e.relationSort||"",mode:s&&s.value||n[0]&&n[0].value,"mode#":s&&s.name||n[0]&&n[0].name,field_function:"1"===e.relationSort?c[0]&&c[0].value:"","field_function#":"1"===e.relationSort?c[0]&&c[0].name:"",values:"","values#":"",metaId:e.meta?e.meta.id:null};e.isTree&&(l.isTree=e.isTree),this.advanceScopeParams.push(l)}else this.advanceScopeParams.push({key:this.$util.genId(),field:e.field,label:e.text,type:"meta",metaId:e.id,mode:s&&s.value||n[0]&&n[0].value,"mode#":s&&s.name||n[0]&&n[0].name,field_function:"COUNT"})}},updateAdvanceScopeItem:function(e,t){var a=t.key,i=t.value,r=t["value#"],o=Object(n.a)({},this.advanceScopeParams[e]);null===i?(delete o[a],delete o[a+"#"]):(o[a]=i,o[a+"#"]=r),this.advanceScopeParams.splice(e,1,o)},deleteAdvanceScopeItem:function(e){this.$delete(this.advanceScopeParams,e)},quickSearch:function(){Object.values(this.quickScope)<=0?this.$message.error("请设置查询条件"):(this.searchScopeParams=this.quickScopeParams.filter((function(e){return e.values||"is_null"!==e.mode||"not_null"!==e.mode})),this.showSearch=!1)},formatScopeParams:function(e){var t,a=!0,i=[],n=Object(r.a)(e);try{for(n.s();!(t=n.n()).done;){var o=t.value,s=o.lb,c=void 0===s?"":s,l=o.field,d=o.relationSort,u=o.field_function,p=o["field_function#"],f=void 0===p?"":p,h=o.mode,m=o.dateType,v=void 0===m?"":m,b=o.valueType,g=void 0===b?"":b,y=o["valueType#"],x=void 0===y?"":y,_=o.values,w=o.rb,k=void 0===w?"":w,S=o.link,j=o.label,O=o["mode#"],T=void 0===O?this.$t("yes"):O,F=o["values#"],P=void 0===F?"":F,I=o["link#"],$=void 0===I?"":I,q=o["dateType#"],C=void 0===q?"":q,V=o.dateUnit,M=o.full,L=o.type,E=o.scopeParams,A="",D=null,N=C&&"aftertime"!==v&&"past"!==v&&"set_date"!==v?"":P||_||x;if("aftertime"!==v&&"past"!==v||(N+="year"===V?"年":"month"===V?"月":"天"),"1"===d?("GROUP_COUNT"===u?(A=c+j+" ".concat(T," ")+(P||_)+k,v&&(A=c+j+" ".concat(T," ")+C+N+k)):(A=c+j+f+" ".concat(T," ")+N+k,v&&(A=c+j+" ".concat(T," ")+C+N+k)),D={lb:c,field:l,relationSort:d,field_function:u||"GROUP_CONCAT",mode:h,values:_,rb:k,link:S,text:A,linkLabel:$}):(A=c+j+" ".concat(T," ")+N+k,v&&(A=c+j+" ".concat(T," ")+C+N+k),D={lb:c,field:l,mode:h,values:_,rb:k,link:S,text:A,linkLabel:$}),v&&(D.dateType=v,"aftertime"!==v&&"past"!==v||(D.values=D.dateType+"#"+D.values,V&&(D.values+="#"+V,D.dateUnit=V),M&&(D.values+="#full",D.full=!0))),g&&(D.valueType=g,D["valueType#"]=x),L&&(D.type=L),E&&(D.scopeParams=E),D["values#"]=P,a&&"is_null"!==h&&"not_null"!==h&&""===_){a=!1,this.$message.error("请给".concat(j,"选择查询条件"));break}i.push(D)}}catch(e){n.e(e)}finally{n.f()}return a?i:a},advanceSearch:function(){var e=this.formatScopeParams(this.advanceScopeParams);e&&(this.searchScopeParams=Object(i.a)(e),this.showSearch=!1)},getData:function(e,t){var a=this;if(!this.showSearch){var r=this,o=this.$configs,s=o.queryParams,l=void 0===s?{}:s,d=o.pageFlag,u=o.orderFields,p=o.order_field,f=void 0===p?[]:p,h=o.order_mode,m=void 0===h?[]:h,v=o.limit,b=o.action,g=o.type,y={entityId:this.$metaId,metaViewId:this.metaViewId};b&&(y.action=b);var x=this.listFields.filter((function(e){return e.function})),_=[];if(x.length>0&&(_=x.map((function(e){return{dataIndex:e.attriName,function:e.function}})),y.fieldFunctions=JSON.stringify(_)),d&&"tree"!==g&&(y.page=!e||"string"!=typeof e&&"number"!=typeof e?this.currentPage:e,y.limit=this.pageSize),v&&(y.limit=v),this.scopeParams&&(y.scopeParams=JSON.stringify(this.scopeParams)),u&&u.length>0&&(f=u.map((function(e){return e.attriName||e})),m=u.map((function(e){return e.sort||"asc"}))),this.sortParams&&this.sortParams.sort){var w=this.sortParams;f=[w.sort],m=[w.order]}if(!this.loading){this.loading=!0;var k=Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)({},y),this.$formatParams(l)),this.searchKeyParams),this.queryParams),{},{keywordFields:this.$query.keywordFields,keywordValue:this.keywordValue,columnFields:this.columnFields,order_field:f.join(","),order_mode:m.join(",")});if("tree"===g)this.getTreeData(k,t);else{var S=c.a.CancelToken;this.$http.list(k,{cancelToken:new S((function(e){r.cancelGetData=e}))}).then((function(r){a.initData=!0,a.loading=!1,!e||"string"!=typeof e&&"number"!=typeof e||(a.currentPage=e),r&&(a.data=Object(i.a)(r.entitys),a.total=r.total||r.entitys.length,a.getAllDataMap(r.entitys),t&&t(a.data),a.$dispatchPage("listData",[{total:a.total,entitys:a.data}]),a.$emit("listData",{total:a.total,entitys:a.data}),a.$nextTick((function(){setTimeout((function(){a.$refs.table&&a.$refs.table.doLayout()}),200)})),a.$nextTick((function(){a.openTableXScrollBar()})),a.afterData&&a.afterData(a.data))})).catch((function(e){a.loading=!1,a.$message.error(e.message)}))}}}},renderSearch:function(){var e=this,t=this.$createElement;return t("div",{class:"epx-search-list__search"},[this.metaViewList&&this.metaViewList.length>0&&t("el-select",{class:"epx-search-list__metaview-list",on:{change:this.changeMetaView},model:{value:e.metaViewId,callback:function(t){e.metaViewId=t}}},[this.metaViewList.map((function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))]),t("el-tabs",{model:{value:e.searchType,callback:function(t){e.searchType=t}}},[this.metaView&&t("el-tab-pane",{attrs:{label:"快捷查询",name:"quick"}},[t("div",{class:"epx-search-list__search-header"},[t("div",{class:"epx-search-list__set-condition"},[this.keywordValue&&t("div",{class:"epx-search-list__condition-item"},["关键词:",t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[this.keywordValue,t("i",{class:"el-icon-close",on:{click:function(){e.keywordValue=""}}})])])]),t("div",{class:"epx-search-list__condition-item"},["已选条件:",Object.values(this.quickScope).filter((function(e){return e.mode||e.values})).map((function(a,i){return t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[e.scopeText(a),t("i",{class:"el-icon-close",on:{click:function(){return e.$delete(e.quickScope,a.field)}}})]),t("font",{class:"epx-search-list__condition-link"},["or"===a.link?"或者":"并且"])])}))])]),this.showSearch?this.quickScopeParams.length>0?t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:this.quickSearch}},["开始查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.quickScope={}}}},["清空"])]):null:t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(){e.showSearch=!0}}},["继续查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.quickScope={}}}},["清空"])])]),this.showSearch&&t("ul",{class:"epx-search-list__search-list"},[this.quickSearchFields.map((function(a,i){return t("epx-scope-item-horizontal",{class:"epx-search-list__scope-item",key:a.field,attrs:{metaId:e.$metaId,scope:Object(n.a)({field:a.field,label:a.text,type:a.type,dataType:"treeList"===a.optionType?a.optionType:a.dataType,datePrecision:a.datePrecision,codeKey:a.codeKey},e.quickScope[a.field]),allFields:e.fieldStore,scopeConfig:e.scopeConfig,showOperator:!0,showBrace:e.showBrace,last:i===e.quickSearchFields.length-1},on:{update:function(t){return e.updateScopeItem(i,t)},delete:function(t){return e.deleteScopeItem(i)}}})}))])]),t("el-tab-pane",{attrs:{label:"高级查询",name:"advance"}},[t("div",{class:"epx-search-list__search-header"},[t("div",{class:"epx-search-list__set-condition"},[this.keywordValue&&t("div",{class:"epx-search-list__condition-item"},["关键词:",t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[this.keywordValue,t("i",{class:"el-icon-close",on:{click:function(){e.keywordValue=""}}})])])]),t("div",{class:"epx-search-list__condition-item"},["已选条件:",this.advanceScopeParams.map((function(a,i){return t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[e.scopeText(a),t("i",{class:"el-icon-close",on:{click:function(){return e.$delete(e.quickScope,a.field)}}})]),t("font",{class:"epx-search-list__condition-link"},["or"===a.link?"或者":"并且"])])}))])]),this.showSearch?this.advanceScopeParams.length>0?t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:this.advanceSearch}},["开始查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.advanceScopeParams=[]}}},["清空"])]):null:t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(){e.showSearch=!0}}},["继续查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.advanceScopeParams=[]}}},["清空"])])]),this.showSearch&&t("ul",{class:"epx-search-list__search-list"},[this.advanceScopeParams.map((function(a,i){return t("epx-scope-item-horizontal",{class:"epx-search-list__scope-item",key:a.field,attrs:{metaId:e.$metaId,scope:a,allFields:e.fieldStore,scopeConfig:e.scopeConfig,showOperator:!0,showBrace:e.showBrace,linkOption:e.linkOption,last:i===e.advanceScopeParams.length-1},on:{update:function(t){return e.updateAdvanceScopeItem(i,t)},delete:function(t){return e.deleteAdvanceScopeItem(i)}}})}))]),this.showSearch&&t("div",{class:"epx-scope__operates epx-search-list__scope-operates"},[t("el-popover",{ref:"popover",attrs:{trigger:"click",tabindex:1}},[t("span",{class:"epx-scope__operate",slot:"reference"},[t("i",{class:"el-icon-plus"}),t("font",[this.$t("add filter criteria")])]),t("div",{class:"epx-scope__opera-popper"},[t("epx-meta-field-library",{attrs:{metaId:this.$metaId,metaViewId:this.metaViewId,fields:this.fieldStore},on:{select:this.addScopeItem}})])]),t("span",{class:"epx-scope__show-brace"},[t("el-checkbox",{model:{value:e.showBrace,callback:function(t){e.showBrace=t}}},[this.$t("show brackets"),"()"])])])])])])},renderButtons:function(){var e=this,t=this.$createElement,a=this.$configs,i=a.operateFlag,r=a.searchFlag,s=a.searchMode,c=a.totalFlag,l=a.showKeyword,d=a.setField,u=i&&this.checkRightOperates.length>0,p=r&&"keyword"===s&&l;if(!this.showSearch&&(u||p||c||d))return t("div",{class:"epx-entity-list__operates"},[t("div",[!this.readonly&&i&&this.checkRightOperates.length>0&&t("div",{class:"epx-entity-list__buttongroup"},[this.operates.map((function(a){return"dropdown"===a.operateType?t("el-dropdown",{class:"epx-entity-list__operates-more"},[t("el-button",{attrs:{size:"medium",type:"text"===a.type?"text":a.ui},key:a.text,props:Object(n.a)({},Object(o.a)({},a.type,!0))},[a.icon&&t("i",{class:["epx-entity-list__operate-icon",a.icon]}),a.text,t("i",{class:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{slot:"dropdown"},[(a.operates||[]).map((function(a){return t("el-dropdown-item",{key:a.key,nativeOn:{click:e.$handler.bind(e,a,null)}},[a.text])}))])]):t("el-button",{class:"epx-entity-list__operate",attrs:{size:"medium",type:"text"===a.type?"text":a.ui},key:a.text,props:Object(n.a)({},Object(o.a)({},a.type,!0)),on:{click:e.$handler.bind(e,a,null)}},[a.icon&&t("i",{class:["epx-entity-list__operate-icon",a.icon]}),a.text])})),this.moreOperates.length>0&&t("el-dropdown",{class:"epx-entity-list__operates-more",attrs:{trigger:"click"}},[t("el-button",{attrs:{size:"medium"}},[t("i",{class:"el-icon-more"})]),t("el-dropdown-menu",{slot:"dropdown"},[this.moreOperates.map((function(a){return t("el-dropdown-item",{key:a.text,nativeOn:{click:e.$handler.bind(e,a,null)}},[a.text])}))])])])])])},renderList:function(){return this.showSearch?null:"card"===this.$configs.type?this.renderCardList():this.renderTable()},getScopeLinkOption:function(){var e=this;this.$http.getCodes({key:"ONEMORE_FIELD_FUNCTION"}).then((function(t){e.linkOption=t.map((function(e){return{value:e.code,name:e.name}}))}))}}},h=a(3),m=a.n(h),v=a(548),b={insert:"head",singleton:!1},g=(m()(v.a,b),v.a.locals,a(2)),y=Object(g.a)(f,void 0,void 0,!1,null,null,null).exports;y.install=function(e){e.component(y.name,y)};t.default=y},9:function(e,t,a){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}a.d(t,"a",(function(){return i}))}});
|
|
1
|
+
module.exports=function(e){var t={};function a(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(i,r,function(t){return e[t]}.bind(null,r));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/dist/",a(a.s=826)}({0:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var i=a(7);function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){Object(i.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}},1:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var i=a(9);var r=a(14);function o(e){return function(e){if(Array.isArray(e))return Object(i.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},10:function(e,t){e.exports=require("core-js/modules/es.array.map.js")},121:function(e,t){e.exports=require("axios")},124:function(e,t){e.exports=require("epx-frame/lib/components/entity-list")},13:function(e,t){e.exports=require("core-js/modules/es.array.find.js")},14:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(9);function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Object(i.a)(e,t):void 0}}},15:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(14);function r(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=Object(i.a)(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,c=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){c=!0,n=e},f:function(){try{s||null==a.return||a.return()}finally{if(c)throw n}}}}},16:function(e,t){e.exports=require("core-js/modules/es.array.includes.js")},17:function(e,t){e.exports=require("core-js/modules/es.iterator.constructor.js")},18:function(e,t){e.exports=require("core-js/modules/es.array.concat.js")},2:function(e,t,a){"use strict";function i(e,t,a,i,r,o,n,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),n?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(e,t){return c.call(t),d(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:l}}a.d(t,"a",(function(){return i}))},21:function(e,t){e.exports=require("core-js/modules/es.object.keys.js")},22:function(e,t){e.exports=require("core-js/modules/es.string.includes.js")},225:function(e,t,a){"use strict";var i=a(5),r=a.n(i)()((function(e){return e[1]}));r.push([e.i,"[data-v-997f96fe]:root{--color-primary: 8,116,231 }.field-container[data-v-997f96fe]{width:680px}.field-operates[data-v-997f96fe]{margin:16px 0;display:flex;align-items:center;justify-content:space-between}.parent-tree[data-v-997f96fe]{max-height:400px;overflow:auto}.parent-tree[data-v-997f96fe] .el-tree-node__content{height:40px;line-height:40px}.parent-tree__input[data-v-997f96fe]{width:280px;font-weight:bold}.parent-tree__input[data-v-997f96fe] .el-input__inner{cursor:pointer}.alphabet[data-v-997f96fe]{width:465px;text-align:center;padding:3px 0;background-color:rgba(8,116,231,.1)}[data-theme=purple] .alphabet[data-v-997f96fe]{background-color:rgba(117,105,226,.1)}[data-theme=palevioletred] .alphabet[data-v-997f96fe]{background-color:rgba(206,69,69,.1)}[data-theme=forestgreen] .alphabet[data-v-997f96fe]{background-color:rgba(61,138,80,.1)}[data-theme=deepblue] .alphabet[data-v-997f96fe]{background-color:rgba(15,95,189,.1)}[data-theme=orange] .alphabet[data-v-997f96fe]{background-color:rgba(234,96,0,.1)}[data-theme=skyblue] .alphabet[data-v-997f96fe]{background-color:rgba(26,69,134,.1)}[data-theme=aurorablue] .alphabet[data-v-997f96fe]{background-color:rgba(56,59,158,.1)}[data-theme=tiffanyblue] .alphabet[data-v-997f96fe]{background-color:rgba(0,170,173,.1)}[data-theme=tsinghuapurple] .alphabet[data-v-997f96fe]{background-color:rgba(95,33,103,.1)}[data-theme=creativeblue] .alphabet[data-v-997f96fe]{background-color:rgba(65,140,255,.1)}[data-theme=njhkht] .alphabet[data-v-997f96fe]{background-color:rgba(29,32,136,.1)}[data-theme=custom] .alphabet[data-v-997f96fe]{background-color:rgba(var(--color-primary), 0.1)}.alphabet[data-v-997f96fe]{border-radius:14px;font-size:16px;color:#888;line-height:18px;letter-spacing:6px}.alphabet>span[data-v-997f96fe]{cursor:pointer}.alphabet>span.is-active[data-v-997f96fe]{color:#0874e7}[data-theme=purple] .alphabet>span.is-active[data-v-997f96fe]{color:#7569e2}[data-theme=palevioletred] .alphabet>span.is-active[data-v-997f96fe]{color:#ce4545}[data-theme=forestgreen] .alphabet>span.is-active[data-v-997f96fe]{color:#3d8a50}[data-theme=deepblue] .alphabet>span.is-active[data-v-997f96fe]{color:#0f5fbd}[data-theme=orange] .alphabet>span.is-active[data-v-997f96fe]{color:#ea6000}[data-theme=skyblue] .alphabet>span.is-active[data-v-997f96fe]{color:#1a4586}[data-theme=aurorablue] .alphabet>span.is-active[data-v-997f96fe]{color:#383b9e}[data-theme=tiffanyblue] .alphabet>span.is-active[data-v-997f96fe]{color:#00aaad}[data-theme=tsinghuapurple] .alphabet>span.is-active[data-v-997f96fe]{color:#5f2167}[data-theme=creativeblue] .alphabet>span.is-active[data-v-997f96fe]{color:#418cff}[data-theme=njhkht] .alphabet>span.is-active[data-v-997f96fe]{color:#1d2088}[data-theme=custom] .alphabet>span.is-active[data-v-997f96fe]{color:rgba(var(--color-primary), 1)}.alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(57.4,143.8,235.8)}[data-theme=purple] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(144.6,135,231.8)}[data-theme=palevioletred] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(215.8,106.2,106.2)}[data-theme=forestgreen] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(99.8,161.4,115)}[data-theme=deepblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(63,127,202.2)}[data-theme=orange] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(238.2,127.8,51)}[data-theme=skyblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(71.8,106.2,158.2)}[data-theme=aurorablue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(95.8,98.2,177.4)}[data-theme=tiffanyblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(51,187,189.4)}[data-theme=tsinghuapurple] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(127,77.4,133.4)}[data-theme=creativeblue] .alphabet>span.is-active[data-v-997f96fe]:hover{color:#67a3ff}[data-theme=njhkht] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgb(74.2,76.6,159.8)}[data-theme=custom] .alphabet>span.is-active[data-v-997f96fe]:hover{color:rgba(var(--color-primary), 0.8)}.field-list[data-v-997f96fe]{margin:7px -7px;min-height:180px;max-height:500px;overflow:auto}.field-item[data-v-997f96fe]{float:left;background:#f5f7fa;border-radius:4px;padding:6px 10px;margin:7px;line-height:20px;cursor:pointer;flex-shrink:0}.field-item[data-v-997f96fe]:hover{box-shadow:0px 2px 4px 0px rgba(0,0,0,.15)}.field-item.is-active[data-v-997f96fe]{background-color:rgba(8,116,231,.2)}[data-theme=purple] .field-item.is-active[data-v-997f96fe]{background-color:rgba(117,105,226,.2)}[data-theme=palevioletred] .field-item.is-active[data-v-997f96fe]{background-color:rgba(206,69,69,.2)}[data-theme=forestgreen] .field-item.is-active[data-v-997f96fe]{background-color:rgba(61,138,80,.2)}[data-theme=deepblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(15,95,189,.2)}[data-theme=orange] .field-item.is-active[data-v-997f96fe]{background-color:rgba(234,96,0,.2)}[data-theme=skyblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(26,69,134,.2)}[data-theme=aurorablue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(56,59,158,.2)}[data-theme=tiffanyblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(0,170,173,.2)}[data-theme=tsinghuapurple] .field-item.is-active[data-v-997f96fe]{background-color:rgba(95,33,103,.2)}[data-theme=creativeblue] .field-item.is-active[data-v-997f96fe]{background-color:rgba(65,140,255,.2)}[data-theme=njhkht] .field-item.is-active[data-v-997f96fe]{background-color:rgba(29,32,136,.2)}[data-theme=custom] .field-item.is-active[data-v-997f96fe]{background-color:rgba(var(--color-primary), 0.2)}",""]),t.a=r},226:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"field-container",on:{click:e.closePopover}},[t("el-input",{attrs:{type:"text",placeholder:"搜索字段","suffix-icon":"el-icon-search",size:"medium",clearable:""},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}}),t("div",{staticClass:"field-operates"},[t("el-popover",{staticClass:"parent-tree__popover",attrs:{placement:"bottom",width:"200",trigger:"manual"},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[t("el-input",{staticClass:"parent-tree__input",attrs:{slot:"reference",size:"medium",readonly:"",placeholder:"请选择对象","suffix-icon":"el-icon-arrow-down"},nativeOn:{click:function(t){e.showPopover=!e.showPopover}},slot:"reference",model:{value:e.activeMeta.text,callback:function(t){e.$set(e.activeMeta,"text",t)},expression:"activeMeta.text"}}),t("el-tree",{staticClass:"parent-tree",attrs:{data:e.parentTree,"node-key":"linkFlag",props:e.treeProps,"default-expanded-keys":e.defaultExpandKey,"auto-expand-parent":!1},on:{"node-click":e.switchMeta},scopedSlots:e._u([{key:"default",fn:function({node:a,data:i}){return t("span",{staticClass:"parent-tree__node",style:i.isSub&&"1"===i.relationType?{color:"red"}:{}},[e._v("\n "+e._s(a.label)+"\n ")])}}])})],1),t("div",[t("el-checkbox",{model:{value:e.showLogField,callback:function(t){e.showLogField=t},expression:"showLogField"}},[e._v("日志字段")]),t("el-checkbox",{model:{value:e.orderByFirstLetter,callback:function(t){e.orderByFirstLetter=t},expression:"orderByFirstLetter"}},[e._v("按首字母排序")])],1)],1),e.orderByFirstLetter?t("div",{staticClass:"alphabet"},e._l(e.alphabet,(function(a){return t("span",{key:a,class:{"is-active":e.filterLetter===a},on:{click:function(t){e.filterLetter=a}}},[e._v(e._s(a))])})),0):e._e(),t("div",{staticClass:"field-content"},[t("ul",{staticClass:"field-list"},["1"===e.activeMeta.relationType?t("li",{staticClass:"field-item",on:{click:function(t){return e.$emit("select",e.activeMeta,e.activeMeta)}}},[e._v("查询记录数")]):e._e(),e._l(e.showFields,(function(a){return t("li",{key:a.field,staticClass:"field-item",class:{"is-active":e.orderByFirstLetter&&e.filterLetter===a.initial},on:{click:function(t){return e.$emit("select",a,e.activeMeta)}}},[e._v(e._s(a.text))])}))],2)])],1)};i._withStripped=!0;var r=a(0),o=(a(31),a(16),a(10),a(81),a(3),a(22),a(17),a(41),a(27),a(34)),n={name:"epx-meta-field-library",props:{metaId:String,metaViewId:String,fields:Array},data:function(){return{treeProps:{children:"children",label:"text"},showPopover:!1,searchText:"",parentTree:[],activeMeta:{},mapFields:{},showLogField:!1,orderByFirstLetter:!1,alphabet:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],filterLetter:""}},computed:Object(r.a)(Object(r.a)({},Object(o.mapGetters)(["getMetaViewFields"])),{},{metaFields:function(){return this.fields||this.getMetaViewFields(this.metaId,this.metaViewId)},showFields:function(){var e=this,t=this.activeMeta,a=t.linkFlag,i=t.code,r=this.mapFields[a||i]||[];return r=r.filter((function(t){return!(!e.showLogField&&["ID","LOG_C_TIME","LOG_C_USER","LOG_U_TIME","LOG_U_USER"].includes(t.code))})),this.searchText&&(r=r.filter((function(t){return t.text.includes(e.searchText)}))),this.orderByFirstLetter&&(r=r.sort((function(e,t){return e.initial>t.initial?1:-1}))),r}}),watch:{showPopover:function(e){console.log(e)},metaFields:{handler:function(e){e&&e.length>0&&this.formatMetaFields()},immediate:!0}},methods:{getMetaFields:function(){this.metaId&&this.$store.dispatch({type:"ADD_META_VIEW_FIELDS",metaId:this.metaId,viewId:this.metaViewId})},formatMetaFields:function(){var e={},t=function(a){return a.filter((function(a){return!!(a.children&&a.children.length>0)&&(e[a.linkFlag||a.code]=a.children.filter((function(e){return"field"===e.type})).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{children:null})})),a.children=t(a.children),!0)}))};this.parentTree=t(this.$_.cloneDeep(this.metaFields)),this.activeMeta=this.parentTree[0]||{},this.mapFields=e},switchMeta:function(e){this.activeMeta=e,"1"===e.relationType&&(this.showPopover=!1)},closePopover:function(){this.showPopover=!1}},created:function(){this.metaFields||this.getMetaFields()},mounted:function(){window.addEventListener("click",this.closePopover)},beforeDestroy:function(){window.removeEventListener("click",this.closePopover)}},s=a(4),c=a.n(s),l=a(225),d={insert:"head",singleton:!1},u=(c()(l.a,d),l.a.locals,a(2)),p=Object(u.a)(n,i,[],!1,null,"997f96fe",null);t.default=p.exports},23:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(6);function r(e){var t=function(e,t){if("object"!=Object(i.a)(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=Object(i.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Object(i.a)(t)?t:t+""}},24:function(e,t){e.exports=require("core-js/modules/web.dom-collections.iterator.js")},26:function(e,t){e.exports=require("core-js/modules/es.array.push.js")},27:function(e,t){e.exports=require("core-js/modules/es.iterator.map.js")},29:function(e,t){e.exports=require("core-js/modules/es.array.splice.js")},3:function(e,t){e.exports=require("core-js/modules/es.object.to-string.js")},30:function(e,t){e.exports=require("core-js/modules/es.iterator.find.js")},31:function(e,t){e.exports=require("core-js/modules/es.array.filter.js")},34:function(e,t){e.exports=require("vuex")},36:function(e,t){e.exports=require("core-js/modules/es.number.constructor.js")},37:function(e,t){e.exports=require("core-js/modules/es.array.join.js")},39:function(e,t){e.exports=require("core-js/modules/es.array.iterator.js")},4:function(e,t,a){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var a=document.querySelector(t);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[t]=a}return e[t]}}(),n=[];function s(e){for(var t=-1,a=0;a<n.length;a++)if(n[a].identifier===e){t=a;break}return t}function c(e,t){for(var a={},i=[],r=0;r<e.length;r++){var o=e[r],c=t.base?o[0]+t.base:o[0],l=a[c]||0,d="".concat(c," ").concat(l);a[c]=l+1;var u=s(d),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==u?(n[u].references++,n[u].updater(p)):n.push({identifier:d,updater:v(p,t),references:1}),i.push(d)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=a.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var n=o(e.insert||"head");if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function p(e,t,a,i){var r=a?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var o=document.createTextNode(r),n=e.childNodes;n[t]&&e.removeChild(n[t]),n.length?e.insertBefore(o,n[t]):e.appendChild(o)}}function f(e,t,a){var i=a.css,r=a.media,o=a.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var h=null,m=0;function v(e,t){var a,i,r;if(t.singleton){var o=m++;a=h||(h=l(t)),i=p.bind(null,a,o,!1),r=p.bind(null,a,o,!0)}else a=l(t),i=f.bind(null,a,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(a)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var a=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<a.length;i++){var r=s(a[i]);n[r].references--}for(var o=c(e,t),l=0;l<a.length;l++){var d=s(a[l]);0===n[d].references&&(n[d].updater(),n.splice(d,1))}a=o}}}},40:function(e,t){e.exports=require("core-js/modules/es.json.stringify.js")},41:function(e,t){e.exports=require("core-js/modules/es.iterator.filter.js")},5:function(e,t,a){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var a=e(t);return t[2]?"@media ".concat(t[2]," {").concat(a,"}"):a})).join("")},t.i=function(e,a,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var n=this[o][0];null!=n&&(r[n]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&r[c[0]]||(a&&(c[2]?c[2]="".concat(a," and ").concat(c[2]):c[2]=a),t.push(c))}},t}},52:function(e,t){e.exports=require("core-js/modules/es.object.values.js")},548:function(e,t,a){"use strict";var i=a(5),r=a.n(i)()((function(e){return e[1]}));r.push([e.i,":root{--color-primary: 8,116,231 }.epx-search-list__search{background:#fff;position:relative}.epx-search-list__search .el-tabs__nav-scroll{padding:0 20px}.epx-search-list__search .el-tabs__item{height:50px;line-height:50px}.epx-search-list__metaview-list{position:absolute;right:20px;top:7px;z-index:1}.epx-search-list__metaview-list .el-input__inner{height:36px;line-height:36px}.epx-search-list__scope-item{display:flex;border-bottom:1px solid #e4e7ed;with:100%;padding:10px 20px}.epx-search-list__search-header{display:flex;justify-content:space-between;align-items:center;padding:0 20px 15px;border-bottom:1px solid #e4e7ed}.epx-search-list__condition-content:last-child .epx-search-list__condition-link{display:none}.epx-search-list__condition-text{padding:8px 10px;line-height:36px;background:#f5f7fa;border-radius:4px}.epx-search-list__condition-text>i{margin-left:2px;cursor:pointer}.epx-search-list__condition-link{margin:0 4px}.epx-search-list__scope-operates{padding-bottom:10px}.epx-search-list__set-condition{display:flex;align-items:center}.epx-search-list__condition-item{margin-right:8px}",""]),t.a=r},6:function(e,t,a){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a.d(t,"a",(function(){return i}))},7:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var i=a(23);function r(e,t,a){return(t=Object(i.a)(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}},8:function(e,t){e.exports=require("core-js/modules/es.function.name.js")},80:function(e,t){e.exports=require("core-js/modules/es.string.link.js")},81:function(e,t){e.exports=require("core-js/modules/es.array.sort.js")},826:function(e,t,a){"use strict";a.r(t);a(8);var i=a(1),r=a(15),o=a(0),n=a(7),s=(a(18),a(31),a(13),a(16),a(39),a(37),a(10),a(81),a(29),a(36),a(21),a(3),a(52),a(80),a(24),a(26),a(17),a(41),a(30),a(27),a(40),a(121)),c=a.n(s),l=a(124),d=a.n(l),u=a(226),p=a(34),f={name:"epx-search-list",components:Object(n.a)({},u.default.name,u.default),extends:d.a,data:function(){return{searchType:"quick",showSearch:!0,metaViewId:null,metaViewList:null,scopeConfig:{},showBrace:!1,showQuickBrace:!1,quickScope:{},advanceScopeParams:[],showLogField:!0,showSubField:!1,keywordValue:"",linkOption:[]}},computed:Object(o.a)(Object(o.a)({},Object(p.mapGetters)(["getMetaViewFields"])),{},{metaView:function(){var e=this;return this.metaViewList.find((function(t){return t.id===e.metaViewId}))},fieldStore:function(){return this.getMetaViewFields(this.$metaId,this.metaViewId)||[]},showFields:function(){var e=this,t=function(a){return a.filter((function(a){return!(!e.showLogField&&["ID","LOG_C_TIME","LOG_C_USER","LOG_U_TIME","LOG_U_USER"].includes(a.code))&&(!(!e.showSubField&&("1"===a.relationType||a.isSub))&&(a.children&&(a.children=t(a.children)),!0))}))},a=this.$_.cloneDeep(this.fieldStore);return t(a)},quickSearchFields:function(){var e=this;return this.metaView&&this.metaView.searchFields?JSON.parse(this.metaView.searchFields).map((function(t){return e.getField(t)})).filter((function(e){return!!e})):[]},scopeText:function(){var e=this;return function(t){var a=e.getField(t.field),i=e.scopeConfig[["multiobject","dept","user"].includes(a.dataType)?"object":a.dataType],r=t.mode,o=t["mode#"];return!o&&i&&(o=r?i.options.find((function(e){return e.value===r})).name:i.defaultOption.name||i.options[0].value),"".concat(t.lb||"").concat(a.text," ").concat("COUNT"===t.field_function?"记录数":""," ").concat(o," ").concat(t["values#"]||t.values||"").concat(t.rb||"")}},quickScopeParams:function(){var e=this;return Object.values(this.quickScope).filter((function(e){return!("is_null"!==e.mode&&"not_null"!==e.mode&&!e.values&&!e.valueType)})).map((function(t){var a=e.getField(t.field),i=e.scopeConfig[["multiobject","dept","user"].includes(a.dataType)?"object":a.dataType];return i?Object(o.a)(Object(o.a)({},t),{},{mode:t.mode||i.defaultOption.value||i.options[0].value}):Object(o.a)({},t)}))}}),watch:{quickScope:function(){Object.values(this.quickScope).length<=0&&!this.keywordValue&&(this.showSearch=!0)},advanceScopeParams:function(){0!==this.advanceScopeParams.length||this.keywordValue||(this.showSearch=!0)},searchType:function(){this.showSearch=!0},keywordValue:function(){this.keywordValue||("quick"===this.searchType&&Object.values(this.quickScope).length<=0||"advance"===this.searchType&&0===this.advanceScopeParams.length)&&(this.showSearch=!0)}},methods:{initComponent:function(){if(this.getMetaViewInfo(),this.getFieldStore(),this.getScopeConfig(),this.getScopeLinkOption(),this.setKeyword(),this.showFlag){var e=null,t=this.$configs.pageSize;this.pageSize=Number(t),this.getDefaultOperates(),this.metaView&&this.metaView.listFields&&(e=JSON.parse(this.metaView.listFields)),this.getFields(e)}},changeMetaView:function(e){this.getFieldStore();var t=null;this.metaView&&this.metaView.listFields&&(t=JSON.parse(this.metaView.listFields)),this.getFields(t),this.quickScope={},this.advanceScopeParams=[],this.showSearch=!0},getDefaultOperates:function(){var e=this.$configs,t=e.operates,a=e.columnOperates,i=[{text:this.$t("export"),handler:"goPage",pageFlag:"v_export",component:"export-page",params:{selects:"#[".concat(this.$metaKey,"]"),total:"$[total]",params:"$[params]",scopeParams:"$[scopeParams]",fields:"$[exportFields]"}}];t||this.$set(this.configs,"operates",i),a||this.$set(this.configs,"columnOperates",[])},getMetaViewInfo:function(){this.$meta.metaView&&(this.metaViewList=Object.values(this.$meta.metaView),this.$query.metaViewId&&(this.metaViewId=this.$query.metaViewId)),this.metaView||(this.searchType="advance")},getFieldStore:function(){this.fieldStore&&this.fieldStore.length>0||this.$store.dispatch({type:"ADD_META_VIEW_FIELDS",metaId:this.$metaId,viewId:this.metaViewId})},getScopeConfig:function(){var e=this;this.$http.$request({action:"getAllSearchConfig",entityId:"FM_SEARCH_CONFIG"}).then((function(t){e.scopeConfig=Object(o.a)({},t)}))},setKeyword:function(){var e=this.$query.keywordValue;e&&(this.keywordValue=e,this.showSearch=!1)},getField:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.fieldStore,i=Object(r.a)(a);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.field===e)return o;if(o.children){var n=this.getField(e,o.children);if(n)return n}}}catch(e){i.e(e)}finally{i.f()}},updateScopeItem:function(e,t){var a=t.key,i=t.value,r=t["value#"],n=this.quickSearchFields[e],s=this.quickScope[n.field]||{};if(null===i||""===i){if("values"===a&&!["equal","not_equal"].includes(s.mode))return void this.$delete(this.quickScope,n.field);delete s[a],delete s[a+"#"]}else s[a]=i,s[a+"#"]=r;this.$set(this.quickScope,n.field,Object(o.a)({field:n.field},s))},deleteScopeItem:function(e){var t=this.quickSearchFields[e];this.$delete(this.quickScope,t.field)},addScopeItem:function(e,t){if("folder"!==e.type&&!e.isMain){e.relationMeta&&e.relationMeta.id&&(e.codeKey=e.relationMeta.id);var a="meta"===e.type?"num":"time"===e.dataType?"datetime":"treeList"===e.optionType?e.optionType:e.dataType,i=this.scopeConfig["treeList"===a?"list":a]||{};"date"===a&&(i=e.datePrecision&&i[e.datePrecision]||i.date);var r=i.options,o=void 0===r?[]:r,n=i.defaultOption,s=void 0===n?{}:n,c=[];if("meta"!==e.type){c="num"===a?this.linkOption.filter((function(e){return"GROUP_CONCAT"!==e.value})):this.linkOption.filter((function(e){return"GROUP_CONCAT"===e.value||"COUNT"===e.value}));var l={key:this.$util.genId(),field:e.field,label:(t&&!t.isMain?t.text+".":"")+e.text,dataType:a,datePrecision:e.datePrecision,codeKey:e.codeKey,relationSort:e.relationSort||"",mode:s&&s.value||o[0]&&o[0].value,"mode#":s&&s.name||o[0]&&o[0].name,field_function:"1"===e.relationSort?c[0]&&c[0].value:"","field_function#":"1"===e.relationSort?c[0]&&c[0].name:"",values:"","values#":"",metaId:e.meta?e.meta.id:null};e.isTree&&(l.isTree=e.isTree),this.advanceScopeParams.push(l)}else this.advanceScopeParams.push({key:this.$util.genId(),field:e.field,label:e.text,type:"meta",metaId:e.id,mode:s&&s.value||o[0]&&o[0].value,"mode#":s&&s.name||o[0]&&o[0].name,field_function:"COUNT"})}},updateAdvanceScopeItem:function(e,t){var a=t.key,i=t.value,r=t["value#"],n=Object(o.a)({},this.advanceScopeParams[e]);null===i?(delete n[a],delete n[a+"#"]):(n[a]=i,n[a+"#"]=r),this.advanceScopeParams.splice(e,1,n)},deleteAdvanceScopeItem:function(e){this.$delete(this.advanceScopeParams,e)},quickSearch:function(){Object.values(this.quickScope)<=0?this.$message.error("请设置查询条件"):(this.searchScopeParams=this.quickScopeParams.filter((function(e){return e.values||"is_null"!==e.mode||"not_null"!==e.mode})),this.showSearch=!1)},formatScopeParams:function(e){var t,a=!0,i=[],o=Object(r.a)(e);try{for(o.s();!(t=o.n()).done;){var n=t.value,s=n.lb,c=void 0===s?"":s,l=n.field,d=n.relationSort,u=n.field_function,p=n["field_function#"],f=void 0===p?"":p,h=n.mode,m=n.dateType,v=void 0===m?"":m,b=n.valueType,g=void 0===b?"":b,y=n["valueType#"],x=void 0===y?"":y,_=n.values,w=n.rb,k=void 0===w?"":w,S=n.link,j=n.label,O=n["mode#"],T=void 0===O?this.$t("yes"):O,F=n["values#"],P=void 0===F?"":F,I=n["link#"],$=void 0===I?"":I,q=n["dateType#"],C=void 0===q?"":q,V=n.dateUnit,M=n.full,L=n.type,E=n.scopeParams,A="",D=null,N=C&&"aftertime"!==v&&"past"!==v&&"set_date"!==v?"":P||_||x;if("aftertime"!==v&&"past"!==v||(N+="year"===V?"年":"month"===V?"月":"天"),"1"===d?("GROUP_COUNT"===u?(A=c+j+" ".concat(T," ")+(P||_)+k,v&&(A=c+j+" ".concat(T," ")+C+N+k)):(A=c+j+f+" ".concat(T," ")+N+k,v&&(A=c+j+" ".concat(T," ")+C+N+k)),D={lb:c,field:l,relationSort:d,field_function:u||"GROUP_CONCAT",mode:h,values:_,rb:k,link:S,text:A,linkLabel:$}):(A=c+j+" ".concat(T," ")+N+k,v&&(A=c+j+" ".concat(T," ")+C+N+k),D={lb:c,field:l,mode:h,values:_,rb:k,link:S,text:A,linkLabel:$}),v&&(D.dateType=v,"aftertime"!==v&&"past"!==v||(D.values=D.dateType+"#"+D.values,V&&(D.values+="#"+V,D.dateUnit=V),M&&(D.values+="#full",D.full=!0))),g&&(D.valueType=g,D["valueType#"]=x),L&&(D.type=L),E&&(D.scopeParams=E),D["values#"]=P,a&&"is_null"!==h&&"not_null"!==h&&""===_){a=!1,this.$message.error("请给".concat(j,"选择查询条件"));break}i.push(D)}}catch(e){o.e(e)}finally{o.f()}return a?i:a},advanceSearch:function(){var e=this.formatScopeParams(this.advanceScopeParams);e&&(this.searchScopeParams=Object(i.a)(e),this.showSearch=!1)},getData:function(e,t){var a=this;if(!this.showSearch){var r=this,n=this.$configs,s=n.queryParams,l=void 0===s?{}:s,d=n.pageFlag,u=n.orderFields,p=n.order_field,f=void 0===p?[]:p,h=n.order_mode,m=void 0===h?[]:h,v=n.limit,b=n.action,g=n.type,y={entityId:this.$metaId,metaViewId:this.metaViewId};b&&(y.action=b);var x=this.listFields.filter((function(e){return e.function})),_=[];if(x.length>0&&(_=x.map((function(e){return{dataIndex:e.attriName,function:e.function}})),y.fieldFunctions=JSON.stringify(_)),d&&"tree"!==g&&(y.page=!e||"string"!=typeof e&&"number"!=typeof e?this.currentPage:e,y.limit=this.pageSize),v&&(y.limit=v),this.scopeParams&&(y.scopeParams=JSON.stringify(this.scopeParams)),u&&u.length>0&&(f=u.map((function(e){return e.attriName||e})),m=u.map((function(e){return e.sort||"asc"}))),this.sortParams&&this.sortParams.sort){var w=this.sortParams;f=[w.sort],m=[w.order]}if(!this.loading){this.loading=!0;var k=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},y),this.$formatParams(l)),this.searchKeyParams),this.queryParams),{},{keywordFields:this.$query.keywordFields,keywordValue:this.keywordValue,columnFields:this.columnFields,order_field:f.join(","),order_mode:m.join(",")});if("tree"===g)this.getTreeData(k,t);else{var S=c.a.CancelToken;this.$http.list(k,{cancelToken:new S((function(e){r.cancelGetData=e}))}).then((function(r){a.initData=!0,a.loading=!1,!e||"string"!=typeof e&&"number"!=typeof e||(a.currentPage=e),r&&(a.data=Object(i.a)(r.entitys),a.total=r.total||r.entitys.length,a.getAllDataMap(r.entitys),t&&t(a.data),a.$dispatchPage("listData",[{total:a.total,entitys:a.data}]),a.$emit("listData",{total:a.total,entitys:a.data}),a.$nextTick((function(){setTimeout((function(){a.$refs.table&&a.$refs.table.doLayout()}),200)})),a.$nextTick((function(){a.openTableXScrollBar()})),a.afterData&&a.afterData(a.data))})).catch((function(e){a.loading=!1,a.$message.error(e.message)}))}}}},renderSearch:function(){var e=this,t=this.$createElement;return t("div",{class:"epx-search-list__search"},[this.metaViewList&&this.metaViewList.length>0&&t("el-select",{class:"epx-search-list__metaview-list",on:{change:this.changeMetaView},model:{value:e.metaViewId,callback:function(t){e.metaViewId=t}}},[this.metaViewList.map((function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))]),t("el-tabs",{model:{value:e.searchType,callback:function(t){e.searchType=t}}},[this.metaView&&t("el-tab-pane",{attrs:{label:"快捷查询",name:"quick"}},[t("div",{class:"epx-search-list__search-header"},[t("div",{class:"epx-search-list__set-condition"},[this.keywordValue&&t("div",{class:"epx-search-list__condition-item"},["关键词:",t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[this.keywordValue,t("i",{class:"el-icon-close",on:{click:function(){e.keywordValue=""}}})])])]),t("div",{class:"epx-search-list__condition-item"},["已选条件:",Object.values(this.quickScope).filter((function(e){return e.mode||e.values})).map((function(a,i){return t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[e.scopeText(a),t("i",{class:"el-icon-close",on:{click:function(){return e.$delete(e.quickScope,a.field)}}})]),t("font",{class:"epx-search-list__condition-link"},["or"===a.link?"或者":"并且"])])}))])]),this.showSearch?this.quickScopeParams.length>0?t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:this.quickSearch}},["开始查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.quickScope={}}}},["清空"])]):null:t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(){e.showSearch=!0}}},["继续查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.quickScope={}}}},["清空"])])]),this.showSearch&&t("div",[t("ul",{class:"epx-search-list__search-list"},[this.quickSearchFields.map((function(a,i){return t("epx-scope-item-horizontal",{class:"epx-search-list__scope-item",key:a.field,attrs:{metaId:e.$metaId,scope:Object(o.a)({field:a.field,label:a.text,type:a.type,dataType:"treeList"===a.optionType?a.optionType:a.dataType,datePrecision:a.datePrecision,codeKey:a.codeKey},e.quickScope[a.field]),allFields:e.fieldStore,scopeConfig:e.scopeConfig,showOperator:!0,showBrace:e.showQuickBrace,last:i===e.quickSearchFields.length-1},on:{update:function(t){return e.updateScopeItem(i,t)},delete:function(t){return e.deleteScopeItem(i)}}})}))]),t("div",{class:"epx-scope__operates epx-search-list__scope-operates"},[t("span",{class:"epx-scope__show-brace",style:"margin-left: 0px;"},[t("el-checkbox",{model:{value:e.showQuickBrace,callback:function(t){e.showQuickBrace=t}}},[this.$t("show brackets"),"()"])])])])]),t("el-tab-pane",{attrs:{label:"高级查询",name:"advance"}},[t("div",{class:"epx-search-list__search-header"},[t("div",{class:"epx-search-list__set-condition"},[this.keywordValue&&t("div",{class:"epx-search-list__condition-item"},["关键词:",t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[this.keywordValue,t("i",{class:"el-icon-close",on:{click:function(){e.keywordValue=""}}})])])]),t("div",{class:"epx-search-list__condition-item"},["已选条件:",this.advanceScopeParams.map((function(a,i){return t("span",{class:"epx-search-list__condition-content"},[t("font",{class:"epx-search-list__condition-text"},[e.scopeText(a),t("i",{class:"el-icon-close",on:{click:function(){return e.$delete(e.quickScope,a.field)}}})]),t("font",{class:"epx-search-list__condition-link"},["or"===a.link?"或者":"并且"])])}))])]),this.showSearch?this.advanceScopeParams.length>0?t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:this.advanceSearch}},["开始查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.advanceScopeParams=[]}}},["清空"])]):null:t("div",{class:"epx-search-list__search-operates"},[t("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(){e.showSearch=!0}}},["继续查询"]),t("el-button",{attrs:{size:"medium"},on:{click:function(){e.advanceScopeParams=[]}}},["清空"])])]),this.showSearch&&t("ul",{class:"epx-search-list__search-list"},[this.advanceScopeParams.map((function(a,i){return t("epx-scope-item-horizontal",{class:"epx-search-list__scope-item",key:a.field,attrs:{metaId:e.$metaId,scope:a,allFields:e.fieldStore,scopeConfig:e.scopeConfig,showOperator:!0,showBrace:e.showBrace,linkOption:e.linkOption,last:i===e.advanceScopeParams.length-1},on:{update:function(t){return e.updateAdvanceScopeItem(i,t)},delete:function(t){return e.deleteAdvanceScopeItem(i)}}})}))]),this.showSearch&&t("div",{class:"epx-scope__operates epx-search-list__scope-operates"},[t("el-popover",{ref:"popover",attrs:{trigger:"click",tabindex:1}},[t("span",{class:"epx-scope__operate",slot:"reference"},[t("i",{class:"el-icon-plus"}),t("font",[this.$t("add filter criteria")])]),t("div",{class:"epx-scope__opera-popper"},[t("epx-meta-field-library",{attrs:{metaId:this.$metaId,metaViewId:this.metaViewId,fields:this.fieldStore},on:{select:this.addScopeItem}})])]),t("span",{class:"epx-scope__show-brace"},[t("el-checkbox",{model:{value:e.showBrace,callback:function(t){e.showBrace=t}}},[this.$t("show brackets"),"()"])])])])])])},renderButtons:function(){var e=this,t=this.$createElement,a=this.$configs,i=a.operateFlag,r=a.searchFlag,s=a.searchMode,c=a.totalFlag,l=a.showKeyword,d=a.setField,u=i&&this.checkRightOperates.length>0,p=r&&"keyword"===s&&l;if(!this.showSearch&&(u||p||c||d))return t("div",{class:"epx-entity-list__operates"},[t("div",[!this.readonly&&i&&this.checkRightOperates.length>0&&t("div",{class:"epx-entity-list__buttongroup"},[this.operates.map((function(a){return"dropdown"===a.operateType?t("el-dropdown",{class:"epx-entity-list__operates-more"},[t("el-button",{attrs:{size:"medium",type:"text"===a.type?"text":a.ui},key:a.text,props:Object(o.a)({},Object(n.a)({},a.type,!0))},[a.icon&&t("i",{class:["epx-entity-list__operate-icon",a.icon]}),a.text,t("i",{class:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{slot:"dropdown"},[(a.operates||[]).map((function(a){return t("el-dropdown-item",{key:a.key,nativeOn:{click:e.$handler.bind(e,a,null)}},[a.text])}))])]):t("el-button",{class:"epx-entity-list__operate",attrs:{size:"medium",type:"text"===a.type?"text":a.ui},key:a.text,props:Object(o.a)({},Object(n.a)({},a.type,!0)),on:{click:e.$handler.bind(e,a,null)}},[a.icon&&t("i",{class:["epx-entity-list__operate-icon",a.icon]}),a.text])})),this.moreOperates.length>0&&t("el-dropdown",{class:"epx-entity-list__operates-more",attrs:{trigger:"click"}},[t("el-button",{attrs:{size:"medium"}},[t("i",{class:"el-icon-more"})]),t("el-dropdown-menu",{slot:"dropdown"},[this.moreOperates.map((function(a){return t("el-dropdown-item",{key:a.text,nativeOn:{click:e.$handler.bind(e,a,null)}},[a.text])}))])])])])])},renderList:function(){return this.showSearch?null:"card"===this.$configs.type?this.renderCardList():this.renderTable()},getScopeLinkOption:function(){var e=this;this.$http.getCodes({key:"ONEMORE_FIELD_FUNCTION"}).then((function(t){e.linkOption=t.map((function(e){return{value:e.code,name:e.name}}))}))}}},h=a(4),m=a.n(h),v=a(548),b={insert:"head",singleton:!1},g=(m()(v.a,b),v.a.locals,a(2)),y=Object(g.a)(f,void 0,void 0,!1,null,null,null).exports;y.install=function(e){e.component(y.name,y)};t.default=y},9:function(e,t,a){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}a.d(t,"a",(function(){return i}))}});
|