cnhis-design-vue 3.1.48-beta.0 → 3.1.48-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/tooltipPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/tooltipPlugin.js +1 -0
- package/es/components/index.css +1 -1
- package/es/components/scale-view/index.d.ts +68 -18
- package/es/components/scale-view/src/ScaleView.vue.d.ts +68 -18
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +53 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +5 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.d.ts +8 -0
- package/es/components/scale-view/src/hooks/scaleview-methods.js +1 -0
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +102 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -0
- package/es/components/scale-view/src/hooks/scaleview-state.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -1
- package/es/components/scale-view/src/utils/judge-types.d.ts +8 -0
- 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/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
- package/es/shared/utils/tapableLess.d.ts +0 -28
- package/es/shared/utils/tapableLess.js +0 -1
|
@@ -30,6 +30,7 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
|
|
|
30
30
|
evaluateResultSetting: any;
|
|
31
31
|
isFinished: any;
|
|
32
32
|
maxScore: any;
|
|
33
|
+
skipCover: any;
|
|
33
34
|
}>;
|
|
34
35
|
evaluateCountdownProps: import("vue").ComputedRef<{
|
|
35
36
|
formArray: any;
|
|
@@ -39,7 +40,11 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
|
|
|
39
40
|
isFinished: any;
|
|
40
41
|
currentTime: any;
|
|
41
42
|
showEvaluateCountdown: any;
|
|
43
|
+
isEvaluetaResSituation: any;
|
|
44
|
+
evaResultObj: any;
|
|
42
45
|
}>;
|
|
43
46
|
skipCover: import("vue").ComputedRef<any>;
|
|
44
47
|
scaleEdit: import("vue").ComputedRef<boolean>;
|
|
48
|
+
isEvaluetaResSituation: import("vue").ComputedRef<any>;
|
|
49
|
+
disableEdit: import("vue").ComputedRef<any>;
|
|
45
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import"xe-utils";import a from"moment";import
|
|
1
|
+
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import"xe-utils";import a from"moment";import i from"../../../../shared/utils/vexutilsExpand.js";import{componentMapStr as n}from"./use-component.js";const o=(o,l,s)=>{const{query:r}=s,u=(new Date).getTime(),v=e((()=>1==(null==r?void 0:r.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==r?void 0:r.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!!i.isValidDate(e)&&e})),g=e((()=>{const{evaluetaResSituation:e}=d.value||{};return e})),h=e((()=>{const{evaluateZeroTip:e}=d.value||{};return e})),C=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=a(p.value).add(m.value,"minutes").valueOf();return u>=e})),S=e((()=>{const e=f.value;if(!e)return!1;const t=a(e).valueOf();return u<t})),E=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})),w=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})`}})),O=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),y=e((()=>e=>Q(e))),L=e((()=>e=>{var a;const{type:i}=e||{},n=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(i))return n;const o=Z(e);return o||h.value?`${n} <span style="color:#2d7aff;" class="score-i">${o}</span>`:n})),b=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),R=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),A=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!S.value&&!C.value})),k=e((()=>R.value||l.isFinished||o.noBtn||o.hideBtn)),B=e((()=>l.showEvaluatePage&&l.showEvaluateSettingWrap&&!k.value&&!A.value)),T=e((()=>!b.value&&!B.value&&l.showEvaluateCountdownWrap&&!k.value)),_=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),U=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),j=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),F=e((()=>{var e;return 1==r.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),P=e((()=>1==l.isFinished&&F.value)),D=e((()=>_.value||j.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||F.value):!o.noBtn&&!o.hideBtn)),x=e((()=>_.value||j.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!F.value:!!o.hideBtn||!!o.isLock)),V=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选",EVALUATE_CHECKBOX_BLOCK:"多选"}[e.type]))),N=e((()=>e=>{var t;if(P.value)return!1;const{evaluateAnswer:n,checkAnswerMode:o,evaluateStartTime:s,evaluateTime:r}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=n&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!s||!r||o&&1==o)return v;if(!i.isValidDate(new Date(s)))return v;const c=a(s).add(r,"minutes").diff(a(),"seconds",!0);return v&&c<=0})),$=e((()=>"customList"===o.type?"保存":"提交")),K=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),I=e((()=>({getCascadeOptions:o.getCascadeOptions}))),M=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),q=e((()=>({ak:o.ak}))),J=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),z=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),X={RSelectCom:K.value,RCascaderCom:I.value,RUploadCom:M.value,RMapCom:q.value,RVodChunkUploadCom:J.value,CSelectLabelCom:z.value},H=e((()=>(e,t)=>{var a;const i=n[e.type],o=X[i]||{},s={form:l.form,item:e,index:t,isLock:x.value,...o};return"RVodChunkUploadCom"===i&&Object.assign(s,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===i&&Object.assign(s,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===i&&(delete s.form,delete s.index),s})),Q=(e,t)=>{if(e.hide)return!1;const{form:a={},formArray:n=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&i.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=i.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=i.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:s,condition:r,relation_logic:u}=o;if(s){const t=r.map((e=>{const t=n.filter((t=>t.seq==e.subject_seq))[0],o=W(t);return i.isArray(a[o])?a[o].some((t=>e.value.includes(t))):e.value.includes(a[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},W=e=>e.databaseTitle||e.title,Z=e=>{const{maxScore:t=0}=e.scoreConfigs||{};if(t||h.value)return`(${t}分)`},G=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,skipCover:A.value}})),Y=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,isEvaluetaResSituation:g.value,evaResultObj:l.evaResultObj}}));return{showEvatip:c,isFormBoldOpen:E,scaleStyle:w,handlePageClass:O,isShowItem:y,handleShowQuestionNumber:L,hasScore:b,isPreviewScale:R,showEvaluateEntry:B,showEvaluateCoundownPage:T,hasEvaluateResultSetting:_,hasparamsEvaluate:U,hasDefault:j,showSaveBtn:D,componentDisable:x,showEvaluateLabel:V,showAnswerParse:N,tipMsg:$,propsConfig:H,showEvent:Q,formKey:W,evaluatePageProps:G,evaluateCountdownProps:Y,skipCover:A,scaleEdit:P,isEvaluetaResSituation:g,disableEdit:k}};export{o as ScaleViewComputed};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{handleQueryParams as e,getQueryVariable as t}from"../utils/judge-types.js";import
|
|
1
|
+
import{handleQueryParams as e,getQueryVariable as t,formatMap as a}from"../utils/judge-types.js";import i from"./use-noData.js";import"xe-utils";import n from"moment";import s from"../../../../shared/utils/vexutilsExpand.js";import{componentMap as l}from"./use-component.js";import{useEvent as r}from"./use-event.js";import{ScaleViewComputed as o}from"./scaleview-computed.js";import{ScaleViewValidate as u}from"./scaleview-validate.js";import{useDialog as v}from"naive-ui";const c=(c,f,d,p)=>{const m=n(),g=v(),{setNoData:S}=i(),{hasEvaluateResultSetting:E,hasparamsEvaluate:y,hasDefault:C,formKey:O}=o(c,f,p),{formatRules:A}=u(c,f,p),{nextLogicEvent:R}=r(c,f),h=e=>{const t=null==e?void 0:e.evaluateStartTime;t&&!s.isValidDate(new Date(t))&&s.isValidDate(new Date(Number(t)))&&(e.evaluateStartTime=Number(t))},L=()=>{var t;if(!E.value)return!!C.value&&("evaluateResultSetting"in f.config||(f.config.evaluateResultSetting={}),(t=>{let a=e();if(y.value&&(a=f.paramsEvaluate),a.evaname&&(t.evaluateName=a.evaname),a.evadesc&&(t.evaluateExplain=a.evadesc),a.evast&&(t.evaluateStartTime=a.evast),a.evadur&&(t.evaluateTime=a.evadur),a.evaan){const e="true"===a.evaan||1==a.evaan;t.evaluateAnswer=e}if(a.evasit&&(t.evaluetaResSituation=!!a.evasit),a.evaztip){const e=1==a.evaan;t.evaluateZeroTip=e}h(t)})(f.config.evaluateResultSetting),f.showEvaluatePage=!0,void(f.showEvaluateCountdownWrap=!0));const{evaluateResultSetting:a={}}=f.config;if(!a||!Object.keys(a).length)return;f.showEvaluateCountdownWrap=!0;const{evaluateStartTime:i}=a,{evaluateName:n}=(null==(t=f.originConfig)?void 0:t.evaluateResultSetting)||{};if(i)return!(!s.isValidDate(new Date(i))&&!n)&&void(f.showEvaluatePage=!0);f.showEvaluatePage=!0},T=(e,t)=>{const a=e.find((e=>t===e.value));return a?a.key:t},N=(e,t)=>{if(["RADIO_BLOCK","CHECKBOX_BLOCK"].includes(t)&&e&&(e&&s.isJSON(e)&&(e=JSON.parse(e)),e.length))return!0},b=t=>{var a,i;if(!t||!t.length)return;const n=e();if((null==c?void 0:c.noBtn)||(null==n?void 0:n.noBtn))return;const l=t.find((e=>"FRONT_ADDRESS"===e.type));if(!l||!Object.keys(l).length)return;let r;if(l.setting&&s.isJSON(l.setting)&&(r=JSON.parse(l.setting)),!r||!Object.keys(r).length)return;if(1==(null==n?void 0:n.redirect)||1==(null==(a=c.params)?void 0:a.redirect)||3==n.isEdit||3==(null==(i=c.params)?void 0:i.isEdit))return;const{frontAddress:o}=r;if(o){const e=window.location.href;let t="?";o.includes("?")&&(t="&");return`${o}${t}redirect_url=${encodeURIComponent(e)}`}},D=e=>{const t=["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"],a={};for(const i in e){const n=e[i];t.includes(i)&&n&&(a[i]=n)}return a},w=t=>{if(!t||!Object.keys(t).length)return;let a=e()||{};y.value&&(a=f.paramsEvaluate);const i={evaluateName:"evaname",evaluateExplain:"evadesc",evaluateStartTime:"evast",evaluateTime:"evadur",evaluateAnswer:"evaan",evaluetaResSituation:"evasit",evaluateZeroTip:"evaztip"},n=["evaluateAnswer","evaluetaResSituation","evaluateZeroTip"];for(const e in t){const s=t[e];if(s&&"evaluateAnswer"!=e&&"string"==typeof s&&s.includes("${")&&"string"==typeof s){const i=s.replace(/\$\{([^}]+)\}/g,((e,t)=>{let i;return t.startsWith("form.")&&(i=a[t.split(".")[1]]),i||""}));t[e]=i}else{let s=a[i[e]];n.includes(e)&&(s="true"===s||1==s),a[i[e]]&&(t[e]=s)}}if(C.value){const e={evaname:"evaluateName",evadesc:"evaluateExplain",evast:"evaluateStartTime",evadur:"evaluateTime",evaan:"evaluateAnswer",evasit:"evaluetaResSituation",evaztip:"evaluateZeroTip"},i=["evaan","evasit","evaztip"];["evaname","evadesc","evast","evadur","evaan","evasit","evaztip"].forEach((n=>{const s=e[n];if(!t[s]){let e=a[n];i.includes(n)&&(e="true"===e||1==e),a[n]&&(t[s]=e)}}))}h(t)},k=e=>{let t=1;return e.map((a=>{const i=O(a);(i||"").replace(/\n/g,""),a.showTitle=a.title,a.val_key=i,a.renderCom=l[a.type],a.isShow=!0,Object.keys(a).forEach((e=>{s.isJSON(a[e])&&"LOCATION"!=a.type&&(a[e]=JSON.parse(a[e]))}));var n;return["LINEBAR","TITLE","PROMPT","IMGCARD","RICH_TEXT"].indexOf(a.type)<0&&!a.hide&&(a.softcode=t++),("SELECT"==(n=a.type)||"RADIO_BLOCK"==n||"CHECKBOX_BLOCK"==n||"SEARCH_CASCADE"==n||"EVALUATE_RADIO_BLOCK"==n||"EVALUATE_CHECKBOX_BLOCK"==n||"EVALUATE_SELECT"==n)&&(((e,t)=>{N(e,t)&&e.forEach(((e,t)=>{"other"!==e.key&&(e.key=t+1),(e.prefix||e.suffix)&&(e.value=e.prefix||e.suffix)}))})(a.options,a.type),"SEARCH_CASCADE"!=a.type&&(a.dbValue?R(a.dbValue,a,e):a.setting.defaultValue&&R(a.setting.defaultValue,a,e))),a})).map((t=>(((e,t)=>{const a=s.isString(t.relationLogic)?JSON.parse(t.relationLogic):t.relationLogic,{condition:i}=a||{};i&&i.length&&(i.forEach((t=>{const a=e.find((e=>e.seq==t.subject_seq));if(!a)return;if(!N(a.options,a.type))return;let i=t.value;Array.isArray(i)?(i=i.map((e=>T(a.options,e))),t.value=i):t.value=T(a.options,i)})),t.relationLogic=a)})(e,t),(e=>{const{nextLogic:t,options:a,type:i}=e||{};if(!t||!N(a,i))return;const{condition:n}=t||{};n&&n.length&&n.forEach((e=>{let t=e.value;Array.isArray(t)?(t=t.map((e=>T(a,e))),e.value=t):e.value=T(a,t)}))})(t),"CHECKBOX_BLOCK"===t.type&&t.dbValue&&!Array.isArray(t.dbValue)&&"customList"===c.type&&(t.dbValue=t.dbValue.split(",").filter((e=>!!e))),t)))},_=e=>{const i={};let n;return e.forEach((e=>{var l,r,o,u;const v=e.val_key,{type:d}=e;let p;if(e.dbValue)p=e.dbValue;else{const{defValType:i,dateType:n}=e.setting||{};if(3==i){const a=null==(r=null==(l=e.setting)?void 0:l.outDefaultValue)?void 0:r.urlKey;if(a){const i=a.split(",");if(i.length>1){const e=i.map((e=>{const a=t(e,f,c.params);return a?decodeURIComponent(a):null})).filter(Boolean);e.length&&(p=e)}else{let a=t(i[0],f,c.params);a&&(a=decodeURIComponent(a),p="CHECKBOX_BLOCK"==e.type?a.split():a)}}}if("DATETIME"===d&&4==i){const e=(null==(o=a[n])?void 0:o.replace("-dd","-DD"))||"yyyy-MM-DD HH:mm:ss";p=m.format(e)}}switch(d){case"LOCATION":i[v]=p||"";break;case"SEARCH_CASCADE":case"UPFILE":case"UPPICTURE":i[v]=p||[];break;case"ADDRESS":i[v]=p||"",f.defaultAddress=p||{};break;case"LABEL":i[v]=p||{},s.isObject(p)?f.labelSelectedList=(null==p?void 0:p.labels)||[]:Array.isArray(p)?f.labelSelectedList=p:f.labelSelectedList=[];break;case"TITLE":i[v]=e.title;break;case"IMGCARD":i[v]=(null==(u=e.setting)?void 0:u.imgUrl)||"";break;case"CHECKBOX_BLOCK":p&&!Array.isArray(p)&&"customList"===c.type?i[v]=p.split(",").filter((e=>!!e)):(n=p||e.setting.defaultValue,s.isJSON(n)&&(n=JSON.parse(n)),i[v]=n);break;default:n=p||e.setting.defaultValue,s.isJSON(n)&&(n=JSON.parse(n)),i[v]=n}})),i};return{initForm:e=>{var t;let{list:a=[],map:i={},isFinished:n=!1}=e;const l=b(a);if(l)return void(window.location.href=l);if(i.maxScore&&(f.maxScore=i.maxScore),f.isFinished=n,e.isNotFilled)return f.spinning=!1,f.hasFrontAddress=!1,void S(!0,"未查询到量表填写记录");if(e.isLackCustomer&&g.info({title:"已设置填写次数限制",content:"请在包含用户信息的环境中打开此量表",maskClosable:!1,onPositiveClick(){d("onCloseSetting")}}),f.config=i,"evaluateResultConfig"in i&&s.isJSON(i.evaluateResultConfig)&&(f.config.evaluateResultConfig=JSON.parse(i.evaluateResultConfig)),"evaluateResultSetting"in i&&s.isJSON(i.evaluateResultSetting)&&(f.config.evaluateResultSetting=JSON.parse(i.evaluateResultSetting),(null==(t=f.config)?void 0:t.randomId)&&f.config.evaluateResultSetting&&(f.config.evaluateResultSetting.evaluateName=f.config.name,f.config.evaluateResultSetting.evaluateExplain=f.config.remark)),f.originConfig=JSON.parse(JSON.stringify(f.config)),c.params&&Object.keys(c.params).length){const e=D(c.params);e&&Object.keys(e).length&&(f.paramsEvaluate=e)}w(f.config.evaluateResultSetting),L(),f.defaultFormArray=JSON.parse(JSON.stringify(a));const r=f.filterArr;a=a.filter((e=>!r.includes(e.type))),f.formArray=k(a||[]),f.form=_(f.formArray),f.rules=A(f.formArray),f.fontSize=e.fontSize,f.spinning=!1,f.hasFrontAddress=!1}}};export{c as ScaleViewInit};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ScaleViewMethods: (props: any, state: any, emit: any, config: any) => {
|
|
2
|
+
scaleChange: (val: any, item: any, config?: any) => void;
|
|
3
|
+
labelChange: (labelList: any, item: any) => void;
|
|
4
|
+
vodFileList: (list: any, item: any) => void;
|
|
5
|
+
writeGuage: (showCountdown: boolean) => void;
|
|
6
|
+
closeEvaluateCountdown: () => void;
|
|
7
|
+
showEvaTipModal: (item: any) => Promise<void>;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"vue";import{useDialog as a,useMessage as t}from"naive-ui";const i=(i,o,n,s)=>{const l=a(),r=t(),{nextLogicEvent:c,handleDynamicDataRelation:u,isPreviewScale:v,submitMethod:E,isEvaluetaResSituation:p,handleScoreJson:d,disableEdit:f}=s,C=a=>{l.warning({title:"提示",content:()=>e("div",{class:"evatip-container"},[e("span","答案解析:"),e("p",a)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})};return{scaleChange:(e,a,t)=>{const{choiceObj:n,isSetObj:s}=t||{};switch(a.type.includes("SELECT")||(o.form[a.val_key]=e),a.type){case"SELECT":case"EVALUATE_SELECT":{const{value:t,list:i=[]}=e;o.form[a.val_key]=t,c(e,a,o.formArray),u(i,a,o.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":s&&(o.choiceComObj[a.val_key]=n),c(e,a,o.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":c(e,a,o.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":o.submitForm[a.val_key]=e}!f.value&&p.value&&a.type.includes("EVALUATE_")&&(async()=>{var e;const a=null==(e=i.scaleApiConfig)?void 0:e.getEvaluateResult;if(!a||"function"!=typeof a)return void r.error("getEvaluateResult Is not a function");const{guageId:t}=o.config;if(!t)return;const n=d(),s={gaugeId:t,scoreJson:JSON.stringify(n)},l=await a(s);if(!l)return;const c={...l};delete c.itemScoreMap,o.evaResultObj=c})()},labelChange:(e,a)=>{o.form[a.val_key]=(e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const a=e||[],t=[],i=[];return a.forEach((e=>{i.push(e),t.push(e.labelName)})),o.labelSelectedList=a,{labelStr:t.join(","),labels:i}})(e)},vodFileList:(e,a)=>{o.form[a.val_key]=e},writeGuage:e=>{o.showEvaluateSettingWrap=!1,o.showEvaluateCountdown=!!e,n("startWriteScale")},closeEvaluateCountdown:()=>{o.showEvaluateCountdown=!1,v.value||(o.banSubmit=!0,E(),l.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},showEvaTipModal:async e=>{var a;if(o.evatipMap[e.id])return void C(o.evatipMap[e.id]);const t="getSubjectAnswer",n=(null==(a=i.scaleApiConfig)?void 0:a[t])||null;if(!n||"function"!=typeof n)return void r.error(`${t} Is not a function`);const s=await n(e.id);s&&(o.evatipMap[e.id]||(o.evatipMap[e.id]=s,C(s)))}}};export{i as ScaleViewMethods};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const ScaleViewProps: {
|
|
2
|
+
guageData: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
styleSetting: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
ids: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
guage_id: string;
|
|
14
|
+
db_id: undefined;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
params: {
|
|
18
|
+
default: () => {};
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
};
|
|
21
|
+
noBtn: {
|
|
22
|
+
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
hideBtn: {
|
|
26
|
+
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
isLock: {
|
|
30
|
+
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
type: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
openType: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
scaleApiConfig: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
getSelectOptions: {
|
|
46
|
+
type: FunctionConstructor;
|
|
47
|
+
default: () => Promise<never[]>;
|
|
48
|
+
};
|
|
49
|
+
getSearchOptions: {
|
|
50
|
+
type: FunctionConstructor;
|
|
51
|
+
default: () => Promise<never[]>;
|
|
52
|
+
};
|
|
53
|
+
getCascadeOptions: {
|
|
54
|
+
type: FunctionConstructor;
|
|
55
|
+
default: () => Promise<never[]>;
|
|
56
|
+
};
|
|
57
|
+
getLabelList: {
|
|
58
|
+
type: FunctionConstructor;
|
|
59
|
+
default: () => Promise<never[]>;
|
|
60
|
+
};
|
|
61
|
+
deleteLabel: {
|
|
62
|
+
type: FunctionConstructor;
|
|
63
|
+
default: () => Promise<{
|
|
64
|
+
status: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
};
|
|
67
|
+
saveLabelItem: {
|
|
68
|
+
type: FunctionConstructor;
|
|
69
|
+
default: () => Promise<{
|
|
70
|
+
status: boolean;
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
uploadPictureUrl: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
uploadFileUrl: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
ak: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
sourceType: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
getChunkUploadConfig: {
|
|
90
|
+
type: FunctionConstructor;
|
|
91
|
+
default: () => Promise<{}>;
|
|
92
|
+
};
|
|
93
|
+
fontSizeObj: {
|
|
94
|
+
type: ObjectConstructor;
|
|
95
|
+
default: () => {
|
|
96
|
+
large: number;
|
|
97
|
+
medium: number;
|
|
98
|
+
small: number;
|
|
99
|
+
extrasmall: number;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={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({})},fontSizeObj:{type:Object,default:()=>({large:1.25,medium:1.1,small:1,extrasmall:.9})}};export{e as ScaleViewProps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import a from"moment";const
|
|
1
|
+
import a from"moment";const e=()=>({ScaleViewState:{other:"",form:{},submitForm:{},rules:{},config:{},formArray:[],mapVisible:!1,mapLocation:"",labelSelectedList:[],defaultFormArray:[],fontSize:"",filterArr:["SUCCESS_TIP","CALLBACK_INTERFACE","SPREAD_PARAMS","REDIRECT","FRONT_ADDRESS","RETURN_PATH"],spinning:!1,indicator:"",totalScore:void 0,shareId:"",currentTime:a(),showEvaluatePage:!1,showEvaluateSettingWrap:!0,showEvaluateCountdownWrap:!1,showEvaluateCountdown:!1,banSubmit:!1,isFinished:!1,maxScore:0,originConfig:{},paramsEvaluate:null,hasFrontAddress:!0,choiceComObj:{},evatipMap:{},evaResultObj:{}}});export{e as getScaleViewState};
|
|
@@ -4,4 +4,8 @@ export declare const ScaleViewSubmit: (props: any, state: any, emit: any, config
|
|
|
4
4
|
hasCallbackItem: any;
|
|
5
5
|
isCallback: boolean;
|
|
6
6
|
};
|
|
7
|
+
confirmSubmit: (message: any) => void;
|
|
8
|
+
onSubmitForm: () => Promise<unknown>;
|
|
9
|
+
onSubmitData: () => void;
|
|
10
|
+
handleScoreJson: () => {};
|
|
7
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as t}from"vue";import{isSortItem as e,isOnlyOptions as i,isEvaluation as o,getQueryVariable as n}from"../utils/judge-types.js";import"xe-utils";import s from"moment";import r from"../../../../shared/utils/vexutilsExpand.js";import{ScaleViewComputed as a}from"./scaleview-computed.js";import{useDialog as l,useMessage as u}from"naive-ui";const f=(f,d,m,p)=>{const c=l(),v=u(),{formRef:g,countdownDom:y}=p,{showEvent:C,formKey:h,showEvaluateEntry:b,scaleEdit:O,showEvaluateCoundownPage:A,skipCover:S}=a(f,d,p),T=()=>{const t=d.defaultFormArray.find((t=>"SPREAD_PARAMS"===t.type));if(t){r.isJSON(t.setting)&&(t.setting=JSON.parse(t.setting));const e=h(t);d.submitForm[e]=t.setting.spreadParams.domains.map((t=>{const e={};return"1"==t.valueType?e[t.name]=t.value:"2"==t.valueType&&(e[t.name]=n(t.value,d,f.params)),e}))}const e=d.defaultFormArray.find((t=>"CHECKBOX_BLOCK"==t.type));e&&Array.isArray(d.form[e.title])&&"customList"===f.type&&(d.form[e.title]=d.form[e.title].join(","));const i=x();let o;if("customList"===f.type)o={definedListId:f.ids.guage_id,dbId:f.ids.db_id,scoreJson:JSON.stringify(i)};else{const{guageId:t,randomId:e}=d.config;o=Object.assign(f.params,{guageId:t,scoreJson:JSON.stringify(i),randomId:e})}d.shareId&&(o.shareId=d.shareId);const s=d.defaultFormArray.find((t=>"SUCCESS_TIP"===t.type));if(s){const t=r.isJSON(s.setting)?JSON.parse(s.setting):s.setting;o.tipSetting=JSON.stringify({tipMode:t.tipMode,tipType:t.tipType,tipText:t.tipText,tipApi:t.tipApi})}const a=d.defaultFormArray.find((t=>"CALLBACK_INTERFACE"===t.type));let l=!1;a&&(l=C(a,!0));return{params:o,hasCallbackItem:a,isCallback:l}},E=(t,e)=>{if(!e.length)return e;const{type:o,options:n,scoreConfigs:s}=t;let r=n;if("EVALUATE_CHECKBOX_BLOCK"===o&&(r=(null==s?void 0:s.scoreRules)||[]),!r.length)return e;const a=i(o)?"key":"value",l=[];return r.forEach((t=>{const i=t[a];e.includes(i)&&l.push(i)})),l},x=()=>{const t=Object.assign({},d.form,d.submitForm),o={};if(!Object.keys(t).length)return{};for(const n in t){const r=d.formArray.find((t=>h(t)==n));if(n&&r){let a=n,l=t[n]?t[n]:null;if(r&&r.databaseTitle&&(a=r.databaseTitle),"customList"==f.type&&r&&r.setting&&1!=r.setting.startToStop&&t[n]&&"DATETIME"==r.type&&(r.setting&&"time"==r.setting.dateType&&t[n]&&(t[n]=s().format("YYYY-MM-DD ")+t[n]),r.setting&&"date"==r.setting.dateType&&t[n]&&(t[n]=s(t[n]).format("YYYY-MM-DD ")+s().format("HH:mm:ss"))),e(r)&&l&&(l=E(r,l),l=(null==l?void 0:l.length)?l:null),i(r.type)&&l){const{options:t}=r,e=r.val_key,i=d.choiceComObj[e];if("RADIO_BLOCK"===r.type&&l&&(l=I(l,t,i)),"CHECKBOX_BLOCK"===r.type&&(null==l?void 0:l.length)){l=w(l,t,i)}}o[a]=l}else o[n]=t[n]}return o},w=(t,e,i)=>{const o=[];let n,s=0;for(;s<t.length;s++){n=t[s];const r=e.find(((t,e)=>e+1===n));if(r&&!r.prefix&&!r.suffix){o.push(r.value);continue}const a=I(n,e,i);o.push(a)}return o},I=(t,e,i)=>{const{othersText:o,optionsPreSuffixObj:n={}}=i||{};if("other"===t)return o||"其他";const s=e.find(((e,i)=>i+1===t));if(!s)return;if(!s.prefix&&!s.suffix)return s.value;let r=n[t]||"";return s.prefix?r=s.prefix+r:r+=s.suffix,r},j=()=>new Promise((t=>{var e;null==(e=g.value)||e.validate((e=>{var i;if(e){console.log(e);const o=(null==(i=e[0])?void 0:i[0])||{};let n=o.field;const s=o.message,r=d.formArray.find((t=>t.databaseTitle===n));return r&&(n=r.title),v.error(n+s),t(!1),!1}{const e=T();t(e)}}))})),L=e=>{c.warning({title:"温馨提示",content:()=>t("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const t=await j();m("onSubmit",t)},onNegativeClick(){}})};return{submitMethod:T,confirmSubmit:L,onSubmitForm:j,onSubmitData:()=>{var t;if(!d.formArray.find((t=>o(t.type))))return void L("确认要提交吗?");const{evaluateResultSetting:e}=d.config;if(!e||!Object.keys(e).length&&!b.value||O.value)return void L("确认要结束测评吗?");if("formIframe"==f.openType&&b.value)return void m("submitNoRequest");let i="确定要提前结束测评吗?";if(A.value&&(null==(t=y.value)?void 0:t.getCountdownObj)){const t=y.value.getCountdownObj(),{setAnswered:e,totalLen:o}=t;e<o?i="存在未作答的题目,确定要提前结束测评吗?":!(null==d?void 0:d.showEvaluateCountdown)&&(i="确认要结束测评吗?")}S.value&&!(null==d?void 0:d.showEvaluateCountdown)&&(i="确认要结束测评吗?"),L(i)},handleScoreJson:x}};export{f as ScaleViewSubmit};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export declare const isOnlyOptions: (e: string) => boolean;
|
|
2
|
+
export declare const isSortItem: (item: any) => boolean;
|
|
2
3
|
export declare const isCollection: (e: string) => boolean;
|
|
3
4
|
export declare const isEvaluation: (e: string) => boolean;
|
|
4
5
|
export declare const handleQueryParams: () => {};
|
|
5
6
|
export declare const getQueryVariable: (variable: any, state: any, params: any) => any;
|
|
7
|
+
export declare const formatMap: {
|
|
8
|
+
datetime: string;
|
|
9
|
+
date: string;
|
|
10
|
+
time: string;
|
|
11
|
+
hour: string;
|
|
12
|
+
datehour: string;
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=e=>["RADIO_BLOCK","CHECKBOX_BLOCK"].includes(e),
|
|
1
|
+
const e=e=>["RADIO_BLOCK","CHECKBOX_BLOCK"].includes(e),t=e=>{const{type:t,targetSource:o}=e;return!!["CHECKBOX_BLOCK","EVALUATE_CHECKBOX_BLOCK"].includes(t)||"SELECT"===t&&!(null==o?void 0:o.target_id)},o=e=>["TITLE","LINEBAR","PROMPT","IMGCARD","RICH_TEXT"].includes(e),n=e=>["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e),r=()=>{var e,t;const o={};let n=(null==(e=window.location.search.split("?"))?void 0:e[1])||(null==(t=window.location.hash.split("?"))?void 0:t[1]);if(!n)return{};n=n.replace(/\+/g,"%20");for(const[e,t]of new URLSearchParams(n).entries())o[e]=decodeURIComponent(t);return o},d=(e,t,o)=>{let n={};return n="layout"==t.source?o:r()||{},n&&n[e]||!1},E={datetime:"yyyy-MM-dd HH:mm:ss",date:"yyyy-MM-dd",time:"HH:mm:ss",hour:"HH:mm",datehour:"yyyy-MM-dd HH:mm"};export{E as formatMap,d as getQueryVariable,r as handleQueryParams,o as isCollection,n as isEvaluation,e as isOnlyOptions,t as isSortItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:scale-view-iconfont;src:url(scale-view-iconfont.ttf?t=1682489008262) format("truetype")}.scale-view-iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:scale-view-iconfont!important;font-size:14px;font-style:normal}.icon-scale-view-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-scale-view-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-scale-view-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-scale-view-shijian:before{content:"\e8c5"}.icon-scale-view-qianming:before{content:"\e6ca"}.icon-scale-view-cuo:before{content:"\e6e5"}.icon-scale-view-dui:before{content:"\e7c8"}.icon-scale-view-dengpao:before{content:"\e719"}.c-scale-view-block .c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-scale-view-block .c-choice-wrap .c-choice-radio-div{align-items:center;display:flex;flex-wrap:wrap}.c-scale-view-block .c-choice-wrap .n-radio-input{height:14px;width:14px}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-scale-view-block .c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-scale-view-block .c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-scale-view-block .c-choice-wrap .choose-other{flex:1}.c-scale-view-block .c-choice-wrap .other-span{word-break:break-all}.c-scale-view-block .c-choice-wrap.choice-wrap-1 .c-choice-radio-div{width:100%}.c-scale-view-block .c-choice-wrap.choice-wrap-1 .c-choice-radio-div .n-input{max-width:300px}.c-scale-view-block .c-choice-wrap.choice-wrap-2 .c-choice-radio-div{width:50%}.c-scale-view-block .c-choice-wrap.choice-wrap-3 .c-choice-radio-div{width:33%}.c-scale-view-block .c-choice-wrap.choice-wrap-4 .c-choice-radio-div{width:25%}.c-scale-view-block .c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-scale-view-block .c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-scale-view-block .c-choice-wrap .n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-scale-view-block .c-choice-wrap .n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-scale-view-block{box-sizing:border-box;color:rgba(0,0,0,.65);height:100%;overflow:hidden;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale-view-block-hasfooter{padding-bottom:50px}.c-scale-view-block .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;transform-origin:0 0;width:100%}.c-scale-view-block .scale-container.scale-container-nopadding{display:flex;flex-direction:column;height:100%}.c-scale-view-block .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale-view-block .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale-view-block .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale-view-block .lb-title{text-align:center}.c-scale-view-block .map-container{cursor:pointer}.c-scale-view-block .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale-view-block .linebar-div .n-divider{margin-top:4px}.c-scale-view-block .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale-view-block .img-card{width:100%}.c-scale-view-block .main{box-sizing:border-box}.c-scale-view-block .main .scale-label-required{font-weight:700}.c-scale-view-block .main .required-text{color:#e02828;font-weight:700}.c-scale-view-block .main .score-i{word-break:keep-all}.c-scale-view-block .main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.c-scale-view-block .main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.c-scale-view-block .footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;bottom:0;box-sizing:border-box;display:flex;flex-basis:50px;height:50px;left:0;position:absolute;width:100%}.c-scale-view-block .footer .n-button+.n-button{margin-left:8px}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-scale-view-block .c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-scale-view-block .c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-scale-view-block .c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-scale-view-block .c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-scale-view-block .c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-scale-view-block .c-answerParse .answer-key{line-height:20px}.c-scale-view-block .c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-scale-view-block .c-answerParse .answer-key span{word-break:break-all}.c-scale-view-block .c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-scale-view-block .c-answerParse.answerParse-success .answer-res{background:#91c850}.c-scale-view-block .c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover{background:#f1f1f4;padding:8px 32px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown{font-size:26px;line-height:40px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown span{line-height:unset}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown svg{display:none}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:hover .answered-wrap{display:block}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime .answered-wrap{display:none}.c-scale-view-block .c-evaluateCountdown .countdown{align-content:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-scale-view-block .c-evaluateCountdown .countdown span{line-height:18px}.c-scale-view-block .c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-scale-view-block .c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-scale-view-block .c-evaluateCountdown .answered-wrap span{color:#2d7aff}.c-scale-view-block .c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-scale-view-block .c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-scale-view-block .c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-scale-view-block .c-totalScore-warp div+div{margin-top:4px}.c-scale-view-block .c-totalScore-warp span{color:#090909;font-weight:500}.c-scale-view-block .c-totalScore-warp .score-result{color:#2d7aff}.c-scale-view-block .c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap .scale-view-iconfont{color:#000;font-size:32px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.c-scale-view-block .sign-com-wrap>span{color:#585858}.c-scale-view-block .sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale-view-block li,.c-scale-view-block ul{list-style:none;margin:0;padding:0}.c-scale-view-block .n-input{text-align:left;width:100%}.c-scale-view-block .n-form-item{--n-label-height:unset!important}.c-scale-view-block .c-scle-form-item>.n-form-item-blank{display:block}.c-scale-view-block .no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.c-scale-view-block .no-data-tip>img{max-width:70%;width:260px}.c-scale-view-block .no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.c-scale-view-block .no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-view-block .c-scale-address{max-width:500px}.c-scale-view-block .c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-view-block .c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-view-block .c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-view-block .c-scale-collection,.c-scale-view-block .c-scale-collection .img-card{width:100%}.c-scale-view-block .c-scale-collection.scale-collection-title{text-align:center}.c-scale-view-block .c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-view-block .c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-view-block .c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-view-block .c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-view-block .c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-view-block .c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-scale-view-block .c-time-range{align-items:center;display:flex}.c-scale-view-block .c-map-container{cursor:pointer;width:100%}.c-scale-view-block .c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-scale-view-block .c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-scale-view-block .c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-view-block .c-scale-upload{width:100%}.c-scale-view-block .c-scale-upload .n-upload-file-list{display:flex}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-view-block .c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-view-block .c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-view-block .c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.c-scale-view-block .text-over-tooltip-components{display:inline-block;max-width:98%}.c-scale-view-block .text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-scale-view-block .text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.c-scale-view-block .text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.c-scale-view-block .text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
|
|
1
|
+
@font-face{font-family:scale-view-iconfont;src:url(scale-view-iconfont.ttf?t=1682489008262) format("truetype")}.scale-view-iconfont{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:scale-view-iconfont!important;font-size:14px;font-style:normal}.icon-scale-view-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-scale-view-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-scale-view-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-scale-view-shijian:before{content:"\e8c5"}.icon-scale-view-qianming:before{content:"\e6ca"}.icon-scale-view-cuo:before{content:"\e6e5"}.icon-scale-view-dui:before{content:"\e7c8"}.icon-scale-view-dengpao:before{content:"\e719"}.c-scale-view-block .c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-scale-view-block .c-choice-wrap .c-choice-radio-div{align-items:center;display:flex;flex-wrap:wrap}.c-scale-view-block .c-choice-wrap .n-radio-input{height:14px;width:14px}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-scale-view-block .c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-scale-view-block .c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-scale-view-block .c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-scale-view-block .c-choice-wrap .choose-other{flex:1}.c-scale-view-block .c-choice-wrap .other-span{word-break:break-all}.c-scale-view-block .c-choice-wrap.choice-wrap-1 .c-choice-radio-div{width:100%}.c-scale-view-block .c-choice-wrap.choice-wrap-1 .c-choice-radio-div .n-input{max-width:300px}.c-scale-view-block .c-choice-wrap.choice-wrap-2 .c-choice-radio-div{width:50%}.c-scale-view-block .c-choice-wrap.choice-wrap-3 .c-choice-radio-div{width:33%}.c-scale-view-block .c-choice-wrap.choice-wrap-4 .c-choice-radio-div{width:25%}.c-scale-view-block .c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-scale-view-block .c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-scale-view-block .c-choice-wrap .n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-scale-view-block .c-choice-wrap .n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-scale-view-block{box-sizing:border-box;color:rgba(0,0,0,.65);height:100%;overflow:hidden;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale-view-block-hasfooter{padding-bottom:50px}.c-scale-view-block .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;transform-origin:0 0;width:100%}.c-scale-view-block .scale-container.scale-container-nopadding{display:flex;flex-direction:column;height:100%}.c-scale-view-block .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale-view-block .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale-view-block .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale-view-block .lb-title{text-align:center}.c-scale-view-block .map-container{cursor:pointer}.c-scale-view-block .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale-view-block .linebar-div .n-divider{margin-top:4px}.c-scale-view-block .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale-view-block .img-card{width:100%}.c-scale-view-block .main{box-sizing:border-box}.c-scale-view-block .main .scale-label-required{font-weight:700}.c-scale-view-block .main .required-text{color:#e02828;font-weight:700}.c-scale-view-block .main .score-i{word-break:keep-all}.c-scale-view-block .main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.c-scale-view-block .main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.c-scale-view-block .footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;bottom:0;box-sizing:border-box;display:flex;flex-basis:50px;height:50px;left:0;position:absolute;width:100%}.c-scale-view-block .footer .n-button+.n-button{margin-left:8px}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-scale-view-block .c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-scale-view-block .c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-scale-view-block .c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-scale-view-block .c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-scale-view-block .c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-scale-view-block .c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-scale-view-block .c-answerParse .answer-key{line-height:20px}.c-scale-view-block .c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-scale-view-block .c-answerParse .answer-key span{word-break:break-all}.c-scale-view-block .c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-scale-view-block .c-answerParse.answerParse-success .answer-res{background:#91c850}.c-scale-view-block .c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-scale-view-block .c-evaluateCountdown .evaluate-toggle-icon{cursor:pointer;font-size:16px;position:absolute;right:10px;top:11px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:not(.evaluateCountdown-EvaluetaResSituation):hover{background:#f1f1f4;padding:8px 32px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:not(.evaluateCountdown-EvaluetaResSituation):hover .countdown{font-size:26px;line-height:40px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:not(.evaluateCountdown-EvaluetaResSituation):hover .countdown span{line-height:unset}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:not(.evaluateCountdown-EvaluetaResSituation):hover .countdown svg{display:none}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:not(.evaluateCountdown-EvaluetaResSituation):hover .answered-wrap{display:block}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-hasTime:not(.evaluateCountdown-EvaluetaResSituation) .answered-wrap{display:none}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-EvaluetaResSituation{text-align:left}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-EvaluetaResSituation.evaluateCountdown-hasTime{padding:8px 32px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-EvaluetaResSituation.evaluateCountdown-hasTime .evaluate-toggle-icon{font-size:18px;right:8px;top:18px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-EvaluetaResSituation .countdown{font-size:26px;line-height:40px}.c-scale-view-block .c-evaluateCountdown.evaluateCountdown-EvaluetaResSituation .countdown span{line-height:unset}.c-scale-view-block .c-evaluateCountdown .countdown{align-items:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-scale-view-block .c-evaluateCountdown .countdown span{line-height:18px}.c-scale-view-block .c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-scale-view-block .c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-scale-view-block .c-evaluateCountdown .answered-blue{color:#2d7aff}.c-scale-view-block .c-evaluateCountdown .answered-blod{font-weight:700}.c-scale-view-block .c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-scale-view-block .c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-scale-view-block .c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-scale-view-block .c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-scale-view-block .c-totalScore-warp div+div{margin-top:4px}.c-scale-view-block .c-totalScore-warp span{color:#090909;font-weight:500}.c-scale-view-block .c-totalScore-warp .score-result{color:#2d7aff}.c-scale-view-block .c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap .scale-view-iconfont{color:#000;font-size:32px}.c-scale-view-block .c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.c-scale-view-block .sign-com-wrap>span{color:#585858}.c-scale-view-block .sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale-view-block li,.c-scale-view-block ul{list-style:none;margin:0;padding:0}.c-scale-view-block .n-input{text-align:left;width:100%}.c-scale-view-block .n-form-item{--n-label-height:unset!important}.c-scale-view-block .c-scle-form-item>.n-form-item-blank{display:block}.c-scale-view-block .no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.c-scale-view-block .no-data-tip>img{max-width:70%;width:260px}.c-scale-view-block .no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.c-scale-view-block .no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-view-block .c-scale-address{max-width:500px}.c-scale-view-block .c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-view-block .c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-view-block .c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-view-block .c-scale-collection,.c-scale-view-block .c-scale-collection .img-card{width:100%}.c-scale-view-block .c-scale-collection.scale-collection-title{text-align:center}.c-scale-view-block .c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-view-block .c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-view-block .c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-view-block .c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-view-block .c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-view-block .c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-scale-view-block .c-time-range{align-items:center;display:flex}.c-scale-view-block .c-map-container{cursor:pointer;width:100%}.c-scale-view-block .c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-scale-view-block .c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-scale-view-block .c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-view-block .c-scale-upload{width:100%}.c-scale-view-block .c-scale-upload .n-upload-file-list{display:flex}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-view-block .c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-view-block .c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-view-block .c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-view-block .c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-view-block .c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.c-scale-view-block .text-over-tooltip-components{display:inline-block;max-width:98%}.c-scale-view-block .text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-scale-view-block .text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.c-scale-view-block .text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.c-scale-view-block .text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as r,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let r=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(r.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;r=r.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}r.push(e)}else{const t=r.findIndex((t=>t.labelId==e.labelId));-1!=t&&r.splice(t,1)}_.labelSelectedEdit=[...r],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[r(W)?(n(),s("div",A,O)):d("v-if",!0),o(c("div",K,[c("div",j,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(r(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(r(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:r(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!r(W)]])],512))}});export{B as default};
|
|
@@ -95,6 +95,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
};
|
|
96
96
|
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
97
|
actionType: "check" | "uncheck";
|
|
98
|
+
/**
|
|
99
|
+
* 取消勾选树节点
|
|
100
|
+
* baseKeys:基准值
|
|
101
|
+
* currentTree:当前树节点
|
|
102
|
+
* value:树节点的key值
|
|
103
|
+
*/
|
|
98
104
|
value: string | number;
|
|
99
105
|
}) => void>>;
|
|
100
106
|
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
@@ -111,9 +111,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
readonly type: PropType<(string | number)[] | null>;
|
|
112
112
|
readonly default: null;
|
|
113
113
|
};
|
|
114
|
-
/**
|
|
115
|
-
* 拖拽完成
|
|
116
|
-
*/
|
|
117
114
|
readonly disabled: {
|
|
118
115
|
readonly type: PropType<boolean | undefined>;
|
|
119
116
|
readonly default: undefined;
|
package/es/env.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
interface ImportMetaEnv {
|
|
4
|
-
readonly VITE_APP_TYPE: string;
|
|
5
|
-
// 更多环境变量...
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface ImportMeta {
|
|
9
|
-
readonly env: ImportMetaEnv;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare module '*.vue' {
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import type { App, defineComponent } from 'vue';
|
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
-
install(app: App): void;
|
|
19
|
-
};
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export default component;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module '*.js';
|
|
25
|
-
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface ImportMetaEnv {
|
|
4
|
+
readonly VITE_APP_TYPE: string;
|
|
5
|
+
// 更多环境变量...
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ImportMeta {
|
|
9
|
+
readonly env: ImportMetaEnv;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module '*.vue' {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import type { App, defineComponent } from 'vue';
|
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
+
install(app: App): void;
|
|
19
|
+
};
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export default component;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.js';
|
|
25
|
+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