cnhis-design-vue 3.1.42-beta.32 → 3.1.42-beta.34
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/classification/index.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/recommend-search/index.d.ts +1 -3
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +1 -3
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -3
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
- package/es/components/scale-view/index.d.ts +4 -28
- package/es/components/scale-view/src/ScaleView.vue.d.ts +4 -28
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +9 -0
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +0 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +0 -3
|
@@ -184,7 +184,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
184
184
|
titleName: import("vue").ComputedRef<string>;
|
|
185
185
|
tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
|
|
186
186
|
handleFold: (item: import("..").ITreeDataType) => void;
|
|
187
|
-
handleItemClick: (child:
|
|
187
|
+
handleItemClick: (child: import("..").IClassifyItemType, i?: number | undefined, p?: import("..").ITreeDataType | undefined) => void;
|
|
188
188
|
initTree: (conditionSidTemp: string[]) => import("..").IClassifyListType[];
|
|
189
189
|
getConditionSid: (sid: string, conditionSidVal: string[], p?: import("..").ITreeDataType | undefined) => string[];
|
|
190
190
|
handleModeChange: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { IClassifyListType, ITreeDataType, IConditionMapType } from '../../../../es/components/table-filter/src/types';
|
|
2
|
+
import { IClassifyListType, ITreeDataType, IConditionMapType, IClassifyItemType } from '../../../../es/components/table-filter/src/types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
tableId: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
185
|
titleName: import("vue").ComputedRef<string>;
|
|
186
186
|
tooltipTilte: import("vue").ComputedRef<(item: any) => string>;
|
|
187
187
|
handleFold: (item: ITreeDataType) => void;
|
|
188
|
-
handleItemClick: (child:
|
|
188
|
+
handleItemClick: (child: IClassifyItemType, i?: number, p?: ITreeDataType) => void;
|
|
189
189
|
initTree: (conditionSidTemp: string[]) => IClassifyListType[];
|
|
190
190
|
getConditionSid: (sid: string, conditionSidVal: string[], p?: ITreeDataType) => string[];
|
|
191
191
|
handleModeChange: () => void;
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
searchFilterText: import("vue").Ref<string>;
|
|
22
22
|
close: () => void;
|
|
23
23
|
OPTION_ITEM_HEIGHT: number;
|
|
24
|
-
|
|
24
|
+
viewCapacity: import("vue").ComputedRef<number>;
|
|
25
25
|
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<VxeTableDefines.FilterOption>[]>;
|
|
26
26
|
containerProps: {
|
|
27
27
|
ref: import("vue").Ref<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as l,inject as t,ref as a,onDeactivated as
|
|
1
|
+
import{defineComponent as e,computed as l,inject as t,ref as a,onDeactivated as o,openBlock as u,createElementBlock as n,unref as r,Fragment as i,renderList as s,createElementVNode as v,normalizeClass as c,createBlock as d,createCommentVNode as p,createTextVNode as f,toDisplayString as m,createVNode as h,isRef as _,withCtx as y,normalizeStyle as g}from"vue";import{widthAppend as b}from"../../../../../shared/utils/index.js";import{CheckmarkOutline as k}from"@vicons/ionicons5";import{useVirtualList as C}from"@vueuse/core";import{isNumber as x}from"lodash-es";import{NInput as S,NCheckbox as $,NCheckboxGroup as E,NButtonGroup as j,NButton as w}from"naive-ui";import A from"../../../../../_virtual/plugin-vue_export-helper.js";const I={class:"iho-table__filterWrapper"},L={key:0},U=["onClick"],B={class:"iho-table__filterListItem"},F={class:"iho-table__filterFooter"};var O=A(e({__name:"filter",props:{payload:{type:Object,required:!0}},setup(e){const A=e,O=l((()=>{var e,l,t;return null==(t=null==(l=null==(e=A.payload)?void 0:e.column.editRender)?void 0:l.props)?void 0:t.sortable})),P=l((()=>{var e,l,t;return null!=(t=null==(l=null==(e=A.payload)?void 0:e.column)?void 0:l.filters)?t:[]})),R=l({get:()=>P.value.reduce(((e,l)=>(l.checked&&e.push(l.value),e)),[]),set(e){if(A.payload)return P.value.forEach((l=>{A.payload.$panel.changeOption(null,e.includes(l.value),l)})),A.payload.$panel.confirmFilter(new CustomEvent("click"))}}),W=t("$xetable"),Z=l({get(){if(!W)return null;const e=W.getSortColumns().find((e=>{var l;return e.column===(null==(l=A.payload)?void 0:l.column)}));return e?e.order:null},set(e){W&&A.payload&&A.payload.$panel&&W.triggerSortEvent(new CustomEvent("click"),A.payload.column,e)}}),q=a([...R.value]),z=a("");function D(){W&&(W.reactData.filterStore.visible=!1)}o(D);const H=l((()=>{var e,l;if(!A.payload||!A.payload.column)return 10;const{filterCapacity:t}=null!=(l=null==(e=A.payload.column.editRender)?void 0:e.props)?l:{};return x(t)&&t>0?t:10})),{list:G,containerProps:J,wrapperProps:K}=C(l((()=>z.value?P.value.filter((e=>`${e.label}`.includes(z.value))):P.value)),{itemHeight:32,overscan:3}),M=l((()=>!!q.value.length&&q.value.length!==P.value.length)),N=l({get:()=>q.value.length===P.value.length&&0!==P.value.length,set:e=>{q.value=e?P.value.map((e=>e.value)):[]}}),Q=l((()=>({...J.style,height:b(32*H.value)})));function T(){R.value=q.value,D()}function V(){q.value=[]}const X=[{status:"asc",text:"升序 A to Z"},{status:"desc",text:"降序 Z to A"}];return(e,l)=>(u(),n("section",I,[r(O)?(u(),n("div",L,[(u(),n(i,null,s(X,(e=>v("div",{key:e.status,class:c(["iho-table__filterButton",{"iho-table__filterButton--active":r(Z)===e.status}]),onClick:l=>{return t=e.status,Z.value=t,void D();var t}},[r(Z)===e.status?(u(),d(r(k),{key:0,class:"iho-table__sortActiveIcon"})):p("v-if",!0),f(" "+m(e.text),1)],10,U))),64))])):p("v-if",!0),r(P).length>5?(u(),d(r(S),{key:1,value:z.value,"onUpdate:value":l[0]||(l[0]=e=>z.value=e)},null,8,["value"])):p("v-if",!0),v("div",B,[h(r($),{label:"全选",checked:r(N),"onUpdate:checked":l[1]||(l[1]=e=>_(N)?N.value=e:null),indeterminate:r(M)},null,8,["checked","indeterminate"])]),h(r(E),{value:q.value,"onUpdate:value":l[3]||(l[3]=e=>q.value=e)},{default:y((()=>[v("section",{ref:r(J).ref,style:g(r(Q)),onScroll:l[2]||(l[2]=(...e)=>r(J).onScroll&&r(J).onScroll(...e)),class:"iho-table__filterListWrapper"},[v("section",{style:g(r(K).style)},[(u(!0),n(i,null,s(r(G),(e=>(u(),n("div",{class:"iho-table__filterListItem",key:e.data.value},[h(r($),{value:e.data.value,label:e.data.label},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),v("footer",F,[v("section",null,m(`已选择${q.value.length}项`),1),h(r(j),{size:"small"},{default:y((()=>[h(r(w),{onClick:V},{default:y((()=>[f("清空")])),_:1}),h(r(w),{onClick:D},{default:y((()=>[f("取消")])),_:1}),h(r(w),{type:"primary",onClick:T},{default:y((()=>[f("确定")])),_:1})])),_:1})])]))}}),[["__file","filter.vue"]]);export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as t,ref as o,computed as l,provide as a,watch as r,onMounted as n,createVNode as s,h as i,nextTick as u,onBeforeUnmount as d,reactive as c,unref as m}from"vue";import{traverse as p}from"../../../../../shared/utils/index.js";import{useThrottleFn as f}from"@vueuse/core";import{promiseTimeout as h}from"@vueuse/shared";import{isFunction as g,
|
|
1
|
+
import{defineComponent as e,inject as t,ref as o,computed as l,provide as a,watch as r,onMounted as n,createVNode as s,h as i,nextTick as u,onBeforeUnmount as d,reactive as c,unref as m}from"vue";import{traverse as p}from"../../../../../shared/utils/index.js";import{useThrottleFn as f}from"@vueuse/core";import{promiseTimeout as h}from"@vueuse/shared";import{isFunction as g,omit as v,isString as x,last as I}from"lodash-es";import"../../../index.js";import{InjectionIhoTableUUID as y,WIDGET_TYPE as H}from"../../constants/index.js";import{useUUIDMap as R}from"../../utils/index.js";import{defineTablePlugin as b}from"../../hooks/useTablePlugin.js";class w{constructor(){this.records={},this.maxRecords=c({})}set(e,t,o){this.records[e]||(this.records[e]={}),this.records[e][t]=o,this.maxRecords[e]=Math.max(...Object.values(this.records[e]),0)}getMax(e){var t;return null!=(t=this.maxRecords[e])?t:0}}const{getItemFromUUID:D,removeItemFromUUID:U}=R((()=>new w),!0),{getItemFromUUID:S,removeItemFromUUID:T,setItemFromUUID:E}=R((()=>null)),{getItemFromUUID:F,removeItemFromUUID:M,setItemFromUUID:j}=R((()=>{})),k=e({props:{payload:{type:Object,required:!0}},setup(e){const d=t(y),c=t("$xetable"),m=o(),p=D(d),f=l((()=>e.payload.row[e.payload.column.field]));async function h(){await u();const{row:t,column:o}=e.payload,l=c.getRowSeq(t);p&&null!=l&&m.value&&p.set(l,o.field,m.value.clientHeight)}a("updateCellHeight",h),r([()=>e.payload.rowIndex,()=>e.payload.column.field,f],h,{immediate:!0}),n((()=>{c&&!S(d)&&E(d,c)}));const v=l((()=>{var t,o,l,a;const r=null!=(o=null==(t=e.payload.column.editRender)?void 0:t.props)?o:{},n=null!=(a=null==(l=r.slots)?void 0:l.default)?a:r.slotFn;return g(n)?n:()=>f.value}));return()=>s("div",{ref:m,style:"padding:7px 0"},[i(v.value,e.payload)])}});function $(e,t,{scrollTop:o=0}){var l,a;const{uuid:r,rowConfig:n={}}=t;if(!r)return;const s=D(r),{oSize:i=0,gt:u=100}=null!=(l=F(r))?l:{},{internalData:d,reactData:c}=e,{scrollYStore:p,elemStore:f,afterFullData:h,fullDataRowIdData:g}=d;if(u>h.length)return;const v=null!=(a=n.height)?a:36,x=f["main-body-wrapper"],y=x?m(x):null,H=y?Math.max(8,Math.ceil(y.clientHeight/v)+2+2*i):8,R=[0];let b=0;o&&h.find(((t,l)=>{const a=e.getRowSeq(t),r=(I(R)||0)+Math.max(v,s.getMax(a));if(R.push(r),r>o)return b=Math.max(0,l-i),!0})),Object.assign(p,{startIndex:b,endIndex:b+H});const w=`${R[b]}px`,U=`${h.reduce(((t,o)=>{const l=e.getRowSeq(o);return t+Math.max(v,s.getMax(l))}),0)}px`;["main","left","right"].forEach((e=>{const t=f[`${e}-body-table`],o=t?m(t):null;o&&(o.style.marginTop=w),["header","body","footer"].forEach((t=>{const o=f[`${e}-${t}-ySpace`],l=o?m(o):null;l&&(l.style.height=U)}))}));const S=h.slice(p.startIndex,p.endIndex);S.forEach(((t,o)=>{const l=e.getRowid(t),a=g[l];a&&(a.$index=o)})),c.tableData=S}function A(){const e="variableHeightRendererPlugin";return b({name:e,vxe(e){e.renderer.add(H.VARIABLE_HEIGHT,{renderCell:(e,t)=>s(k,{payload:t},null)})},apply(t){function o(e){if(!e.uuid)return;const t=F(e.uuid);t&&(e.scrollY=t),setTimeout((()=>{const t=S(e.uuid);if(!t)return;e.scrollY={enabled:!1},t.reactData.scrollYLoad=!1;const o=t.getScroll();$(t,e,{scrollTop:o.scrollTop})}),300)}t.dataHooks.dataStart.tap(e,o),t.eventHooks.onFilterChange.tap(e,((e,t)=>o(t))),t.eventHooks.onSortChange.tap(e,((e,t)=>o(t))),t.eventHooks.onToggleTreeExpand.tap(e,((e,t)=>o(t))),t.fieldHooks.field.tap(e,(e=>{if(Reflect.get(e,"variableHeight")){const t=e.slots;e.slots=v(t,["default"]),e.editRender={...e.editRender,name:H.VARIABLE_HEIGHT}}return e})),t.fieldHooks.fieldList.tap(e,((e,t,{$table:o})=>(t.uuid&&p(e,((e,l)=>{var a,r,n;if((null==(a=e.editRender)?void 0:a.name)===H.VARIABLE_HEIGHT){const e=null!=(n=null==(r=t.rowConfig)?void 0:r.height)?n:36,a=D(t.uuid),s=t.cellStyle;t.cellStyle=function(t){const l={};if(t.column.fixed&&o.value){const r=Math.max(e,a.getMax(o.value.getRowSeq(t.row)));r&&(l.height=`${r}px`)}return Object.assign(l,s?g(s)?s(t):s:null)};const i=t.cellClassName;t.cellClassName=function(e){var t;const o=g(i)?i(e):i,l=o?x(o)?{[o]:!0}:o:{};return Object.assign({"virtual-height":(null==(t=e.column.editRender)?void 0:t.name)===H.VARIABLE_HEIGHT},l)},setTimeout((()=>{j(t.uuid,t.scrollY),t.scrollY={enabled:!1};const e=S(t.uuid);e&&(e.reactData.scrollYLoad=!1,$(e,t,{scrollTop:0}))}),300),l()}})),e))),t.setupHooks.setup.tap(e,(e=>{d((()=>{e.value.uuid&&(U(e.value.uuid),T(e.value.uuid),M(e.value.uuid))}))})),t.eventHooks.onScroll.tap(e,f((async(e,t)=>{const{uuid:o}=t;if(!o)return;const l=S(o);l&&(await h(0),$(l,t,e))}),200))}})}export{A as variableHeightRendererPlugin};
|
|
@@ -227,9 +227,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
227
227
|
clickTag: (type: import("./src/constant").RecommendType, value: import("./src/types").RecommendItem) => void;
|
|
228
228
|
clickCommonTag: (value: import("./src/types").RecommendItem) => void;
|
|
229
229
|
clickRecentTag: (value: import("./src/types").RecommendItem) => void;
|
|
230
|
-
deleteTag: (
|
|
231
|
-
deleteCommonTag: () => void;
|
|
232
|
-
deleteRecentTag: () => void;
|
|
230
|
+
deleteTag: () => void;
|
|
233
231
|
TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
234
232
|
NTag: any;
|
|
235
233
|
NIcon: any;
|
|
@@ -229,9 +229,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
229
|
clickTag: (type: import("../../../../es/components/recommend-search/src/constant").RecommendType, value: RecommendItem) => void;
|
|
230
230
|
clickCommonTag: (value: RecommendItem) => void;
|
|
231
231
|
clickRecentTag: (value: RecommendItem) => void;
|
|
232
|
-
deleteTag: (
|
|
233
|
-
deleteCommonTag: () => void;
|
|
234
|
-
deleteRecentTag: () => void;
|
|
232
|
+
deleteTag: () => void;
|
|
235
233
|
TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
236
234
|
NTag: any;
|
|
237
235
|
NIcon: any;
|
|
@@ -119,9 +119,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
119
119
|
clickTag: (type: RecommendType, value: RecommendItem) => void;
|
|
120
120
|
clickCommonTag: (value: RecommendItem) => void;
|
|
121
121
|
clickRecentTag: (value: RecommendItem) => void;
|
|
122
|
-
deleteTag: (
|
|
123
|
-
deleteCommonTag: () => void;
|
|
124
|
-
deleteRecentTag: () => void;
|
|
122
|
+
deleteTag: () => void;
|
|
125
123
|
TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
126
124
|
NTag: any;
|
|
127
125
|
NIcon: any;
|
|
@@ -25,9 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
clickTag: (type: RecommendType, value: RecommendItem) => void;
|
|
26
26
|
clickCommonTag: (value: RecommendItem) => void;
|
|
27
27
|
clickRecentTag: (value: RecommendItem) => void;
|
|
28
|
-
deleteTag: (
|
|
29
|
-
deleteCommonTag: () => void;
|
|
30
|
-
deleteRecentTag: () => void;
|
|
28
|
+
deleteTag: () => void;
|
|
31
29
|
TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
32
30
|
NTag: any;
|
|
33
31
|
NIcon: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as i,unref as l,createCommentVNode as c,Fragment as s,renderList as r,withCtx as a,toDisplayString as u}from"vue";import{TrashOutline as d}from"@vicons/ionicons5";import{NIcon as p,NTag as
|
|
1
|
+
import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as i,unref as l,createCommentVNode as c,Fragment as s,renderList as r,withCtx as a,toDisplayString as u}from"vue";import{TrashOutline as d}from"@vicons/ionicons5";import{NIcon as p,NTag as _}from"naive-ui";import{RecommendType as f}from"../constant/index.js";import v from"../../../../_virtual/plugin-vue_export-helper.js";const y={class:"recommend-search__menuRecommend"},h={key:0,class:"recommend-search__commonRecommend"},k={class:"recommend-search__menuRecommendList"},L={key:1,class:"recommend-search__recentRecommend"},R=t("header",null,"常用搜索",-1),C={class:"recommend-search__menuRecommendList"};var g=v(e({__name:"RecommendMenu",props:{getDisplayValue:{type:Function,default:e=>e.itemObj},commonList:{default:()=>[]},recentList:{default:()=>[]},deletable:{type:Boolean}},emits:["delete","choose"],setup(e,{emit:v}){function g(e,n){v("choose",{type:e,value:n})}function b(){v("delete")}return(v,j)=>(n(),o("section",y,[e.recentList.length?(n(),o("section",h,[t("header",null,[m(" 最近搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:b},null,8,["component"])):c("v-if",!0)]),t("div",k,[(n(!0),o(s,null,r(e.recentList,(o=>(n(),i(l(_),{size:"small",onClick:e=>{return n=o,void g(f.RECENTLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0),e.commonList.length?(n(),o("section",L,[R,t("div",C,[(n(!0),o(s,null,r(e.commonList,(o=>(n(),i(l(_),{size:"small",onClick:e=>{return n=o,void g(f.COMMONLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0)]))}}),[["__file","RecommendMenu.vue"]]);export{g as default};
|
|
@@ -89,15 +89,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
89
89
|
};
|
|
90
90
|
getChunkUploadConfig: {
|
|
91
91
|
type: FunctionConstructor;
|
|
92
|
-
default: () => Promise<{
|
|
93
|
-
checkFileMd5Exist: string;
|
|
94
|
-
fileChannel: string;
|
|
95
|
-
md5: string;
|
|
96
|
-
objectName: string;
|
|
97
|
-
partFileMerge: string;
|
|
98
|
-
partFileUpload: string;
|
|
99
|
-
token: string;
|
|
100
|
-
}>;
|
|
92
|
+
default: () => Promise<{}>;
|
|
101
93
|
};
|
|
102
94
|
}, {
|
|
103
95
|
ScaleViewState: {
|
|
@@ -221,15 +213,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
221
213
|
};
|
|
222
214
|
getChunkUploadConfig: {
|
|
223
215
|
type: FunctionConstructor;
|
|
224
|
-
default: () => Promise<{
|
|
225
|
-
checkFileMd5Exist: string;
|
|
226
|
-
fileChannel: string;
|
|
227
|
-
md5: string;
|
|
228
|
-
objectName: string;
|
|
229
|
-
partFileMerge: string;
|
|
230
|
-
partFileUpload: string;
|
|
231
|
-
token: string;
|
|
232
|
-
}>;
|
|
216
|
+
default: () => Promise<{}>;
|
|
233
217
|
};
|
|
234
218
|
}>> & {
|
|
235
219
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -260,7 +244,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
260
244
|
width: string;
|
|
261
245
|
height: string;
|
|
262
246
|
transform: string;
|
|
263
|
-
} |
|
|
247
|
+
} | undefined>;
|
|
264
248
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
265
249
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
266
250
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1143,15 +1127,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1143
1127
|
};
|
|
1144
1128
|
getChunkUploadConfig: {
|
|
1145
1129
|
type: FunctionConstructor;
|
|
1146
|
-
default: () => Promise<{
|
|
1147
|
-
checkFileMd5Exist: string;
|
|
1148
|
-
fileChannel: string;
|
|
1149
|
-
md5: string;
|
|
1150
|
-
objectName: string;
|
|
1151
|
-
partFileMerge: string;
|
|
1152
|
-
partFileUpload: string;
|
|
1153
|
-
token: string;
|
|
1154
|
-
}>;
|
|
1130
|
+
default: () => Promise<{}>;
|
|
1155
1131
|
};
|
|
1156
1132
|
}>> & {
|
|
1157
1133
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -88,15 +88,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
};
|
|
89
89
|
getChunkUploadConfig: {
|
|
90
90
|
type: FunctionConstructor;
|
|
91
|
-
default: () => Promise<{
|
|
92
|
-
checkFileMd5Exist: string;
|
|
93
|
-
fileChannel: string;
|
|
94
|
-
md5: string;
|
|
95
|
-
objectName: string;
|
|
96
|
-
partFileMerge: string;
|
|
97
|
-
partFileUpload: string;
|
|
98
|
-
token: string;
|
|
99
|
-
}>;
|
|
91
|
+
default: () => Promise<{}>;
|
|
100
92
|
};
|
|
101
93
|
}, {
|
|
102
94
|
ScaleViewState: {
|
|
@@ -220,15 +212,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
220
212
|
};
|
|
221
213
|
getChunkUploadConfig: {
|
|
222
214
|
type: FunctionConstructor;
|
|
223
|
-
default: () => Promise<{
|
|
224
|
-
checkFileMd5Exist: string;
|
|
225
|
-
fileChannel: string;
|
|
226
|
-
md5: string;
|
|
227
|
-
objectName: string;
|
|
228
|
-
partFileMerge: string;
|
|
229
|
-
partFileUpload: string;
|
|
230
|
-
token: string;
|
|
231
|
-
}>;
|
|
215
|
+
default: () => Promise<{}>;
|
|
232
216
|
};
|
|
233
217
|
}>> & {
|
|
234
218
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -259,7 +243,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
243
|
width: string;
|
|
260
244
|
height: string;
|
|
261
245
|
transform: string;
|
|
262
|
-
} |
|
|
246
|
+
} | undefined>;
|
|
263
247
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
264
248
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
265
249
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1142,15 +1126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1142
1126
|
};
|
|
1143
1127
|
getChunkUploadConfig: {
|
|
1144
1128
|
type: FunctionConstructor;
|
|
1145
|
-
default: () => Promise<{
|
|
1146
|
-
checkFileMd5Exist: string;
|
|
1147
|
-
fileChannel: string;
|
|
1148
|
-
md5: string;
|
|
1149
|
-
objectName: string;
|
|
1150
|
-
partFileMerge: string;
|
|
1151
|
-
partFileUpload: string;
|
|
1152
|
-
token: string;
|
|
1153
|
-
}>;
|
|
1129
|
+
default: () => Promise<{}>;
|
|
1154
1130
|
};
|
|
1155
1131
|
}>> & {
|
|
1156
1132
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as
|
|
1
|
+
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as n,createElementBlock as l,normalizeClass as s,unref as r,createCommentVNode as u,Fragment as c,createBlock as p,mergeProps as d,createElementVNode as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as S,h as C}from"vue";import h from"./hooks/use-noData.js";import{getScaleViewState as w}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as _}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as A}from"./hooks/scaleview-submit.js";import{handleQueryParams as O,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import D from"./components/NoData.vue.js";import P from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import x from"./components/EvaluateCountdown.vue.js";import B from"./components/EvaluatePage.vue.js";import F from"./components/AnswerParse.vue.js";import I from"./components/ScaleScore.js";import{useDialog as N,useMessage as q,NForm as M,NFormItem as R,NButton as K}from"naive-ui";import V from"../../../_virtual/plugin-vue_export-helper.js";const H=["innerHTML"],U={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y={key:1,class:"footer"};var X=V(e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:V,emit:X}){const G=e,{ScaleViewState:Q}=w(),Z=t(Q),$=N(),z=q(),ee=a(null),te=a(null),{noDataState:ae,setNoData:oe,resetNodata:ie}=h(),ne=O(),{showEvatip:le,isFormBoldOpen:se,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:pe,hasScore:de,isPreviewScale:me,showEvaluateEntry:ve,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:be,propsConfig:ke,evaluatePageProps:Se,evaluateCountdownProps:Ce,skipCover:he,scaleEdit:we}=E(G,Z,{query:ne}),{initForm:Ee}=_(G,Z,X,{query:ne}),{submitMethod:_e}=A(G,Z,X,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:Oe}=L(G,Z);(()=>{let{id:e}=ne;e&&(Z.shareId=e)})();const je=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),Z.spinning=!1,Z.hasFrontAddress=!1,oe(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>G.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&je(e):e.guage_id&&je(e)}),{immediate:!0}),o((()=>G.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;Z.form={},Z.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{Ee(t)}))}),{immediate:!0});const Te=e=>{Z.showEvaluateSettingWrap=!1,Z.showEvaluateCountdown=!!e,X("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),Z.showEvaluateCountdown=!1,me.value||(Z.banSubmit=!0,_e(),$.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{$.warning({title:"提示",content:()=>C("div",{class:"evatip-container"},[C("span","答案解析:"),C("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Pe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||(Z.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;Z.form[t.val_key]=a,Ae(e,t,Z.formArray),Oe(o,t,Z.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(Z.choiceComObj[t.val_key]=o),Ae(e,t,Z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,t,Z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":Z.submitForm[t.val_key]=e}},xe=(e,t)=>{console.log(t),Z.form[t.val_key]=e},Be=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),Z.labelSelectedList=t,{labelStr:a.join(","),labels:o}},Fe=()=>{var e;if(!Z.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=Z.config;if(!t||!Object.keys(t).length&&!ve.value||we.value)return void Ie("确认要结束测评吗?");if("formIframe"==G.openType&&ve.value)return void X("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==Z?void 0:Z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Ie(a)},Ie=e=>{$.warning({title:"温馨提示",content:()=>C("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Ne()},onNegativeClick(){}})},Ne=()=>{var e;null==(e=te.value)||e.validate((e=>{var t;if(e){console.log(e);let a=(null==(t=e[0])?void 0:t[0])||{},o=a.field,i=a.message,n=Z.formArray.find((e=>e.databaseTitle===o));return n&&(o=n.title),z.error(o+i),!1}_e()}))},qe=()=>{X("onCloseSetting")};return V({getScaleData:()=>({...Z}),onSubmit:Fe,cancel:qe}),(e,t)=>(n(),l("div",{class:s(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),Z.spinning||Z.hasFrontAddress?u("v-if",!0):(n(),l(c,{key:0},[r(ae).noData?(n(),p(D,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),l(c,{key:1},[r(ve)&&!r(he)?(n(),p(B,d({key:0},r(Se),{onWriteGuage:Te}),null,16)):(n(),l(c,{key:1},[r(fe)?(n(),p(x,d({key:0,ref_key:"countdownDom",ref:ee},r(Ce),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),m("div",{class:s(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:v(r(re))},[r(de)?(n(),p(r(I),{key:0,config:Z.config,maxScore:Z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(M),{ref_key:"formRef",ref:te,model:Z.form,rules:Z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),l(c,null,y(Z.formArray,((e,t)=>(n(),l(c,{key:(e.id||e.seq)+t},[r(ce)(e)?(n(),p(r(R),{key:0,path:e.val_key,"show-label":!r(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[m("span",{class:s({"scale-label-required":r(se)(e)}),innerHTML:r(pe)(e)},null,10,H),r(se)(e)?(n(),l("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),l("span",W,b(r(ye)(e)),1)):u("v-if",!0),r(le)(e)?(n(),l("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if(Z.evatipMap[e.id])return void De(Z.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=G.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void z.error(`${a} Is not a function`);let i=await o(e.id);i&&(Z.evatipMap[e.id]||(Z.evatipMap[e.id]=i,De(i)))})(e)},[f(r(P),{"icon-class":"a-xitongtubiaotishi"}),k(" 查看提示 ")],8,J)):u("v-if",!0)])),default:g((()=>[(n(),p(S(e.renderCom),d(r(ke)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Pe,onOnChange:t=>((e,t)=>{Z.form[t.val_key]=Be(e)})(t,e),onVodFileList:xe}),null,16,["onOnChange"])),r(be)(e)?(n(),p(F,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),l("div",Y,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==G.sourceType?(n(),p(r(K),{key:0,onClick:qe},{default:g((()=>[k("取消")])),_:1})):u("v-if",!0),G.isLock?u("v-if",!0):(n(),p(r(K),{key:1,onClick:Fe,disabled:Z.banSubmit,type:"primary"},{default:g((()=>[k("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{X as default};
|
|
@@ -5,7 +5,7 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
|
|
|
5
5
|
width: string;
|
|
6
6
|
height: string;
|
|
7
7
|
transform: string;
|
|
8
|
-
} |
|
|
8
|
+
} | undefined>;
|
|
9
9
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
10
10
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
11
11
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"xe-utils";import n from"moment";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!a.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=n(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=n(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return
|
|
1
|
+
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"xe-utils";import n from"moment";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!a.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=n(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=n(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),w=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),y=e((()=>e=>X(e))),E=e((()=>e=>{var a;const{type:n}=e||{},i=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return i;return`${i} <span style="color:#2d7aff;" class="score-i">${H(e)}</span>`})),L=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),O=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),b=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!O.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),A=e((()=>!O.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>{var e;return 1==s.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),U=e((()=>1==l.isFinished&&_.value)),F=e((()=>T.value||R.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||_.value):!o.noBtn&&!o.hideBtn)),P=e((()=>T.value||R.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!_.value:!!o.hideBtn||!!o.isLock)),j=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选题",EVALUATE_CHECKBOX_BLOCK:"多选题"}[e.type]))),D=e((()=>e=>{var t;if(U.value)return!1;const{evaluateAnswer:i,checkAnswerMode:o,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=i&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||o&&1==o)return v;if(!a.isValidDate(new Date(r)))return v;const c=n(r).add(s,"minutes").diff(n(),"seconds",!0);return v&&c<=0})),V=e((()=>"customList"===o.type?"保存":"提交")),N=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),x=e((()=>({getCascadeOptions:o.getCascadeOptions}))),$=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),K=e((()=>({ak:o.ak}))),I=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),M=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),q={RSelectCom:N.value,RCascaderCom:x.value,RUploadCom:$.value,RMapCom:K.value,RVodChunkUploadCom:I.value,CSelectLabelCom:M.value},J=e((()=>(e,t)=>{var a;const n=i[e.type],o=q[n]||{},r={form:l.form,item:e,index:t,isLock:P.value,...o};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),X=(e,t)=>{if(e.hide)return!1;const{form:n={},formArray:i=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&a.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=a.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=a.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=o;if(r){const t=s.map((e=>{const t=i.filter((t=>t.seq==e.subject_seq))[0],o=z(t);return a.isArray(n[o])?n[o].some((t=>e.value.includes(t))):e.value.includes(n[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},z=e=>e.databaseTitle||e.title,H=e=>{const{minScore:t=0,maxScore:a=0,scoreType:n}=e.scoreConfigs||{};return`(${a}分)`},Q=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore}})),W=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown}}));return{showEvatip:c,isFormBoldOpen:C,scaleStyle:S,handlePageClass:w,isShowItem:y,handleShowQuestionNumber:E,hasScore:L,isPreviewScale:O,showEvaluateEntry:B,showEvaluateCoundownPage:A,hasEvaluateResultSetting:T,hasparamsEvaluate:k,hasDefault:R,showSaveBtn:F,componentDisable:P,showEvaluateLabel:j,showAnswerParse:D,tipMsg:V,propsConfig:J,showEvent:X,formKey:z,evaluatePageProps:Q,evaluateCountdownProps:W,skipCover:b,scaleEdit:U}};export{o as ScaleViewComputed};
|
|
@@ -132,6 +132,15 @@ export declare type IClassifyListType = {
|
|
|
132
132
|
createdByName?: string;
|
|
133
133
|
from?: string;
|
|
134
134
|
};
|
|
135
|
+
export declare type IClassifyItemType = {
|
|
136
|
+
name: string;
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
};
|
|
139
|
+
export declare type IClassifyOutSaveType = {
|
|
140
|
+
id: string;
|
|
141
|
+
tableId: string;
|
|
142
|
+
[key: string]: string;
|
|
143
|
+
};
|
|
135
144
|
export declare type ISearchConfigType = {
|
|
136
145
|
con: string;
|
|
137
146
|
field_key: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.42-beta.
|
|
3
|
+
"version": "3.1.42-beta.34",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "bec17a7b25bf45f21d5503db002f1737a6bfacd1"
|
|
65
65
|
}
|