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,ref as i,useAttrs as t,computed as a,watch as n,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as f,createTextVNode as d,renderSlot as u,createCommentVNode as p}from"vue";import{useMessage as v,NButton as g}from"naive-ui";import C from"../table-modal/TableModal.vue.js";import y from"../search-filter/SearchFilter.vue.js";import h from"../../hooks/useMixins.js";import{DataTypeEnums as m}from"../../types/enums.js";import b from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"search"};var L=b(e({__name:"set-classification",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,searchDefName:{type:String,default:"全部数据"},filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["changeSearch","CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:b}){const L=e,T=v(),{handleGetConfigApi:I}=h();let S=i(L.conditionList),_=i(),F=i("全部数据"),j=i(!1),D=i({}),O=i([]),k=i(!1);const w=i(null),M=t();async function q(e){try{let i=Object.assign(e,{id:L.settingId,tableId:M.tableId});await I(i,"requestSaveTableCondiTionSetting",{},L.filterApiConfig)&&(b("CondiTionListInit"),P(!1))}catch(e){console.log(e)}}function G(){P(!1),S.value.forEach((e=>{e.checked=!1}))}function N(){j.value=!0}function H(e,i){j.value=!0,D.value=Object.assign(e,{from:"edit"})}function R(e,i){j.value=!0,D.value=Object.assign(e,{from:"copy"})}async function $(e){try{if(Object.assign(e,{tableId:M.tableId,conditionList:JSON.stringify(S.value)}),k.value=!0,!await I(e,"requestSaveTableCondiTion",{},L.filterApiConfig))return;w&&w.value.cancelSaveAdd(),b("saveGetTableCondiTionList"),j.value=!1}catch(e){console.log(e)}finally{k.value=!1}}function x(){j.value=!1,D.value={}}function E(e,i){S.value=e,_.value=i}async function K(e,i){if(e)try{let i={id:e.sid};if(!await I(i,"requestDeleteTableCondiTion",{},L.filterApiConfig))return;T.success("删除成功"),b("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else T.info("请选择行")}function P(e){b("setClassifyModal",e)}async function B(){try{let e={id:L.settingId,tableId:M.tableId,type:"SEARCH_CATEGORY"};await I(e,"requestResetDefaultSetting",{},L.filterApiConfig)&&(b("CondiTionListInit"),P(!1))}catch(e){console.log(e)}}let J=a((()=>L.classifyModal));return n((()=>L.searchDefName),(()=>{F.value=L.searchDefName||"全部数据"})),n((()=>M.searchKey),(()=>{M.selectKeys=[M.searchKey||"all"]})),n((()=>L.searchFieldList),(e=>{e&&e.length>0&&(O.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),n((()=>j),(e=>{e||(D.value={})})),(i,t)=>(o(),l("div",A,[s(C,r({dataSource:c(S),visibleIn:c(J)},i.$attrs,{onHandleOk:q,onClose:G,onChangeData:E,onResetPopconfirm:B,edit:H,copy:R,delItem:K,type:"search",filterApiConfig:e.filterApiConfig}),{add:f((()=>[s(c(g),{type:"info",onClick:N},{default:f((()=>[d("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),u(i.$slots,"searchCondition",{attrs:{...i.$attrs,visible:c(j),loading:c(k),conditionList:c(S),actionList_prop:c(D),searchFieldList:e.searchFieldList,isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,saveAdd:$,cancelSaveAdd:x},ref_key:"searchFilter",ref:w},(()=>[p(" 先默认设置dataType为api筛选,后期要兼容sql筛选再动态查询 "),s(y,r({ref_key:"searchFilter",ref:w},i.$attrs,{visible:c(j),loading:c(k),conditionList:c(S),actionList_prop:c(D),searchFieldList:c(O),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,tableDataType:c(m).API,onSaveAdd:$,onCancelSaveAdd:x}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig","tableDataType"])]))]))}}),[["__file","set-classification.vue"]]);export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,computed as i,ref as l,inject as a,watch as n,openBlock as o,createBlock as s,unref as r,normalizeClass as u,withCtx as c,createVNode as d,normalizeStyle as p,createSlots as m,createElementVNode as v,createElementBlock as h,createCommentVNode as f,withDirectives as g,vShow as y,createTextVNode as C,toDisplayString as w,withModifiers as k,renderSlot as x}from"vue";import{useMessage as b,useDialog as S,NModal as _,NCard as z,NTooltip as D,NIcon as M,NSwitch as I,NPopconfirm as E,NButton as P}from"naive-ui";import{ReorderTwo as U,Brush as N,DocumentOutline as V}from"@vicons/ionicons5";import O from"../../../../../shared/components/SvgIcon/SvgIcon.vue.js";import F from"../../../../../shared/components/VueDraggable/src/vuedraggable.js";import{root_isShowResetButton as j}from"../../const/index.js";import B from"axios";import T from"../../../../../_virtual/plugin-vue_export-helper.js";const A={class:"svg-wrap"},H={key:0},R={class:"list"},$={class:"list-title"},J=v("span",{class:"list-title-item",style:{width:"6%"}},null,-1),Y=v("span",{class:"list-title-item"}," 名称 ",-1),q=v("span",{class:"list-title-item"}," 父类名称 ",-1),G=v("span",{class:"list-title-item"}," 是否显示 ",-1),K=v("span",{class:"list-title-item"}," 设置为默认 ",-1),L={class:"list-title-item"},Q=v("span",{class:"list-title-item"}," 操作 ",-1),W=["onClick"],X={class:"list-content-item",style:{width:"6%","text-align":"center",overflow:"initial"}},Z=["title"],ee=["title"],te={class:"list-content-item list-content-switch"},ie={class:"list-content-item list-content-radio"},le={class:"list-content-item"},ae={class:"list-content-item"},ne={key:0},oe=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),se={key:1},re=v("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[v("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),v("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),v("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1);var ue=T(e({__name:"TableModal",props:{visibleIn:{type:Boolean},loading:{type:Boolean},confirm:{type:Function},edit:{type:Function,defdault:()=>{}},copy:{type:Function,defdault:()=>{}},delItem:{type:Function,defdault:()=>{}},dataSource:{type:Array,default:()=>[]},type:{type:String},transitionName:{type:String},getContainer:{type:Function,default:()=>document.body}},emits:["handleOk","close","changeData","resetPopconfirm","finishSubmit"],setup(e,{emit:T}){const ue=e,ce=B.create({}),de=t(),pe=b(),me=S(),ve=i((()=>(null==de?void 0:de.isOrgAdmin)||!1)),he=l(ue.dataSource),fe=l(ue.visibleIn),ge=l(!1),ye=l("other"==ue.type?"100%":"860px"),Ce=l("654px"),we=a(j);function ke(){ue.type&&(Se(),T("handleOk",function(e){if("search"==e||"other"==e)return{id:"",tableId:"",setting:JSON.stringify(he.value.map((e=>({isDefault:e.isDefault,isShow:e.isShow,name:e.name,type:e.type,classifyId:e.sid}))))};if("mananger"==e){let e={};return he.value.forEach(((t,i)=>{const l=(null==t?void 0:t.id)||"";e[l]={id:l,index:i,default:t.isDefault?1:0,isHide:t.isShow?0:1}})),{type:"HOMEPAGE",tableId:"10001",setting:JSON.stringify({pageConfig:e})}}return}(ue.type)))}function xe(){be()}function be(){fe.value=!1,Se(),T("close")}function Se(){ye.value="860px",Ce.value="654px",ge.value=!1}function _e(){T("changeData",he.value)}function ze(){ge.value=!ge.value;let e=document.body.clientHeight;ye.value="860px"===ye.value?"100%":"860px",Ce.value="654px"===Ce.value?`${e}px`:"654px"}function De(e){T("resetPopconfirm",e)}function Me(e,t,i){const l=ue[e];l&&l(t,i)}return n((()=>ue.visibleIn),(e=>{fe.value=e})),n((()=>ue.dataSource),(e=>{he.value=e}),{immediate:!0,deep:!0}),(t,i)=>(o(),s(r(_),{show:fe.value,bodyStyle:{height:Ce.value,overflowY:"auto"},width:ye.value,maskClosable:!1,class:u(["classification-set-modal-wrap-block standard-modal standard-modal-white",{"modal-screen":ge.value}]),closable:!1,centered:"",transitionName:e.transitionName,getContainer:e.getContainer,"positive-text":"保存","negative-text":"取消",onPositiveClick:ke,onNegativeClick:be},{default:c((()=>[d(r(z),{style:p({width:ye.value,height:Ce.value,overflowY:"auto"}),title:"设置分类",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},m({"header-extra":c((()=>[v("div",A,[d(r(O),{onClick:ze,"icon-class":ge.value?"xitongtubiaodaohangtubiaozuixiaohua":"xitongtubiaodaohangtubiaozuidahua"},null,8,["icon-class"]),d(r(O),{"icon-class":"xitongtubiaodaohangtubiaoguanbi",onClick:be})])])),default:c((()=>[r(ve)&&"mananger"==e.type?(o(),h("p",H,[f(' <n-icon type="plus-circle" /> '),v("a",{onClick:xe}," 添加首页 ")])):f("v-if",!0),v("div",R,[v("div",$,[J,Y,q,G,K,g(v("span",L," 设置公共首页 ",512),[[y,r(ve)&&"mananger"==e.type]]),Q]),d(r(F),{class:"list-content",tag:"ul",list:he.value,"item-key":"sid",onEnd:_e,animation:"300"},{item:c((({element:t})=>[g(v("li",{class:u({checked:t.checked}),onClick:e=>{return i=t,he.value.forEach((e=>{e.sid==i.sid?e.checked=!0:e.checked=!1})),void T("changeData",he.value,i);var i}},[v("span",X,[d(r(D),{mouseEnterDelay:1},{trigger:c((()=>[d(r(M),{component:r(U),size:"24"},null,8,["component"])])),default:c((()=>[C(" 拖拽调整顺序 ")])),_:1})]),v("span",{title:t.displayCategory,class:"list-content-item"},w(t.name),9,Z),v("span",{title:t.name,class:"list-content-item"},w(t.displayCategory),9,ee),v("span",te,[d(r(I),{"onUpdate:value":e=>{return i=t,void he.value.forEach((e=>{e.sid==i.sid&&(e.isShow=!e.isShow,e.isShow||(i.isDefault=!1))}));var i},size:"small",value:t.isShow},null,8,["onUpdate:value","value"])]),v("span",ie,[d(r(I),{"onUpdate:value":e=>{var i;(i=t).isShow&&he.value.forEach((e=>{e.sid==i.sid?e.isDefault=!e.isDefault:e.isDefault=!1}))},size:"small",value:t.isDefault},null,8,["onUpdate:value","value"])]),g(v("span",le,[d(r(I),{"onUpdate:value":e=>function(e){function t(e){let t="";for(const i in e)t+=encodeURIComponent(i)+"="+encodeURIComponent(e[i])+"&";return t=t.slice(0,-1),t}me.warning({title:`是否确定${e.isCommon?"取消":"设置"}公共首页?`,positiveText:"确定",negativeText:"取消",maskClosable:!1,onPositiveClick:()=>{let i={id:e.id,setCommon:!e.isCommon};ce({url:"homePage/updateCommon",method:"post",data:i,transformRequest:[t]}).then((t=>{"SUCCESS"===t.data.result?(pe.success(t.data.resultMsg),e.isCommon=!e.isCommon,T("finishSubmit")):pe.error(t.data.resultMsg)})).catch((e=>{console.log(e)}))},onNegativeClick:()=>{}})}(t),size:"small",value:t.isCommon},null,8,["onUpdate:value","value"])],512),[[y,r(ve)&&"mananger"==e.type]]),v("span",ae,["mananger"==e.type&&r(ve)?(o(),h("span",ne,[d(r(E),{onPositiveClick:e=>Me("confirm",t)},{trigger:c((()=>[d(r(M),null,{default:c((()=>[oe])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0),f(" 编辑 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(M),{component:r(N),onClick:k((e=>Me("edit",t,"编辑")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 编辑 ")])),_:2},1024)],512),[[y,"other"==e.type||"search"==e.type&&t.isEdit||"mananger"==e.type&&r(ve)]]),f(" 复制 "),g(v("span",null,[d(r(D),null,{trigger:c((()=>[d(r(M),{component:r(V),onClick:k((e=>Me("copy",t,"复制")),["prevent","stop"])},null,8,["component","onClick"])])),default:c((()=>[C(" 复制 ")])),_:2},1024)],512),[[y,"search"==e.type||"other"==e.type]]),f(" 删除 "),t.isEdit?(o(),h("span",se,[d(r(E),{onPositiveClick:e=>Me("delItem",t,"删除")},{trigger:c((()=>[d(r(M),null,{default:c((()=>[re])),_:1})])),default:c((()=>[C(" 是否确认删除? ")])),_:2},1032,["onPositiveClick"])])):f("v-if",!0)])],10,W),[[y,"line"!=t.type]])])),_:1},8,["list"])])])),_:2},["search"==e.type?{name:"footer",fn:c((()=>[r(we)?(o(),s(r(E),{key:0,class:"btn-reset","positive-text":"确认","negative-text":"取消",onPositiveClick:De},{trigger:c((()=>[d(r(P),null,{default:c((()=>[C("恢复默认设置")])),_:1})])),default:c((()=>[C(" 确认要恢复系统默认设置吗? ")])),_:1})):f("v-if",!0),d(r(P),{onClick:be},{default:c((()=>[C("取消")])),_:1}),x(t.$slots,"add"),d(r(P),{type:"info",onClick:ke},{default:c((()=>[C("保存")])),_:1})])),key:"0"}:void 0]),1032,["style"])])),_:3},8,["show","bodyStyle","width","class","transitionName","getContainer"]))}}),[["__file","TableModal.vue"]]);export{ue as default};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare const DATETEAM0: {
|
|
2
|
-
con: string;
|
|
3
|
-
title: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}[];
|
|
6
|
-
declare const DATETEAM2: {
|
|
7
|
-
con: string;
|
|
8
|
-
title: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}[];
|
|
11
|
-
declare const DATETEAM3: {
|
|
12
|
-
con: string;
|
|
13
|
-
title: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}[];
|
|
16
|
-
declare const EVALUATEList1: {
|
|
17
|
-
label: string;
|
|
18
|
-
value: string;
|
|
19
|
-
isSelect: boolean;
|
|
20
|
-
}[];
|
|
21
|
-
declare const AGEOPTIONS: {
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
|
-
declare const TEAMS: {
|
|
26
|
-
con: string;
|
|
27
|
-
title: string;
|
|
28
|
-
name: string;
|
|
29
|
-
}[];
|
|
30
|
-
declare const DAYUNITS: {
|
|
31
|
-
title: string;
|
|
32
|
-
units: number;
|
|
33
|
-
con: string;
|
|
34
|
-
name: string;
|
|
35
|
-
}[];
|
|
36
|
-
export { DATETEAM0, DATETEAM2, DATETEAM3, EVALUATEList1, AGEOPTIONS, TEAMS, DAYUNITS };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=[{con:"TODAY",title:"1.1.4.37",name:"今天"},{con:"TOMORROW",title:"1.1.4.38",name:"明天"},{con:"YESTERDAY",title:"1.1.4.39",name:"昨天"},{con:"THIS_WEEK",title:"1.1.4.40",name:"本周"},{con:"NEXT_WEEK",title:"1.1.4.41",name:"下周"},{con:"LAST_WEEK",title:"1.1.4.42",name:"上周"},{con:"THIS_MONTH",title:"1.1.4.43",name:"本月"},{con:"NEXT_MONTH",title:"1.1.4.44",name:"下月"},{con:"LAST_MONTH",title:"1.1.4.45",name:"上月"},{con:"THIS_SEASON",title:"1.1.4.46",name:"本季度"},{con:"NEXT_SEASON",title:"1.1.4.47",name:"下季度"},{con:"LAST_SEASON",title:"1.1.4.48",name:"上季度"},{con:"THIS_YEAR",title:"1.1.4.49",name:"本年"},{con:"NEXT_YEAR",title:"1.1.4.50",name:"下年"},{con:"LAST_YEAR",title:"1.1.4.51",name:"上年"}],t=[{con:"TODAY",title:"1.1.4.37",name:"今天"},{con:"YESTERDAY",title:"1.1.4.39",name:"昨天"},{con:"THIS_WEEK",title:"1.1.4.40",name:"本周"},{con:"LAST_WEEK",title:"1.1.4.42",name:"上周"},{con:"THIS_MONTH",title:"1.1.4.43",name:"本月"},{con:"LAST_MONTH",title:"1.1.4.45",name:"上月"},{con:"THIS_SEASON",title:"1.1.4.46",name:"本季度"},{con:"LAST_SEASON",title:"1.1.4.48",name:"上季度"},{con:"THIS_YEAR",title:"1.1.4.49",name:"本年"},{con:"LAST_YEAR",title:"1.1.4.51",name:"上年"}],n=[{con:"TODAY",title:"1.1.4.37",name:"今天"},{con:"TOMORROW",title:"1.1.4.38",name:"明天"},{con:"THIS_WEEK",title:"1.1.4.40",name:"本周"},{con:"NEXT_WEEK",title:"1.1.4.41",name:"下周"},{con:"THIS_MONTH",title:"1.1.4.43",name:"本月"},{con:"NEXT_MONTH",title:"1.1.4.44",name:"下月"},{con:"THIS_SEASON",title:"1.1.4.46",name:"本季度"},{con:"NEXT_SEASON",title:"1.1.4.47",name:"下季度"},{con:"THIS_YEAR",title:"1.1.4.49",name:"本年"},{con:"NEXT_YEAR",title:"1.1.4.50",name:"下年"}],l=[{label:"一星",value:"1",isSelect:!1},{label:"二星",value:"2",isSelect:!1},{label:"三星",value:"3",isSelect:!1},{label:"四星",value:"4",isSelect:!1},{label:"五星",value:"5",isSelect:!1}],a=[{label:"岁",value:"YY"},{label:"月",value:"MM"},{label:"日",value:"DD"}],i=[{con:"TODAY",title:"1.1.4.37",name:"今天"},{con:"TOMORROW",title:"1.1.4.38",name:"明天"},{con:"YESTERDAY",title:"1.1.4.39",name:"昨天"},{con:"THIS_WEEK",title:"1.1.4.40",name:"本周"},{con:"NEXT_WEEK",title:"1.1.4.41",name:"下周"},{con:"LAST_WEEK",title:"1.1.4.42",name:"上周"},{con:"THIS_MONTH",title:"1.1.4.43",name:"本月"},{con:"NEXT_MONTH",title:"1.1.4.44",name:"下月"},{con:"LAST_MONTH",title:"1.1.4.45",name:"上月"},{con:"THIS_SEASON",title:"1.1.4.46",name:"本季度"},{con:"NEXT_SEASON",title:"1.1.4.47",name:"下季度"},{con:"LAST_SEASON",title:"1.1.4.48",name:"上季度"},{con:"THIS_YEAR",title:"1.1.4.49",name:"本年"},{con:"NEXT_YEAR",title:"1.1.4.50",name:"下年"},{con:"LAST_YEAR",title:"1.1.4.51",name:"上年"}],E=[{title:"1.2.5.58",units:1,con:"DAY",name:"天"},{title:"1.2.5.59",units:2,con:"WEEK",name:"周"},{title:"1.2.1.11.18",units:1,con:"MONTH",name:"月"},{title:"1.9.273",units:1,con:"YEAR",name:"岁"}];export{a as AGEOPTIONS,e as DATETEAM0,t as DATETEAM2,n as DATETEAM3,E as DAYUNITS,l as EVALUATEList1,i as TEAMS};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={mounted(e,d){e.addEventListener("click",(()=>{e.disabled||(e.disabled=!0,setTimeout((()=>{e.disabled=!1}),d.value||1e3))}))}};export{e as default};
|
|
@@ -63,8 +63,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
}>>, {
|
|
66
|
-
content: string;
|
|
67
66
|
contentStyle: CSSProperties;
|
|
67
|
+
content: string;
|
|
68
68
|
}>;
|
|
69
69
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
70
|
content: {
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
default: () => {};
|
|
81
81
|
};
|
|
82
82
|
}>>, {
|
|
83
|
-
content: string;
|
|
84
83
|
contentStyle: CSSProperties;
|
|
84
|
+
content: string;
|
|
85
85
|
}>;
|
|
86
86
|
export default _default;
|
|
File without changes
|
|
File without changes
|