cnhis-design-vue 3.1.41-release.4 → 3.1.41-release.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/field-set/index.d.ts +8 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +6761 -45
- package/es/components/form-config/src/FormConfig.vue.d.ts +6902 -185
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3414 -59
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +3 -3
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +10 -10
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +6 -6
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +2 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +4 -2
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -1
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +9 -2
- package/es/components/form-config/src/utils/index.d.ts +4 -1
- package/es/components/form-config/src/utils/index.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +2 -2
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +22 -21
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +0 -12
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.d.ts +2 -6
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormField.d.ts +1 -0
- package/es/components/form-render/src/hooks/useFormField.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +4 -0
- package/es/components/form-render/src/types/index.d.ts +5 -3
- package/es/components/form-render/src/utils/dom.d.ts +2 -1
- package/es/components/form-render/src/utils/dom.js +1 -1
- package/es/components/iho-table/index.d.ts +5 -5
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +5 -5
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/iho-table/src/plugins/{filterPlugin → filterRenderPlugin}/filter.vue.d.ts +15 -74
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +85 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{timeRendererPlugin.d.ts → timeRendererPlugin/index.d.ts} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +20 -11
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +289 -155
- package/es/components/info-header/src/InfoHeader.vue.d.ts +293 -160
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/index.d.ts +3 -0
- package/es/components/info-header/src/components/index.js +1 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +266 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +38 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -0
- package/es/components/info-header/src/types/index.d.ts +29 -0
- package/es/components/recommend-search/index.d.ts +10 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +10 -10
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
- package/es/components/scale-view/index.d.ts +1 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -2
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/utils/judge-types.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +3 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -2
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/index.d.ts +902 -7615
- package/es/components/table-filter/index.js +1 -1
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +44 -3313
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +461 -2810
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +1 -42
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +20 -7
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +456 -0
- package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -0
- package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +843 -0
- package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -0
- package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -0
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +51 -1190
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +4 -14
- package/es/components/table-filter/style/index.css +1 -1
- package/es/env.d.ts +24 -24
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/components/no-data/NoData.vue.d.ts +5 -0
- package/es/shared/components/no-data/NoData.vue.js +1 -1
- package/es/shared/utils/index.d.ts +16 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +64 -64
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -1
- package/es/components/info-header/src/HiddenContent.vue.js +0 -1
- package/es/components/info-header/src/InfoEllipsis.vue.js +0 -1
- package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +0 -90
- package/es/components/table-filter/src/classification/search-class-name.vue.js +0 -1
- package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +0 -1469
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
- package/es/components/table-filter/src/components/age-com/index.vue.d.ts +0 -119
- package/es/components/table-filter/src/components/age-com/index.vue.js +0 -1
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +0 -199
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +0 -2
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +0 -1
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +0 -90
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +0 -113
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +0 -266
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
- package/es/components/table-filter/src/components/range-age/index.vue.d.ts +0 -248
- package/es/components/table-filter/src/components/range-age/index.vue.js +0 -1
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +0 -789
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +0 -18
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +0 -1
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +0 -1244
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +0 -1651
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
- package/es/components/table-filter/src/const/dataOptions.d.ts +0 -36
- package/es/components/table-filter/src/const/dataOptions.js +0 -1
- package/es/components/table-filter/src/directive/preventReClick.d.ts +0 -4
- package/es/components/table-filter/src/directive/preventReClick.js +0 -1
- package/es/components/info-header/src/{HiddenContent.vue.d.ts → components/infoDescription/HiddenContent.vue.d.ts} +2 -2
- package/es/components/info-header/src/{InfoEllipsis.vue.d.ts → components/infoDescription/InfoEllipsis.vue.d.ts} +1 -1
- /package/es/components/{iho-table/src/plugins/filterPlugin/types.js → info-header/src/types/index.js} +0 -0
- /package/es/components/table-filter/src/components/table-modal/{TableModal.vue.d.ts → index.vue.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as a,computed as i,watch as n,nextTick as o,openBlock as l,createElementBlock as s,createCommentVNode as c,createElementVNode as r,unref as d,createBlock as u,mergeProps as p,createVNode as v,withCtx as f,createTextVNode as h,toDisplayString as m,withDirectives as g,vShow as b,withModifiers as C,Fragment as y,renderList as k,normalizeClass as S,isRef as A}from"vue";import{useMessage as L,NButton as _,NPopover as I,NIcon as w,NInputGroup as T,NInput as j,NTooltip as O,NPopconfirm as D,NModal as N,NCard as P}from"naive-ui";import x from"axios";import{FileTray as Q,Close as E}from"@vicons/ionicons5";import z from"xe-utils";import"moment";import J from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import U from"../components/search-condition/SearchCondition.vue.js";import F from"../components/classify-filter/index.vue.js";import R from"../../../../shared/components/TextOverTooltip/TextOverTooltip.vue.js";import W from"./search-class-name.vue.js";import q from"../hooks/useTableSearchCon.js";import B from"../hooks/useMixins.js";import{DataTypeEnums as M}from"../types/enums.js";import $ from"../../../../_virtual/plugin-vue_export-helper.js";const G={class:"search-professional-container"},H={class:"left-content"},K={class:"left-content-btn"},V={class:"right-content"},X={class:"list"},Y={class:"list-title"},Z=r("span",{class:"list-title-parent"},"父类名称",-1),ee={class:"list-title-name"},te=r("span",null,"筛选名称",-1),ae=r("h4",{class:"name"},"筛选名称",-1),ie={class:"search-condition-f-content"},ne={class:"search-condition-f-footer"},oe=r("span",{class:"list-title-name"},m("创建人"),-1),le=r("span",{class:"list-title-btn"},"操作",-1),se={class:"list-content"},ce=["onClick"],re={class:"list-content-parent"},de={class:"list-content-name"},ue={class:"list-content-name"},pe={class:"list-content-btn"},ve={class:"svg-wrap"};var fe=$(e({__name:"search-professional-model",props:{tableDataType:{type:String,default:""},originConditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]},searchFieldLimit:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]},filterApiConfig:{type:Object,default:()=>({})}},emits:["changeShowName","changeSearch","handleItemClick","reloadClassification"],setup(e,{emit:$}){const fe=e,{validConObj:he}=q(),{handleGetConfigApi:me}=B(),ge=t(),be=x.create({}),Ce=L();let ye=a(null),ke=a(null),Se=a(null),Ae=a(null),Le=a(),_e=a(),Ie=a(!1),we=a(""),Te=a({visible:!1,keyWord:""}),je=a(""),Oe=a();const De={},Ne=i((()=>((null==fe?void 0:fe.searchFieldList)||[]).filter((e=>"operatorColumn"!==e.columnName)))),Pe=i((()=>{var e,t;return(null==(t=null==(e=_e.value)?void 0:e.conObj)?void 0:t.length)||0})),xe=i((()=>"string"==typeof we.value&&we.value?fe.originConditionList.filter((e=>e.name.includes(we.value))):fe.originConditionList)),Qe=i((()=>{var e;return"edit"==(null==(e=Le.value)?void 0:e.from)?"保存模板":"另存为模板"})),Ee=i((()=>fe.tableDataType===M.API));function ze(){switch(fe.tableDataType){case M.API:ke&&ke.value.addAction({noDefault:!0});break;case M.SQL:Se&&Se.value.addAction({noDefault:!0})}o((()=>{let e=ye.value;e.scrollTop=e.scrollHeight}))}function Je(){let e=null;switch(fe.tableDataType){case M.API:e=ke.value.checkActionList();break;case M.SQL:e=Se.value.checkActionList()}if(e)$("changeSearch","all",{},{},[]),$("changeShowName","全部数据"),_e.value=De;else switch(je.value="search",fe.tableDataType){case M.API:ke&&ke.value.saveAdd();break;case M.SQL:Se&&Se.value.saveAdd()}fe.originConditionList.forEach((e=>{e.checked=!1}))}function Ue(){switch(je.value="SaveToClass",fe.tableDataType){case M.API:ke&&ke.value.saveAdd();break;case M.SQL:Se&&Se.value.saveAdd()}}function Fe(e){"search"===je.value?function(e){let t=null==e?void 0:e.setting;z.isJSON(t)&&(t=JSON.parse(t));_e.value=t,$("changeSearch","",t,{},[t]),$("changeShowName","自定义筛选")}(e):"SaveToClass"===je.value&&function(e){Ie.value=!0,Oe.value=e,o((()=>{Ae.value.init()}))}(e)}function Re(e){Le.value=Object.assign({},e,{from:"edit"}),o((()=>{switch(fe.tableDataType){case M.API:ke&&ke.value.handleInitConditions();break;case M.SQL:Se&&Se.value.handleInitConditions()}}))}function We(e){Le.value=Object.assign({},e,{from:"copy"}),o((()=>{switch(fe.tableDataType){case M.API:ke&&ke.value.handleInitConditions();break;case M.SQL:Se&&Se.value.handleInitConditions()}}))}function qe(e){let t="";for(const a in e)t+=encodeURIComponent(a)+"="+encodeURIComponent(e[a])+"&";return t=t.slice(0,-1),t}function Be(){let e=Ae.value.handleGetParams();if(!e)return;let t=Oe.value.setting;z.isJSON(t)&&(t=JSON.parse(t),Object.assign(t,e)),Oe.value.setting=JSON.stringify(t),async function(e){const t=JSON.parse(e.setting);if(!he(t.conObj,Ne.value,fe.searchFieldLimit))return;Object.assign(e,{tableId:ge.tableId,conditionList:JSON.stringify(fe.originConditionList)});let{data:a}=await me(e,"requestTableCondiTionList",{},fe.filterApiConfig);try{if("SUCCESS"==a.result){switch(Me(),$("reloadClassification"),fe.tableDataType){case M.API:ke&&ke.value.cancelSaveAdd();break;case M.SQL:Se&&Se.value.cancelSaveAdd()}o((()=>{switch(fe.tableDataType){case M.API:ke&&ke.value.addAction();break;case M.SQL:Se&&Se.value.addAction()}}))}else Ce.error(a.resultMsg)}catch(e){Ce.error(e)}}(Oe.value)}function Me(){Ie.value=!1}function $e(){Te.value.visible=!1}function Ge(){we.value=Te.value.keyWord,Te.value.visible=!1}function He(){Ge()}return n((()=>fe.originConditionList),(e=>{e.length>0&&function(){let e=fe.originConditionList.find((e=>e.isDefault)),t="全部数据";if(e)e.checked=!0,_e.value=e,e.isEdit?Re(e):We(e),t=e.name||"全部数据",$("changeShowName",t);else if("全部数据"===t){const e=Object.assign({},{from:"copy"});Le.value=e}}()}),{deep:!0,immediate:!0}),(t,a)=>(l(),s("div",G,[c(" 左侧筛选分类设置 "),r("div",H,[r("div",{ref_key:"comWrap",ref:ye,class:"left-content-com"},[c(' API筛选分类弹窗 :conditionList="props.conditionList"'),d(Ee)?(l(),u(F,p({key:0},t.$attrs,{ref_key:"conditionApiRef",ref:ke,actionList_prop:d(Le),conditionList:e.originConditionList,showItemName:!1,hideAddBtn:!0,onSaveAdd:Fe}),null,16,["actionList_prop","conditionList"])):(l(),u(U,p({key:1},t.$attrs,{ref_key:"conditionSqlRef",ref:Se,searchFieldList:d(Ne),actionList_prop:d(Le),showItemName:!1,isCnHis:!1,saveEmpty:!0,isOnlyCondition:!1,hideAddBtn:!0,isInSearch:!0,source:"search-professional",onSaveAdd:Fe}),null,16,["searchFieldList","actionList_prop"]))],512),r("div",K,[v(d(_),{onClick:ze},{default:f((()=>[h(" 添加条件 ")])),_:1}),v(d(_),{type:"primary",onClick:Je},{default:f((()=>[h(" 查询 ")])),_:1}),v(d(_),{type:"primary",onClick:Ue},{default:f((()=>[h(m(d(Qe)),1)])),_:1}),g(r("span",{class:"selected-item-del",onClick:a[0]||(a[0]=e=>function(e=!0){switch(fe.tableDataType){case M.API:ke&&ke.value.cancelSaveAdd();break;case M.SQL:Se&&Se.value.cancelSaveAdd()}_e.value=De,Le.value=De,fe.originConditionList.forEach((e=>{e.checked=!1})),o((()=>{switch(e&&$("changeSearch","all",{},{},[]),fe.tableDataType){case M.API:ke&&ke.value.addAction();break;case M.SQL:Se&&Se.value.addAction()}$("changeShowName","全部数据")}))}(!0))},[v(d(J),{"class-name":"svg-icon-btn","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"}),h(" 清空筛选 "),r("span",null,"("+m(d(Pe))+")",1)],512),[[b,d(Pe)>0]])])]),c(" 右侧筛选分类列表 "),r("div",V,[r("div",X,[r("div",Y,[Z,r("span",ee,[te,v(d(I),{show:d(Te).visible,"onUpdate:show":a[3]||(a[3]=e=>d(Te).visible=e),placement:"bottom",trigger:"click"},{trigger:f((()=>[v(d(w),{component:d(Q),class:"svg-icon-filter",onClick:a[1]||(a[1]=C((()=>{}),["prevent","stop"]))},null,8,["component"])])),default:f((()=>[ae,r("div",ie,[v(d(T),null,{default:f((()=>[v(d(j),{value:d(Te).keyWord,"onUpdate:value":a[2]||(a[2]=e=>d(Te).keyWord=e),placeholder:"请输入关键字",style:{width:"200px"}},null,8,["value"]),v(d(_),{type:"primary",ghost:"",onClick:He},{default:f((()=>[h("搜索")])),_:1})])),_:1})]),r("div",ne,[v(d(_),{ghost:"",onClick:$e,style:{"margin-right":"10px"}},{default:f((()=>[h("取消")])),_:1}),v(d(_),{type:"primary",onClick:Ge},{default:f((()=>[h("筛选")])),_:1})])])),_:1},8,["show"])]),oe,le]),r("ul",se,[r("template",null,[(l(!0),s(y,null,k(d(xe),((e,t)=>(l(),s("li",{key:e.sid,class:S({checked:e.checked}),onClick:t=>function(e){const t=e.checked?{}:e;_e.value=t,fe.originConditionList.forEach((t=>{t.sid!=e.sid||t.checked?t.checked=!1:t.checked=!0}));let a=Array.isArray(fe.treeData)&&fe.treeData.find((t=>t.name==e.displayCategory));if($("handleItemClick",e,0,a||{},0),0===Object.keys(_e.value||{}).length){switch(fe.tableDataType){case M.API:ke&&ke.value.cancelSaveAdd();break;case M.SQL:Se&&Se.value.cancelSaveAdd()}return Le.value=De,void o((()=>{switch(fe.tableDataType){case M.API:ke&&ke.value.addAction();break;case M.SQL:Se&&Se.value.addAction()}}))}"copy"==(e.isEdit?"edit":"copy")?We(e):Re(e)}(e)},[r("span",re,[v(d(R),{content:e.displayCategory},null,8,["content"])]),r("span",de,[v(d(R),{content:e.name},null,8,["content"])]),r("span",ue,[v(d(R),{content:e.createdByName},null,8,["content"])]),r("span",pe,[c(" 编辑 "),g(r("template",null,[v(d(O),null,{trigger:f((()=>[v(d(J),{onClick:C((t=>Re(e)),["prevent","stop"]),"icon-class":"xitongtubiaoliebiaocaozuoanniubianjixiugai",class:"svg-icon-btn"},null,8,["onClick"])])),default:f((()=>[h(" 编辑 ")])),_:2},1024)],512),[[b,e.isEdit]]),c(" 复制 "),v(d(O),null,{trigger:f((()=>[v(d(J),{onClick:C((t=>We(e)),["prevent","stop"]),"icon-class":"xitongtubiaoliebiaocaozuoanniufuzhi",class:"svg-icon-btn"},null,8,["onClick"])])),default:f((()=>[h(" 复制 ")])),_:2},1024),c(" 删除 "),g(r("template",null,[v(d(D),{onClick:a[5]||(a[5]=C((()=>{}),["prevent","stop"])),onPositiveClick:a=>function(e,t){if(!e)return void Ce.info("请选择行");let a={id:e.sid};be({url:"/tableList/deleteTableCondiTion",method:"post",data:a,transformRequest:[qe]}).then((({data:e})=>{"SUCCESS"==e.result?(Ce.success("删除成功"),fe.originConditionList.splice(t,1)):Ce.error(e.resultMsg)}))}(e,t)},{trigger:f((()=>[v(d(J),{onClick:a[4]||(a[4]=C((()=>{}),["prevent","stop"])),"class-name":"svg-icon-btn is-danger thumb","icon-class":"xitongtubiaoliebiaocaozuoanniushanchu"})])),default:f((()=>[h(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])],512),[[b,e.isEdit]])])],10,ce)))),128))])])])]),c(" 保存到分类弹窗 "),v(d(N),{show:d(Ie),"onUpdate:show":a[6]||(a[6]=e=>A(Ie)?Ie.value=e:Ie=e),maskClosable:!1,class:"quickSearch-saveToClass-modal",closable:!1,centered:"",onPositiveClick:Be,onNegativeClick:Me},{default:f((()=>[v(d(P),{title:"保存到分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":f((()=>[r("div",ve,[v(d(w),{component:d(E),size:"24",onClick:Me},null,8,["component"])])])),footer:f((()=>[v(d(_),{onClick:Me},{default:f((()=>[h("取消")])),_:1}),v(d(_),{type:"info",onClick:Be},{default:f((()=>[h("保存")])),_:1})])),default:f((()=>[v(W,p({ref_key:"searchClsName",ref:Ae},t.$attrs,{actionList_prop:d(Le),conditionList:e.originConditionList}),null,16,["actionList_prop","conditionList"])])),_:1})])),_:1},8,["show"])]))}}),[["__file","search-professional-model.vue"]]);export{fe as default};
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
value: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => void;
|
|
5
|
-
};
|
|
6
|
-
format: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
disabled: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
isDetail: {
|
|
15
|
-
type: BooleanConstructor;
|
|
16
|
-
default: boolean;
|
|
17
|
-
};
|
|
18
|
-
defaultValue: {
|
|
19
|
-
type: ObjectConstructor;
|
|
20
|
-
default: () => {};
|
|
21
|
-
};
|
|
22
|
-
itemData: {
|
|
23
|
-
type: ObjectConstructor;
|
|
24
|
-
default: () => {};
|
|
25
|
-
};
|
|
26
|
-
shortcutFieldsList: {
|
|
27
|
-
type: ArrayConstructor;
|
|
28
|
-
default: () => never[];
|
|
29
|
-
};
|
|
30
|
-
}, {
|
|
31
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
-
value: {
|
|
33
|
-
type: ObjectConstructor;
|
|
34
|
-
default: () => void;
|
|
35
|
-
};
|
|
36
|
-
format: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
disabled: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
isDetail: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
defaultValue: {
|
|
49
|
-
type: ObjectConstructor;
|
|
50
|
-
default: () => {};
|
|
51
|
-
};
|
|
52
|
-
itemData: {
|
|
53
|
-
type: ObjectConstructor;
|
|
54
|
-
default: () => {};
|
|
55
|
-
};
|
|
56
|
-
shortcutFieldsList: {
|
|
57
|
-
type: ArrayConstructor;
|
|
58
|
-
default: () => never[];
|
|
59
|
-
};
|
|
60
|
-
}>> & {
|
|
61
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
|
-
}>>;
|
|
63
|
-
emits: (event: "change", ...args: any[]) => void;
|
|
64
|
-
ageValue: any;
|
|
65
|
-
showType: import("vue").ComputedRef<string>;
|
|
66
|
-
isDisabled: import("vue").ComputedRef<boolean>;
|
|
67
|
-
handleInitDefaultValue: () => void;
|
|
68
|
-
checkType: (val: any) => string;
|
|
69
|
-
handlefillVal: (val?: any) => void;
|
|
70
|
-
handleYearChange: (e: any) => void;
|
|
71
|
-
handleMonthChange: (e: any) => void;
|
|
72
|
-
handleDayChange: (e: any) => void;
|
|
73
|
-
getvalue: (e: any) => any;
|
|
74
|
-
valueChange: (val: string, key: string) => void;
|
|
75
|
-
checkVal: (val: string, key: string) => boolean;
|
|
76
|
-
handleProrate: () => void;
|
|
77
|
-
triggerChange: (changedValue: any) => void;
|
|
78
|
-
NInputNumber: any;
|
|
79
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
-
value: {
|
|
81
|
-
type: ObjectConstructor;
|
|
82
|
-
default: () => void;
|
|
83
|
-
};
|
|
84
|
-
format: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
disabled: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
isDetail: {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
|
-
defaultValue: {
|
|
97
|
-
type: ObjectConstructor;
|
|
98
|
-
default: () => {};
|
|
99
|
-
};
|
|
100
|
-
itemData: {
|
|
101
|
-
type: ObjectConstructor;
|
|
102
|
-
default: () => {};
|
|
103
|
-
};
|
|
104
|
-
shortcutFieldsList: {
|
|
105
|
-
type: ArrayConstructor;
|
|
106
|
-
default: () => never[];
|
|
107
|
-
};
|
|
108
|
-
}>> & {
|
|
109
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
value: Record<string, any>;
|
|
112
|
-
disabled: boolean;
|
|
113
|
-
isDetail: boolean;
|
|
114
|
-
defaultValue: Record<string, any>;
|
|
115
|
-
format: string;
|
|
116
|
-
itemData: Record<string, any>;
|
|
117
|
-
shortcutFieldsList: unknown[];
|
|
118
|
-
}>;
|
|
119
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as n,createElementBlock as i,normalizeClass as u,unref as s,Fragment as d,createVNode as o,createCommentVNode as c,createBlock as r,createElementVNode as f}from"vue";import{NInputNumber as y}from"naive-ui";import m from"../../../../../_virtual/plugin-vue_export-helper.js";const v=f("span",{class:"age-com-suffix"},"岁",-1),p=f("span",{class:"age-com-suffix"},"月",-1),b=f("span",{class:"age-com-suffix"},"日",-1);var g=m(e({__name:"index",props:{value:{type:Object,default:()=>{}},format:{type:String,default:"YYYY-MM-DD"},disabled:{type:Boolean,default:!1},isDetail:{type:Boolean,default:!1},defaultValue:{type:Object,default:()=>({})},itemData:{type:Object,default:()=>({})},shortcutFieldsList:{type:Array,default:()=>[]}},emits:["change"],setup(e,{emit:f}){const m=e;let g=a({year:null,month:null,day:null,days:null}),j=t((()=>m.format&&"[object String]"==D(m.format)?m.format.toUpperCase():"YYYY-MM-DD")),h=t((()=>m.disabled||!1));function D(e){return Object.prototype.toString.call(e)}function Y(e){x(e,"year")}function O(e){x(e,"month")}function k(e){x(e,"day")}function x(e,a){let t=parseInt(e,10);(isNaN(t)||function(e,a){return e>{day:31,month:12,year:200}[a]}(e,a))&&(t=""),M({[a]:t})}function M(e){Object.assign(g.value,e),function(){const e=e=>e||0;let a=365*e(g.value.year)+30*e(g.value.month)+e(g.value.day);g.value.days=a||0}();const{year:a=0,month:t=0,day:l=0,days:n=""}=g.value;f("change",Object.assign({},{year:a,month:t,day:l,days:n}))}return l((()=>m.defaultValue),(()=>{Object.keys(m.defaultValue||{}).length&&M({...m.defaultValue})}),{immediate:!0}),l((()=>m.value),(e=>{!function(e={}){if(0===Object.keys(e||{}).length)Object.assign(g.value,{year:null,month:null,day:null,days:null});else{let a=D(e);["[object String]","[object Number]"].includes(a)?x(e,"year"):"[object Object]"==a&&Object.assign(g.value,{...e})}}(e)}),{immediate:!0}),(a,t)=>(n(),i("div",{class:u(["container age-com-block",{"form-item-disabled":e.isDetail}])},[s(j).includes("YYYY")?(n(),i(d,{key:0},[o(s(y),{value:s(g).year,"onUpdate:value":[t[0]||(t[0]=e=>s(g).year=e),Y],disabled:s(h)||e.isDetail,min:0},null,8,["value","disabled"]),v],64)):c("v-if",!0),s(j).includes("MM")?(n(),i(d,{key:1},[o(s(y),{value:s(g).month,"onUpdate:value":[t[1]||(t[1]=e=>s(g).month=e),O],disabled:s(h)||e.isDetail,min:0},null,8,["value","disabled"]),p],64)):c("v-if",!0),s(j).includes("DD")?(n(),i(d,{key:2},[s(j).includes("DD")?(n(),r(s(y),{key:0,value:s(g).day,"onUpdate:value":[t[2]||(t[2]=e=>s(g).day=e),k],disabled:s(h)||e.isDetail,min:0},null,8,["value","disabled"])):c("v-if",!0),b],64)):c("v-if",!0)],2))}}),[["__file","index.vue"]]);export{g as default};
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
title: {
|
|
3
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
4
|
-
};
|
|
5
|
-
list: {
|
|
6
|
-
type: ArrayConstructor;
|
|
7
|
-
default: never[];
|
|
8
|
-
};
|
|
9
|
-
currentTempId: {
|
|
10
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
BTNOBJ: {
|
|
14
|
-
copy: string;
|
|
15
|
-
pencil: string;
|
|
16
|
-
delete: string;
|
|
17
|
-
add: string;
|
|
18
|
-
download: string;
|
|
19
|
-
label: string;
|
|
20
|
-
queding: string;
|
|
21
|
-
del: string;
|
|
22
|
-
};
|
|
23
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
title: {
|
|
25
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
26
|
-
};
|
|
27
|
-
list: {
|
|
28
|
-
type: ArrayConstructor;
|
|
29
|
-
default: never[];
|
|
30
|
-
};
|
|
31
|
-
currentTempId: {
|
|
32
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
33
|
-
};
|
|
34
|
-
}>> & {
|
|
35
|
-
onShowDrawer?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
onClickGroupBtn?: ((...args: any[]) => any) | undefined;
|
|
37
|
-
}>>;
|
|
38
|
-
emit: (event: "showDrawer" | "clickGroupBtn", ...args: any[]) => void;
|
|
39
|
-
btnObj: import("vue").Ref<{
|
|
40
|
-
copy: string;
|
|
41
|
-
pencil: string;
|
|
42
|
-
delete: string;
|
|
43
|
-
add: string;
|
|
44
|
-
download: string;
|
|
45
|
-
label: string;
|
|
46
|
-
queding: string;
|
|
47
|
-
del: string;
|
|
48
|
-
}>;
|
|
49
|
-
handleSelect: (key: string, option: any) => void;
|
|
50
|
-
showDrawer: (btn: any, j: number) => void;
|
|
51
|
-
clickBtn: (btn: any, j: number) => void;
|
|
52
|
-
NButton: any;
|
|
53
|
-
NDropdown: any;
|
|
54
|
-
TextOverTooltip: import("vue").DefineComponent<{
|
|
55
|
-
content: {
|
|
56
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
57
|
-
required: false;
|
|
58
|
-
};
|
|
59
|
-
className: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
required: false;
|
|
62
|
-
};
|
|
63
|
-
refName: {
|
|
64
|
-
type: StringConstructor;
|
|
65
|
-
required: false;
|
|
66
|
-
};
|
|
67
|
-
effect: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
required: false;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
placement: {
|
|
73
|
-
type: StringConstructor;
|
|
74
|
-
required: false;
|
|
75
|
-
default: string;
|
|
76
|
-
};
|
|
77
|
-
tooltipTitle: {
|
|
78
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
79
|
-
required: false;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
isAlias: {
|
|
83
|
-
type: BooleanConstructor;
|
|
84
|
-
required: false;
|
|
85
|
-
};
|
|
86
|
-
}, {
|
|
87
|
-
props: {
|
|
88
|
-
content?: string | number | undefined;
|
|
89
|
-
className?: string | undefined;
|
|
90
|
-
refName?: string | undefined;
|
|
91
|
-
effect: string;
|
|
92
|
-
placement: "left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
93
|
-
tooltipTitle: string | number;
|
|
94
|
-
isAlias?: boolean | undefined;
|
|
95
|
-
};
|
|
96
|
-
isDisabledTooltip: import("vue").Ref<boolean>;
|
|
97
|
-
curContent: import("vue").ComputedRef<string>;
|
|
98
|
-
$refName: any;
|
|
99
|
-
onMouseOver: (str: any) => void;
|
|
100
|
-
onMouseOut: () => void;
|
|
101
|
-
NTooltip: any;
|
|
102
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
-
content: {
|
|
104
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
105
|
-
required: false;
|
|
106
|
-
};
|
|
107
|
-
className: {
|
|
108
|
-
type: StringConstructor;
|
|
109
|
-
required: false;
|
|
110
|
-
};
|
|
111
|
-
refName: {
|
|
112
|
-
type: StringConstructor;
|
|
113
|
-
required: false;
|
|
114
|
-
};
|
|
115
|
-
effect: {
|
|
116
|
-
type: StringConstructor;
|
|
117
|
-
required: false;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
placement: {
|
|
121
|
-
type: StringConstructor;
|
|
122
|
-
required: false;
|
|
123
|
-
default: string;
|
|
124
|
-
};
|
|
125
|
-
tooltipTitle: {
|
|
126
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
127
|
-
required: false;
|
|
128
|
-
default: string;
|
|
129
|
-
};
|
|
130
|
-
isAlias: {
|
|
131
|
-
type: BooleanConstructor;
|
|
132
|
-
required: false;
|
|
133
|
-
};
|
|
134
|
-
}>>, {
|
|
135
|
-
effect: string;
|
|
136
|
-
placement: string;
|
|
137
|
-
tooltipTitle: string | number;
|
|
138
|
-
isAlias: boolean;
|
|
139
|
-
}>;
|
|
140
|
-
SvgIcon: import("vue").DefineComponent<{
|
|
141
|
-
iconClass: {
|
|
142
|
-
type: StringConstructor;
|
|
143
|
-
required: true;
|
|
144
|
-
default: string;
|
|
145
|
-
};
|
|
146
|
-
title: {
|
|
147
|
-
type: StringConstructor;
|
|
148
|
-
required: false;
|
|
149
|
-
default: string;
|
|
150
|
-
};
|
|
151
|
-
className: {
|
|
152
|
-
type: StringConstructor;
|
|
153
|
-
required: false;
|
|
154
|
-
};
|
|
155
|
-
}, {
|
|
156
|
-
props: {
|
|
157
|
-
iconClass: string;
|
|
158
|
-
title: string;
|
|
159
|
-
className?: string | undefined;
|
|
160
|
-
};
|
|
161
|
-
iconName: import("vue").ComputedRef<string>;
|
|
162
|
-
svgClass: import("vue").ComputedRef<string>;
|
|
163
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
164
|
-
iconClass: {
|
|
165
|
-
type: StringConstructor;
|
|
166
|
-
required: true;
|
|
167
|
-
default: string;
|
|
168
|
-
};
|
|
169
|
-
title: {
|
|
170
|
-
type: StringConstructor;
|
|
171
|
-
required: false;
|
|
172
|
-
default: string;
|
|
173
|
-
};
|
|
174
|
-
className: {
|
|
175
|
-
type: StringConstructor;
|
|
176
|
-
required: false;
|
|
177
|
-
};
|
|
178
|
-
}>>, {
|
|
179
|
-
title: string;
|
|
180
|
-
iconClass: string;
|
|
181
|
-
}>;
|
|
182
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("showDrawer" | "clickGroupBtn")[], "showDrawer" | "clickGroupBtn", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
183
|
-
title: {
|
|
184
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
185
|
-
};
|
|
186
|
-
list: {
|
|
187
|
-
type: ArrayConstructor;
|
|
188
|
-
default: never[];
|
|
189
|
-
};
|
|
190
|
-
currentTempId: {
|
|
191
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
192
|
-
};
|
|
193
|
-
}>> & {
|
|
194
|
-
onShowDrawer?: ((...args: any[]) => any) | undefined;
|
|
195
|
-
onClickGroupBtn?: ((...args: any[]) => any) | undefined;
|
|
196
|
-
}, {
|
|
197
|
-
list: unknown[];
|
|
198
|
-
}>;
|
|
199
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,openBlock as o,createElementBlock as r,createVNode as i,unref as n,withCtx as l}from"vue";import{NDropdown as p,NButton as u}from"naive-ui";import c from"../../../../../shared/components/TextOverTooltip/TextOverTooltip.vue.js";import s from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import a from"../../../../../_virtual/plugin-vue_export-helper.js";const d={class:"buttonGroup-com-block"};var m=a(e({__name:"ButtonGroup",props:{title:{type:[String,Number]},list:{type:Array,default:[]},currentTempId:{type:[String,Number]}},emits:["showDrawer","clickGroupBtn"],setup(e,{emit:a}){const m=e;function f(e,t){const o=m.list.findIndex((e=>e.sid==t.sid));"ADD"==t.type?function(e,t){a("showDrawer",e,t)}(t,o):"LINK"!=t.type&&"0"==m.currentTempId&&function(e,t){a("clickGroupBtn",e,t)}(t,o)}return t({copy:"copy",pencil:"edit",delete:"delete",add:"plus-circle",download:"download",label:"tag",queding:"check",del:"close"}),(t,a)=>(o(),r("div",d,[i(n(p),{trigger:"hover",options:e.list,"key-field":"sid","label-field":"alias",onSelect:f},{default:l((()=>[i(n(u),{type:"primary",class:"group-btn"},{default:l((()=>[i(n(c),{refName:"buttonGroupTitle",class:"group-left",content:e.title},null,8,["content"]),i(n(s),{"icon-class":"xitongtubiaoliebiaocaozuoanniuzhankai"})])),_:1})])),_:1},8,["options"])]))}}),[["__file","ButtonGroup.vue"]]);export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as n}from"vue";const o={props:["data","btnObj"],functional:!0,render:function(o){const i=o.data||{},t=o.data||{};return i.icon?"only_icon"!==i.showStyle&&t[i.icon]?n("n-icon",{class:"custom-icon",type:t[i.icon]}):n("svg-icon",{iconClass:i.icon,style:{marginRight:"8px"}}):i.iconSetting?n("svg-icon",{iconClass:JSON.parse(i.iconSetting).icon,style:{marginRight:"8px"}}):void 0}};export{o as default};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { ISearchType } from '../../../../../../es/components/table-filter/src/types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
item: {
|
|
5
|
-
type: PropType<ISearchType>;
|
|
6
|
-
default: () => {
|
|
7
|
-
value: never[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
handleGetConfigApi: {
|
|
11
|
-
type: FunctionConstructor;
|
|
12
|
-
default: () => void;
|
|
13
|
-
};
|
|
14
|
-
filterApiConfig: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
};
|
|
17
|
-
outFilterChange: {
|
|
18
|
-
type: FunctionConstructor;
|
|
19
|
-
default: () => void;
|
|
20
|
-
};
|
|
21
|
-
}, {
|
|
22
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
item: {
|
|
24
|
-
type: PropType<ISearchType>;
|
|
25
|
-
default: () => {
|
|
26
|
-
value: never[];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
handleGetConfigApi: {
|
|
30
|
-
type: FunctionConstructor;
|
|
31
|
-
default: () => void;
|
|
32
|
-
};
|
|
33
|
-
filterApiConfig: {
|
|
34
|
-
type: ObjectConstructor;
|
|
35
|
-
};
|
|
36
|
-
outFilterChange: {
|
|
37
|
-
type: FunctionConstructor;
|
|
38
|
-
default: () => void;
|
|
39
|
-
};
|
|
40
|
-
}>> & {}>>;
|
|
41
|
-
quickInputSelect: any;
|
|
42
|
-
treeData: import("vue").Ref<{
|
|
43
|
-
label: string;
|
|
44
|
-
key: string;
|
|
45
|
-
selectable: boolean;
|
|
46
|
-
scopedSlots: {
|
|
47
|
-
title: string;
|
|
48
|
-
};
|
|
49
|
-
}[]>;
|
|
50
|
-
handleMaxTagCount: import("vue").ComputedRef<(item: ISearchType) => 0 | 1>;
|
|
51
|
-
showRemoveIcon: import("vue").ComputedRef<boolean>;
|
|
52
|
-
init: () => Promise<void>;
|
|
53
|
-
handleMaxTag: () => string;
|
|
54
|
-
handleRequestedOptions: (item: ISearchType) => Promise<any>;
|
|
55
|
-
getSearchDefParams: (item: ISearchType) => any;
|
|
56
|
-
formatField: (value: any) => any;
|
|
57
|
-
hanldeGetCascadelabel: (v?: never[], k?: {}) => any;
|
|
58
|
-
handleInitTreeData: (list: any, config: ISearchType) => void;
|
|
59
|
-
hanldeSetTreeDef: () => void;
|
|
60
|
-
maxTagPlaceholder: (item: ISearchType) => number;
|
|
61
|
-
treeSelect: (key: string, vnode: any) => void;
|
|
62
|
-
change: () => void;
|
|
63
|
-
handleDisabledTreeData: (list?: any, config?: any) => void;
|
|
64
|
-
createSuffixIcon: () => void;
|
|
65
|
-
NTreeSelect: any;
|
|
66
|
-
NSpin: any;
|
|
67
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
-
item: {
|
|
69
|
-
type: PropType<ISearchType>;
|
|
70
|
-
default: () => {
|
|
71
|
-
value: never[];
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
handleGetConfigApi: {
|
|
75
|
-
type: FunctionConstructor;
|
|
76
|
-
default: () => void;
|
|
77
|
-
};
|
|
78
|
-
filterApiConfig: {
|
|
79
|
-
type: ObjectConstructor;
|
|
80
|
-
};
|
|
81
|
-
outFilterChange: {
|
|
82
|
-
type: FunctionConstructor;
|
|
83
|
-
default: () => void;
|
|
84
|
-
};
|
|
85
|
-
}>>, {
|
|
86
|
-
item: ISearchType;
|
|
87
|
-
handleGetConfigApi: Function;
|
|
88
|
-
outFilterChange: Function;
|
|
89
|
-
}>;
|
|
90
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as l,onMounted as i,watch as a,getCurrentInstance as n,openBlock as o,createBlock as r,unref as u,normalizeStyle as c,normalizeClass as s,withCtx as d,createElementBlock as p,createVNode as v,createCommentVNode as f}from"vue";import{NTreeSelect as m,NSpin as h}from"naive-ui";import y from"xe-utils";import"moment";import g from"../../../../../_virtual/plugin-vue_export-helper.js";const w={key:0,class:"init-key-loading",slot:"title",style:{color:"#08c"}};var _=g(e({__name:"tree-select",props:{item:{type:Object,default:()=>({value:[]})},handleGetConfigApi:{type:Function,default:()=>{}},filterApiConfig:{type:Object},outFilterChange:{type:Function,default:()=>{}}},setup(e){const g=e,_=t(null),b=t([{label:"_init_key_",key:"_init_key_",selectable:!1,scopedSlots:{title:"title"}}]);let k=l((()=>function(e){let t=function(e){return Array.isArray(e.value)?e.value.length:1}(e);return t<=1?1:0})),C=l((()=>{var e;let t=g.item.value,l=1==(null==(e=null==g?void 0:g.item)?void 0:e.filterExplicit);if(Array.isArray(t)&&l){let e=t.length;if(1==g.item.explicitRequired)return e>1}return!0}));function x(e=[],t={}){if(Array.isArray(e)&&e.length){const l=[];return e.forEach((e=>{let i=function(e){let t=e;try{return t&&"string"==typeof t&&t.startsWith("###")&&(t=t.slice(3),t=JSON.parse(t),t=t.change_text),t||""}catch(e){return""}}(t[e]);l.push(i)})),0==l.length?"":l.join(" ")}return""}function A(e=[],t){var l;let{showKeys:i=[],field_key:a=""}=(null==(l=null==t?void 0:t.setting)?void 0:l.wordbook)||{};e.forEach(((e,l)=>{let n=y.stringToValue(e[a],"value");e.myLabel=x(i,e)||n,e.key=e.theUniqueKey,e.title=e.myLabel,e.value=`${n}<&=&>${l}<&=&>${e.key}`,e.children&&e.children.length&&A(e.children,t)}))}function q(e,t){}function O(){}function S(e=[],t={}){e.forEach(((e,l)=>{let i=!t.showRemoveIcon&&g.item.value.includes(e.value);e.disabled=i,e.children&&e.children.length&&S(e.children,t)}))}return i((()=>{!async function(){try{let e=await async function(e){let t=function(e){var t;let l={},{params:i=[],autograph:a,filterKeys:n,id:o,wordbookType:r}=(null==(t=null==e?void 0:e.settingObj)?void 0:t.wordbook)||{};i&&i.forEach((e=>{l[e.p_name]=e.p_value}));a&&(l.autograph=a);let u=Array.isArray(n)?JSON.stringify(n):n;return{wordbookId:o,fieldKeys:u,wordbookType:r||"WORDBOOK",isLevelLazyLoad:!1,...l}}(e);return await g.handleGetConfigApi(t,"requestGetWordbookData",{fields:e},g.filterApiConfig)}(g.item),{result:t,map:l}=e.data;if("SUCCESS"!==t)return void(b.value=[]);let i=l.rows||[];i&&(A(i,g.item),b.value=i.map((e=>({...e,label:e.value}))))}catch(e){console.log(e),b.value=[]}finally{!function(){var e,t;let l=1==(null==(e=null==g?void 0:g.item)?void 0:e.filterExplicit);if("firstOption"===((null==(t=null==g?void 0:g.item)?void 0:t.explicitDefaultVal)||"")&&l){let e=b.value[0];g.item.value=(null==e?void 0:e.value)?[null==e?void 0:e.value]:[],"function"==typeof g.outFilterChange&&g.outFilterChange({type:"outSearchInit"})}}()}}(),function(){let e=_.value;if(!e)return;let t=e.$el;if(!t)return;let l=t.querySelector(".ant-select-selection--multiple");if(!l.querySelector(".quick-input-select-span")){let e=document.createElement("span");e.className="quick-input-select-span";let t='<i aria-label="图标: down" class="anticon anticon-down ant-select-arrow-icon"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></i>';e.innerHTML=t,l.appendChild(e)}}()})),a((()=>g.item),(e=>{var t;let l=null==(t=n())?void 0:t.ctx;S(b.value,{showRemoveIcon:C.value}),l.$forceUpdate()}),{immediate:!0,deep:!0}),(t,l)=>(o(),r(u(m),{value:e.item.value,"onUpdate:value":[l[0]||(l[0]=t=>e.item.value=t),O],maxTagCount:u(k)(e.item),multiple:"",filterable:"",clearable:"",style:c(`width: ${e.item.advanceColWidth||160}px`),class:s([!u(C)&&"c-a-tree-select-show-hide-icon","c-a-quick-input-tree-mul"]),options:b.value,allowClear:1!=e.item.explicitRequired,placeholder:e.item.placeholder||`请选择${e.item.alias||e.item.title}`,"onUpdate:indeterminateKeys":q},{action:d((({key:e,value:t})=>["_init_key_"===e?(o(),p("span",w,[v(u(h),{tip:"加载中..."},null,8,["tip"])])):f("v-if",!0)])),_:1},8,["value","maxTagCount","style","class","options","allowClear","placeholder"]))}}),[["__file","tree-select.vue"]]);export{_ as default};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { ISearchType } from '../../../../../../es/components/table-filter/src/types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
item: {
|
|
5
|
-
type: PropType<ISearchType>;
|
|
6
|
-
default: () => void;
|
|
7
|
-
};
|
|
8
|
-
maxTagPlaceholder: {
|
|
9
|
-
type: FunctionConstructor;
|
|
10
|
-
default: () => {};
|
|
11
|
-
};
|
|
12
|
-
outFilterChange: {
|
|
13
|
-
type: FunctionConstructor;
|
|
14
|
-
default: () => {};
|
|
15
|
-
};
|
|
16
|
-
handleWordBookSearch: {
|
|
17
|
-
type: FunctionConstructor;
|
|
18
|
-
default: () => {};
|
|
19
|
-
};
|
|
20
|
-
dropdownVisibleChange: {
|
|
21
|
-
type: FunctionConstructor;
|
|
22
|
-
default: () => {};
|
|
23
|
-
};
|
|
24
|
-
source: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
fetchingWordbook: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
}, {
|
|
33
|
-
quickInputSelect: any;
|
|
34
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
item: {
|
|
36
|
-
type: PropType<ISearchType>;
|
|
37
|
-
default: () => void;
|
|
38
|
-
};
|
|
39
|
-
maxTagPlaceholder: {
|
|
40
|
-
type: FunctionConstructor;
|
|
41
|
-
default: () => {};
|
|
42
|
-
};
|
|
43
|
-
outFilterChange: {
|
|
44
|
-
type: FunctionConstructor;
|
|
45
|
-
default: () => {};
|
|
46
|
-
};
|
|
47
|
-
handleWordBookSearch: {
|
|
48
|
-
type: FunctionConstructor;
|
|
49
|
-
default: () => {};
|
|
50
|
-
};
|
|
51
|
-
dropdownVisibleChange: {
|
|
52
|
-
type: FunctionConstructor;
|
|
53
|
-
default: () => {};
|
|
54
|
-
};
|
|
55
|
-
source: {
|
|
56
|
-
type: StringConstructor;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
fetchingWordbook: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
}>> & {}>>;
|
|
64
|
-
handleMaxTagCount: import("vue").ComputedRef<(item: ISearchType) => 0 | 1>;
|
|
65
|
-
isnoPages: import("vue").ComputedRef<boolean>;
|
|
66
|
-
hasShowKeys: import("vue").ComputedRef<boolean>;
|
|
67
|
-
showRemoveIcon: import("vue").ComputedRef<boolean>;
|
|
68
|
-
mode: import("vue").ComputedRef<boolean>;
|
|
69
|
-
renderList: import("vue").ComputedRef<any>;
|
|
70
|
-
createSuffixIcon: () => void;
|
|
71
|
-
filterOption: (...arg: any) => any;
|
|
72
|
-
handleSearchChangePage: (type: string) => void;
|
|
73
|
-
handleChange: () => void;
|
|
74
|
-
NSelect: any;
|
|
75
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
-
item: {
|
|
77
|
-
type: PropType<ISearchType>;
|
|
78
|
-
default: () => void;
|
|
79
|
-
};
|
|
80
|
-
maxTagPlaceholder: {
|
|
81
|
-
type: FunctionConstructor;
|
|
82
|
-
default: () => {};
|
|
83
|
-
};
|
|
84
|
-
outFilterChange: {
|
|
85
|
-
type: FunctionConstructor;
|
|
86
|
-
default: () => {};
|
|
87
|
-
};
|
|
88
|
-
handleWordBookSearch: {
|
|
89
|
-
type: FunctionConstructor;
|
|
90
|
-
default: () => {};
|
|
91
|
-
};
|
|
92
|
-
dropdownVisibleChange: {
|
|
93
|
-
type: FunctionConstructor;
|
|
94
|
-
default: () => {};
|
|
95
|
-
};
|
|
96
|
-
source: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
fetchingWordbook: {
|
|
101
|
-
type: BooleanConstructor;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
}>>, {
|
|
105
|
-
item: ISearchType;
|
|
106
|
-
source: string;
|
|
107
|
-
outFilterChange: Function;
|
|
108
|
-
maxTagPlaceholder: Function;
|
|
109
|
-
handleWordBookSearch: Function;
|
|
110
|
-
dropdownVisibleChange: Function;
|
|
111
|
-
fetchingWordbook: boolean;
|
|
112
|
-
}>;
|
|
113
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as l,onMounted as i,openBlock as a,createBlock as n,unref as o,normalizeClass as u,normalizeStyle as r,createCommentVNode as c}from"vue";import{NSelect as s}from"naive-ui";import"xe-utils";import"moment";import m from"../../../../../_virtual/plugin-vue_export-helper.js";var d=m(e({__name:"multi-select",props:{item:{type:Object,default:()=>{}},maxTagPlaceholder:{type:Function,default:()=>({})},outFilterChange:{type:Function,default:()=>({})},handleWordBookSearch:{type:Function,default:()=>({})},dropdownVisibleChange:{type:Function,default:()=>({})},source:{type:String,default:""},fetchingWordbook:{type:Boolean,default:!1}},setup(e){const m=e,d=t(null);let p=l((()=>function(e){return m.maxTagPlaceholder(e)<=1?1:0}));l((()=>{const{searchPageConfig:e}=m.item||{};return!e||e.page<=1&&!e.hasNextPage}));let v=l((()=>{var e,t,l;return((null==(l=null==(t=null==(e=null==m?void 0:m.item)?void 0:e.setting)?void 0:t.wordbook)?void 0:l.showKeys)||[]).length>0})),h=l((()=>{var e;let t=m.item.value,l=1==(null==(e=null==m?void 0:m.item)?void 0:e.filterExplicit);if(Array.isArray(t)&&l){let e=t.length;if(1==m.item.explicitRequired)return e>1}return!0})),f=l((()=>{var e;return"0"===String(null==(e=null==m?void 0:m.item)?void 0:e.advanceOptionSetting)})),g=l((()=>{var e,t;return"SelectMuiWordBook"==m.item.comType?m.item.dataSource.map(((e,t)=>{const l=m.item.hasFieldList&&e.showKeys?e.showKeys.split("<&=&>").join(" "):e._show_title||e.showKeys||e.myName;return{...e,value:e.myName,label:l,disabled:0===t&&v.value&&m.item.hasFieldList||!h.value&&m.item.value&&m.item.value.includes(e.myName)}})):null==(t=null==(e=m.item)?void 0:e.labelList)?void 0:t.map(((e,t)=>({...e,value:t,label:e.labelName||"",disabled:!h.value&&m.item.value&&m.item.value.includes(t)})))}));function y(){f.value&&m.outFilterChange()}return i((()=>{!function(){if(f.value)return;let e=d.value;if(!e)return;let t=e.$el;if(!t)return;let l=t.querySelector(".ant-select-selection--multiple");if(!l.querySelector(".quick-input-select-span")){let e=document.createElement("span");e.className="quick-input-select-span";let t='<i aria-label="图标: down" class="anticon anticon-down ant-select-arrow-icon"><svg viewBox="64 64 896 896" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class=""><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></i>';e.innerHTML=t,l.appendChild(e)}}()})),(t,l)=>"SelectMui"==e.item.com?(a(),n(o(s),{key:0,ref_key:"quickInputSelect",ref:d,class:u(["quick-input-select",{"quick-input-select-mul":o(p)(e.item)>0}]),multiple:!o(f),placeholder:e.item.placeholder||`请选择${e.item.alias||e.item.title}`,style:r({width:`${e.item.advanceColWidth||160}px`}),maxTagCount:o(p)(e.item),filterable:"",value:e.item.value,"onUpdate:value":[l[0]||(l[0]=t=>e.item.value=t),y],onSearch:l[1]||(l[1]=t=>e.handleWordBookSearch(t,e.item)),"onUpdate:show":l[2]||(l[2]=t=>e.dropdownVisibleChange(t,e.item)),clearable:1!=e.item.explicitRequired,options:o(g)},null,8,["class","multiple","placeholder","style","maxTagCount","value","clearable","options"])):c("v-if",!0)}}),[["__file","multi-select.vue"]]);export{d as default};
|