cnhis-design-vue 3.1.46-beta.3 → 3.1.46-beta.4
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/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/table-export-field/index.d.ts +967 -0
- package/es/components/table-export-field/index.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +192 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +687 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
- package/es/components/table-export-field/src/constants/index.d.ts +3 -0
- package/es/components/table-export-field/src/constants/index.js +1 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
- package/es/components/table-export-field/src/index.vue.d.ts +968 -0
- package/es/components/table-export-field/src/index.vue.js +1 -0
- package/es/components/table-export-field/src/index.vue2.js +1 -0
- package/es/components/table-export-field/src/types/index.d.ts +6 -0
- package/es/components/table-export-field/src/types/index.js +1 -0
- package/es/components/table-export-field/style/index.css +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,ref as a,reactive as t,inject as l,watch as o,openBlock as r,createBlock as i,unref as c,isRef as s,withCtx as u,createVNode as n,createElementVNode as m,createTextVNode as d,createElementBlock as p,Fragment as v,renderList as f,toDisplayString as h}from"vue";import{useMessage as j,NModal as g,NCard as b,NIcon as N,NButton as y,NRadioGroup as P,NRadio as _,NForm as x,NFormItem as k,NInput as S}from"naive-ui";import{CloseOutline as w}from"@vicons/ionicons5";import{InjectionExportApiConfig as I}from"../constants/index.js";import C from"../hooks/useAsyncData.js";const O={class:"svg-wrap"},L={class:"flex_right"},M={class:"save-project-content"};var U=e({__name:"SaveProjectModal",props:{visible:{type:Boolean,default:!1},tableListId:{type:String,default:""},programOptions:{type:Array,default:()=>[]},curProgram:{type:Object,default:()=>({})}},emits:["cancelSaveModal"],setup(e,{emit:U}){const z=e,A=j(),{saveTableListExportScheme:J}=C(),K={projectName:{required:!0,message:"请输入方案名称",trigger:["input","blur"]}},q=[{value:"updateProject",label:"更新方案"},{value:"addProject",label:"新增方案"}],B=a(null),D=t({projectName:""}),E=a(),R=a([]),T=l(I);function $(e){E.value=e}function F(){var e;null==(e=B.value)||e.validate((async e=>{if(e)return;if(function(){const e=D.projectName.trim();let a=[];if("addProject"===E.value&&(a=z.programOptions.map((e=>e.schemeName))),"updateProject"===E.value){const{schemeName:e}=z.curProgram;a=z.programOptions.filter((a=>a.schemeName!==e)).map((e=>e.schemeName))}return!!a.includes(e)&&(A.warning(`已存在${e}的方案名称`),!0)}())return;const a=function(){const e=D.projectName.trim(),{fieldKeys:a,schemeId:t}=z.curProgram;let l={fieldKeys:a,lastUsedSchemeName:e,schemeId:"",schemeName:e,tableListId:z.tableListId};return"updateProject"===E.value&&(l.schemeId=t),l}();await J(a,T)&&(A.success("保存并导出成功"),U("cancelSaveModal"))}))}function G(){U("cancelSaveModal")}return o((()=>z.curProgram),(async e=>{if("default"===e.schemeId)R.value=q.filter((e=>"addProject"===e.value)),E.value="addProject",D.projectName="";else R.value=JSON.parse(JSON.stringify(q)),E.value="updateProject",D.projectName=e.schemeName}),{immediate:!0,deep:!0}),(a,t)=>(r(),i(c(g),{class:"table-export-field-modal",show:e.visible,"onUpdate:show":t[2]||(t[2]=e=>s(visible)?visible.value=e:null),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:F,onNegativeClick:G},{default:u((()=>[n(c(b),{title:"导出并存为方案",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":u((()=>[m("div",O,[n(c(N),{component:c(w),size:"24",onClick:G},null,8,["component"])])])),footer:u((()=>[m("div",L,[n(c(y),{onClick:G},{default:u((()=>[d("取消")])),_:1}),n(c(y),{type:"info",onClick:F},{default:u((()=>[d("确认")])),_:1})])])),default:u((()=>[m("div",M,[n(c(P),{value:E.value,"onUpdate:value":[t[0]||(t[0]=e=>E.value=e),$],name:"radiogroup"},{default:u((()=>[(r(!0),p(v,null,f(R.value,(e=>(r(),i(c(_),{key:e.value,value:e.value},{default:u((()=>[d(h(e.label),1)])),_:2},1032,["value"])))),128))])),_:1},8,["value"]),n(c(x),{ref_key:"formRef",ref:B,"label-placement":"left",rules:K,model:D},{default:u((()=>[n(c(k),{label:"方案名称",path:"projectName"},{default:u((()=>[n(c(S),{value:D.projectName,"onUpdate:value":t[1]||(t[1]=e=>D.projectName=e),placeholder:"请输入方案名称",clearable:"",maxlength:"100"},null,8,["value"])])),_:1})])),_:1},8,["model"])])])),_:1})])),_:1},8,["show"]))}});export{U as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=Symbol("InjectionExportApiConfig");export{o as InjectionExportApiConfig};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default function useAsyncData(): {
|
|
2
|
+
getTableListExportScheme: (params: any, filterApiConfig: any) => Promise<any>;
|
|
3
|
+
deleteTableListExportScheme: (params: any, filterApiConfig: any) => Promise<any>;
|
|
4
|
+
exportTableListScheme: (params: any, filterApiConfig: any) => Promise<any>;
|
|
5
|
+
saveTableListExportScheme: (params: any, filterApiConfig: any) => Promise<any>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){async function e(e,t,r){try{const n=r[t]||null;if("function"==typeof n){const t=await n(e);return Promise.resolve(t)}return Promise.reject(new Error(`${t} Is not a function`))}catch(e){return Promise.reject(e)}}return{getTableListExportScheme:async function(t,r){return await e(t,"getTableListExportScheme",r)},deleteTableListExportScheme:async function(t,r){return await e(t,"deleteTableListExportScheme",r)},exportTableListScheme:async function(t,r){return await e(t,"exportTableListScheme",r)},saveTableListExportScheme:async function(t,r){return await e(t,"saveTableListExportScheme",r)}}}export{e as default};
|