agilebuilder-ui 1.0.45 → 1.0.46
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/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/packages/super-grid/src/dynamic-input.vue +1 -1
- package/src/api/sso-service.js +1 -1
- package/src/styles/index.scss +2 -0
- package/src/styles/theme/ocean-blue/button.scss +78 -0
- package/src/styles/theme/ocean-blue/card.scss +63 -0
- package/src/styles/theme/ocean-blue/checkbox.scss +10 -0
- package/src/styles/theme/ocean-blue/dark-blue-var.scss +9 -0
- package/src/styles/theme/ocean-blue/dialog.scss +17 -0
- package/src/styles/theme/ocean-blue/element-variables.scss +7 -0
- package/src/styles/theme/ocean-blue/font.scss +71 -0
- package/src/styles/theme/ocean-blue/form.scss +51 -0
- package/src/styles/theme/ocean-blue/index.scss +277 -0
- package/src/styles/theme/ocean-blue/input.scss +15 -0
- package/src/styles/theme/ocean-blue/message.scss +8 -0
- package/src/styles/theme/ocean-blue/pagination.scss +18 -0
- package/src/styles/theme/ocean-blue/radio.scss +13 -0
- package/src/styles/theme/ocean-blue/scrollbar-style.scss +32 -0
- package/src/styles/theme/ocean-blue/sidebar.scss +268 -0
- package/src/styles/theme/ocean-blue/tab.scss +83 -0
- package/src/styles/theme/ocean-blue/table.scss +60 -0
- package/src/styles/theme/ocean-blue/tree.scss +57 -0
- package/src/styles/theme/ocean-blue/var.scss +1028 -0
package/lib/super-ui.js
CHANGED
|
@@ -17353,7 +17353,7 @@ const ViewImageDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render",
|
|
|
17353
17353
|
if (this.column.componentType === "inputNumber" && this.setInputNumberConfig(), this.column.valueSetOptions && this.column.componentType !== "inputNumber") {
|
|
17354
17354
|
const t = JSON.parse(this.column.valueSetOptions);
|
|
17355
17355
|
t && t.valueSetOptions && (this.valueSetOptions = t.valueSetOptions), t.dynamicDataSourceCode && t.dynamicDataSourceCode !== "" && (this.dynamicDataSourceCode = t.dynamicDataSourceCode);
|
|
17356
|
-
} else if (this.column.componentType === "switch") {
|
|
17356
|
+
} else if (this.column.componentType === "switch" && this.column.valueSetOptions) {
|
|
17357
17357
|
const t = JSON.parse(this.column.valueSetOptions);
|
|
17358
17358
|
t && (this.valueSetOptions = t);
|
|
17359
17359
|
}
|
package/lib/super-ui.umd.cjs
CHANGED
|
@@ -29,7 +29,7 @@ ${C}`:_)}else throw f},onCacheKey:f=>generateFormatCacheKey(t,n,f)}}function get
|
|
|
29
29
|
(?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
30
30
|
(?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
31
31
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
32
|
-
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),f=new RegExp("^"+n+"$"),v=new RegExp("^"+i+"$"),_=function(ue){return ue&&ue.exact?l:new RegExp("(?:"+t(ue)+n+t(ue)+")|(?:"+t(ue)+i+t(ue)+")","g")};_.v4=function(H){return H&&H.exact?f:new RegExp(""+t(H)+n+t(H),"g")},_.v6=function(H){return H&&H.exact?v:new RegExp(""+t(H)+i+t(H),"g")};var C="(?:(?:[a-z]+:)?//)",x="(?:\\S+(?::\\S*)?@)?",V=_.v4().source,I=_.v6().source,D="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",F="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",U="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",X="(?::\\d{2,5})?",G='(?:[/?#][^\\s"]*)?',R="(?:"+C+"|www\\.)"+x+"(?:localhost|"+V+"|"+I+"|"+D+F+U+")"+X+G;return urlReg=new RegExp("(?:^"+R+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function e(t){return types.number(t)&&parseInt(t,10)===t},float:function e(t){return types.number(t)&&!types.integer(t)},array:function e(t){return Array.isArray(t)},regexp:function e(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function e(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function e(t){return isNaN(t)?!1:typeof t=="number"},object:function e(t){return typeof t=="object"&&!types.array(t)},method:function e(t){return typeof t=="function"},email:function e(t){return typeof t=="string"&&t.length<=320&&!!t.match(pattern$2.email)},url:function e(t){return typeof t=="string"&&t.length<=2048&&!!t.match(getUrlRegex())},hex:function e(t){return typeof t=="string"&&!!t.match(pattern$2.hex)}},type$1=function e(t,n,o,i,l){if(t.required&&n===void 0){required$1(t,n,o,i,l);return}var f=["integer","float","array","regexp","object","method","email","number","date","url","hex"],v=t.type;f.indexOf(v)>-1?types[v](n)||i.push(format(l.messages.types[v],t.fullField,t.type)):v&&typeof n!==t.type&&i.push(format(l.messages.types[v],t.fullField,t.type))},range=function e(t,n,o,i,l){var f=typeof t.len=="number",v=typeof t.min=="number",_=typeof t.max=="number",C=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=n,V=null,I=typeof n=="number",D=typeof n=="string",F=Array.isArray(n);if(I?V="number":D?V="string":F&&(V="array"),!V)return!1;F&&(x=n.length),D&&(x=n.replace(C,"_").length),f?x!==t.len&&i.push(format(l.messages[V].len,t.fullField,t.len)):v&&!_&&x<t.min?i.push(format(l.messages[V].min,t.fullField,t.min)):_&&!v&&x>t.max?i.push(format(l.messages[V].max,t.fullField,t.max)):v&&_&&(x<t.min||x>t.max)&&i.push(format(l.messages[V].range,t.fullField,t.min,t.max))},ENUM$1="enum",enumerable$1=function e(t,n,o,i,l){t[ENUM$1]=Array.isArray(t[ENUM$1])?t[ENUM$1]:[],t[ENUM$1].indexOf(n)===-1&&i.push(format(l.messages[ENUM$1],t.fullField,t[ENUM$1].join(", ")))},pattern$1=function e(t,n,o,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(format(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var f=new RegExp(t.pattern);f.test(n)||i.push(format(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n,"string")&&!t.required)return o();rules.required(t,n,i,f,l,"string"),isEmptyValue(n,"string")||(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l),rules.pattern(t,n,i,f,l),t.whitespace===!0&&rules.whitespace(t,n,i,f,l))}o(f)},method=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules.type(t,n,i,f,l)}o(f)},number=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(n===""&&(n=void 0),isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},_boolean=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules.type(t,n,i,f,l)}o(f)},regexp=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),isEmptyValue(n)||rules.type(t,n,i,f,l)}o(f)},integer=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},floatFn=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},array=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(n==null&&!t.required)return o();rules.required(t,n,i,f,l,"array"),n!=null&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},object=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules.type(t,n,i,f,l)}o(f)},ENUM="enum",enumerable=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules[ENUM](t,n,i,f,l)}o(f)},pattern=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n,"string")&&!t.required)return o();rules.required(t,n,i,f,l),isEmptyValue(n,"string")||rules.pattern(t,n,i,f,l)}o(f)},date=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n,"date")&&!t.required)return o();if(rules.required(t,n,i,f,l),!isEmptyValue(n,"date")){var _;n instanceof Date?_=n:_=new Date(n),rules.type(t,_,i,f,l),_&&rules.range(t,_.getTime(),i,f,l)}}o(f)},required=function e(t,n,o,i,l){var f=[],v=Array.isArray(n)?"array":typeof n;rules.required(t,n,i,f,l,v),o(f)},type=function e(t,n,o,i,l){var f=t.type,v=[],_=t.required||!t.required&&i.hasOwnProperty(t.field);if(_){if(isEmptyValue(n,f)&&!t.required)return o();rules.required(t,n,i,v,l,f),isEmptyValue(n,f)||rules.type(t,n,i,v,l)}o(v)},any=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l)}o(f)},validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var messages=newMessages(),Schema=function(){function e(n){this.rules=null,this._messages=messages,this.define(n)}var t=e.prototype;return t.define=function(o){var i=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var f=o[l];i.rules[l]=Array.isArray(f)?f:[f]})},t.messages=function(o){return o&&(this._messages=deepMerge(newMessages(),o)),this._messages},t.validate=function(o,i,l){var f=this;i===void 0&&(i={}),l===void 0&&(l=function(){});var v=o,_=i,C=l;if(typeof _=="function"&&(C=_,_={}),!this.rules||Object.keys(this.rules).length===0)return C&&C(null,v),Promise.resolve(v);function x(U){var X=[],G={};function R(ue){if(Array.isArray(ue)){var Ae;X=(Ae=X).concat.apply(Ae,ue)}else X.push(ue)}for(var H=0;H<U.length;H++)R(U[H]);X.length?(G=convertFieldsError(X),C(X,G)):C(null,v)}if(_.messages){var V=this.messages();V===messages&&(V=newMessages()),deepMerge(V,_.messages),_.messages=V}else _.messages=this.messages();var I={},D=_.keys||Object.keys(this.rules);D.forEach(function(U){var X=f.rules[U],G=v[U];X.forEach(function(R){var H=R;typeof H.transform=="function"&&(v===o&&(v=_extends$1({},v)),G=v[U]=H.transform(G)),typeof H=="function"?H={validator:H}:H=_extends$1({},H),H.validator=f.getValidationMethod(H),H.validator&&(H.field=U,H.fullField=H.fullField||U,H.type=f.getType(H),I[U]=I[U]||[],I[U].push({rule:H,value:G,source:v,field:U}))})});var F={};return asyncMap(I,_,function(U,X){var G=U.rule,R=(G.type==="object"||G.type==="array")&&(typeof G.fields=="object"||typeof G.defaultField=="object");R=R&&(G.required||!G.required&&U.value),G.field=U.field;function H(ce,L){return _extends$1({},L,{fullField:G.fullField+"."+ce,fullFields:G.fullFields?[].concat(G.fullFields,[ce]):[ce]})}function ue(ce){ce===void 0&&(ce=[]);var L=Array.isArray(ce)?ce:[ce];!_.suppressWarning&&L.length&&e.warning("async-validator:",L),L.length&&G.message!==void 0&&(L=[].concat(G.message));var Fe=L.map(complementError(G,v));if(_.first&&Fe.length)return F[G.field]=1,X(Fe);if(!R)X(Fe);else{if(G.required&&!U.value)return G.message!==void 0?Fe=[].concat(G.message).map(complementError(G,v)):_.error&&(Fe=[_.error(G,format(_.messages.required,G.field))]),X(Fe);var tt={};G.defaultField&&Object.keys(U.value).map(function(Ke){tt[Ke]=G.defaultField}),tt=_extends$1({},tt,U.rule.fields);var de={};Object.keys(tt).forEach(function(Ke){var et=tt[Ke],Ot=Array.isArray(et)?et:[et];de[Ke]=Ot.map(H.bind(null,Ke))});var re=new e(de);re.messages(_.messages),U.rule.options&&(U.rule.options.messages=_.messages,U.rule.options.error=_.error),re.validate(U.value,U.rule.options||_,function(Ke){var et=[];Fe&&Fe.length&&et.push.apply(et,Fe),Ke&&Ke.length&&et.push.apply(et,Ke),X(et.length?et:null)})}}var Ae;if(G.asyncValidator)Ae=G.asyncValidator(G,U.value,ue,U.source,_);else if(G.validator){try{Ae=G.validator(G,U.value,ue,U.source,_)}catch(ce){console.error==null||console.error(ce),_.suppressValidatorError||setTimeout(function(){throw ce},0),ue(ce.message)}Ae===!0?ue():Ae===!1?ue(typeof G.message=="function"?G.message(G.fullField||G.field):G.message||(G.fullField||G.field)+" fails"):Ae instanceof Array?ue(Ae):Ae instanceof Error&&ue(Ae.message)}Ae&&Ae.then&&Ae.then(function(){return ue()},function(ce){return ue(ce)})},function(U){x(U)},v)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!validators.hasOwnProperty(o.type))throw new Error(format("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var i=Object.keys(o),l=i.indexOf("message");return l!==-1&&i.splice(l,1),i.length===1&&i[0]==="required"?validators.required:validators[this.getType(o)]||void 0},e}();Schema.register=function e(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[t]=n},Schema.warning=warning,Schema.messages=messages,Schema.validators=validators;function setObjectPropRule(e,t,n){const o={},i=e.prop;t||(t={});let l=0;const f=i.split(".");return f.forEach(v=>{let _;if(l===f.length-1)_=getEndObjectRule(o,f,v),_.fields[v]=n;else{let C;l===0?_=t:(C=getLastObjectRule(o,f,f[l-1]),_=C.fields),_[v]||(_[v]={type:"object",required:!0,fields:{}}),l===0?o[v]=_[v]:C.fields[v]=_[v]}l++}),o}function getLastObjectRule(e,t,n){let o;for(let i=0;i<t.length;i++){const l=t[i];if(i===0?o=e[l]:o=o.fields[t[i]],l===n)break}return o}function getEndObjectRule(e,t,n){let o;for(let i=0;i<t.length&&(i===0?o=e[t[i]]:o=o.fields[t[i]],!(i!==t.length-1&&t[i+1]===n));i++);return o}function getValidator(e){e||(e=store$1.get("_list_code"));const n=store$1.get(e).columns,o={};return n&&n.forEach(i=>{const l=i.prop;if(l&&i.validations&&!isDisableEdit(l,e)){const f=JSON.parse(i.validations);f.forEach(v=>{v.pattern&&(v.pattern=new RegExp(v.pattern))}),l.indexOf(".")>0?setObjectPropRule(i,o,f):f&&f.length>0&&(o[l]=[...f])}}),o}function validator(e,t,n,o,i,l,f){return validatorEntity(e,t,n,o,!0,i,l,f)}function validatorEntity(e,t,n,o,i,l,f,v){let _=!1,C;o?C=o:C=getValidator(t);const x=new Schema(C);t||(t=store$1.get("_list_code"));const V=store$1.get(t);return x.validate(e,{first:!0},(I,D)=>{let F;if(I){const U=I[0].message;F=I[0].field,n!=null&&V.gridData.length>n?(V.gridData[n].validateErrorField=I[0].field,l!==void 0&&l&&f!==void 0&&v!==void 0?_=getI18n().t("superGrid.pageRecordLine",{pageNum:f,row:v})+","+U:_=getI18n().t("superGrid.recordLine",{row:n+1})+","+U):V.$rowIndex!==null&&V.$rowIndex!==void 0&&V.gridData.length>V.$rowIndex&&(V.gridData[V.$rowIndex].validateErrorField=I[0].field,_=getI18n().t("superGrid.recordLine",{row:V.$rowIndex+1})+","+U)}else n!=null&&V.gridData.length>n?l!==void 0&&l?V.subTableData[n].validateErrorField="":V.gridData[n].validateErrorField="":V.$rowIndex!==null&&V.$rowIndex!==void 0&&V.gridData.length>V.$rowIndex?V.gridData[V.$rowIndex].validateErrorField="":n!=null&&l!==void 0&&l&&V.gridData.length<=n&&(V.subTableData[n].validateErrorField=""),_=!0;if(F&&i===!0){const U=/[A-Z]+/;if(_!==void 0&&_+""!="true"&&_+""!="false"&&V.isSql!==void 0&&V.isSql===!0&&U.test(F)&&e[F.toLowerCase()]!==void 0){const X=JSON.parse(JSON.stringify(e));X[F.toUpperCase()]=e[F.toLowerCase()],delete X[F.toLowerCase()],_=validatorEntity(X,t,n,o,!1)}_!==void 0&&_+""!="true"&&_+""!="false"&&V.showValidateError&&(V.showValidateError=!1,window.$vueApp.config.globalProperties.$message({showClose:!0,message:_,type:"warning",onClose:X=>{V.showValidateError=!0}}))}}),_}const formValidatorService={validator,getValidator},emitter=mitt(),bus={};bus.$on=emitter.on,bus.$emit=emitter.emit,bus.$off=emitter.off;function initialization(e,t,n,o,i,l,f,v){const _={};if(e){_.visible=!0;let C={};o&&typeof o=="string"&&o!==""?C=JSON.parse(o):o&&typeof o=="object"&&(C=o);let x={};if(i&&typeof i=="string"&&i!==""?x=JSON.parse(i):i&&typeof i=="object"&&(x=i),e.displayTextJudge){const V=analysisValue(e.displayText,t,C,x,v);_.label=V}if(e.icon&&(_.icon=e.icon),e.linkTips&&(_.title=e.linkTips),e.buttonDisplayConditionsList){let V="";if(e.buttonDisplayConditionsList&&(V=JSON.stringify(e.buttonDisplayConditionsList)),V&&V!==""){const I=analysisCondition(V,t,C,x,n,l,f,v);_.visible=I}}}return _}function openPage(e){if(e){const t=e.jumpPageSetting,n=e.system,o=e.dataId,i=e.ids,l=e.buttonCode,f=e.additionalParamMap,v=e.entity,_=e.parentFormData;jumpToPage(t,n,o,v,f,i,l,_).then(C=>{let x;if(C&&(x=C.jumpMode),C){const I=C._path;if(x==="popup"){let D,F;C.jumpPageWidth?D=C.jumpPageWidth:D=window.innerWidth-150,C.jumpPageHeight?F=C.jumpPageHeight:F=window.innerHeight-150,window.open(I,"","height="+F+",width="+D+",top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no")}else x==="refresh"&&(window.location.href=I)}})}}function isHasIdAdditionalParam(e){if(e&&e.length>0)for(let t=0;t<e.length;t++){const n=e[t];if(n.paramName&&(n.paramName==="id"||n.paramName==="ID"))return!0}}function jumpToPage(e,t,n,o,i,l,f,v){return new Promise((_,C)=>{e&&typeof e=="string"&&e!==""&&(e=JSON.parse(e)),e.jumpPageUrl||_(),getSystem(t,e.jumpPageUrl,e.isNewPage).then(x=>{if(e.jumpPageAdditional&&e.jumpPageAdditional.length>0){const V=window.$vueApp.config.globalProperties.baseAPI+"/component/super-pages/parsing-additional-parameters",I={};I.jumpPageAdditional=JSON.stringify(e.jumpPageAdditional),I.entity=o,I.additionalParamMap=i,console.log("paramMap.parentFormData",v),I.parentFormData=v;const D=isHasIdAdditionalParam(e.jumpPageAdditional);window.$vueApp.config.globalProperties.$http.post(V,I).then(F=>{let U="";F&&F.uuid&&(U=F.uuid+"_additionalParamMap",window.sessionStorage.setItem(U,JSON.stringify(F.paramMap))),e.paramStoreId=U,jumpToPageTwo(e,x,n,l,f,D).then(X=>{_(X)})})}else jumpToPageTwo(e,x,n,l,f,!1).then(V=>{_(V)})}).catch(x=>{console.log(x),C(x)})})}function getSystem(e,t,n){return new Promise((o,i)=>{if(isFullPath(t))o(null);else if(!e||e===null)if(t.indexOf("page:")===0){const l=t.substring(t.indexOf("page:")+5),f=window.$vueApp.config.globalProperties.baseAPI+"/component/business-systems/with-page-codes/"+l+"?isNewPage="+n;window.$vueApp.config.globalProperties.$http.get(f).then(v=>{o(v)}).catch(v=>{i(v)})}else{let l=window.$vueApp.config.globalProperties.customSystem;l||(l=window.$vueApp.config.globalProperties.systemCode);const f=window.$vueApp.config.globalProperties.baseAPI+"/component/business-systems/"+l;window.$vueApp.config.globalProperties.$http.get(f).then(v=>{o(v)}).catch(v=>{i(v)})}else o(e)})}function isFullPath(e){return e.indexOf("http:")===0||e.indexOf("https:")===0}function jumpToPageTwo(e,t,n,o,i,l){return new Promise((f,v)=>{const _=e.jumpPageUrl;if(_)if(_.indexOf("page:")===0)jumpWithSuperPage(_,t,n,e,o,i,l).then(C=>{f(C)});else{const C=analysisAdditionalParameter(e.paramStoreId);let x=_;_.indexOf("path:")>=0&&(x=_.substring(_.indexOf("path:")+5)),isFullPath(x)||t&&(x=getSystemFrontendUrl(t.frontendUrl)+"/#"+x);const V=getSystemNameWithLanguage(t);jumpToPageWithFullPath(n,x,C,e,o,i,l,V),f()}})}function jumpToPageWithFullPath(e,t,n,o,i,l,f,v){if(t=packagePathParams(e,t,o,i,l,f),n&&n!==""){let C="";v&&(C="&_systemName_="+encodeURI(v)),t.indexOf("?")!==-1?(t+="&",t+=n+C):(t+="?",t+=n+C)}let _="refresh";if(o&&o.jumpPageOpenMode&&(_=o.jumpPageOpenMode),_==="popup"){let C,x;o.jumpPageWidth?C=o.jumpPageWidth:C=window.innerWidth-150,o.jumpPageHeight?x=o.jumpPageHeight:x=window.innerHeight-150;const V="height="+x+", width="+C+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",V)}else _==="newTab"?window.open(t):location.href=t}function packagePathParams(e,t,n,o,i,l){if((n.isNeedId===void 0||n.isNeedId===null||n.isNeedId===!0)&&!l&&e){let v="?";t.indexOf("?")>0&&(v="&"),t=t+v+"id="+e}const f=n.paramStoreId;if(f&&f!==""){const v="paramStoreId="+f;t.indexOf("?")!==-1?(t+="&",t+=v):(t+="?",t+=v)}if(o&&o.length>0){const v=o.join(","),_="ids="+v+"&_idsStr="+v;t.indexOf("?")!==-1?(t+="&",t+=_):(t+="?",t+=_)}if(i&&(t.indexOf("?")!==-1?t+="&buttonCode="+i:t+="?buttonCode="+i),n.isNewPage!==void 0&&n.isNewPage===!0){let v="";t.indexOf("?")!==-1?v="&":v="?",t=t+v+"isNewPage=true"}return t}function getPageCode(e){let t;return e&&e.indexOf("page:")!==-1&&(t=e.substring(e.indexOf("page:")+5)),t}function jumpWithSuperPage(e,t,n,o,i,l,f){return new Promise((v,_)=>{console.log("----jumpWithSuperPage---",e,t,n,o);const C=getPageCode(e);let x="refresh";o&&o.jumpPageOpenMode&&(x=o.jumpPageOpenMode);const V={jumpMode:x};if(window.sessionStorage.setItem(C+"-jumpMode",JSON.stringify(V)),x==="popup"){const I=packageOpenUrl(t,C,n,o,x,i,l,f),D=openDialogWhenPopup(o,t,C,n,x,i,l);D&&o.isRefreshWhenClosePopup!==void 0&&o.isRefreshWhenClosePopup!==null&&(D.isRefreshWhenClosePopup=o.isRefreshWhenClosePopup),D._path=I,v(D)}else if(x==="newTab"){const I=packageOpenUrl(t,C,n,o,x,i,l,f)+"&_t_="+new Date().getTime();window.open(I),v()}else{const I={pageCode:C,customSystem:t.code,jumpMode:x,buttonCode:l,ids:i?i.join(","):""};(o.isNeedId===void 0||o.isNeedId===null||o.isNeedId===!0)&&!f&&n&&(I.id=n);const D=o.paramStoreId;D&&D!==""&&(I.paramStoreId=D);const F=packageOpenUrl(t,C,n,o,x,i,l,f);I._path=F,v(I)}})}function openDialogWhenPopup(e,t,n,o,i,l,f){const v={};e&&(v.jumpPageTitle=e.jumpPageTitle,v.jumpPageWidth=e.jumpPageWidth,v.jumpPageHeight=e.jumpPageHeight,v.valueMappings=e.valueMappings,v.updateValueEvent=e.updateValueEvent,v.closeEvent=e.closeEvent,v.isRefreshWhenClosePopup=e.isRefreshWhenClosePopup);let _=!1;return typeof t.standard<"u"&&(_=!t.standard),v.pageCode=n,(e.isNeedId===void 0||e.isNeedId===null||e.isNeedId===!0)&&o&&(v.dataId=o),v.isDsc=_,v.paramStoreId=e.paramStoreId,v.jumpMode=i,v.ids=l,v.buttonCode=f,v}function packageOpenUrl(e,t,n,o,i,l,f,v){let C=getSystemFrontendUrl(e.frontendUrl)+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+i;const x=getSystemNameWithLanguage(e);return x&&(C+="&_systemName_="+encodeURI(x)),packagePathParams(n,C,o,l,f,v)}function getSystemNameWithLanguage(e){if(e){let t="cn";return window.$locale&&(t=window.$locale),t==="cn"?e.name:e.enName}}function analysisAdditionalParameter(e){const t=window.sessionStorage.getItem(e);return analysisAdditionalParameterWithMap(t)}function analysisAdditionalParameterWithMap(e){let t="";if(e){const n=JSON.parse(e),o=Object.keys(n);console.log("analysisAdditionalParameterWithMap--Object.keys(additionalParameterMap)=",o);for(let i=0;i<o.length;i++)t!==""&&(t+="&"),t+=o[i],t+="=",t+=n[o[i]]}return t}function updateWithPageValue(e,t,n,o,i,l){if(e&&e!==null&&o&&o!==null&&n&&n!==null&&n.valueMappings){let f=e;Array.isArray(e)&&e.length>0&&(f=e[0]),n.valueMappings.forEach(_=>{let C=_.source,x=getEntityFieldValue(f,C);const V="__";x==null&&(C&&t&&C.indexOf(".")>0&&(C=t+V+C),x=getEntityFieldValue(f,C));let I=_.target;l!==void 0&&l===!0&&I&&i&&I.indexOf(".")>0&&(I=i+V+I),setEntityFieldValue(o,I,x)})}}const apis$2={toolbarRefresh(e,t,n,o){return this.toolbarFieldParam=n,this.refresh(e,t,n,o)},refresh(e,t,n,o){return new Promise((i,l)=>{if(o){const f=store$1.get(this.code);f.options.subTableData=null}if(!n&&this.toolbarFieldParam&&(n=this.toolbarFieldParam),this.$refs)if(typeof e<"u"&&e!==null&&e instanceof Array&&e.length>0)if(this.$refs.sf){let f=this.$refs.sf.packageSearchParam();f&&f.length>0?n&&n.length>0&&(f.length===1&&(f[0].leftBracket="(",f[0].rightBracket=")"),f[f.length-1].joinSign==="or"&&(f[f.length-1].joinSign="and"),Array.prototype.push.apply(f,n)):n&&(f=[],f=n),this.search(f,!1,e).then(()=>i()).catch(v=>l(v))}else this.search(n,!1,e).then(()=>i()).catch(f=>l(f));else if(this.$refs.sf){let f=this.$refs.sf.packageSearchParam();f&&f.length>0?n&&n.length>0&&(f.length===1&&(f[0].leftBracket="(",f[0].rightBracket=")"),f[f.length-1].joinSign==="or"&&(f[f.length-1].joinSign="and"),Array.prototype.push.apply(f,n)):n&&(f=[],f=n),this.search(f,!1).then(()=>i()).catch(v=>l(v))}else this.search(n,!1).then(()=>i()).catch(f=>l(f));else i()})},showSearchForm(){this.showSearch=!0,$emit(this,"showSearch")},cancelSearch(){this.showSearch=!1,$emit(this,"cancelSearch")},getSearchForm(){const e=store$1.get(this.code);return e.searchForm?e.searchForm:[]},createRow(e,t){return new Promise((n,o)=>{e||(e=store$1.get("_list_code"));const i=store$1.get(e),l=i.gridData;if(i.superGrid.clearSort(),i.lineEdit&&i.lineEdit.editable&&typeof i.loaded<"u"&&i.loaded===!0){let f=!0;if(isEditOptionFunction("beforeInsertRow",e)){const v=i.isSubTableShowPage,_=i.pagination&&i.pagination.pageSize,C=!1;i.pageContext?f=i.options.lineEditOptions.beforeInsertRow.call(this,{gridData:v?i.subTableData:i.gridData,rowIndex:i.$rowIndex,isMobile:C,baseURL:this.baseURL,totalData:v?i.gridData:null,pageSize:_,additionalParamMap:i.additionalParamMap,row:t,pageContext:i.pageContext,configureObj:i.configureObj}):f=i.options.lineEditOptions.beforeInsertRow.call(this,v?i.subTableData:i.gridData,i.$rowIndex,C,this.baseURL,v?i.gridData:null,_,i.additionalParamMap,t)}if(f===void 0||f===!0){if(i.options&&i.options.isFormSubTable){let _=i.gridData;i.isSubTableShowPage!==void 0&&i.isSubTableShowPage===!0&&(_=i.subTableData);const C=_.filter(x=>x.$editing!==void 0&&x.$editing===!0);C&&C.length>0&&C.forEach(x=>{setEntityFieldValue(x,"$editing",!1),$emit(bus,"un-edit",{row:x})}),i.isEditRow=!1}else{if(!isLastEditRowSave(e)||typeof i.isCreateRow<"u"&&i.isCreateRow===!0){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:i.$rowIndex+1}),type:"warning"}),o(new Error("please save line"));return}if(typeof i.$rowIndex<"u"&&i.$rowIndex!==null&&i.$rowIndex<i.gridData.length){const _=i.gridData[i.$rowIndex];setEntityFieldValue(_,"$editing",!1),i.isEditRow=!1}}t=this.getNewRow(i.defaultValueColumns,i.additionalParamMap,i.contextParameter,t),setEntityFieldValue(t,"$editing",!0),i.isEditRow=!0,i.options&&i.options.isFormSubTable?(i.isSubTableShowPage!==void 0&&i.isSubTableShowPage===!0?(i.isChangePage=!0,i.subTableData.splice(i.subTableData.length,0,t)):(l.splice(l.length,0,t),i.lineEdit.editingCell&&(i.lineEdit.editingCell.row=l.length)),i.$rowIndex=l.length,this.$nextTick(()=>{scrollYToBottom(e)})):(l.splice(0,0,t),i.lineEdit.editingCell&&(i.lineEdit.editingCell.row=0),i.$rowIndex=0);const v=Object.assign({},t);if(i.orgGridData.splice(0,0,v),i.lineEdit.editingCell||(i.lineEdit.editingCell={},i.lineEdit.validateErrorField=""),isEditOptionFunction("afterInsertRow",e)){const _=i.isSubTableShowPage,C=i.pagination&&i.pagination.pageSize,x=!1;i.pageContext?i.options.lineEditOptions.afterInsertRow.call(this,{gridData:_?i.subTableData:i.gridData,rowIndex:i.$rowIndex,isMobile:x,baseURL:this.baseURL,totalData:_?i.gridData:null,pageSize:C,additionalParamMap:i.additionalParamMap,pageContext:i.pageContext,configureObj:i.configureObj}):i.options.lineEditOptions.afterInsertRow.call(this,_?i.subTableData:i.gridData,i.$rowIndex,x,this.baseURL,_?i.gridData:null,C,i.additionalParamMap)}i.isCreateRow=!0,n(t)}else o(new Error("can not create"))}else o(new Error("list not editable or data not loaded completely"))})},getNewRow(e,t,n,o,i){o||(o={}),i||(i=store$1.get("_list_code"));const l=store$1.get(i);if(l&&l.allColumns&&this.setColumnsDefaultValue(l.allColumns,o),e&&e.length>0)for(var f=0;f<e.length;f++){const v=e[f];if(v&&v.prop){const _=getEntityFieldValue(o,v.prop);if(v.prop!=="$selection"&&v.prop!=="$index"&&v.defaultValue&&v.defaultValue!==""&&(_===void 0||_===""||_===null)){let C;l.pageContext?C=getPropValueNew(v.defaultValue,l.pageContext):C=getPropValue(v.defaultValue,o,t,n),setEntityFieldValue(o,v.prop,C)}}}return o},setColumnsDefaultValue(e,t){for(let n=0;n<e.length;n++){const o=e[n],i=o.prop;i==="$index"||i==="$selection"||i==="operation"||(o.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(o.children,t):t[i]===void 0&&setEntityFieldValue(t,i,null))}setEntityFieldValue(t,"$editing",!1)},setChildrenColumnsDefaultValue(e,t){for(let n=0;n<e.length;n++){const o=e[n],i=o.prop;o.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(o.children,t):t[i]===void 0&&i!=="operation"&&setEntityFieldValue(t,i,null)}},editRow(e,t,n){t||(t=store$1.get("_list_code"));const o=store$1.get(t);if(o&&o.lineEdit&&o.lineEdit.editable){if(typeof o.$rowIndex<"u"&&o.$rowIndex!==null&&o.$rowIndex!==e){if(typeof o.options.lineEditOptions.autoSave>"u"||isHasEditOption("autoSave",t)&&o.options.lineEditOptions.autoSave===!0){if(!n){this.saveRow(o.$rowIndex,t).then(l=>{this.editRow(e,t,!0)});return}}else if(!isLastEditRowSave(t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:o.$rowIndex+1}),type:"warning"});return}}let i=!0;if(isEditOptionFunction("beforeEdit",t)){const l=o.isSubTableShowPage,f=o.pagination&&o.pagination.pageSize;i=o.options.lineEditOptions.beforeEdit.call(this,{gridData:l?o.subTableData:o.gridData,listCode:t,entity:o.gridData[e],row:o.gridData[e],rowIndex:e,columns:o.columns,isMobile:!1,pageGridData:l?o.gridData:null,pageSize:f,additionalParamMap:getAdditionalParamMap(o),pageContext:o.pageContext,configureObj:o.configureObj})}isPromise$1(i)?i.then(l=>{(l===void 0||l===!0)&&this.doEditRow(o,e)}):(i===void 0||i===!0)&&this.doEditRow(o,e)}},doEditRow(e,t){if(typeof e.$rowIndex<"u"&&e.$rowIndex!==null&&e.$rowIndex<e.gridData.length){const o=e.gridData[e.$rowIndex];setEntityFieldValue(o,"$editing",!1),e.isEditRow=!1}const n=e.gridData[t];setEntityFieldValue(n,"$editing",!0),e.$lastSaveRowIndex=null,e.$rowIndex=t,e.isEditRow=!0,e.lineEdit.editingCell&&(e.lineEdit.editingCell.row=t)},saveRow(e,t){return new Promise((n,o)=>{const i=this;setTimeout(function(){i.saveCurrentRow(e,t).then(l=>{n(l)})},100)})},saveCurrentRow(e,t){return new Promise((n,o)=>{t||(t=store$1.get("_list_code"));const i=store$1.get(t);if(i.lineEdit&&i.lineEdit.editable){if(typeof i.gridData[e].$editing>"u"||i.gridData[e].$editing===!1){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.noNeedToSaveRow",{row:e+1}),type:"warning"});return}if(i.$rowIndex!==e&&!isLastEditRowSave(t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:i.$rowIndex+1}),type:"warning"});return}if(i.$lastSaveRowIndex=null,i.isHasDynamic!==void 0&&i.isHasDynamic===!1&&!i.lineEdit.urlToSaveRow&&!isHasEditOption("urlToSaveRow",t)&&!isEditOptionFunction("saveRow",t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSetURLToSaveRowInformation"),type:"warning"});return}if(!i.canSaveRow)return;i.canSaveRow=!1;const l=i.gridData[e];let f=!0;isHasEditOption("isEnableValidate",t)&&(f=i.options.lineEditOptions.isEnableValidate);let v=!0;if(f===!0&&(v=formValidatorService.validator(l,t,e)),v===!0){let _=!0;if(isEditOptionFunction("beforeSave",t)&&(i.pageContext?_=i.options.lineEditOptions.beforeSave.call(this,{row:l,columns:i.columns,additionalParamMap:i.additionalParamMap,pageContext:i.pageContext,configureObj:i.configureObj}):_=i.options.lineEditOptions.beforeSave.call(this,l,i.columns,i.additionalParamMap)),_===void 0||_===!0){$emit(bus,"un-edit",{row:l});const C=getAdditionalParamMap(i);let x;if(isEditOptionFunction("saveRow",t)&&(i.pageContext?x=i.options.lineEditOptions.saveRow.call(this,{row:l,columns:i.columns,dataTypeMap:i.$dataTypeMap,dynamicColumnInfo:i.dynamicColumnInfo,additionalParamMap:C,mainDefaultValueColumns:i.mainDefaultValueColumns,pageContext:i.pageContext,configureObj:i.configureObj}):x=i.options.lineEditOptions.saveRow.call(this,l,i.columns,i.$dataTypeMap,i.dynamicColumnInfo,C,i.mainDefaultValueColumns)),!x&&i.lineEdit&&i.lineEdit.urlToSaveRow){let V=i.lineEdit.urlToSaveRow;isHasEditOption("urlToSaveRow",t)&&(V=i.options.lineEditOptions.urlToSaveRow),x=window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL+V,l)}if(i.isHasDynamic!==void 0&&i.isHasDynamic===!0&&!x){const V="/common/dynamic-values",I={mainTableName:i.basicInfo&&i.basicInfo.tableName?i.basicInfo.tableName:"",row:l,dynamicColumnInfo:i.dynamicColumnInfo,additionalParamMap:C,dataTypeMap:i.$dataTypeMap,dynamicServiceName:i.dynamicServiceName,mainDefaultValueColumns:i.mainDefaultValueColumns};x=window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL+V,I)}x?x.then(V=>{this.afterSave(i,e,t,V,l).then(I=>{n(I)}).catch(I=>{o(I)})}).catch(V=>{i.canSaveRow=!0,isEditOptionFunction("saveError",t)&&i.options.lineEditOptions.saveError.call(this,l,i.columns,e,V),o(V)}):(i.canSaveRow=!0,o(getI18n().t("saveRowRequest is undefined")))}else i.canSaveRow=!0,o(getI18n().t("superGrid.theReturnValueOfTheBeforesaveCallbackMethodIsFalse"))}else i.canSaveRow=!0,o(getI18n().t("imatrixUIMessage.validationFailed"))}})},afterSave(e,t,n,o,i){return new Promise((l,f)=>{e.isCreateRow=!1,e.canSaveRow=!0,e.$rowIndex=null,e.isEditRow=!1,e.$lastSaveRowIndex=t,window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.lineSavedSuccessfully",{row:t+1}),type:"success"}),(typeof e.options.lineEditOptions.aftersaveIsCancelEditState>"u"||isHasEditOption("aftersaveIsCancelEditState",n)&&e.options.lineEditOptions.aftersaveIsCancelEditState===!0)&&(setEntityFieldValue(i,"$editing",!1),e.isEditRow=!1),isEditOptionFunction("saveSuccess",n)&&(e.pageContext?e.options.lineEditOptions.saveSuccess.call(this,{data:o,columns:e.columns,rowIndex:t,row:i,additionalParamMap:e.additionalParamMap,pageContext:e.pageContext,configureObj:e.configureObj}):e.options.lineEditOptions.saveSuccess.call(this,o,e.columns,t,i,e.additionalParamMap),e.options.lineEditOptions.saveSuccess.call(this,o,e.columns,t,i,e.additionalParamMap)),Object.assign(e.orgGridData[t],o),Object.assign(e.gridData[t],o),this.refresh(!1,!0).then(()=>{(typeof e.options.lineEditOptions.aftersaveIsCreateRow>"u"||e.options.lineEditOptions.aftersaveIsCreateRow)&&this.createRow(n),l({rowIndex:t,listCode:n})}).catch(v=>f(v))})},restoreRow(e,t){return new Promise((n,o)=>{this.restoreCurrentRow(e,t),n()})},restoreCurrentRow(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);if(n.lineEdit&&n.lineEdit.editable){if(n.$rowIndex!==null&&n.$rowIndex!==e&&!isLastEditRowSave(t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:n.$rowIndex+1}),type:"warning"});return}const o=n.$lastSaveRowIndex!==null&&n.$lastSaveRowIndex===e&&typeof n.gridData[e].id<"u";let i=!0;if(isEditOptionFunction("beforeRestoreValidate",t)){const f=n.isSubTableShowPage,v=n.pagination&&n.pagination.pageSize,_=!1;i=n.options.lineEditOptions.beforeRestoreValidate.call(this,{rowIndex:e,gridData:f?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:_,baseURL:this.baseURL,isEditing:!o,pageGridData:f?n.gridData:null,pageSize:v,additionalParamMap:n.additionalParamMap,pageContext:n.pageContext,configureObj:n.configureObj})}if(i===void 0||i===!0){if(o===!0){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.lineNoNeedToUndoEdit",{row:e+1}),type:"warning"});return}}else return;let l=!0;if(isEditOptionFunction("beforeRestore",t)){const f=n.isSubTableShowPage,v=n.pagination&&n.pagination.pageSize,_=!1;l=n.options.lineEditOptions.beforeRestore.call(this,{rowIndex:e,gridData:f?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:_,baseURL:window.$vueApp.config.globalProperties.baseURL,isEditing:!o,pageGridData:f?n.gridData:null,pageSize:v,additionalParamMap:n.additionalParamMap,pageContext:n.pageContext,configureObj:n.configureObj})}if(l===void 0||l===!0){if(!n.orgGridData[e].id&&!n.orgGridData[e].ID)this.deleteRow(e,t,!0);else{if(n.gridData[e]=JSON.parse(JSON.stringify(n.orgGridData[e])),n.isSubTableShowPage!==void 0&&n.isSubTableShowPage===!0){const v=(this.currentPage-1)*this.pageSize+e;n.subTableData[v]=n.gridData[e]}window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.lineCancelledSuccessfully",{row:e+1}),type:"success"}),(typeof n.options.lineEditOptions.afterRestoreIsCancelEditState>"u"||isHasEditOption("afterRestoreIsCancelEditState",t)&&n.options.lineEditOptions.afterRestoreIsCancelEditState===!0)&&(setEntityFieldValue(n.gridData[e],"$editing",!1),n.isEditRow=!1)}n.$rowIndex=null,n.isCreateRow=!1,isEditOptionFunction("afterRestore",t)&&(n.pageContext?n.options.lineEditOptions.afterRestore.call(this,{rowIndex:e,row:n.orgGridData[e],additionalParamMap:n.additionalParamMap,pageContext:n.pageContext,configureObj:n.configureObj}):n.options.lineEditOptions.afterRestore.call(this,e,n.orgGridData[e],n.additionalParamMap))}}},deleteRow(e,t,n){return new Promise((o,i)=>{t||(t=store$1.get("_list_code"));const l=store$1.get(t);let f=!0;if(isEditOptionFunction("beforeDelete",t)){const v=l.isSubTableShowPage,_=l.pagination&&l.pagination.pageSize,C=v?l.subTableData:l.gridData,x=!1;l.pageContext?f=l.options.lineEditOptions.beforeDelete.call(this,{rowIndex:e,row:l.gridData[e],gridData:C,isMobile:x,baseURL:this.baseURL,totalData:v?l.gridData:null,pageSize:_,additionalParamMap:l.additionalParamMap,pageContext:l.pageContext,configureObj:l.configureObj}):f=l.options.lineEditOptions.beforeDelete.call(this,e,l.gridData[e],C,x,this.baseURL,v?l.gridData:null,_,l.additionalParamMap)}if(f===void 0||f===!0){if(l.isSubTableShowPage!==void 0&&l.isSubTableShowPage===!0){l.isChangePage=!0;const _=(this.currentPage-1)*this.pageSize+e;l.subTableData.splice(_,1)}else l.gridData.splice(e,1),l.orgGridData.splice(e,1);if(l.$lastSaveRowIndex=null,l.$rowIndex=null,l.isEditRow=!1,window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.deleteSuccessful"),type:"success"}),l.gridData.length===0&&l.options&&l.options.isDefaultShowEdit!==null&&l.options.isDefaultShowEdit!==void 0&&l.options.isDefaultShowEdit===!0&&this.createRow(t),l.isMulitiSelect&&l.superGrid.clearSelection(),l.isCreateRow=!1,n!==void 0&&n===!0&&isEditOptionFunction("afterDelete",t)){const v=l.isSubTableShowPage,_=l.pagination&&l.pagination.pageSize,C=!1;l.pageContext?l.options.lineEditOptions.afterDelete.call(this,{rowIndex:e,row:l.orgGridData[e],gridData:v?l.subTableData:l.gridData,isMobile:C,baseURL:this.baseURL,totalData:v?l.gridData:null,pageSize:_,additionalParamMap:l.additionalParamMap,pageContext:l.pageContext,configureObj:l.configureObj}):l.options.lineEditOptions.afterDelete.call(this,e,l.orgGridData[e],v?l.subTableData:l.gridData,C,this.baseURL,v?l.gridData:null,_,l.additionalParamMap)}}o()})},focus(e,t){setCurrentRow(e,t)},getGridData(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);return t.isSubTableShowPage?t.subTableData:t.gridData},getColumns(e){return e||(e=store$1.get("_list_code")),store$1.get(e).columns},getPagination(e){return e||(e=store$1.get("_list_code")),store$1.get(e).pagination},getOptionsValueSet(e){const t={};return e||(e=store$1.get("_list_code")),store$1.get(e).columns.forEach(i=>{const l=i.prop;!isDynamicDataSourceSource(i)&&i.valueSet&&i.valueSet.length>0&&(t[l]=i.valueSet)}),t},restoreGridEdit(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);if(t.options&&t.options.isFormSubTable){const n=t.isSubTableShowPage;let o=[];if(n?o=t.subTableData:o=t.gridData,o&&o.length>0)for(let i=0;i<o.length;i++){const l=o[i];if(l.$editing!==void 0&&l.$editing===!0){setEntityFieldValue(l,"$editing",!1),$emit(bus,"un-edit",{row:l});break}}}},closePageDialog(e){if(console.log("列表组件--closePageDialog---this.jumpPageSetting=",this.jumpPageSetting),this.jumpPageSetting){const t=store$1.get(this.code),n=this.jumpPageSetting.closeEvent,o=this.jumpPageSetting.row;let i;if(t.options.eventCallBack&&n&&n!==null&&t.options.eventCallBack[n]&&(i=t.options.eventCallBack[n]),i){const f={params:t.additionalParamMap,additionalParamMap:t.additionalParamMap,entity:o};e&&(f.eventParams={popEntity:e.entity,popPageCode:e.pageCode,pageCode:this.pageCode}),i.call(this,f),e.jumpInfo&&e.jumpInfo.successOperation==="closeWindowAndRefresh"&&this.refresh()}const l=this.jumpPageSetting.isRefreshWhenClosePopup;if(l!==void 0&&l===!0){const f=store$1.get(this.code);this.search(f.searchForm)}}this.isShowPageDialog=!1,this.jumpPageSetting=null},updateValues(e,t,n){const o=store$1.get(this.code),i=n;if(i!=null&&i<this.gridData.length){const l=this.isSql===!1||o.options&&(o.options.isAdministerListView!==void 0&&o.options.isAdministerListView===!0||o.options.isFormSubTable!==void 0&&o.options.isFormSubTable===!0),f=this.tableName;updateWithPageValue(e,t,this.jumpPageSetting,this.gridData[i],f,!l);const v=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;let _;o.options.eventCallBack&&v&&v!==null&&o.options.eventCallBack[v]&&(_=o.options.eventCallBack[v]),_&&_.call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.gridData[i],targetTableName:f,isNeedReplaceFieldName:!l,additionalParamMap:o.additionalParamMap})}}},_sfc_main$19={components:{ElIconDelete:delete_default},name:"ViewImageDialog",props:{fileList:{type:Array,default:function(){return[]}},downloadable:{type:Boolean,default:function(){return!0}},deleteable:{type:Boolean,default:function(){return!1}}},data(){getToken();let e=window.$vueApp.config.globalProperties.baseURL;return isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(e=window.$vueApp.config.globalProperties.baseAPI),{showName:null,serverName:null,file:null,baseUrl:e}},methods:{changeFile(e,t){const n=this.fileList[e];this.file=n,this.showName=n.showName,this.serverName=n.serverName},downloadFile(){if(!this.showName){const n=this.fileList[0];this.showName=n.showName,this.serverName=n.serverName}const e=getToken();let t=window.$vueApp.config.globalProperties.baseURL+"/common/super-form/downloads?jwt="+e;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(t=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/downloads?jwt="+e),window.location.href=t+"&showName="+encodeURI(this.showName)+"&serverPath="+this.serverName},preview(){if(!this.showName){const e=this.fileList[0];this.showName=e.showName,this.serverName=e.serverName}if(window.$vueApp.config.globalProperties.customPreviewUrl)window.open(getSystemFrontendUrl(window.$vueApp.config.globalProperties.portalUrl)+"/#/file-service/preview?serverPath="+this.serverName+"&showName="+encodeURI(this.showName),this.showName);else{const e=getToken();let t;const n=this.showName,o=this.serverName;if(window.$vueApp.config.globalProperties.kkFileViewUrl){const l=this.baseUrl+"/common/super-form/downloads?jwt="+e+"&showName="+encodeURI(n)+"&serverPath="+o+"&fullfilename="+n;t=window.$vueApp.config.globalProperties.kkFileViewUrl+"?url="+encodeURIComponent(Base64.encode(l))}else t=this.baseUrl+"/common/fs-upload/preview?jwt="+e,t=t+"&showName="+encodeURI(n)+"&serverPath="+o;window.open(t,n)}},deleteFile(){let e;if(this.fileList&&this.fileList.length>0){if(!this.showName){const n=this.fileList[0];this.showName=n.showName,this.serverName=n.serverName}const t=this.serverName;e=this.fileList.findIndex(function(n){return n.serverName===t})}$emit(this,"delete",this.fileList,e)}},emits:["close","delete"]},_hoisted_1$U={key:1,style:{"text-align":"center","margin-top":"50px"}},_hoisted_2$A={style:{"font-size":"18px"}},_hoisted_3$p={style:{"padding-top":"10px"}},_hoisted_4$h={style:{"padding-top":"10px"}};function _sfc_render$V(e,t,n,o,i,l){const f=Vue.resolveComponent("el-icon-delete"),v=Vue.resolveComponent("el-icon"),_=Vue.resolveComponent("el-image"),C=Vue.resolveComponent("el-button"),x=Vue.resolveComponent("el-carousel-item"),V=Vue.resolveComponent("el-carousel"),I=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(I,{"append-to-body":!0,"model-value":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),onClose:t[2]||(t[2]=D=>e.$emit("close"))},{title:Vue.withCtx(()=>[Vue.createElementVNode("span",null,[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.preview"))+" ",1),n.deleteable?(Vue.openBlock(),Vue.createBlock(v,{key:0,class:"el-icon-delete",style:{"padding-left":"5px",cursor:"pointer",color:"#f56c6c"},onClick:t[0]||(t[0]=D=>l.deleteFile())},{default:Vue.withCtx(()=>[Vue.createVNode(f)]),_:1})):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[Vue.createVNode(V,{interval:5e3,arrow:"always",onChange:l.changeFile},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.fileList,D=>(Vue.openBlock(),Vue.createBlock(x,{key:D.serverName,style:{"background-color":"#eee"}},{default:Vue.withCtx(()=>[D.isImg?(Vue.openBlock(),Vue.createBlock(_,{key:0,"preview-src-list":[D.src],src:D.src},null,8,["preview-src-list","src"])):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$U,[Vue.createElementVNode("div",_hoisted_2$A,Vue.toDisplayString(D.showName),1),Vue.createElementVNode("div",_hoisted_3$p,Vue.toDisplayString(e.$t("superGrid.previewTitleWhenNotImg")),1),Vue.createElementVNode("div",_hoisted_4$h,[Vue.createVNode(C,{size:"default",type:"primary",onClick:t[1]||(t[1]=F=>l.preview())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.preview")),1)]),_:1})])]))]),_:2},1024))),128))]),_:1},8,["onChange"])]),_:1},8,["title"])}const ViewImageDialog=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$V]]),_sfc_main$18={name:"DynamicInput",components:{dynamicSourceSelect:DynamicSourceSelect,ViewImageDialog},props:{value:{type:[String,Boolean,Number,Date,Array],default:null},type:{type:String,default:"input"},position:{type:Object,default:null},lineEdit:{type:Object,default:null},options:{type:Array,default:null},column:{type:Object,default:null},row:{type:Object,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1},listToolbarFormData:{type:Object,default:null},rowIndex:{type:Number,default:-1}},data(){let e=this.value;this.type&&this.type==="select"&&this.column.dataType!=="TEXT"&&(e=this.value&&this.value!==null&&typeof this.value!="string"?this.value+"":this.value,$emit(this,"update:value",e));const t=this.getDefaultValue(e);t!=null&&(e=t);const n=isDisableEdit(this.column.prop,this.listCode,this.row),o=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/uploads";this.listCode||(this.listCode=store$1.get("_list_code"));const i=store$1.get(this.listCode);let l;i&&i.basicInfo&&i.basicInfo.tableName&&(l=i.basicInfo.tableName);let f;i&&i.basicInfo&&i.basicInfo.hasJoinTable&&(f=i.basicInfo.hasJoinTable);let v;i.options.extraParam&&i.options.extraParam.entityMap&&(v=i.options.extraParam.entityMap);const _={Authorization:getToken()};let C="mysql";window.$vueApp.config.globalProperties.dataSourceType&&(C=window.$vueApp.config.globalProperties.dataSourceType.toLowerCase());const x=i.gridData,V=i.subTableData,I=i.isSubTableShowPage;let D={};this.column.controlConfig&&(D=JSON.parse(this.column.controlConfig));const F=getAdditionalParamMap(i);return{deptManTree:!1,isMultiTree:!1,isCheckStrictly:!1,deptTree:!1,wgManTree:!1,wgTree:!1,newValue:null,disabled:n,componentName:"",validateErrorField:"",annexUploadFlag:!1,defaultAction:o,fileMultiple:!1,lastFileName:"",fileList:[],lastServerName:"",fileSetObj:null,showSingleImgFlag:!1,singleImgSrc:"",fields:null,innerValue:e,dynamicSourceSelectOptions:{},valueSetOptions:null,dynamicDataSourceCode:null,tableName:l,isJoinTable:f,departmentInfo:null,parentFormData:v,headers:_,dataSourceType:C,inputNumberSet:{},fileInfo:{showName:null,serverPath:null},gridData:I?V:x,pageGridData:I?x:null,additionalParamMap:F,controlConfig:D,pickerOptions:{disabledDate:U=>this.stateForbiddenTime&&this.endForbiddenTime?U.getTime()<this.stateForbiddenTime||U.getTime()>this.endForbiddenTime:this.stateForbiddenTime&&!this.endForbiddenTime?U.getTime()<this.stateForbiddenTime:!this.stateForbiddenTime&&this.endForbiddenTime?U.getTime()>this.endForbiddenTime:!1},stateForbiddenTime:null,endForbiddenTime:null}},computed:{},watch:{value:{handler(e,t){if(this.type&&this.type==="multiselect"){const o=this.value&&this.value!==null&&typeof this.value=="string"?this.value.split(","):this.value;this.innerValue=o}else this.type==="yearRange"?this.innerValue=""+e:this.innerValue=e;store$1.get(this.listCode).editProp===this.column.prop&&this.$nextTick(()=>{this.$refs.customItem&&this.$refs.customItem.focus()})},deep:!0,immediate:!0}},created(){const e=store$1.get(this.listCode);if(this.gridParams=e,this.isCreateRow=e.isCreateRow,this.setTreeType(),this.type&&this.type.indexOf("custom:")>=0&&(this.componentName=this.type.substring(this.type.indexOf(":")+1)),this.column.fileSet&&this.column.fileSet!==""&&(this.column.componentType==="annex"||this.column.componentType==="multipartUpload")){const t=JSON.parse(this.column.fileSet);this.fileInfo.showName=this.row[t.showNameData.dbName],this.fileInfo.serverPath=this.row[t.serverNameData.dbName],this.fileSetObj=t,t&&t.multiple&&(this.fileMultiple=!0),this.fileList=getFileList(this.row,this.column,this.isSql),this.packageFileNameWithFileList()}if(this.column.componentType==="inputNumber"&&this.setInputNumberConfig(),this.column.valueSetOptions&&this.column.componentType!=="inputNumber"){const t=JSON.parse(this.column.valueSetOptions);t&&t.valueSetOptions&&(this.valueSetOptions=t.valueSetOptions),t.dynamicDataSourceCode&&t.dynamicDataSourceCode!==""&&(this.dynamicDataSourceCode=t.dynamicDataSourceCode)}else if(this.column.componentType==="switch"){const t=JSON.parse(this.column.valueSetOptions);t&&(this.valueSetOptions=t)}if(this.column.orgTreeSet){const t=JSON.parse(this.column.orgTreeSet);this.type.indexOf("DeptTree")>0&&t.checkStrictly&&(this.isCheckStrictly=t.checkStrictly),t.length?this.fields=t:t.orgTreeSetArr&&(this.fields=t.orgTreeSetArr)}this.getDateAllowTime()},mounted(){},methods:{getClassOptionTitle(e){if(e!=null&&e!==""&&e.length>0){let t="";return typeof e=="string"?this.options.forEach(n=>{n.value===e&&(t=n.label)}):(this.options.forEach(n=>{e.forEach(o=>{n.value===o&&(t=t+n.label+",")})}),t=t.slice(0,t.length-1)),t}},getDateAllowTime(){if(this.column.valueSetOptions){const e=JSON.parse(this.column.valueSetOptions),t=Date.now();if(e.stateForbiddenTime){const n=e.stateForbiddenTime;this.stateForbiddenTime=t-n*24*60*60*1e3}else this.stateForbiddenTime=null;if(e.endForbiddenTime){const n=e.endForbiddenTime;this.endForbiddenTime=t+n*24*60*60*1e3-24*60*60*1e3}else this.endForbiddenTime=null}},focus(){this.type!=="slider"&&this.type!=="rate"&&this.lineEdit.editingCell&&this.position&&this.position.row===this.lineEdit.editingCell.row&&this.position.prop===this.lineEdit.editingCell.prop&&this.$refs.item&&this.$refs.item.focus()},handleBeforeUpload(e){let t=this.fileSetObj.limitFileSize;if(t===void 0&&(t=30),e.size>t*1024*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},setTreeType(){this.type&&(this.type.indexOf("single")>=0&&this.type.indexOf("Tree")>0?this.isMultiTree=!1:this.isMultiTree=!0,this.type.indexOf("DeptManTree")>0&&(this.deptManTree=!0),this.type.indexOf("DeptTree")>0&&(this.deptTree=!0),this.type.indexOf("WgManTree")>0&&(this.wgManTree=!0),this.type.indexOf("WgTree")>0&&(this.wgTree=!0))},showOrganizationTree(){if(this.column.orgTreeSet){const e=JSON.parse(this.column.orgTreeSet);if(e.length)this.fields=e;else if(e.orgTreeSetArr&&(this.fields=e.orgTreeSetArr),e.specifyType)if(e.specifyType==="dataTable"){if(e.dataTableField){const t=getEntityFieldValue(this.row,e.dataTableField);t&&t!==""&&(this.departmentInfo=t.split(","))}}else(e.specifyType==="dept"||e.specifyType==="workGroup")&&e.specifyDept&&e.specifyDept!==""&&(typeof e.specifyDept=="object"?this.departmentInfo=e.specifyDept:this.departmentInfo=e.specifyDept.split(","))}},cellEvent(e,t,n){let o=!1;if(e==="focus"&&$emit(this,"focus",t),e==="input"&&this.isDateControll()){let l=t;l===""&&(l=null),$emit(this,"update:value",l),o=!0,this.innerValue=l}else if(e==="input"&&this.isSelectControll()){if(this.type==="multiselect"&&this.innerValue&&Object.prototype.toString.apply(this.innerValue)==="[object Array]"){const l="saveAll";this.innerValue.indexOf(l)<0&&$emit(this,"update:value",this.innerValue.join(","))}else $emit(this,"update:value",this.innerValue);o=!0}else e==="input"&&n!==void 0&&n===!0?(this.innerValue=t,$emit(this,"update:value",t),o=!0):e==="blur"&&!this.isSelectControll()&&(this.blurEvent(),o=!0,this.innerValue&&this.isInputControl()&&this.column.dataType==="TEXT"&&(console.log("trim value",this.innerValue),this.innerValue=this.innerValue.trim()));if(!o&&e==="change"&&this.blurEvent(),e==="clear"){if((this.type==="multiselect"||this.type==="select")&&isDynamicDataSourceSource(this.column))for(let l=0;l<this.valueSetOptions.length;l++)this.column.prop!==this.valueSetOptions[l].valueColumn.dbColumnName&&this.setCellValue(this.valueSetOptions[l].valueColumn.dbColumnName,null,"input");$emit(this,"update:value",null)}const i=store$1.get(this.listCode);i.editProp=this.column.prop,this.column.events&&this.column.events[e]?this.callCustomEvent(e):isEditOptionFunction(e,this.listCode)&&i.options.lineEditOptions[e].call(this,t,this.row,this.column,i.additionalParamMap),$emit(this,"findIndex")},blurEvent(){(this.innerValue===null||this.innerValue===void 0)&&(this.innerValue=null,this.val=null),$emit(this,"update:value",this.innerValue)},isInputControl(){return this.type==="input"||this.type==="textarea"},isDateControll(){return this.type==="date"||this.column.dataType==="DATE"||this.type==="time"||this.column.dataType==="TIME"},isSelectControll(){return this.type==="select"||this.type==="multiselect"},isDynamicDataSourceSource(){return isDynamicDataSourceSource(this.column)},isDecimalDateType(){return this.column.dataType&&this.column.dataType==="DOUBLE"||this.column.dataType==="FLOAT"},callCustomEvent(e){this.callCustomEventWithParam(e,{value:this.innerValue,row:this.row,column:this.column,extendParams:this.extendParams})},callCustomEventWithParam(e,t){if(this.column&&this.column.events&&this.column.events[e]){const n=this.column.events[e];this.listCode||(this.listCode=store$1.get("_list_code"));const o=store$1.get(this.listCode);o.options&&o.options.eventCallBack&&o.options.eventCallBack[n]&&typeof o.options.eventCallBack[n]=="function"&&(t||(t={}),t.formData=o.options&&o.options.formData?o.options.formData:null,t.parent=this.parentFormData,t.rowIndex=this.rowIndex,t.additionalParamMap=o.additionalParamMap,o.options.eventCallBack[n].call(this,t))}},checkDecimal(){this.isDecimalDateType()&&this.innerValue&&this.innerValue!==null&&(/^(-?\d+)(\.\d+)?$/.test(this.innerValue+"")||(this.$message({type:"warning",message:this.$t("imatrixUIMessage.invalideDoubleValue",{num:this.innerValue}),showClose:!0}),this.focus()))},customFocus(){apis$2.focus(this.position?this.position.row:null)},openAnnexUpload(){this.annexUploadFlag=!0},previewImg(){this.fileList=getFileList(this.row,this.column,this.isSql),this.showSingleImgFlag=!0},uploadOnSuccess(e){if(e){const t={name:e.showName,serverPath:e.serverPath};if(this.column.fileSet&&this.column.fileSet!==""){const n=JSON.parse(this.column.fileSet);n&&(this.fileMultiple?this.multiStorage(n,t):this.radioStorageFile(n,t),this.fileList=getFileList(this.row,this.column,this.isSql))}}this.annexUploadFlag=!1},setCellValue(e,t,n){this.row[e]=t,n&&n.split(",").forEach(o=>{this.callCustomEventWithParam(o,{value:t,row:this.row,column:this.column,prop:e})})},radioStorageFile(e,t){e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,t.name,"input"):e.showNameData.name&&this.setCellValue(e.showNameData.name,t.name,"input")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,t.serverPath):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,t.serverPath)),this.packageFileNameWithFileList([{showName:t.name,serverPath:t.serverPath}])},multiStorage(e,t){const n=analysisFileSetObj(e,this.isSql);if(e.childAnnexDataTableCode){let o=this.row[this.column.prop];o||(o=[]);const i=this.responseFileToFileObj(e,t);o.push(i),this.fileList=otherFilesToStandard(e,n,o,null),this.setCellValue(this.column.prop,o,"input")}else{let o="",i="";if(e.showNameData){if(this.isSql){if(e.showNameData.dbName&&this.row){if(this.row[e.showNameData.dbName]){let l=this.row[e.showNameData.dbName];l+=","+t.name,this.setCellValue(e.showNameData.dbName,l,"input")}else this.setCellValue(e.showNameData.dbName,t.name,"input");o=this.row[e.showNameData.dbName]}}else if(e.showNameData.name&&this.row){if(this.row[e.showNameData.name]){let l=this.row[e.showNameData.name];l+=","+t.name,this.setCellValue(e.showNameData.name,l,"input")}else this.setCellValue(e.showNameData.name,t.name,"input");o=this.row[e.showNameData.name]}}if(e.serverNameData){if(this.isSql){if(e.serverNameData.dbName&&this.row){if(this.row[e.serverNameData.dbName]){let l=this.row[e.serverNameData.dbName];l+=","+t.serverPath,this.setCellValue(e.serverNameData.dbName,l)}else this.setCellValue(e.serverNameData.dbName,t.serverPath);i=this.row[e.serverNameData.dbName]}}else if(e.serverNameData.name&&this.row){if(this.row[e.serverNameData.name]){let l=this.row[e.serverNameData.name];l+=","+t.serverPath,this.setCellValue(e.serverNameData.name,l)}else this.setCellValue(e.serverNameData.name,t.serverPath);i=this.row[e.serverNameData.name]}}this.fileList=otherFilesToStandard(e,n,null,{showName:o,serverPath:i})}this.packageFileNameWithFileList()},responseFileToFileObj(e,t){const n={};return e.showNameData&&(this.isSql?e.showNameData.dbName&&(n.fileSetObj.showNameData.dbName=t.name):e.showNameData.name&&(n.fileSetObj.showNameData.name=t.name)),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&(n.fileSetObj.serverNameData.dbName=t.serverPath):e.serverNameData.name&&(n.fileSetObj.serverNameData.name=t.serverPath)),n},deleteAnnexFile(e){e&&(e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,null,"input,clear"):e.showNameData.name&&this.setCellValue(e.showNameData.name,null,"input,clear")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,null):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,null)))},deleteFile(e,t){if(this.fileList=e,t!==void 0&&t!==-1&&this.fileList.splice(t,1),this.packageFileNameWithFileList(),this.column.fileSet&&this.column.fileSet!==""){const n=JSON.parse(this.column.fileSet);if(n)if(this.fileMultiple){const o=analysisFileSetObj(n,this.isSql);this.standardToOtherFiles(n,o)}else this.deleteAnnexFile(n)}},packageFileNameWithFileList(e){if(e||(e=this.fileList),e&&e.length>0){let t="",n="";e.forEach(o=>{t+=o.showName+",",n+=o.serverPath+","}),t&&t.indexOf(",")>0&&(this.lastFileName=t.substring(0,t.lastIndexOf(",")),this.lastServerName=n.substring(0,n.lastIndexOf(",")))}else this.lastFileName=null,this.lastServerName=null},standardToOtherFiles(e,t){if(e.childAnnexDataTableCode){let i=null;if(this.fileList&&this.fileList.length>0){i=[];for(var n=0;n<this.fileList.length;n++){const l=this.fileList[n],f={};f.keyValueParam.showName=l.showName,f.keyValueParam.serverPath=l.serverPath,i.push(f)}}this.setCellValue(this.column.prop,i,"input")}else{let i=null,l=null;if(this.fileList&&this.fileList.length>0){i="",l="";for(var o=0;o<this.fileList.length;o++){const f=this.fileList[o];i!==""&&(i+=","),l!==""&&(l+=","),i+=f.showName,l+=f.serverPath}}this.setCellValue(t.showName,i,"input"),this.setCellValue(t.serverPath,l)}},organizationInputEvent(e,t){if(this.isSql&&e&&e.indexOf(".")<0&&e!==this.column.prop&&this.tableName){const n="__";e=this.tableName+n+e}setEntityFieldValue(this.row,e,t),e&&e===this.column.prop&&this.callCustomEventWithParam("input",{value:t,row:this.row,column:this.column,prop:e})},clearOrganizationInputEvent(e){this.isSql?setEntityFieldValue(this.row,e,""):setEntityFieldValue(this.row,e,null),e&&e===this.column.prop&&this.callCustomEventWithParam("clear",{row:this.row,column:this.column,prop:e})},appendOrganizationInputEvent(e,t,n,o,i){setEntityFieldValue(this.row,e,i),e&&e===this.column.prop&&this.callCustomEventWithParam("append",{originalValue:t,appendValue:n,separator:o,finallyValue:i,row:this.row,column:this.column,prop:e})},replaceOrganizationInputEvent(e,t,n){setEntityFieldValue(this.row,e,n),e&&e===this.column.prop&&this.callCustomEventWithParam("replace",{originalValue:t,newValue:n,row:this.row,column:this.column,prop:e})},setDynamicSourceSelectValue({value:e,sourceColumnName:t,targetColumnName:n,options:o,selectedItem:i}){n&&(this.setCellValue(n,e,"input"),this.callCustomEventWithParam("input",{value:e,extendParams:i,row:this.row,column:this.column,targetColumnName:n}))},multiselectChange(e,t){this.extendParams=t;let n=!1;if(e&&e.length>0){const o="saveAll";e.indexOf(o)!==-1&&(e.length-1>=this.options.length?this.innerValue=null:((!this.innerValue||this.innerValue.indexOf(o)>=0)&&(this.innerValue=[]),this.options.forEach(l=>{this.innerValue.indexOf(l.value)===-1&&this.innerValue.push(l.value)})),n=!0)}this.innerValue&&typeof this.innerValue!="number"&&this.innerValue.indexOf("saveAll")!==-1&&this.innerValue.splice(this.innerValue.indexOf("saveAll"),1),n&&this.cellEvent("input",this.innerValue),this.cellEvent("change",e)},getDefaultValue(e){if(this.isInvalidValue(e)){if(this.column.componentType==="select"&&!isDynamicDataSourceSource(this.column)&&this.column.valueSet){const t=this.column.valueSet.find(n=>n.selected===!0);if(t)return setEntityFieldValue(this.row,this.column.prop,t.value),t.value}else if(this.column.componentType==="inputNumber"){let t=0;if(this.column.valueSetOptions&&this.column.valueSetOptions!==""&&this.column.componentType==="inputNumber"){const n=JSON.parse(this.column.valueSetOptions);n.min&&(t=n.min)}return setEntityFieldValue(this.row,this.column.prop,t),t}}else if(this.column.componentType==="inputNumber"){const t=Number(e);return setEntityFieldValue(this.row,this.column.prop,t),t}return e},refresData(e){$emit(this,"refresData",e)},refresPortData(e,t){$emit(this,"refresPortData",e,t)},refresPortsData(e){$emit(this,"refresPortsData",e)},refresMainTableFields(e){$emit(this,"refresMainTableFields",e)},deleteSuccess(e){console.log("deleteSuccess",e,this.fileInfo)},isValueFormat(){return this.column.dataType==="TEXT"||this.column.dataType==="text"?this.isFormat():"x"},isFormat(){return this.type==="time"&&this.column.dataType==="TIME"||this.type==="dateTimePicker"?"YYYY-MM-DD HH:mm:ss":this.type==="date"&&this.column.dataType==="DATE"?"YYYY-MM-DD":this.type==="timePicker"?this.column.originalFormat?this.column.originalFormat:"HH:mm:ss":this.type==="year"?"YYYY":this.type==="month"?"MM":"YYYY-MM-DD"},fnProhibitToEdit(e){$emit(this,"prohibitToEdit",e)},setInputNumberConfig(){if(this.column.componentType==="inputNumber")if(this.column.valueSetOptions&&this.column.valueSetOptions!==""&&this.column.componentType==="inputNumber"){const e=JSON.parse(this.column.valueSetOptions);this.inputNumberSet=e}else this.inputNumberSet={min:null,max:null,step:1,precision:0,position:""}},isValidValue(e){return e!=null&&e!==""},isInvalidValue(e){return e==null||e===""},getSwitchConfig(e){if(this.valueSetOptions&&this.valueSetOptions[e])return this.valueSetOptions[e];if(e==="activeValue")return this.dataSourceType==="mysql"?!0:1;if(e==="inactiveValue")return this.dataSourceType==="mysql"?!1:0;if(e==="offColor")return"#ff4949";if(e==="onColor")return"#13ce66"}}};function _sfc_render$U(e,t,n,o,i,l){const f=Vue.resolveComponent("el-date-picker"),v=Vue.resolveComponent("el-time-picker"),_=Vue.resolveComponent("el-input"),C=Vue.resolveComponent("fs-upload-list"),x=Vue.resolveComponent("multipart-upload"),V=Vue.resolveComponent("el-option"),I=Vue.resolveComponent("el-select"),D=Vue.resolveComponent("dynamic-source-select"),F=Vue.resolveComponent("el-input-number"),U=Vue.resolveComponent("el-switch"),X=Vue.resolveComponent("el-slider"),G=Vue.resolveComponent("el-rate"),R=Vue.resolveComponent("organization-input"),H=Vue.resolveComponent("el-button"),ue=Vue.resolveComponent("el-upload"),Ae=Vue.resolveComponent("el-dialog"),ce=Vue.resolveComponent("view-image-dialog");return n.type&&n.type.indexOf("custom:")>=0&&i.componentName!=""?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle(n.row.validateErrorField&&n.row.validateErrorField===n.column.prop?"border:1px solid red":"")},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i.componentName),{ref:"customItem",disabled:i.disabled,entity:n.row,"grid-data":i.gridData,"page-grid-data":i.pageGridData,parent:i.parentFormData,prop:n.column.prop,row:n.row,"row-index":n.position?n.position.row:null,"select-options":n.options,value:i.innerValue,"additional-param-map":i.additionalParamMap,onChange:t[0]||(t[0]=L=>l.cellEvent("change",L)),onInput:t[1]||(t[1]=L=>l.cellEvent("input",L))},null,40,["disabled","entity","grid-data","page-grid-data","parent","prop","row","row-index","select-options","value","additional-param-map"]))],4)):(Vue.openBlock(),Vue.createElementBlock("div",{key:1,style:Vue.normalizeStyle(n.row.validateErrorField&&n.row.validateErrorField===n.column.prop?"border:1px solid red":"")},[n.type==="year"||n.type==="month"?(Vue.openBlock(),Vue.createBlock(f,{key:0,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[2]||(t[2]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime"),type:n.type,"value-format":l.isValueFormat(),style:{width:"100%"},onBlur:t[3]||(t[3]=L=>l.cellEvent("blur",L)),onChange:t[4]||(t[4]=L=>l.cellEvent("change",L)),onFocus:t[5]||(t[5]=L=>l.cellEvent("focus",L)),onInput:t[6]||(t[6]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","type","value-format"])):Vue.createCommentVNode("",!0),n.type==="yearRange"?(Vue.openBlock(),Vue.createBlock(f,{key:1,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[7]||(t[7]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectYear"),style:{width:"100%"},type:"year","value-format":"YYYY",onBlur:t[8]||(t[8]=L=>l.cellEvent("blur",L)),onChange:t[9]||(t[9]=L=>l.cellEvent("change",L)),onFocus:t[10]||(t[10]=L=>l.cellEvent("focus",L)),onInput:t[11]||(t[11]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","placeholder"])):n.type==="dateTimePicker"?(Vue.openBlock(),Vue.createBlock(f,{key:2,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[12]||(t[12]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":l.isValueFormat(),style:{width:"100%"},type:"datetime",onBlur:t[13]||(t[13]=L=>l.cellEvent("blur",L)),onChange:t[14]||(t[14]=L=>l.cellEvent("change",L)),onFocus:t[15]||(t[15]=L=>l.cellEvent("focus",L)),onInput:t[16]||(t[16]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","value-format"])):n.type==="date"||n.column.dataType==="DATE"?(Vue.openBlock(),Vue.createBlock(f,{key:3,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[17]||(t[17]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),"picker-options":i.pickerOptions,placeholder:e.$t("imatrixUIMessage.selectionDate"),"value-format":l.isValueFormat(),style:{width:"100%"},type:"date",onBlur:t[18]||(t[18]=L=>l.cellEvent("blur",L)),onChange:t[19]||(t[19]=L=>l.cellEvent("change",L)),onFocus:t[20]||(t[20]=L=>l.cellEvent("focus",L)),onInput:t[21]||(t[21]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","picker-options","placeholder","value-format"])):n.type==="timePicker"?(Vue.openBlock(),Vue.createBlock(v,{key:4,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[22]||(t[22]=L=>i.innerValue=L),disabled:i.disabled,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.pleaseEnterATimePoint"),"value-format":l.isValueFormat(),style:{width:"100%"},onBlur:t[23]||(t[23]=L=>l.cellEvent("blur",L)),onChange:t[24]||(t[24]=L=>l.cellEvent("change",L)),onFocus:t[25]||(t[25]=L=>l.cellEvent("focus",L)),onInput:t[26]||(t[26]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","value-format"])):n.type==="time"||n.column.dataType==="TIME"?(Vue.openBlock(),Vue.createBlock(f,{key:5,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[27]||(t[27]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":l.isValueFormat(),style:{width:"100%"},type:"datetime",onBlur:t[28]||(t[28]=L=>l.cellEvent("blur",L)),onChange:t[29]||(t[29]=L=>l.cellEvent("change",L)),onFocus:t[30]||(t[30]=L=>l.cellEvent("focus",L)),onInput:t[31]||(t[31]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","value-format"])):n.type==="input"&&(n.column.dataType==="INTEGER"||n.column.dataType==="LONG")?(Vue.openBlock(),Vue.createBlock(_,{key:6,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[32]||(t[32]=L=>i.innerValue=L),modelModifiers:{number:!0},disabled:i.disabled,placeholder:e.$t("imatrixUIMessage.pleaseEnterContent"),title:i.innerValue,clearable:"",onBlur:t[33]||(t[33]=L=>l.cellEvent("blur",L)),onChange:t[34]||(t[34]=L=>l.cellEvent("change",L)),onClear:t[35]||(t[35]=L=>l.cellEvent("clear",L)),onFocus:t[36]||(t[36]=L=>l.cellEvent("focus",L)),onInput:t[37]||(t[37]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled","placeholder","title"])):n.type==="input"?(Vue.openBlock(),Vue.createBlock(_,{key:7,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[38]||(t[38]=L=>i.innerValue=L),disabled:i.disabled,maxlength:i.controlConfig.maxlength?i.controlConfig.maxlength:"",minlength:i.controlConfig.minlength?i.controlConfig.minlength:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent"),title:i.innerValue,clearable:"",onBlur:t[39]||(t[39]=L=>l.cellEvent("blur",L)),onChange:t[40]||(t[40]=L=>l.cellEvent("change",L)),onClear:t[41]||(t[41]=L=>l.cellEvent("clear",L)),onFocus:t[42]||(t[42]=L=>l.cellEvent("focus",L)),onInput:t[43]||(t[43]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled","maxlength","minlength","placeholder","title"])):n.type==="textarea"?(Vue.openBlock(),Vue.createBlock(_,{key:8,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[44]||(t[44]=L=>i.innerValue=L),disabled:i.disabled,maxlength:i.controlConfig.maxlength?i.controlConfig.maxlength:"",minlength:i.controlConfig.minlength?i.controlConfig.minlength:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent"),rows:1,title:i.innerValue,clearable:"",type:"textarea",onBlur:t[45]||(t[45]=L=>l.cellEvent("blur",L)),onChange:t[46]||(t[46]=L=>l.cellEvent("change",L)),onClear:t[47]||(t[47]=L=>l.cellEvent("clear",L)),onFocus:t[48]||(t[48]=L=>l.cellEvent("focus",L)),onInput:t[49]||(t[49]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","maxlength","minlength","placeholder","title"])):n.type==="annex"?(Vue.openBlock(),Vue.createBlock(C,{key:9,"custom-view-url":!0,disabled:i.disabled,"file-info":i.fileInfo,"file-list":i.fileList,"file-set-obj":i.fileSetObj,"is-sql":n.isSql,row:n.row,value:i.innerValue,onDelete:l.deleteFile,onDeleteSuccess:l.deleteSuccess,onUploadSuccess:l.uploadOnSuccess},null,8,["disabled","file-info","file-list","file-set-obj","is-sql","row","value","onDelete","onDeleteSuccess","onUploadSuccess"])):n.type==="multipartUpload"?(Vue.openBlock(),Vue.createBlock(x,{key:10,disabled:i.disabled,entity:n.row,"file-info":i.fileInfo,"file-list":i.fileList,"file-set-obj":i.fileSetObj,value:i.innerValue,type:"list",onDelete:l.deleteFile,onDeleteSuccess:l.deleteSuccess,onUploadSuccess:l.uploadOnSuccess},null,8,["disabled","entity","file-info","file-list","file-set-obj","value","onDelete","onDeleteSuccess","onUploadSuccess"])):n.type==="select"&&!l.isDynamicDataSourceSource()?(Vue.openBlock(),Vue.createBlock(I,{key:11,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[50]||(t[50]=L=>i.innerValue=L),"allow-create":!!i.controlConfig.allowCreate,clearable:!!i.controlConfig.clearable,"default-first-option":!!i.controlConfig.allowCreate,disabled:i.disabled,filterable:!!i.controlConfig.filterable,placeholder:e.$t("imatrixUIMessage.pleaseSelect"),title:l.getClassOptionTitle(i.innerValue),onBlur:t[51]||(t[51]=L=>l.cellEvent("blur",L)),onChange:t[52]||(t[52]=L=>l.cellEvent("change",L)),onClear:t[53]||(t[53]=L=>l.cellEvent("clear",L)),onFocus:t[54]||(t[54]=L=>l.cellEvent("focus",L)),onInput:t[55]||(t[55]=L=>l.cellEvent("input",L)),onVisibleChange:t[56]||(t[56]=L=>l.cellEvent("visible-change",L))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.options,L=>(Vue.openBlock(),Vue.createBlock(V,{key:L.value,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","allow-create","clearable","default-first-option","disabled","filterable","placeholder","title"])):n.type==="multiselect"&&!l.isDynamicDataSourceSource()?(Vue.openBlock(),Vue.createBlock(I,{key:12,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[57]||(t[57]=L=>i.innerValue=L),disabled:i.disabled,placeholder:e.$t("imatrixUIMessage.pleaseSelect"),title:l.getClassOptionTitle(i.innerValue),clearable:"","collapse-tags":"",multiple:"",onBlur:t[58]||(t[58]=L=>l.cellEvent("blur",L)),onChange:l.multiselectChange,onClear:t[59]||(t[59]=L=>l.cellEvent("clear",L)),onFocus:t[60]||(t[60]=L=>l.cellEvent("focus",L)),onInput:t[61]||(t[61]=L=>l.cellEvent("input",L)),onVisibleChange:t[62]||(t[62]=L=>l.cellEvent("visible-change",L)),onRemoveTag:t[63]||(t[63]=L=>l.cellEvent("remove-tag",L))},{default:Vue.withCtx(()=>[Vue.createVNode(V,{label:e.$t("superGrid.selectAll"),value:"saveAll"},null,8,["label"]),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.options,L=>(Vue.openBlock(),Vue.createBlock(V,{key:L.value,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder","title","onChange"])):(n.type==="multiselect"||n.type==="select")&&l.isDynamicDataSourceSource()?(Vue.openBlock(),Vue.createBlock(D,{key:13,value:i.innerValue,"onUpdate:value":t[64]||(t[64]=L=>i.innerValue=L),"base-props":{multiple:n.type==="multiselect",disabled:i.disabled},column:n.column,entity:n.row,"is-join-table":i.isJoinTable,"list-code":n.listCode,"list-toolbar-form-data":n.listToolbarFormData,options:{dynamicDataSourceCode:i.dynamicDataSourceCode,valueSetOptions:i.valueSetOptions,isSql:n.isSql,additionalParameter:i.additionalParamMap?JSON.stringify(i.additionalParamMap):null},parent:i.parentFormData,"table-name":i.tableName,onBlur:t[65]||(t[65]=L=>l.cellEvent("blur",L)),onChange:l.multiselectChange,onClear:t[66]||(t[66]=L=>l.cellEvent("clear",L)),onFocus:t[67]||(t[67]=L=>l.cellEvent("focus",L)),onInput:t[68]||(t[68]=L=>l.cellEvent("input",L)),onVisibleChange:t[69]||(t[69]=L=>l.cellEvent("visible-change",L)),onRemoveTag:t[70]||(t[70]=L=>l.cellEvent("remove-tag",L)),onSetValue:l.setDynamicSourceSelectValue},null,8,["value","base-props","column","entity","is-join-table","list-code","list-toolbar-form-data","options","parent","table-name","onChange","onSetValue"])):n.type==="inputNumber"?(Vue.openBlock(),Vue.createBlock(F,{key:14,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[71]||(t[71]=L=>i.innerValue=L),"controls-position":i.inputNumberSet.position,disabled:i.disabled,max:i.inputNumberSet.max==0?0:i.inputNumberSet.max?i.inputNumberSet.max:1/0,min:i.inputNumberSet.min==0?0:i.inputNumberSet.min?i.inputNumberSet.min:-1/0,precision:i.inputNumberSet.precision,step:i.inputNumberSet.step?i.inputNumberSet.step:1,onBlur:t[72]||(t[72]=L=>l.cellEvent("blur",L)),onChange:t[73]||(t[73]=L=>l.cellEvent("change",L)),onFocus:t[74]||(t[74]=L=>l.cellEvent("focus",L)),onInput:t[75]||(t[75]=L=>l.cellEvent("input",L))},null,8,["modelValue","controls-position","disabled","max","min","precision","step"])):n.type==="switch"||n.column.dataType==="BOOLEAN"?(Vue.openBlock(),Vue.createBlock(U,{key:15,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[76]||(t[76]=L=>i.innerValue=L),"active-text":l.getSwitchConfig("activeText"),"active-value":l.getSwitchConfig("activeValue"),disabled:i.disabled,"inactive-text":l.getSwitchConfig("inactiveText"),"inactive-value":l.getSwitchConfig("inactiveValue"),"active-color":l.getSwitchConfig("onColor"),"inactive-color":l.getSwitchConfig("offColor"),onChange:t[77]||(t[77]=L=>l.cellEvent("change",L)),onInput:t[78]||(t[78]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","active-text","active-value","disabled","inactive-text","inactive-value","active-color","inactive-color"])):n.type==="slider"?(Vue.openBlock(),Vue.createBlock(X,{key:16,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[79]||(t[79]=L=>i.innerValue=L),disabled:i.disabled,onChange:t[80]||(t[80]=L=>l.cellEvent("change",L)),onInput:t[81]||(t[81]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled"])):n.type==="rate"?(Vue.openBlock(),Vue.createBlock(G,{key:17,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[82]||(t[82]=L=>i.innerValue=L),disabled:i.disabled,onChange:t[83]||(t[83]=L=>l.cellEvent("change",L)),onInput:t[84]||(t[84]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled"])):i.deptManTree||i.deptTree||i.wgManTree||i.wgTree?(Vue.openBlock(),Vue.createBlock(R,{key:18,"check-strictly":i.isCheckStrictly,"department-info":i.departmentInfo,disabled:i.disabled,fields:i.fields,"is-join-table":i.isJoinTable,models:n.row,multiple:i.isMultiTree,"table-name":i.tableName,"tree-type":i.deptManTree?"DeptUserTree":i.deptTree?"DeptTree":i.wgManTree?"WgTree":i.wgTree?"WgUserTree":null,value:i.innerValue,onAppend:l.appendOrganizationInputEvent,onClear:l.clearOrganizationInputEvent,onFocus:l.showOrganizationTree,onReplace:l.replaceOrganizationInputEvent,onSetValue:l.organizationInputEvent},null,8,["check-strictly","department-info","disabled","fields","is-join-table","models","multiple","table-name","tree-type","value","onAppend","onClear","onFocus","onReplace","onSetValue"])):Vue.createCommentVNode("",!0),Vue.createVNode(Ae,{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIMessage.tips"),visible:i.annexUploadFlag,width:"30%"},{default:Vue.withCtx(()=>[n.type==="annex"&&i.annexUploadFlag?(Vue.openBlock(),Vue.createBlock(ue,{key:0,accept:i.fileSetObj&&i.fileSetObj.accept?i.fileSetObj.accept:null,action:i.defaultAction,"before-upload":l.handleBeforeUpload,headers:i.headers,"on-success":l.uploadOnSuccess,"with-credentials":!0,name:"file"},{default:Vue.withCtx(()=>[Vue.createVNode(H,null,{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIMessage.upload")),1)]),_:1})]),_:1},8,["accept","action","before-upload","headers","on-success"])):Vue.createCommentVNode("",!0)]),_:1},8,["title","visible"]),i.showSingleImgFlag?(Vue.openBlock(),Vue.createBlock(ce,{key:19,deleteable:!i.disabled,downloadable:!i.disabled,"file-list":i.fileList,onClose:t[85]||(t[85]=L=>i.showSingleImgFlag=!1),onDelete:l.deleteFile},null,8,["deleteable","downloadable","file-list","onDelete"])):Vue.createCommentVNode("",!0)],4))}const DynamicInput=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$U]]),formatter$1={number:function(e,t){const n=t.precision,o=t.sign,i=t.delimiter,l=t.scientific;let f=t.scientificNum;if(e!==void 0&&e!=null)if(n>0&&(e=parseFloat(e),e=e.toFixed(n)),i){const _=(e+"").replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,");return o?_+o:_}else if(l!=null){let v=!1;f?f=parseInt(f):f=11,e.length>=f&&(v=!0),v&&(e=""+e,e=parseFloat(e),e=e.toExponential())}else return o&&!t.isCurrency?e+o:e;return e},currency:function(e,t){const n=t.sign;return t.isCurrency=!0,n+this.number(e,t)},date:function(e,t){const n=t.format;if(e!=null){const C=new Date(e);var o=C.getFullYear(),i=C.getMonth()+1,l=C.getDate(),f=C.getHours(),v=C.getMinutes(),_=C.getSeconds();i<10&&(i="0"+i),l<10&&(l="0"+l),f<10&&(f="0"+f),v<10&&(v="0"+v),_<10&&(_="0"+_);const x=n.replace("yyyy",o).replace("mm",v).replace("M",i).replace("m",i).replace("d",l).replace("hh",f).replace("HH",f).replace("ss",_);return x.indexOf("NaN")===-1?x:e}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return e||e>=0?this.number(e,t)+"%":e}};function doFormat$1(e,t){if(t=doFormatWithValueSet(e,t),t==null)return;e.formatter===void 0&&(e.dataType==="DATE"?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:e.dataType==="TIME"&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));const n=e.formatter;return n!==void 0&&formatter$1[n.type]!==void 0?formatter$1[n.type](t,n.options):t}function doFormatWithValueSet(e,t){if(t==null)return t;const n=e.valueSet;if(n!==void 0)if(e.componentType==="multiselect"&&!isDynamicDataSourceSource(e)){typeof t=="number"&&(t+="");const o=(t+"").split(","),i=[];o.forEach(l=>{const f=n.filter(v=>v.value===l+"");f.length>0&&i.push(f[0].label)}),t=i.join(",")}else{const o=n.filter(i=>i.value===t+"");o.length>0&&(t=o[0].label)}return t}const customFormatter$1={customFormatValue(e,t,n,o){if(this.customFormat){let i=e[t];this.isObjectProp(t)&&(i=this.objectPropOriginalValue(e,t));const l=doFormat$1(this.column,i),f=n.call(this,i,l,e,this.column,o);return typeof f>"u"?!1:(window.$vueApp.component(t+o,f),!0)}else return!1},isObjectProp(e){return!!(e&&e.indexOf(".")>0)},objectPropOriginalValue(e,t){try{let n=e;return t&&t.indexOf(".")>0?(t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n):e[t]}catch{return""}},objectPropValue(e,t){return this.formatter(e,t,this.column)},objectPropValueTwo(e,t){if((t.componentType==="annex"||t.componentType==="multipartUpload")&&t.fileSet){const n=JSON.parse(t.fileSet);if(n.childAnnexDataTableCode){const o=analysisFileSetObj(n,this.isSql),i=this.objectPropValue(e,t.prop);if(i&&i.length>0){const l=otherFilesToStandard(n,o,i,null);return l[l.length-1].showName}}else return this.objectPropValue(e,t.prop)}else if(t.formatter&&t.formatter.type==="files"){const n=JSON.parse(t.formatter.options.fileSet);if(n.childAnnexDataTableCode){const o=analysisFileSetObj(n,this.isSql),i=this.objectPropValue(e,t.prop);if(i&&i.length>0){const l=otherFilesToStandard(n,o,i,null);return l[l.length-1].showName}}else return this.objectPropValue(e,t.prop)}else return this.objectPropValue(e,t.prop)},formatter(e,t,n){const o=this.objectPropOriginalValue(e,t);if(this.columnFormatter!==void 0&&this.columnFormatter.type==="custom"){let i;if(this.columnFormatter.options&&this.columnFormatter.options.format&&(i=this.columnFormatter.options.format),i&&i!==null&&i!==""){const l=store$1.get(this.listCode);if(l.options&&l.options.eventCallBack&&l.options.eventCallBack[i]&&typeof l.options.eventCallBack[i]=="function"){const f={value:o,row:e,column:this.column,prop:t,additionalParamMap:l.additionalParamMap};return l.options.eventCallBack[i].call(this,f)}else return doFormat$1(n,o)}else return doFormat$1(n,o)}else return doFormat$1(n,o)},getColumnValue(e,t){const n=t.prop;let o=e[n];this.isObjectProp(n)&&(o=this.objectPropOriginalValue(e,n));const i=doFormat$1(t,o);return{originalValue:o,formatValue:i}},onClickFun(e,t,n,o,i){const l=this.getColumnValue(e,t);n.call(this,l.originalValue,l.formatValue,e,t,o,i)},isShowButtonFun(e,t,n,o){if(n===void 0)return!0;if(typeof n=="function"){const i=this.getColumnValue(e,t);let l=n.call(this,i.originalValue,i.formatValue,e,t,o);return l===void 0&&(l=!0),l}else return n},getHyperLinkSetting(e,t,n,o,i,l,f){const v=store$1.get(f);let _=null;v.options.extraParam&&v.options.extraParam.entityMap&&(_=v.options.extraParam.entityMap);let C={},x;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(x=e.formatter.options.format),x&&x!==""){const V=initialization(JSON.parse(x),t,n,o,i,l,_,v.pageContext);V&&V.label&&V.label!==""?console.log("label存在"):V.label=this.objectPropValueTwo(t,e),V&&V.title&&V.title!==""?console.log("title存在"):V.title=V.label,C=V}else C.visible=!0,C.label=this.objectPropValueTwo(t,e),C.title=C.label;return C},clickHyperLink(e,t,n,o){let i;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(i=e.formatter.options.format),i&&i!==""){let l=!0;const f=store$1.get(n),v=JSON.parse(i);if(console.log("gupre-grid---clickHyperLink--jumpPageSetting=",v),v.beforeClick){const _=v.beforeClick;if(console.log("gupre-grid---clickHyperLink--jumpPageSetting.beforeClick=",_),console.log("gupre-grid---clickHyperLink--gridParams.options[eventCallBack]=",f.options.eventCallBack),f.options&&f.options.eventCallBack&&f.options.eventCallBack[_]&&typeof f.options.eventCallBack[_]=="function"){const C={row:t,column:e,rowIndex:o,listCode:n,additionalParamMap:f.additionalParamMap};l=f.options.eventCallBack[_].call(this,C)}}isPromise$1(l)?l.then(_=>{this.doClickHyperLink(t,n,o,v,f)}):this.doClickHyperLink(t,n,o,v,f)}},doClickHyperLink(e,t,n,o,i){let l=null;i.options.extraParam&&i.options.extraParam.entityMap&&(l=i.options.extraParam.entityMap),console.log("ridParams.options.extraParam.entityMap",i.options.extraParam),jumpToPage(o,i.system,e.id?e.id:e.ID,e,i.additionalParamMap,null,null,l).then(f=>{console.log("clickHyperLink--openPageParams===",f),f&&(f._position="list",f._listCode=t,f._rowIndex=n,f.row=e,$emit(this,"open-page",f))})},getIconSetting(e,t,n,o,i){let l;const f=o.additionalParamMap,v=o.contextParameter;o&&o.basicInfo&&o.basicInfo.tableName&&(l=o.basicInfo.tableName);let _=null;o.options.extraParam&&o.options.extraParam.entityMap&&(_=o.options.extraParam.entityMap);let C={},x;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(x=e.formatter.options.format),x&&x!==""){const V=initialization(JSON.parse(x),t,n,f,v,l,_,o.pageContext);V&&V.label&&V.label!==""?console.log("label存在"):V.label=this.objectPropValueTwo(t,e),V&&V.title&&V.title!==""?console.log("title存在"):V.title=V.label,C=V}else C.visible=!0,C.label=this.objectPropValueTwo(t,e),C.title=C.label;return C}};/*!
|
|
32
|
+
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),f=new RegExp("^"+n+"$"),v=new RegExp("^"+i+"$"),_=function(ue){return ue&&ue.exact?l:new RegExp("(?:"+t(ue)+n+t(ue)+")|(?:"+t(ue)+i+t(ue)+")","g")};_.v4=function(H){return H&&H.exact?f:new RegExp(""+t(H)+n+t(H),"g")},_.v6=function(H){return H&&H.exact?v:new RegExp(""+t(H)+i+t(H),"g")};var C="(?:(?:[a-z]+:)?//)",x="(?:\\S+(?::\\S*)?@)?",V=_.v4().source,I=_.v6().source,D="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",F="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",U="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",X="(?::\\d{2,5})?",G='(?:[/?#][^\\s"]*)?',R="(?:"+C+"|www\\.)"+x+"(?:localhost|"+V+"|"+I+"|"+D+F+U+")"+X+G;return urlReg=new RegExp("(?:^"+R+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function e(t){return types.number(t)&&parseInt(t,10)===t},float:function e(t){return types.number(t)&&!types.integer(t)},array:function e(t){return Array.isArray(t)},regexp:function e(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function e(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function e(t){return isNaN(t)?!1:typeof t=="number"},object:function e(t){return typeof t=="object"&&!types.array(t)},method:function e(t){return typeof t=="function"},email:function e(t){return typeof t=="string"&&t.length<=320&&!!t.match(pattern$2.email)},url:function e(t){return typeof t=="string"&&t.length<=2048&&!!t.match(getUrlRegex())},hex:function e(t){return typeof t=="string"&&!!t.match(pattern$2.hex)}},type$1=function e(t,n,o,i,l){if(t.required&&n===void 0){required$1(t,n,o,i,l);return}var f=["integer","float","array","regexp","object","method","email","number","date","url","hex"],v=t.type;f.indexOf(v)>-1?types[v](n)||i.push(format(l.messages.types[v],t.fullField,t.type)):v&&typeof n!==t.type&&i.push(format(l.messages.types[v],t.fullField,t.type))},range=function e(t,n,o,i,l){var f=typeof t.len=="number",v=typeof t.min=="number",_=typeof t.max=="number",C=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=n,V=null,I=typeof n=="number",D=typeof n=="string",F=Array.isArray(n);if(I?V="number":D?V="string":F&&(V="array"),!V)return!1;F&&(x=n.length),D&&(x=n.replace(C,"_").length),f?x!==t.len&&i.push(format(l.messages[V].len,t.fullField,t.len)):v&&!_&&x<t.min?i.push(format(l.messages[V].min,t.fullField,t.min)):_&&!v&&x>t.max?i.push(format(l.messages[V].max,t.fullField,t.max)):v&&_&&(x<t.min||x>t.max)&&i.push(format(l.messages[V].range,t.fullField,t.min,t.max))},ENUM$1="enum",enumerable$1=function e(t,n,o,i,l){t[ENUM$1]=Array.isArray(t[ENUM$1])?t[ENUM$1]:[],t[ENUM$1].indexOf(n)===-1&&i.push(format(l.messages[ENUM$1],t.fullField,t[ENUM$1].join(", ")))},pattern$1=function e(t,n,o,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(format(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var f=new RegExp(t.pattern);f.test(n)||i.push(format(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n,"string")&&!t.required)return o();rules.required(t,n,i,f,l,"string"),isEmptyValue(n,"string")||(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l),rules.pattern(t,n,i,f,l),t.whitespace===!0&&rules.whitespace(t,n,i,f,l))}o(f)},method=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules.type(t,n,i,f,l)}o(f)},number=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(n===""&&(n=void 0),isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},_boolean=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules.type(t,n,i,f,l)}o(f)},regexp=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),isEmptyValue(n)||rules.type(t,n,i,f,l)}o(f)},integer=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},floatFn=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},array=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(n==null&&!t.required)return o();rules.required(t,n,i,f,l,"array"),n!=null&&(rules.type(t,n,i,f,l),rules.range(t,n,i,f,l))}o(f)},object=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules.type(t,n,i,f,l)}o(f)},ENUM="enum",enumerable=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l),n!==void 0&&rules[ENUM](t,n,i,f,l)}o(f)},pattern=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n,"string")&&!t.required)return o();rules.required(t,n,i,f,l),isEmptyValue(n,"string")||rules.pattern(t,n,i,f,l)}o(f)},date=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n,"date")&&!t.required)return o();if(rules.required(t,n,i,f,l),!isEmptyValue(n,"date")){var _;n instanceof Date?_=n:_=new Date(n),rules.type(t,_,i,f,l),_&&rules.range(t,_.getTime(),i,f,l)}}o(f)},required=function e(t,n,o,i,l){var f=[],v=Array.isArray(n)?"array":typeof n;rules.required(t,n,i,f,l,v),o(f)},type=function e(t,n,o,i,l){var f=t.type,v=[],_=t.required||!t.required&&i.hasOwnProperty(t.field);if(_){if(isEmptyValue(n,f)&&!t.required)return o();rules.required(t,n,i,v,l,f),isEmptyValue(n,f)||rules.type(t,n,i,v,l)}o(v)},any=function e(t,n,o,i,l){var f=[],v=t.required||!t.required&&i.hasOwnProperty(t.field);if(v){if(isEmptyValue(n)&&!t.required)return o();rules.required(t,n,i,f,l)}o(f)},validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var messages=newMessages(),Schema=function(){function e(n){this.rules=null,this._messages=messages,this.define(n)}var t=e.prototype;return t.define=function(o){var i=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var f=o[l];i.rules[l]=Array.isArray(f)?f:[f]})},t.messages=function(o){return o&&(this._messages=deepMerge(newMessages(),o)),this._messages},t.validate=function(o,i,l){var f=this;i===void 0&&(i={}),l===void 0&&(l=function(){});var v=o,_=i,C=l;if(typeof _=="function"&&(C=_,_={}),!this.rules||Object.keys(this.rules).length===0)return C&&C(null,v),Promise.resolve(v);function x(U){var X=[],G={};function R(ue){if(Array.isArray(ue)){var Ae;X=(Ae=X).concat.apply(Ae,ue)}else X.push(ue)}for(var H=0;H<U.length;H++)R(U[H]);X.length?(G=convertFieldsError(X),C(X,G)):C(null,v)}if(_.messages){var V=this.messages();V===messages&&(V=newMessages()),deepMerge(V,_.messages),_.messages=V}else _.messages=this.messages();var I={},D=_.keys||Object.keys(this.rules);D.forEach(function(U){var X=f.rules[U],G=v[U];X.forEach(function(R){var H=R;typeof H.transform=="function"&&(v===o&&(v=_extends$1({},v)),G=v[U]=H.transform(G)),typeof H=="function"?H={validator:H}:H=_extends$1({},H),H.validator=f.getValidationMethod(H),H.validator&&(H.field=U,H.fullField=H.fullField||U,H.type=f.getType(H),I[U]=I[U]||[],I[U].push({rule:H,value:G,source:v,field:U}))})});var F={};return asyncMap(I,_,function(U,X){var G=U.rule,R=(G.type==="object"||G.type==="array")&&(typeof G.fields=="object"||typeof G.defaultField=="object");R=R&&(G.required||!G.required&&U.value),G.field=U.field;function H(ce,L){return _extends$1({},L,{fullField:G.fullField+"."+ce,fullFields:G.fullFields?[].concat(G.fullFields,[ce]):[ce]})}function ue(ce){ce===void 0&&(ce=[]);var L=Array.isArray(ce)?ce:[ce];!_.suppressWarning&&L.length&&e.warning("async-validator:",L),L.length&&G.message!==void 0&&(L=[].concat(G.message));var Fe=L.map(complementError(G,v));if(_.first&&Fe.length)return F[G.field]=1,X(Fe);if(!R)X(Fe);else{if(G.required&&!U.value)return G.message!==void 0?Fe=[].concat(G.message).map(complementError(G,v)):_.error&&(Fe=[_.error(G,format(_.messages.required,G.field))]),X(Fe);var tt={};G.defaultField&&Object.keys(U.value).map(function(Ke){tt[Ke]=G.defaultField}),tt=_extends$1({},tt,U.rule.fields);var de={};Object.keys(tt).forEach(function(Ke){var et=tt[Ke],Ot=Array.isArray(et)?et:[et];de[Ke]=Ot.map(H.bind(null,Ke))});var re=new e(de);re.messages(_.messages),U.rule.options&&(U.rule.options.messages=_.messages,U.rule.options.error=_.error),re.validate(U.value,U.rule.options||_,function(Ke){var et=[];Fe&&Fe.length&&et.push.apply(et,Fe),Ke&&Ke.length&&et.push.apply(et,Ke),X(et.length?et:null)})}}var Ae;if(G.asyncValidator)Ae=G.asyncValidator(G,U.value,ue,U.source,_);else if(G.validator){try{Ae=G.validator(G,U.value,ue,U.source,_)}catch(ce){console.error==null||console.error(ce),_.suppressValidatorError||setTimeout(function(){throw ce},0),ue(ce.message)}Ae===!0?ue():Ae===!1?ue(typeof G.message=="function"?G.message(G.fullField||G.field):G.message||(G.fullField||G.field)+" fails"):Ae instanceof Array?ue(Ae):Ae instanceof Error&&ue(Ae.message)}Ae&&Ae.then&&Ae.then(function(){return ue()},function(ce){return ue(ce)})},function(U){x(U)},v)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!validators.hasOwnProperty(o.type))throw new Error(format("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var i=Object.keys(o),l=i.indexOf("message");return l!==-1&&i.splice(l,1),i.length===1&&i[0]==="required"?validators.required:validators[this.getType(o)]||void 0},e}();Schema.register=function e(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[t]=n},Schema.warning=warning,Schema.messages=messages,Schema.validators=validators;function setObjectPropRule(e,t,n){const o={},i=e.prop;t||(t={});let l=0;const f=i.split(".");return f.forEach(v=>{let _;if(l===f.length-1)_=getEndObjectRule(o,f,v),_.fields[v]=n;else{let C;l===0?_=t:(C=getLastObjectRule(o,f,f[l-1]),_=C.fields),_[v]||(_[v]={type:"object",required:!0,fields:{}}),l===0?o[v]=_[v]:C.fields[v]=_[v]}l++}),o}function getLastObjectRule(e,t,n){let o;for(let i=0;i<t.length;i++){const l=t[i];if(i===0?o=e[l]:o=o.fields[t[i]],l===n)break}return o}function getEndObjectRule(e,t,n){let o;for(let i=0;i<t.length&&(i===0?o=e[t[i]]:o=o.fields[t[i]],!(i!==t.length-1&&t[i+1]===n));i++);return o}function getValidator(e){e||(e=store$1.get("_list_code"));const n=store$1.get(e).columns,o={};return n&&n.forEach(i=>{const l=i.prop;if(l&&i.validations&&!isDisableEdit(l,e)){const f=JSON.parse(i.validations);f.forEach(v=>{v.pattern&&(v.pattern=new RegExp(v.pattern))}),l.indexOf(".")>0?setObjectPropRule(i,o,f):f&&f.length>0&&(o[l]=[...f])}}),o}function validator(e,t,n,o,i,l,f){return validatorEntity(e,t,n,o,!0,i,l,f)}function validatorEntity(e,t,n,o,i,l,f,v){let _=!1,C;o?C=o:C=getValidator(t);const x=new Schema(C);t||(t=store$1.get("_list_code"));const V=store$1.get(t);return x.validate(e,{first:!0},(I,D)=>{let F;if(I){const U=I[0].message;F=I[0].field,n!=null&&V.gridData.length>n?(V.gridData[n].validateErrorField=I[0].field,l!==void 0&&l&&f!==void 0&&v!==void 0?_=getI18n().t("superGrid.pageRecordLine",{pageNum:f,row:v})+","+U:_=getI18n().t("superGrid.recordLine",{row:n+1})+","+U):V.$rowIndex!==null&&V.$rowIndex!==void 0&&V.gridData.length>V.$rowIndex&&(V.gridData[V.$rowIndex].validateErrorField=I[0].field,_=getI18n().t("superGrid.recordLine",{row:V.$rowIndex+1})+","+U)}else n!=null&&V.gridData.length>n?l!==void 0&&l?V.subTableData[n].validateErrorField="":V.gridData[n].validateErrorField="":V.$rowIndex!==null&&V.$rowIndex!==void 0&&V.gridData.length>V.$rowIndex?V.gridData[V.$rowIndex].validateErrorField="":n!=null&&l!==void 0&&l&&V.gridData.length<=n&&(V.subTableData[n].validateErrorField=""),_=!0;if(F&&i===!0){const U=/[A-Z]+/;if(_!==void 0&&_+""!="true"&&_+""!="false"&&V.isSql!==void 0&&V.isSql===!0&&U.test(F)&&e[F.toLowerCase()]!==void 0){const X=JSON.parse(JSON.stringify(e));X[F.toUpperCase()]=e[F.toLowerCase()],delete X[F.toLowerCase()],_=validatorEntity(X,t,n,o,!1)}_!==void 0&&_+""!="true"&&_+""!="false"&&V.showValidateError&&(V.showValidateError=!1,window.$vueApp.config.globalProperties.$message({showClose:!0,message:_,type:"warning",onClose:X=>{V.showValidateError=!0}}))}}),_}const formValidatorService={validator,getValidator},emitter=mitt(),bus={};bus.$on=emitter.on,bus.$emit=emitter.emit,bus.$off=emitter.off;function initialization(e,t,n,o,i,l,f,v){const _={};if(e){_.visible=!0;let C={};o&&typeof o=="string"&&o!==""?C=JSON.parse(o):o&&typeof o=="object"&&(C=o);let x={};if(i&&typeof i=="string"&&i!==""?x=JSON.parse(i):i&&typeof i=="object"&&(x=i),e.displayTextJudge){const V=analysisValue(e.displayText,t,C,x,v);_.label=V}if(e.icon&&(_.icon=e.icon),e.linkTips&&(_.title=e.linkTips),e.buttonDisplayConditionsList){let V="";if(e.buttonDisplayConditionsList&&(V=JSON.stringify(e.buttonDisplayConditionsList)),V&&V!==""){const I=analysisCondition(V,t,C,x,n,l,f,v);_.visible=I}}}return _}function openPage(e){if(e){const t=e.jumpPageSetting,n=e.system,o=e.dataId,i=e.ids,l=e.buttonCode,f=e.additionalParamMap,v=e.entity,_=e.parentFormData;jumpToPage(t,n,o,v,f,i,l,_).then(C=>{let x;if(C&&(x=C.jumpMode),C){const I=C._path;if(x==="popup"){let D,F;C.jumpPageWidth?D=C.jumpPageWidth:D=window.innerWidth-150,C.jumpPageHeight?F=C.jumpPageHeight:F=window.innerHeight-150,window.open(I,"","height="+F+",width="+D+",top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no")}else x==="refresh"&&(window.location.href=I)}})}}function isHasIdAdditionalParam(e){if(e&&e.length>0)for(let t=0;t<e.length;t++){const n=e[t];if(n.paramName&&(n.paramName==="id"||n.paramName==="ID"))return!0}}function jumpToPage(e,t,n,o,i,l,f,v){return new Promise((_,C)=>{e&&typeof e=="string"&&e!==""&&(e=JSON.parse(e)),e.jumpPageUrl||_(),getSystem(t,e.jumpPageUrl,e.isNewPage).then(x=>{if(e.jumpPageAdditional&&e.jumpPageAdditional.length>0){const V=window.$vueApp.config.globalProperties.baseAPI+"/component/super-pages/parsing-additional-parameters",I={};I.jumpPageAdditional=JSON.stringify(e.jumpPageAdditional),I.entity=o,I.additionalParamMap=i,console.log("paramMap.parentFormData",v),I.parentFormData=v;const D=isHasIdAdditionalParam(e.jumpPageAdditional);window.$vueApp.config.globalProperties.$http.post(V,I).then(F=>{let U="";F&&F.uuid&&(U=F.uuid+"_additionalParamMap",window.sessionStorage.setItem(U,JSON.stringify(F.paramMap))),e.paramStoreId=U,jumpToPageTwo(e,x,n,l,f,D).then(X=>{_(X)})})}else jumpToPageTwo(e,x,n,l,f,!1).then(V=>{_(V)})}).catch(x=>{console.log(x),C(x)})})}function getSystem(e,t,n){return new Promise((o,i)=>{if(isFullPath(t))o(null);else if(!e||e===null)if(t.indexOf("page:")===0){const l=t.substring(t.indexOf("page:")+5),f=window.$vueApp.config.globalProperties.baseAPI+"/component/business-systems/with-page-codes/"+l+"?isNewPage="+n;window.$vueApp.config.globalProperties.$http.get(f).then(v=>{o(v)}).catch(v=>{i(v)})}else{let l=window.$vueApp.config.globalProperties.customSystem;l||(l=window.$vueApp.config.globalProperties.systemCode);const f=window.$vueApp.config.globalProperties.baseAPI+"/component/business-systems/"+l;window.$vueApp.config.globalProperties.$http.get(f).then(v=>{o(v)}).catch(v=>{i(v)})}else o(e)})}function isFullPath(e){return e.indexOf("http:")===0||e.indexOf("https:")===0}function jumpToPageTwo(e,t,n,o,i,l){return new Promise((f,v)=>{const _=e.jumpPageUrl;if(_)if(_.indexOf("page:")===0)jumpWithSuperPage(_,t,n,e,o,i,l).then(C=>{f(C)});else{const C=analysisAdditionalParameter(e.paramStoreId);let x=_;_.indexOf("path:")>=0&&(x=_.substring(_.indexOf("path:")+5)),isFullPath(x)||t&&(x=getSystemFrontendUrl(t.frontendUrl)+"/#"+x);const V=getSystemNameWithLanguage(t);jumpToPageWithFullPath(n,x,C,e,o,i,l,V),f()}})}function jumpToPageWithFullPath(e,t,n,o,i,l,f,v){if(t=packagePathParams(e,t,o,i,l,f),n&&n!==""){let C="";v&&(C="&_systemName_="+encodeURI(v)),t.indexOf("?")!==-1?(t+="&",t+=n+C):(t+="?",t+=n+C)}let _="refresh";if(o&&o.jumpPageOpenMode&&(_=o.jumpPageOpenMode),_==="popup"){let C,x;o.jumpPageWidth?C=o.jumpPageWidth:C=window.innerWidth-150,o.jumpPageHeight?x=o.jumpPageHeight:x=window.innerHeight-150;const V="height="+x+", width="+C+", top=0, left=0, toolbar=no, menubar=no,scrollbars=no,resizable=no, location=no, status=no";window.open(t,"newW",V)}else _==="newTab"?window.open(t):location.href=t}function packagePathParams(e,t,n,o,i,l){if((n.isNeedId===void 0||n.isNeedId===null||n.isNeedId===!0)&&!l&&e){let v="?";t.indexOf("?")>0&&(v="&"),t=t+v+"id="+e}const f=n.paramStoreId;if(f&&f!==""){const v="paramStoreId="+f;t.indexOf("?")!==-1?(t+="&",t+=v):(t+="?",t+=v)}if(o&&o.length>0){const v=o.join(","),_="ids="+v+"&_idsStr="+v;t.indexOf("?")!==-1?(t+="&",t+=_):(t+="?",t+=_)}if(i&&(t.indexOf("?")!==-1?t+="&buttonCode="+i:t+="?buttonCode="+i),n.isNewPage!==void 0&&n.isNewPage===!0){let v="";t.indexOf("?")!==-1?v="&":v="?",t=t+v+"isNewPage=true"}return t}function getPageCode(e){let t;return e&&e.indexOf("page:")!==-1&&(t=e.substring(e.indexOf("page:")+5)),t}function jumpWithSuperPage(e,t,n,o,i,l,f){return new Promise((v,_)=>{console.log("----jumpWithSuperPage---",e,t,n,o);const C=getPageCode(e);let x="refresh";o&&o.jumpPageOpenMode&&(x=o.jumpPageOpenMode);const V={jumpMode:x};if(window.sessionStorage.setItem(C+"-jumpMode",JSON.stringify(V)),x==="popup"){const I=packageOpenUrl(t,C,n,o,x,i,l,f),D=openDialogWhenPopup(o,t,C,n,x,i,l);D&&o.isRefreshWhenClosePopup!==void 0&&o.isRefreshWhenClosePopup!==null&&(D.isRefreshWhenClosePopup=o.isRefreshWhenClosePopup),D._path=I,v(D)}else if(x==="newTab"){const I=packageOpenUrl(t,C,n,o,x,i,l,f)+"&_t_="+new Date().getTime();window.open(I),v()}else{const I={pageCode:C,customSystem:t.code,jumpMode:x,buttonCode:l,ids:i?i.join(","):""};(o.isNeedId===void 0||o.isNeedId===null||o.isNeedId===!0)&&!f&&n&&(I.id=n);const D=o.paramStoreId;D&&D!==""&&(I.paramStoreId=D);const F=packageOpenUrl(t,C,n,o,x,i,l,f);I._path=F,v(I)}})}function openDialogWhenPopup(e,t,n,o,i,l,f){const v={};e&&(v.jumpPageTitle=e.jumpPageTitle,v.jumpPageWidth=e.jumpPageWidth,v.jumpPageHeight=e.jumpPageHeight,v.valueMappings=e.valueMappings,v.updateValueEvent=e.updateValueEvent,v.closeEvent=e.closeEvent,v.isRefreshWhenClosePopup=e.isRefreshWhenClosePopup);let _=!1;return typeof t.standard<"u"&&(_=!t.standard),v.pageCode=n,(e.isNeedId===void 0||e.isNeedId===null||e.isNeedId===!0)&&o&&(v.dataId=o),v.isDsc=_,v.paramStoreId=e.paramStoreId,v.jumpMode=i,v.ids=l,v.buttonCode=f,v}function packageOpenUrl(e,t,n,o,i,l,f,v){let C=getSystemFrontendUrl(e.frontendUrl)+"/#/dsc-full-screen/page?customSystem="+e.code+"&pageCode="+t+"&jumpMode="+i;const x=getSystemNameWithLanguage(e);return x&&(C+="&_systemName_="+encodeURI(x)),packagePathParams(n,C,o,l,f,v)}function getSystemNameWithLanguage(e){if(e){let t="cn";return window.$locale&&(t=window.$locale),t==="cn"?e.name:e.enName}}function analysisAdditionalParameter(e){const t=window.sessionStorage.getItem(e);return analysisAdditionalParameterWithMap(t)}function analysisAdditionalParameterWithMap(e){let t="";if(e){const n=JSON.parse(e),o=Object.keys(n);console.log("analysisAdditionalParameterWithMap--Object.keys(additionalParameterMap)=",o);for(let i=0;i<o.length;i++)t!==""&&(t+="&"),t+=o[i],t+="=",t+=n[o[i]]}return t}function updateWithPageValue(e,t,n,o,i,l){if(e&&e!==null&&o&&o!==null&&n&&n!==null&&n.valueMappings){let f=e;Array.isArray(e)&&e.length>0&&(f=e[0]),n.valueMappings.forEach(_=>{let C=_.source,x=getEntityFieldValue(f,C);const V="__";x==null&&(C&&t&&C.indexOf(".")>0&&(C=t+V+C),x=getEntityFieldValue(f,C));let I=_.target;l!==void 0&&l===!0&&I&&i&&I.indexOf(".")>0&&(I=i+V+I),setEntityFieldValue(o,I,x)})}}const apis$2={toolbarRefresh(e,t,n,o){return this.toolbarFieldParam=n,this.refresh(e,t,n,o)},refresh(e,t,n,o){return new Promise((i,l)=>{if(o){const f=store$1.get(this.code);f.options.subTableData=null}if(!n&&this.toolbarFieldParam&&(n=this.toolbarFieldParam),this.$refs)if(typeof e<"u"&&e!==null&&e instanceof Array&&e.length>0)if(this.$refs.sf){let f=this.$refs.sf.packageSearchParam();f&&f.length>0?n&&n.length>0&&(f.length===1&&(f[0].leftBracket="(",f[0].rightBracket=")"),f[f.length-1].joinSign==="or"&&(f[f.length-1].joinSign="and"),Array.prototype.push.apply(f,n)):n&&(f=[],f=n),this.search(f,!1,e).then(()=>i()).catch(v=>l(v))}else this.search(n,!1,e).then(()=>i()).catch(f=>l(f));else if(this.$refs.sf){let f=this.$refs.sf.packageSearchParam();f&&f.length>0?n&&n.length>0&&(f.length===1&&(f[0].leftBracket="(",f[0].rightBracket=")"),f[f.length-1].joinSign==="or"&&(f[f.length-1].joinSign="and"),Array.prototype.push.apply(f,n)):n&&(f=[],f=n),this.search(f,!1).then(()=>i()).catch(v=>l(v))}else this.search(n,!1).then(()=>i()).catch(f=>l(f));else i()})},showSearchForm(){this.showSearch=!0,$emit(this,"showSearch")},cancelSearch(){this.showSearch=!1,$emit(this,"cancelSearch")},getSearchForm(){const e=store$1.get(this.code);return e.searchForm?e.searchForm:[]},createRow(e,t){return new Promise((n,o)=>{e||(e=store$1.get("_list_code"));const i=store$1.get(e),l=i.gridData;if(i.superGrid.clearSort(),i.lineEdit&&i.lineEdit.editable&&typeof i.loaded<"u"&&i.loaded===!0){let f=!0;if(isEditOptionFunction("beforeInsertRow",e)){const v=i.isSubTableShowPage,_=i.pagination&&i.pagination.pageSize,C=!1;i.pageContext?f=i.options.lineEditOptions.beforeInsertRow.call(this,{gridData:v?i.subTableData:i.gridData,rowIndex:i.$rowIndex,isMobile:C,baseURL:this.baseURL,totalData:v?i.gridData:null,pageSize:_,additionalParamMap:i.additionalParamMap,row:t,pageContext:i.pageContext,configureObj:i.configureObj}):f=i.options.lineEditOptions.beforeInsertRow.call(this,v?i.subTableData:i.gridData,i.$rowIndex,C,this.baseURL,v?i.gridData:null,_,i.additionalParamMap,t)}if(f===void 0||f===!0){if(i.options&&i.options.isFormSubTable){let _=i.gridData;i.isSubTableShowPage!==void 0&&i.isSubTableShowPage===!0&&(_=i.subTableData);const C=_.filter(x=>x.$editing!==void 0&&x.$editing===!0);C&&C.length>0&&C.forEach(x=>{setEntityFieldValue(x,"$editing",!1),$emit(bus,"un-edit",{row:x})}),i.isEditRow=!1}else{if(!isLastEditRowSave(e)||typeof i.isCreateRow<"u"&&i.isCreateRow===!0){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:i.$rowIndex+1}),type:"warning"}),o(new Error("please save line"));return}if(typeof i.$rowIndex<"u"&&i.$rowIndex!==null&&i.$rowIndex<i.gridData.length){const _=i.gridData[i.$rowIndex];setEntityFieldValue(_,"$editing",!1),i.isEditRow=!1}}t=this.getNewRow(i.defaultValueColumns,i.additionalParamMap,i.contextParameter,t),setEntityFieldValue(t,"$editing",!0),i.isEditRow=!0,i.options&&i.options.isFormSubTable?(i.isSubTableShowPage!==void 0&&i.isSubTableShowPage===!0?(i.isChangePage=!0,i.subTableData.splice(i.subTableData.length,0,t)):(l.splice(l.length,0,t),i.lineEdit.editingCell&&(i.lineEdit.editingCell.row=l.length)),i.$rowIndex=l.length,this.$nextTick(()=>{scrollYToBottom(e)})):(l.splice(0,0,t),i.lineEdit.editingCell&&(i.lineEdit.editingCell.row=0),i.$rowIndex=0);const v=Object.assign({},t);if(i.orgGridData.splice(0,0,v),i.lineEdit.editingCell||(i.lineEdit.editingCell={},i.lineEdit.validateErrorField=""),isEditOptionFunction("afterInsertRow",e)){const _=i.isSubTableShowPage,C=i.pagination&&i.pagination.pageSize,x=!1;i.pageContext?i.options.lineEditOptions.afterInsertRow.call(this,{gridData:_?i.subTableData:i.gridData,rowIndex:i.$rowIndex,isMobile:x,baseURL:this.baseURL,totalData:_?i.gridData:null,pageSize:C,additionalParamMap:i.additionalParamMap,pageContext:i.pageContext,configureObj:i.configureObj}):i.options.lineEditOptions.afterInsertRow.call(this,_?i.subTableData:i.gridData,i.$rowIndex,x,this.baseURL,_?i.gridData:null,C,i.additionalParamMap)}i.isCreateRow=!0,n(t)}else o(new Error("can not create"))}else o(new Error("list not editable or data not loaded completely"))})},getNewRow(e,t,n,o,i){o||(o={}),i||(i=store$1.get("_list_code"));const l=store$1.get(i);if(l&&l.allColumns&&this.setColumnsDefaultValue(l.allColumns,o),e&&e.length>0)for(var f=0;f<e.length;f++){const v=e[f];if(v&&v.prop){const _=getEntityFieldValue(o,v.prop);if(v.prop!=="$selection"&&v.prop!=="$index"&&v.defaultValue&&v.defaultValue!==""&&(_===void 0||_===""||_===null)){let C;l.pageContext?C=getPropValueNew(v.defaultValue,l.pageContext):C=getPropValue(v.defaultValue,o,t,n),setEntityFieldValue(o,v.prop,C)}}}return o},setColumnsDefaultValue(e,t){for(let n=0;n<e.length;n++){const o=e[n],i=o.prop;i==="$index"||i==="$selection"||i==="operation"||(o.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(o.children,t):t[i]===void 0&&setEntityFieldValue(t,i,null))}setEntityFieldValue(t,"$editing",!1)},setChildrenColumnsDefaultValue(e,t){for(let n=0;n<e.length;n++){const o=e[n],i=o.prop;o.hasOwnProperty("children")?this.setChildrenColumnsDefaultValue(o.children,t):t[i]===void 0&&i!=="operation"&&setEntityFieldValue(t,i,null)}},editRow(e,t,n){t||(t=store$1.get("_list_code"));const o=store$1.get(t);if(o&&o.lineEdit&&o.lineEdit.editable){if(typeof o.$rowIndex<"u"&&o.$rowIndex!==null&&o.$rowIndex!==e){if(typeof o.options.lineEditOptions.autoSave>"u"||isHasEditOption("autoSave",t)&&o.options.lineEditOptions.autoSave===!0){if(!n){this.saveRow(o.$rowIndex,t).then(l=>{this.editRow(e,t,!0)});return}}else if(!isLastEditRowSave(t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:o.$rowIndex+1}),type:"warning"});return}}let i=!0;if(isEditOptionFunction("beforeEdit",t)){const l=o.isSubTableShowPage,f=o.pagination&&o.pagination.pageSize;i=o.options.lineEditOptions.beforeEdit.call(this,{gridData:l?o.subTableData:o.gridData,listCode:t,entity:o.gridData[e],row:o.gridData[e],rowIndex:e,columns:o.columns,isMobile:!1,pageGridData:l?o.gridData:null,pageSize:f,additionalParamMap:getAdditionalParamMap(o),pageContext:o.pageContext,configureObj:o.configureObj})}isPromise$1(i)?i.then(l=>{(l===void 0||l===!0)&&this.doEditRow(o,e)}):(i===void 0||i===!0)&&this.doEditRow(o,e)}},doEditRow(e,t){if(typeof e.$rowIndex<"u"&&e.$rowIndex!==null&&e.$rowIndex<e.gridData.length){const o=e.gridData[e.$rowIndex];setEntityFieldValue(o,"$editing",!1),e.isEditRow=!1}const n=e.gridData[t];setEntityFieldValue(n,"$editing",!0),e.$lastSaveRowIndex=null,e.$rowIndex=t,e.isEditRow=!0,e.lineEdit.editingCell&&(e.lineEdit.editingCell.row=t)},saveRow(e,t){return new Promise((n,o)=>{const i=this;setTimeout(function(){i.saveCurrentRow(e,t).then(l=>{n(l)})},100)})},saveCurrentRow(e,t){return new Promise((n,o)=>{t||(t=store$1.get("_list_code"));const i=store$1.get(t);if(i.lineEdit&&i.lineEdit.editable){if(typeof i.gridData[e].$editing>"u"||i.gridData[e].$editing===!1){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.noNeedToSaveRow",{row:e+1}),type:"warning"});return}if(i.$rowIndex!==e&&!isLastEditRowSave(t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:i.$rowIndex+1}),type:"warning"});return}if(i.$lastSaveRowIndex=null,i.isHasDynamic!==void 0&&i.isHasDynamic===!1&&!i.lineEdit.urlToSaveRow&&!isHasEditOption("urlToSaveRow",t)&&!isEditOptionFunction("saveRow",t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSetURLToSaveRowInformation"),type:"warning"});return}if(!i.canSaveRow)return;i.canSaveRow=!1;const l=i.gridData[e];let f=!0;isHasEditOption("isEnableValidate",t)&&(f=i.options.lineEditOptions.isEnableValidate);let v=!0;if(f===!0&&(v=formValidatorService.validator(l,t,e)),v===!0){let _=!0;if(isEditOptionFunction("beforeSave",t)&&(i.pageContext?_=i.options.lineEditOptions.beforeSave.call(this,{row:l,columns:i.columns,additionalParamMap:i.additionalParamMap,pageContext:i.pageContext,configureObj:i.configureObj}):_=i.options.lineEditOptions.beforeSave.call(this,l,i.columns,i.additionalParamMap)),_===void 0||_===!0){$emit(bus,"un-edit",{row:l});const C=getAdditionalParamMap(i);let x;if(isEditOptionFunction("saveRow",t)&&(i.pageContext?x=i.options.lineEditOptions.saveRow.call(this,{row:l,columns:i.columns,dataTypeMap:i.$dataTypeMap,dynamicColumnInfo:i.dynamicColumnInfo,additionalParamMap:C,mainDefaultValueColumns:i.mainDefaultValueColumns,pageContext:i.pageContext,configureObj:i.configureObj}):x=i.options.lineEditOptions.saveRow.call(this,l,i.columns,i.$dataTypeMap,i.dynamicColumnInfo,C,i.mainDefaultValueColumns)),!x&&i.lineEdit&&i.lineEdit.urlToSaveRow){let V=i.lineEdit.urlToSaveRow;isHasEditOption("urlToSaveRow",t)&&(V=i.options.lineEditOptions.urlToSaveRow),x=window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL+V,l)}if(i.isHasDynamic!==void 0&&i.isHasDynamic===!0&&!x){const V="/common/dynamic-values",I={mainTableName:i.basicInfo&&i.basicInfo.tableName?i.basicInfo.tableName:"",row:l,dynamicColumnInfo:i.dynamicColumnInfo,additionalParamMap:C,dataTypeMap:i.$dataTypeMap,dynamicServiceName:i.dynamicServiceName,mainDefaultValueColumns:i.mainDefaultValueColumns};x=window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL+V,I)}x?x.then(V=>{this.afterSave(i,e,t,V,l).then(I=>{n(I)}).catch(I=>{o(I)})}).catch(V=>{i.canSaveRow=!0,isEditOptionFunction("saveError",t)&&i.options.lineEditOptions.saveError.call(this,l,i.columns,e,V),o(V)}):(i.canSaveRow=!0,o(getI18n().t("saveRowRequest is undefined")))}else i.canSaveRow=!0,o(getI18n().t("superGrid.theReturnValueOfTheBeforesaveCallbackMethodIsFalse"))}else i.canSaveRow=!0,o(getI18n().t("imatrixUIMessage.validationFailed"))}})},afterSave(e,t,n,o,i){return new Promise((l,f)=>{e.isCreateRow=!1,e.canSaveRow=!0,e.$rowIndex=null,e.isEditRow=!1,e.$lastSaveRowIndex=t,window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.lineSavedSuccessfully",{row:t+1}),type:"success"}),(typeof e.options.lineEditOptions.aftersaveIsCancelEditState>"u"||isHasEditOption("aftersaveIsCancelEditState",n)&&e.options.lineEditOptions.aftersaveIsCancelEditState===!0)&&(setEntityFieldValue(i,"$editing",!1),e.isEditRow=!1),isEditOptionFunction("saveSuccess",n)&&(e.pageContext?e.options.lineEditOptions.saveSuccess.call(this,{data:o,columns:e.columns,rowIndex:t,row:i,additionalParamMap:e.additionalParamMap,pageContext:e.pageContext,configureObj:e.configureObj}):e.options.lineEditOptions.saveSuccess.call(this,o,e.columns,t,i,e.additionalParamMap),e.options.lineEditOptions.saveSuccess.call(this,o,e.columns,t,i,e.additionalParamMap)),Object.assign(e.orgGridData[t],o),Object.assign(e.gridData[t],o),this.refresh(!1,!0).then(()=>{(typeof e.options.lineEditOptions.aftersaveIsCreateRow>"u"||e.options.lineEditOptions.aftersaveIsCreateRow)&&this.createRow(n),l({rowIndex:t,listCode:n})}).catch(v=>f(v))})},restoreRow(e,t){return new Promise((n,o)=>{this.restoreCurrentRow(e,t),n()})},restoreCurrentRow(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);if(n.lineEdit&&n.lineEdit.editable){if(n.$rowIndex!==null&&n.$rowIndex!==e&&!isLastEditRowSave(t)){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.pleaseSaveLine",{row:n.$rowIndex+1}),type:"warning"});return}const o=n.$lastSaveRowIndex!==null&&n.$lastSaveRowIndex===e&&typeof n.gridData[e].id<"u";let i=!0;if(isEditOptionFunction("beforeRestoreValidate",t)){const f=n.isSubTableShowPage,v=n.pagination&&n.pagination.pageSize,_=!1;i=n.options.lineEditOptions.beforeRestoreValidate.call(this,{rowIndex:e,gridData:f?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:_,baseURL:this.baseURL,isEditing:!o,pageGridData:f?n.gridData:null,pageSize:v,additionalParamMap:n.additionalParamMap,pageContext:n.pageContext,configureObj:n.configureObj})}if(i===void 0||i===!0){if(o===!0){window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.lineNoNeedToUndoEdit",{row:e+1}),type:"warning"});return}}else return;let l=!0;if(isEditOptionFunction("beforeRestore",t)){const f=n.isSubTableShowPage,v=n.pagination&&n.pagination.pageSize,_=!1;l=n.options.lineEditOptions.beforeRestore.call(this,{rowIndex:e,gridData:f?n.subTableData:n.gridData,entity:n.gridData[e],isMobile:_,baseURL:window.$vueApp.config.globalProperties.baseURL,isEditing:!o,pageGridData:f?n.gridData:null,pageSize:v,additionalParamMap:n.additionalParamMap,pageContext:n.pageContext,configureObj:n.configureObj})}if(l===void 0||l===!0){if(!n.orgGridData[e].id&&!n.orgGridData[e].ID)this.deleteRow(e,t,!0);else{if(n.gridData[e]=JSON.parse(JSON.stringify(n.orgGridData[e])),n.isSubTableShowPage!==void 0&&n.isSubTableShowPage===!0){const v=(this.currentPage-1)*this.pageSize+e;n.subTableData[v]=n.gridData[e]}window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.lineCancelledSuccessfully",{row:e+1}),type:"success"}),(typeof n.options.lineEditOptions.afterRestoreIsCancelEditState>"u"||isHasEditOption("afterRestoreIsCancelEditState",t)&&n.options.lineEditOptions.afterRestoreIsCancelEditState===!0)&&(setEntityFieldValue(n.gridData[e],"$editing",!1),n.isEditRow=!1)}n.$rowIndex=null,n.isCreateRow=!1,isEditOptionFunction("afterRestore",t)&&(n.pageContext?n.options.lineEditOptions.afterRestore.call(this,{rowIndex:e,row:n.orgGridData[e],additionalParamMap:n.additionalParamMap,pageContext:n.pageContext,configureObj:n.configureObj}):n.options.lineEditOptions.afterRestore.call(this,e,n.orgGridData[e],n.additionalParamMap))}}},deleteRow(e,t,n){return new Promise((o,i)=>{t||(t=store$1.get("_list_code"));const l=store$1.get(t);let f=!0;if(isEditOptionFunction("beforeDelete",t)){const v=l.isSubTableShowPage,_=l.pagination&&l.pagination.pageSize,C=v?l.subTableData:l.gridData,x=!1;l.pageContext?f=l.options.lineEditOptions.beforeDelete.call(this,{rowIndex:e,row:l.gridData[e],gridData:C,isMobile:x,baseURL:this.baseURL,totalData:v?l.gridData:null,pageSize:_,additionalParamMap:l.additionalParamMap,pageContext:l.pageContext,configureObj:l.configureObj}):f=l.options.lineEditOptions.beforeDelete.call(this,e,l.gridData[e],C,x,this.baseURL,v?l.gridData:null,_,l.additionalParamMap)}if(f===void 0||f===!0){if(l.isSubTableShowPage!==void 0&&l.isSubTableShowPage===!0){l.isChangePage=!0;const _=(this.currentPage-1)*this.pageSize+e;l.subTableData.splice(_,1)}else l.gridData.splice(e,1),l.orgGridData.splice(e,1);if(l.$lastSaveRowIndex=null,l.$rowIndex=null,l.isEditRow=!1,window.$vueApp.config.globalProperties.$message({showClose:!0,message:getI18n().t("superGrid.deleteSuccessful"),type:"success"}),l.gridData.length===0&&l.options&&l.options.isDefaultShowEdit!==null&&l.options.isDefaultShowEdit!==void 0&&l.options.isDefaultShowEdit===!0&&this.createRow(t),l.isMulitiSelect&&l.superGrid.clearSelection(),l.isCreateRow=!1,n!==void 0&&n===!0&&isEditOptionFunction("afterDelete",t)){const v=l.isSubTableShowPage,_=l.pagination&&l.pagination.pageSize,C=!1;l.pageContext?l.options.lineEditOptions.afterDelete.call(this,{rowIndex:e,row:l.orgGridData[e],gridData:v?l.subTableData:l.gridData,isMobile:C,baseURL:this.baseURL,totalData:v?l.gridData:null,pageSize:_,additionalParamMap:l.additionalParamMap,pageContext:l.pageContext,configureObj:l.configureObj}):l.options.lineEditOptions.afterDelete.call(this,e,l.orgGridData[e],v?l.subTableData:l.gridData,C,this.baseURL,v?l.gridData:null,_,l.additionalParamMap)}}o()})},focus(e,t){setCurrentRow(e,t)},getGridData(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);return t.isSubTableShowPage?t.subTableData:t.gridData},getColumns(e){return e||(e=store$1.get("_list_code")),store$1.get(e).columns},getPagination(e){return e||(e=store$1.get("_list_code")),store$1.get(e).pagination},getOptionsValueSet(e){const t={};return e||(e=store$1.get("_list_code")),store$1.get(e).columns.forEach(i=>{const l=i.prop;!isDynamicDataSourceSource(i)&&i.valueSet&&i.valueSet.length>0&&(t[l]=i.valueSet)}),t},restoreGridEdit(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);if(t.options&&t.options.isFormSubTable){const n=t.isSubTableShowPage;let o=[];if(n?o=t.subTableData:o=t.gridData,o&&o.length>0)for(let i=0;i<o.length;i++){const l=o[i];if(l.$editing!==void 0&&l.$editing===!0){setEntityFieldValue(l,"$editing",!1),$emit(bus,"un-edit",{row:l});break}}}},closePageDialog(e){if(console.log("列表组件--closePageDialog---this.jumpPageSetting=",this.jumpPageSetting),this.jumpPageSetting){const t=store$1.get(this.code),n=this.jumpPageSetting.closeEvent,o=this.jumpPageSetting.row;let i;if(t.options.eventCallBack&&n&&n!==null&&t.options.eventCallBack[n]&&(i=t.options.eventCallBack[n]),i){const f={params:t.additionalParamMap,additionalParamMap:t.additionalParamMap,entity:o};e&&(f.eventParams={popEntity:e.entity,popPageCode:e.pageCode,pageCode:this.pageCode}),i.call(this,f),e.jumpInfo&&e.jumpInfo.successOperation==="closeWindowAndRefresh"&&this.refresh()}const l=this.jumpPageSetting.isRefreshWhenClosePopup;if(l!==void 0&&l===!0){const f=store$1.get(this.code);this.search(f.searchForm)}}this.isShowPageDialog=!1,this.jumpPageSetting=null},updateValues(e,t,n){const o=store$1.get(this.code),i=n;if(i!=null&&i<this.gridData.length){const l=this.isSql===!1||o.options&&(o.options.isAdministerListView!==void 0&&o.options.isAdministerListView===!0||o.options.isFormSubTable!==void 0&&o.options.isFormSubTable===!0),f=this.tableName;updateWithPageValue(e,t,this.jumpPageSetting,this.gridData[i],f,!l);const v=this.jumpPageSetting&&this.jumpPageSetting.updateValueEvent?this.jumpPageSetting.updateValueEvent:null;let _;o.options.eventCallBack&&v&&v!==null&&o.options.eventCallBack[v]&&(_=o.options.eventCallBack[v]),_&&_.call(this,{sourceModel:e,sourceTableName:t,jumpPageSetting:this.jumpPageSetting,entity:this.gridData[i],targetTableName:f,isNeedReplaceFieldName:!l,additionalParamMap:o.additionalParamMap})}}},_sfc_main$19={components:{ElIconDelete:delete_default},name:"ViewImageDialog",props:{fileList:{type:Array,default:function(){return[]}},downloadable:{type:Boolean,default:function(){return!0}},deleteable:{type:Boolean,default:function(){return!1}}},data(){getToken();let e=window.$vueApp.config.globalProperties.baseURL;return isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(e=window.$vueApp.config.globalProperties.baseAPI),{showName:null,serverName:null,file:null,baseUrl:e}},methods:{changeFile(e,t){const n=this.fileList[e];this.file=n,this.showName=n.showName,this.serverName=n.serverName},downloadFile(){if(!this.showName){const n=this.fileList[0];this.showName=n.showName,this.serverName=n.serverName}const e=getToken();let t=window.$vueApp.config.globalProperties.baseURL+"/common/super-form/downloads?jwt="+e;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(t=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/downloads?jwt="+e),window.location.href=t+"&showName="+encodeURI(this.showName)+"&serverPath="+this.serverName},preview(){if(!this.showName){const e=this.fileList[0];this.showName=e.showName,this.serverName=e.serverName}if(window.$vueApp.config.globalProperties.customPreviewUrl)window.open(getSystemFrontendUrl(window.$vueApp.config.globalProperties.portalUrl)+"/#/file-service/preview?serverPath="+this.serverName+"&showName="+encodeURI(this.showName),this.showName);else{const e=getToken();let t;const n=this.showName,o=this.serverName;if(window.$vueApp.config.globalProperties.kkFileViewUrl){const l=this.baseUrl+"/common/super-form/downloads?jwt="+e+"&showName="+encodeURI(n)+"&serverPath="+o+"&fullfilename="+n;t=window.$vueApp.config.globalProperties.kkFileViewUrl+"?url="+encodeURIComponent(Base64.encode(l))}else t=this.baseUrl+"/common/fs-upload/preview?jwt="+e,t=t+"&showName="+encodeURI(n)+"&serverPath="+o;window.open(t,n)}},deleteFile(){let e;if(this.fileList&&this.fileList.length>0){if(!this.showName){const n=this.fileList[0];this.showName=n.showName,this.serverName=n.serverName}const t=this.serverName;e=this.fileList.findIndex(function(n){return n.serverName===t})}$emit(this,"delete",this.fileList,e)}},emits:["close","delete"]},_hoisted_1$U={key:1,style:{"text-align":"center","margin-top":"50px"}},_hoisted_2$A={style:{"font-size":"18px"}},_hoisted_3$p={style:{"padding-top":"10px"}},_hoisted_4$h={style:{"padding-top":"10px"}};function _sfc_render$V(e,t,n,o,i,l){const f=Vue.resolveComponent("el-icon-delete"),v=Vue.resolveComponent("el-icon"),_=Vue.resolveComponent("el-image"),C=Vue.resolveComponent("el-button"),x=Vue.resolveComponent("el-carousel-item"),V=Vue.resolveComponent("el-carousel"),I=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(I,{"append-to-body":!0,"model-value":!0,"show-close":!0,title:e.$t("imatrixUIPublicModel.preview"),onClose:t[2]||(t[2]=D=>e.$emit("close"))},{title:Vue.withCtx(()=>[Vue.createElementVNode("span",null,[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.preview"))+" ",1),n.deleteable?(Vue.openBlock(),Vue.createBlock(v,{key:0,class:"el-icon-delete",style:{"padding-left":"5px",cursor:"pointer",color:"#f56c6c"},onClick:t[0]||(t[0]=D=>l.deleteFile())},{default:Vue.withCtx(()=>[Vue.createVNode(f)]),_:1})):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[Vue.createVNode(V,{interval:5e3,arrow:"always",onChange:l.changeFile},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.fileList,D=>(Vue.openBlock(),Vue.createBlock(x,{key:D.serverName,style:{"background-color":"#eee"}},{default:Vue.withCtx(()=>[D.isImg?(Vue.openBlock(),Vue.createBlock(_,{key:0,"preview-src-list":[D.src],src:D.src},null,8,["preview-src-list","src"])):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$U,[Vue.createElementVNode("div",_hoisted_2$A,Vue.toDisplayString(D.showName),1),Vue.createElementVNode("div",_hoisted_3$p,Vue.toDisplayString(e.$t("superGrid.previewTitleWhenNotImg")),1),Vue.createElementVNode("div",_hoisted_4$h,[Vue.createVNode(C,{size:"default",type:"primary",onClick:t[1]||(t[1]=F=>l.preview())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("fsUpload.preview")),1)]),_:1})])]))]),_:2},1024))),128))]),_:1},8,["onChange"])]),_:1},8,["title"])}const ViewImageDialog=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$V]]),_sfc_main$18={name:"DynamicInput",components:{dynamicSourceSelect:DynamicSourceSelect,ViewImageDialog},props:{value:{type:[String,Boolean,Number,Date,Array],default:null},type:{type:String,default:"input"},position:{type:Object,default:null},lineEdit:{type:Object,default:null},options:{type:Array,default:null},column:{type:Object,default:null},row:{type:Object,default:null},listCode:{type:String,default:null},isSql:{type:Boolean,default:!1},listToolbarFormData:{type:Object,default:null},rowIndex:{type:Number,default:-1}},data(){let e=this.value;this.type&&this.type==="select"&&this.column.dataType!=="TEXT"&&(e=this.value&&this.value!==null&&typeof this.value!="string"?this.value+"":this.value,$emit(this,"update:value",e));const t=this.getDefaultValue(e);t!=null&&(e=t);const n=isDisableEdit(this.column.prop,this.listCode,this.row),o=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/uploads";this.listCode||(this.listCode=store$1.get("_list_code"));const i=store$1.get(this.listCode);let l;i&&i.basicInfo&&i.basicInfo.tableName&&(l=i.basicInfo.tableName);let f;i&&i.basicInfo&&i.basicInfo.hasJoinTable&&(f=i.basicInfo.hasJoinTable);let v;i.options.extraParam&&i.options.extraParam.entityMap&&(v=i.options.extraParam.entityMap);const _={Authorization:getToken()};let C="mysql";window.$vueApp.config.globalProperties.dataSourceType&&(C=window.$vueApp.config.globalProperties.dataSourceType.toLowerCase());const x=i.gridData,V=i.subTableData,I=i.isSubTableShowPage;let D={};this.column.controlConfig&&(D=JSON.parse(this.column.controlConfig));const F=getAdditionalParamMap(i);return{deptManTree:!1,isMultiTree:!1,isCheckStrictly:!1,deptTree:!1,wgManTree:!1,wgTree:!1,newValue:null,disabled:n,componentName:"",validateErrorField:"",annexUploadFlag:!1,defaultAction:o,fileMultiple:!1,lastFileName:"",fileList:[],lastServerName:"",fileSetObj:null,showSingleImgFlag:!1,singleImgSrc:"",fields:null,innerValue:e,dynamicSourceSelectOptions:{},valueSetOptions:null,dynamicDataSourceCode:null,tableName:l,isJoinTable:f,departmentInfo:null,parentFormData:v,headers:_,dataSourceType:C,inputNumberSet:{},fileInfo:{showName:null,serverPath:null},gridData:I?V:x,pageGridData:I?x:null,additionalParamMap:F,controlConfig:D,pickerOptions:{disabledDate:U=>this.stateForbiddenTime&&this.endForbiddenTime?U.getTime()<this.stateForbiddenTime||U.getTime()>this.endForbiddenTime:this.stateForbiddenTime&&!this.endForbiddenTime?U.getTime()<this.stateForbiddenTime:!this.stateForbiddenTime&&this.endForbiddenTime?U.getTime()>this.endForbiddenTime:!1},stateForbiddenTime:null,endForbiddenTime:null}},computed:{},watch:{value:{handler(e,t){if(this.type&&this.type==="multiselect"){const o=this.value&&this.value!==null&&typeof this.value=="string"?this.value.split(","):this.value;this.innerValue=o}else this.type==="yearRange"?this.innerValue=""+e:this.innerValue=e;store$1.get(this.listCode).editProp===this.column.prop&&this.$nextTick(()=>{this.$refs.customItem&&this.$refs.customItem.focus()})},deep:!0,immediate:!0}},created(){const e=store$1.get(this.listCode);if(this.gridParams=e,this.isCreateRow=e.isCreateRow,this.setTreeType(),this.type&&this.type.indexOf("custom:")>=0&&(this.componentName=this.type.substring(this.type.indexOf(":")+1)),this.column.fileSet&&this.column.fileSet!==""&&(this.column.componentType==="annex"||this.column.componentType==="multipartUpload")){const t=JSON.parse(this.column.fileSet);this.fileInfo.showName=this.row[t.showNameData.dbName],this.fileInfo.serverPath=this.row[t.serverNameData.dbName],this.fileSetObj=t,t&&t.multiple&&(this.fileMultiple=!0),this.fileList=getFileList(this.row,this.column,this.isSql),this.packageFileNameWithFileList()}if(this.column.componentType==="inputNumber"&&this.setInputNumberConfig(),this.column.valueSetOptions&&this.column.componentType!=="inputNumber"){const t=JSON.parse(this.column.valueSetOptions);t&&t.valueSetOptions&&(this.valueSetOptions=t.valueSetOptions),t.dynamicDataSourceCode&&t.dynamicDataSourceCode!==""&&(this.dynamicDataSourceCode=t.dynamicDataSourceCode)}else if(this.column.componentType==="switch"&&this.column.valueSetOptions){const t=JSON.parse(this.column.valueSetOptions);t&&(this.valueSetOptions=t)}if(this.column.orgTreeSet){const t=JSON.parse(this.column.orgTreeSet);this.type.indexOf("DeptTree")>0&&t.checkStrictly&&(this.isCheckStrictly=t.checkStrictly),t.length?this.fields=t:t.orgTreeSetArr&&(this.fields=t.orgTreeSetArr)}this.getDateAllowTime()},mounted(){},methods:{getClassOptionTitle(e){if(e!=null&&e!==""&&e.length>0){let t="";return typeof e=="string"?this.options.forEach(n=>{n.value===e&&(t=n.label)}):(this.options.forEach(n=>{e.forEach(o=>{n.value===o&&(t=t+n.label+",")})}),t=t.slice(0,t.length-1)),t}},getDateAllowTime(){if(this.column.valueSetOptions){const e=JSON.parse(this.column.valueSetOptions),t=Date.now();if(e.stateForbiddenTime){const n=e.stateForbiddenTime;this.stateForbiddenTime=t-n*24*60*60*1e3}else this.stateForbiddenTime=null;if(e.endForbiddenTime){const n=e.endForbiddenTime;this.endForbiddenTime=t+n*24*60*60*1e3-24*60*60*1e3}else this.endForbiddenTime=null}},focus(){this.type!=="slider"&&this.type!=="rate"&&this.lineEdit.editingCell&&this.position&&this.position.row===this.lineEdit.editingCell.row&&this.position.prop===this.lineEdit.editingCell.prop&&this.$refs.item&&this.$refs.item.focus()},handleBeforeUpload(e){let t=this.fileSetObj.limitFileSize;if(t===void 0&&(t=30),e.size>t*1024*1024)return this.$message({type:"warning",message:this.$t("imatrixUIMessage.exceedFileSize",{fileSize:t}),showClose:!0}),!1},setTreeType(){this.type&&(this.type.indexOf("single")>=0&&this.type.indexOf("Tree")>0?this.isMultiTree=!1:this.isMultiTree=!0,this.type.indexOf("DeptManTree")>0&&(this.deptManTree=!0),this.type.indexOf("DeptTree")>0&&(this.deptTree=!0),this.type.indexOf("WgManTree")>0&&(this.wgManTree=!0),this.type.indexOf("WgTree")>0&&(this.wgTree=!0))},showOrganizationTree(){if(this.column.orgTreeSet){const e=JSON.parse(this.column.orgTreeSet);if(e.length)this.fields=e;else if(e.orgTreeSetArr&&(this.fields=e.orgTreeSetArr),e.specifyType)if(e.specifyType==="dataTable"){if(e.dataTableField){const t=getEntityFieldValue(this.row,e.dataTableField);t&&t!==""&&(this.departmentInfo=t.split(","))}}else(e.specifyType==="dept"||e.specifyType==="workGroup")&&e.specifyDept&&e.specifyDept!==""&&(typeof e.specifyDept=="object"?this.departmentInfo=e.specifyDept:this.departmentInfo=e.specifyDept.split(","))}},cellEvent(e,t,n){let o=!1;if(e==="focus"&&$emit(this,"focus",t),e==="input"&&this.isDateControll()){let l=t;l===""&&(l=null),$emit(this,"update:value",l),o=!0,this.innerValue=l}else if(e==="input"&&this.isSelectControll()){if(this.type==="multiselect"&&this.innerValue&&Object.prototype.toString.apply(this.innerValue)==="[object Array]"){const l="saveAll";this.innerValue.indexOf(l)<0&&$emit(this,"update:value",this.innerValue.join(","))}else $emit(this,"update:value",this.innerValue);o=!0}else e==="input"&&n!==void 0&&n===!0?(this.innerValue=t,$emit(this,"update:value",t),o=!0):e==="blur"&&!this.isSelectControll()&&(this.blurEvent(),o=!0,this.innerValue&&this.isInputControl()&&this.column.dataType==="TEXT"&&(console.log("trim value",this.innerValue),this.innerValue=this.innerValue.trim()));if(!o&&e==="change"&&this.blurEvent(),e==="clear"){if((this.type==="multiselect"||this.type==="select")&&isDynamicDataSourceSource(this.column))for(let l=0;l<this.valueSetOptions.length;l++)this.column.prop!==this.valueSetOptions[l].valueColumn.dbColumnName&&this.setCellValue(this.valueSetOptions[l].valueColumn.dbColumnName,null,"input");$emit(this,"update:value",null)}const i=store$1.get(this.listCode);i.editProp=this.column.prop,this.column.events&&this.column.events[e]?this.callCustomEvent(e):isEditOptionFunction(e,this.listCode)&&i.options.lineEditOptions[e].call(this,t,this.row,this.column,i.additionalParamMap),$emit(this,"findIndex")},blurEvent(){(this.innerValue===null||this.innerValue===void 0)&&(this.innerValue=null,this.val=null),$emit(this,"update:value",this.innerValue)},isInputControl(){return this.type==="input"||this.type==="textarea"},isDateControll(){return this.type==="date"||this.column.dataType==="DATE"||this.type==="time"||this.column.dataType==="TIME"},isSelectControll(){return this.type==="select"||this.type==="multiselect"},isDynamicDataSourceSource(){return isDynamicDataSourceSource(this.column)},isDecimalDateType(){return this.column.dataType&&this.column.dataType==="DOUBLE"||this.column.dataType==="FLOAT"},callCustomEvent(e){this.callCustomEventWithParam(e,{value:this.innerValue,row:this.row,column:this.column,extendParams:this.extendParams})},callCustomEventWithParam(e,t){if(this.column&&this.column.events&&this.column.events[e]){const n=this.column.events[e];this.listCode||(this.listCode=store$1.get("_list_code"));const o=store$1.get(this.listCode);o.options&&o.options.eventCallBack&&o.options.eventCallBack[n]&&typeof o.options.eventCallBack[n]=="function"&&(t||(t={}),t.formData=o.options&&o.options.formData?o.options.formData:null,t.parent=this.parentFormData,t.rowIndex=this.rowIndex,t.additionalParamMap=o.additionalParamMap,o.options.eventCallBack[n].call(this,t))}},checkDecimal(){this.isDecimalDateType()&&this.innerValue&&this.innerValue!==null&&(/^(-?\d+)(\.\d+)?$/.test(this.innerValue+"")||(this.$message({type:"warning",message:this.$t("imatrixUIMessage.invalideDoubleValue",{num:this.innerValue}),showClose:!0}),this.focus()))},customFocus(){apis$2.focus(this.position?this.position.row:null)},openAnnexUpload(){this.annexUploadFlag=!0},previewImg(){this.fileList=getFileList(this.row,this.column,this.isSql),this.showSingleImgFlag=!0},uploadOnSuccess(e){if(e){const t={name:e.showName,serverPath:e.serverPath};if(this.column.fileSet&&this.column.fileSet!==""){const n=JSON.parse(this.column.fileSet);n&&(this.fileMultiple?this.multiStorage(n,t):this.radioStorageFile(n,t),this.fileList=getFileList(this.row,this.column,this.isSql))}}this.annexUploadFlag=!1},setCellValue(e,t,n){this.row[e]=t,n&&n.split(",").forEach(o=>{this.callCustomEventWithParam(o,{value:t,row:this.row,column:this.column,prop:e})})},radioStorageFile(e,t){e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,t.name,"input"):e.showNameData.name&&this.setCellValue(e.showNameData.name,t.name,"input")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,t.serverPath):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,t.serverPath)),this.packageFileNameWithFileList([{showName:t.name,serverPath:t.serverPath}])},multiStorage(e,t){const n=analysisFileSetObj(e,this.isSql);if(e.childAnnexDataTableCode){let o=this.row[this.column.prop];o||(o=[]);const i=this.responseFileToFileObj(e,t);o.push(i),this.fileList=otherFilesToStandard(e,n,o,null),this.setCellValue(this.column.prop,o,"input")}else{let o="",i="";if(e.showNameData){if(this.isSql){if(e.showNameData.dbName&&this.row){if(this.row[e.showNameData.dbName]){let l=this.row[e.showNameData.dbName];l+=","+t.name,this.setCellValue(e.showNameData.dbName,l,"input")}else this.setCellValue(e.showNameData.dbName,t.name,"input");o=this.row[e.showNameData.dbName]}}else if(e.showNameData.name&&this.row){if(this.row[e.showNameData.name]){let l=this.row[e.showNameData.name];l+=","+t.name,this.setCellValue(e.showNameData.name,l,"input")}else this.setCellValue(e.showNameData.name,t.name,"input");o=this.row[e.showNameData.name]}}if(e.serverNameData){if(this.isSql){if(e.serverNameData.dbName&&this.row){if(this.row[e.serverNameData.dbName]){let l=this.row[e.serverNameData.dbName];l+=","+t.serverPath,this.setCellValue(e.serverNameData.dbName,l)}else this.setCellValue(e.serverNameData.dbName,t.serverPath);i=this.row[e.serverNameData.dbName]}}else if(e.serverNameData.name&&this.row){if(this.row[e.serverNameData.name]){let l=this.row[e.serverNameData.name];l+=","+t.serverPath,this.setCellValue(e.serverNameData.name,l)}else this.setCellValue(e.serverNameData.name,t.serverPath);i=this.row[e.serverNameData.name]}}this.fileList=otherFilesToStandard(e,n,null,{showName:o,serverPath:i})}this.packageFileNameWithFileList()},responseFileToFileObj(e,t){const n={};return e.showNameData&&(this.isSql?e.showNameData.dbName&&(n.fileSetObj.showNameData.dbName=t.name):e.showNameData.name&&(n.fileSetObj.showNameData.name=t.name)),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&(n.fileSetObj.serverNameData.dbName=t.serverPath):e.serverNameData.name&&(n.fileSetObj.serverNameData.name=t.serverPath)),n},deleteAnnexFile(e){e&&(e.showNameData&&(this.isSql?e.showNameData.dbName&&this.setCellValue(e.showNameData.dbName,null,"input,clear"):e.showNameData.name&&this.setCellValue(e.showNameData.name,null,"input,clear")),e.serverNameData&&(this.isSql?e.serverNameData.dbName&&this.setCellValue(e.serverNameData.dbName,null):e.serverNameData.name&&this.setCellValue(e.serverNameData.name,null)))},deleteFile(e,t){if(this.fileList=e,t!==void 0&&t!==-1&&this.fileList.splice(t,1),this.packageFileNameWithFileList(),this.column.fileSet&&this.column.fileSet!==""){const n=JSON.parse(this.column.fileSet);if(n)if(this.fileMultiple){const o=analysisFileSetObj(n,this.isSql);this.standardToOtherFiles(n,o)}else this.deleteAnnexFile(n)}},packageFileNameWithFileList(e){if(e||(e=this.fileList),e&&e.length>0){let t="",n="";e.forEach(o=>{t+=o.showName+",",n+=o.serverPath+","}),t&&t.indexOf(",")>0&&(this.lastFileName=t.substring(0,t.lastIndexOf(",")),this.lastServerName=n.substring(0,n.lastIndexOf(",")))}else this.lastFileName=null,this.lastServerName=null},standardToOtherFiles(e,t){if(e.childAnnexDataTableCode){let i=null;if(this.fileList&&this.fileList.length>0){i=[];for(var n=0;n<this.fileList.length;n++){const l=this.fileList[n],f={};f.keyValueParam.showName=l.showName,f.keyValueParam.serverPath=l.serverPath,i.push(f)}}this.setCellValue(this.column.prop,i,"input")}else{let i=null,l=null;if(this.fileList&&this.fileList.length>0){i="",l="";for(var o=0;o<this.fileList.length;o++){const f=this.fileList[o];i!==""&&(i+=","),l!==""&&(l+=","),i+=f.showName,l+=f.serverPath}}this.setCellValue(t.showName,i,"input"),this.setCellValue(t.serverPath,l)}},organizationInputEvent(e,t){if(this.isSql&&e&&e.indexOf(".")<0&&e!==this.column.prop&&this.tableName){const n="__";e=this.tableName+n+e}setEntityFieldValue(this.row,e,t),e&&e===this.column.prop&&this.callCustomEventWithParam("input",{value:t,row:this.row,column:this.column,prop:e})},clearOrganizationInputEvent(e){this.isSql?setEntityFieldValue(this.row,e,""):setEntityFieldValue(this.row,e,null),e&&e===this.column.prop&&this.callCustomEventWithParam("clear",{row:this.row,column:this.column,prop:e})},appendOrganizationInputEvent(e,t,n,o,i){setEntityFieldValue(this.row,e,i),e&&e===this.column.prop&&this.callCustomEventWithParam("append",{originalValue:t,appendValue:n,separator:o,finallyValue:i,row:this.row,column:this.column,prop:e})},replaceOrganizationInputEvent(e,t,n){setEntityFieldValue(this.row,e,n),e&&e===this.column.prop&&this.callCustomEventWithParam("replace",{originalValue:t,newValue:n,row:this.row,column:this.column,prop:e})},setDynamicSourceSelectValue({value:e,sourceColumnName:t,targetColumnName:n,options:o,selectedItem:i}){n&&(this.setCellValue(n,e,"input"),this.callCustomEventWithParam("input",{value:e,extendParams:i,row:this.row,column:this.column,targetColumnName:n}))},multiselectChange(e,t){this.extendParams=t;let n=!1;if(e&&e.length>0){const o="saveAll";e.indexOf(o)!==-1&&(e.length-1>=this.options.length?this.innerValue=null:((!this.innerValue||this.innerValue.indexOf(o)>=0)&&(this.innerValue=[]),this.options.forEach(l=>{this.innerValue.indexOf(l.value)===-1&&this.innerValue.push(l.value)})),n=!0)}this.innerValue&&typeof this.innerValue!="number"&&this.innerValue.indexOf("saveAll")!==-1&&this.innerValue.splice(this.innerValue.indexOf("saveAll"),1),n&&this.cellEvent("input",this.innerValue),this.cellEvent("change",e)},getDefaultValue(e){if(this.isInvalidValue(e)){if(this.column.componentType==="select"&&!isDynamicDataSourceSource(this.column)&&this.column.valueSet){const t=this.column.valueSet.find(n=>n.selected===!0);if(t)return setEntityFieldValue(this.row,this.column.prop,t.value),t.value}else if(this.column.componentType==="inputNumber"){let t=0;if(this.column.valueSetOptions&&this.column.valueSetOptions!==""&&this.column.componentType==="inputNumber"){const n=JSON.parse(this.column.valueSetOptions);n.min&&(t=n.min)}return setEntityFieldValue(this.row,this.column.prop,t),t}}else if(this.column.componentType==="inputNumber"){const t=Number(e);return setEntityFieldValue(this.row,this.column.prop,t),t}return e},refresData(e){$emit(this,"refresData",e)},refresPortData(e,t){$emit(this,"refresPortData",e,t)},refresPortsData(e){$emit(this,"refresPortsData",e)},refresMainTableFields(e){$emit(this,"refresMainTableFields",e)},deleteSuccess(e){console.log("deleteSuccess",e,this.fileInfo)},isValueFormat(){return this.column.dataType==="TEXT"||this.column.dataType==="text"?this.isFormat():"x"},isFormat(){return this.type==="time"&&this.column.dataType==="TIME"||this.type==="dateTimePicker"?"YYYY-MM-DD HH:mm:ss":this.type==="date"&&this.column.dataType==="DATE"?"YYYY-MM-DD":this.type==="timePicker"?this.column.originalFormat?this.column.originalFormat:"HH:mm:ss":this.type==="year"?"YYYY":this.type==="month"?"MM":"YYYY-MM-DD"},fnProhibitToEdit(e){$emit(this,"prohibitToEdit",e)},setInputNumberConfig(){if(this.column.componentType==="inputNumber")if(this.column.valueSetOptions&&this.column.valueSetOptions!==""&&this.column.componentType==="inputNumber"){const e=JSON.parse(this.column.valueSetOptions);this.inputNumberSet=e}else this.inputNumberSet={min:null,max:null,step:1,precision:0,position:""}},isValidValue(e){return e!=null&&e!==""},isInvalidValue(e){return e==null||e===""},getSwitchConfig(e){if(this.valueSetOptions&&this.valueSetOptions[e])return this.valueSetOptions[e];if(e==="activeValue")return this.dataSourceType==="mysql"?!0:1;if(e==="inactiveValue")return this.dataSourceType==="mysql"?!1:0;if(e==="offColor")return"#ff4949";if(e==="onColor")return"#13ce66"}}};function _sfc_render$U(e,t,n,o,i,l){const f=Vue.resolveComponent("el-date-picker"),v=Vue.resolveComponent("el-time-picker"),_=Vue.resolveComponent("el-input"),C=Vue.resolveComponent("fs-upload-list"),x=Vue.resolveComponent("multipart-upload"),V=Vue.resolveComponent("el-option"),I=Vue.resolveComponent("el-select"),D=Vue.resolveComponent("dynamic-source-select"),F=Vue.resolveComponent("el-input-number"),U=Vue.resolveComponent("el-switch"),X=Vue.resolveComponent("el-slider"),G=Vue.resolveComponent("el-rate"),R=Vue.resolveComponent("organization-input"),H=Vue.resolveComponent("el-button"),ue=Vue.resolveComponent("el-upload"),Ae=Vue.resolveComponent("el-dialog"),ce=Vue.resolveComponent("view-image-dialog");return n.type&&n.type.indexOf("custom:")>=0&&i.componentName!=""?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle(n.row.validateErrorField&&n.row.validateErrorField===n.column.prop?"border:1px solid red":"")},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(i.componentName),{ref:"customItem",disabled:i.disabled,entity:n.row,"grid-data":i.gridData,"page-grid-data":i.pageGridData,parent:i.parentFormData,prop:n.column.prop,row:n.row,"row-index":n.position?n.position.row:null,"select-options":n.options,value:i.innerValue,"additional-param-map":i.additionalParamMap,onChange:t[0]||(t[0]=L=>l.cellEvent("change",L)),onInput:t[1]||(t[1]=L=>l.cellEvent("input",L))},null,40,["disabled","entity","grid-data","page-grid-data","parent","prop","row","row-index","select-options","value","additional-param-map"]))],4)):(Vue.openBlock(),Vue.createElementBlock("div",{key:1,style:Vue.normalizeStyle(n.row.validateErrorField&&n.row.validateErrorField===n.column.prop?"border:1px solid red":"")},[n.type==="year"||n.type==="month"?(Vue.openBlock(),Vue.createBlock(f,{key:0,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[2]||(t[2]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime"),type:n.type,"value-format":l.isValueFormat(),style:{width:"100%"},onBlur:t[3]||(t[3]=L=>l.cellEvent("blur",L)),onChange:t[4]||(t[4]=L=>l.cellEvent("change",L)),onFocus:t[5]||(t[5]=L=>l.cellEvent("focus",L)),onInput:t[6]||(t[6]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","type","value-format"])):Vue.createCommentVNode("",!0),n.type==="yearRange"?(Vue.openBlock(),Vue.createBlock(f,{key:1,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[7]||(t[7]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,placeholder:e.$t("imatrixUIMessage.selectYear"),style:{width:"100%"},type:"year","value-format":"YYYY",onBlur:t[8]||(t[8]=L=>l.cellEvent("blur",L)),onChange:t[9]||(t[9]=L=>l.cellEvent("change",L)),onFocus:t[10]||(t[10]=L=>l.cellEvent("focus",L)),onInput:t[11]||(t[11]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","placeholder"])):n.type==="dateTimePicker"?(Vue.openBlock(),Vue.createBlock(f,{key:2,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[12]||(t[12]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":l.isValueFormat(),style:{width:"100%"},type:"datetime",onBlur:t[13]||(t[13]=L=>l.cellEvent("blur",L)),onChange:t[14]||(t[14]=L=>l.cellEvent("change",L)),onFocus:t[15]||(t[15]=L=>l.cellEvent("focus",L)),onInput:t[16]||(t[16]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","value-format"])):n.type==="date"||n.column.dataType==="DATE"?(Vue.openBlock(),Vue.createBlock(f,{key:3,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[17]||(t[17]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),"picker-options":i.pickerOptions,placeholder:e.$t("imatrixUIMessage.selectionDate"),"value-format":l.isValueFormat(),style:{width:"100%"},type:"date",onBlur:t[18]||(t[18]=L=>l.cellEvent("blur",L)),onChange:t[19]||(t[19]=L=>l.cellEvent("change",L)),onFocus:t[20]||(t[20]=L=>l.cellEvent("focus",L)),onInput:t[21]||(t[21]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","picker-options","placeholder","value-format"])):n.type==="timePicker"?(Vue.openBlock(),Vue.createBlock(v,{key:4,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[22]||(t[22]=L=>i.innerValue=L),disabled:i.disabled,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.pleaseEnterATimePoint"),"value-format":l.isValueFormat(),style:{width:"100%"},onBlur:t[23]||(t[23]=L=>l.cellEvent("blur",L)),onChange:t[24]||(t[24]=L=>l.cellEvent("change",L)),onFocus:t[25]||(t[25]=L=>l.cellEvent("focus",L)),onInput:t[26]||(t[26]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","value-format"])):n.type==="time"||n.column.dataType==="TIME"?(Vue.openBlock(),Vue.createBlock(f,{key:5,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[27]||(t[27]=L=>i.innerValue=L),disabled:i.disabled,editable:!1,format:l.isFormat(),placeholder:e.$t("imatrixUIMessage.selectTime"),"value-format":l.isValueFormat(),style:{width:"100%"},type:"datetime",onBlur:t[28]||(t[28]=L=>l.cellEvent("blur",L)),onChange:t[29]||(t[29]=L=>l.cellEvent("change",L)),onFocus:t[30]||(t[30]=L=>l.cellEvent("focus",L)),onInput:t[31]||(t[31]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","format","placeholder","value-format"])):n.type==="input"&&(n.column.dataType==="INTEGER"||n.column.dataType==="LONG")?(Vue.openBlock(),Vue.createBlock(_,{key:6,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[32]||(t[32]=L=>i.innerValue=L),modelModifiers:{number:!0},disabled:i.disabled,placeholder:e.$t("imatrixUIMessage.pleaseEnterContent"),title:i.innerValue,clearable:"",onBlur:t[33]||(t[33]=L=>l.cellEvent("blur",L)),onChange:t[34]||(t[34]=L=>l.cellEvent("change",L)),onClear:t[35]||(t[35]=L=>l.cellEvent("clear",L)),onFocus:t[36]||(t[36]=L=>l.cellEvent("focus",L)),onInput:t[37]||(t[37]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled","placeholder","title"])):n.type==="input"?(Vue.openBlock(),Vue.createBlock(_,{key:7,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[38]||(t[38]=L=>i.innerValue=L),disabled:i.disabled,maxlength:i.controlConfig.maxlength?i.controlConfig.maxlength:"",minlength:i.controlConfig.minlength?i.controlConfig.minlength:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent"),title:i.innerValue,clearable:"",onBlur:t[39]||(t[39]=L=>l.cellEvent("blur",L)),onChange:t[40]||(t[40]=L=>l.cellEvent("change",L)),onClear:t[41]||(t[41]=L=>l.cellEvent("clear",L)),onFocus:t[42]||(t[42]=L=>l.cellEvent("focus",L)),onInput:t[43]||(t[43]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled","maxlength","minlength","placeholder","title"])):n.type==="textarea"?(Vue.openBlock(),Vue.createBlock(_,{key:8,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[44]||(t[44]=L=>i.innerValue=L),disabled:i.disabled,maxlength:i.controlConfig.maxlength?i.controlConfig.maxlength:"",minlength:i.controlConfig.minlength?i.controlConfig.minlength:"",placeholder:e.$t("imatrixUIMessage.pleaseEnterContent"),rows:1,title:i.innerValue,clearable:"",type:"textarea",onBlur:t[45]||(t[45]=L=>l.cellEvent("blur",L)),onChange:t[46]||(t[46]=L=>l.cellEvent("change",L)),onClear:t[47]||(t[47]=L=>l.cellEvent("clear",L)),onFocus:t[48]||(t[48]=L=>l.cellEvent("focus",L)),onInput:t[49]||(t[49]=L=>l.cellEvent("input",L))},null,8,["modelValue","disabled","maxlength","minlength","placeholder","title"])):n.type==="annex"?(Vue.openBlock(),Vue.createBlock(C,{key:9,"custom-view-url":!0,disabled:i.disabled,"file-info":i.fileInfo,"file-list":i.fileList,"file-set-obj":i.fileSetObj,"is-sql":n.isSql,row:n.row,value:i.innerValue,onDelete:l.deleteFile,onDeleteSuccess:l.deleteSuccess,onUploadSuccess:l.uploadOnSuccess},null,8,["disabled","file-info","file-list","file-set-obj","is-sql","row","value","onDelete","onDeleteSuccess","onUploadSuccess"])):n.type==="multipartUpload"?(Vue.openBlock(),Vue.createBlock(x,{key:10,disabled:i.disabled,entity:n.row,"file-info":i.fileInfo,"file-list":i.fileList,"file-set-obj":i.fileSetObj,value:i.innerValue,type:"list",onDelete:l.deleteFile,onDeleteSuccess:l.deleteSuccess,onUploadSuccess:l.uploadOnSuccess},null,8,["disabled","entity","file-info","file-list","file-set-obj","value","onDelete","onDeleteSuccess","onUploadSuccess"])):n.type==="select"&&!l.isDynamicDataSourceSource()?(Vue.openBlock(),Vue.createBlock(I,{key:11,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[50]||(t[50]=L=>i.innerValue=L),"allow-create":!!i.controlConfig.allowCreate,clearable:!!i.controlConfig.clearable,"default-first-option":!!i.controlConfig.allowCreate,disabled:i.disabled,filterable:!!i.controlConfig.filterable,placeholder:e.$t("imatrixUIMessage.pleaseSelect"),title:l.getClassOptionTitle(i.innerValue),onBlur:t[51]||(t[51]=L=>l.cellEvent("blur",L)),onChange:t[52]||(t[52]=L=>l.cellEvent("change",L)),onClear:t[53]||(t[53]=L=>l.cellEvent("clear",L)),onFocus:t[54]||(t[54]=L=>l.cellEvent("focus",L)),onInput:t[55]||(t[55]=L=>l.cellEvent("input",L)),onVisibleChange:t[56]||(t[56]=L=>l.cellEvent("visible-change",L))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.options,L=>(Vue.openBlock(),Vue.createBlock(V,{key:L.value,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","allow-create","clearable","default-first-option","disabled","filterable","placeholder","title"])):n.type==="multiselect"&&!l.isDynamicDataSourceSource()?(Vue.openBlock(),Vue.createBlock(I,{key:12,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[57]||(t[57]=L=>i.innerValue=L),disabled:i.disabled,placeholder:e.$t("imatrixUIMessage.pleaseSelect"),title:l.getClassOptionTitle(i.innerValue),clearable:"","collapse-tags":"",multiple:"",onBlur:t[58]||(t[58]=L=>l.cellEvent("blur",L)),onChange:l.multiselectChange,onClear:t[59]||(t[59]=L=>l.cellEvent("clear",L)),onFocus:t[60]||(t[60]=L=>l.cellEvent("focus",L)),onInput:t[61]||(t[61]=L=>l.cellEvent("input",L)),onVisibleChange:t[62]||(t[62]=L=>l.cellEvent("visible-change",L)),onRemoveTag:t[63]||(t[63]=L=>l.cellEvent("remove-tag",L))},{default:Vue.withCtx(()=>[Vue.createVNode(V,{label:e.$t("superGrid.selectAll"),value:"saveAll"},null,8,["label"]),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.options,L=>(Vue.openBlock(),Vue.createBlock(V,{key:L.value,label:L.label,value:L.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled","placeholder","title","onChange"])):(n.type==="multiselect"||n.type==="select")&&l.isDynamicDataSourceSource()?(Vue.openBlock(),Vue.createBlock(D,{key:13,value:i.innerValue,"onUpdate:value":t[64]||(t[64]=L=>i.innerValue=L),"base-props":{multiple:n.type==="multiselect",disabled:i.disabled},column:n.column,entity:n.row,"is-join-table":i.isJoinTable,"list-code":n.listCode,"list-toolbar-form-data":n.listToolbarFormData,options:{dynamicDataSourceCode:i.dynamicDataSourceCode,valueSetOptions:i.valueSetOptions,isSql:n.isSql,additionalParameter:i.additionalParamMap?JSON.stringify(i.additionalParamMap):null},parent:i.parentFormData,"table-name":i.tableName,onBlur:t[65]||(t[65]=L=>l.cellEvent("blur",L)),onChange:l.multiselectChange,onClear:t[66]||(t[66]=L=>l.cellEvent("clear",L)),onFocus:t[67]||(t[67]=L=>l.cellEvent("focus",L)),onInput:t[68]||(t[68]=L=>l.cellEvent("input",L)),onVisibleChange:t[69]||(t[69]=L=>l.cellEvent("visible-change",L)),onRemoveTag:t[70]||(t[70]=L=>l.cellEvent("remove-tag",L)),onSetValue:l.setDynamicSourceSelectValue},null,8,["value","base-props","column","entity","is-join-table","list-code","list-toolbar-form-data","options","parent","table-name","onChange","onSetValue"])):n.type==="inputNumber"?(Vue.openBlock(),Vue.createBlock(F,{key:14,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[71]||(t[71]=L=>i.innerValue=L),"controls-position":i.inputNumberSet.position,disabled:i.disabled,max:i.inputNumberSet.max==0?0:i.inputNumberSet.max?i.inputNumberSet.max:1/0,min:i.inputNumberSet.min==0?0:i.inputNumberSet.min?i.inputNumberSet.min:-1/0,precision:i.inputNumberSet.precision,step:i.inputNumberSet.step?i.inputNumberSet.step:1,onBlur:t[72]||(t[72]=L=>l.cellEvent("blur",L)),onChange:t[73]||(t[73]=L=>l.cellEvent("change",L)),onFocus:t[74]||(t[74]=L=>l.cellEvent("focus",L)),onInput:t[75]||(t[75]=L=>l.cellEvent("input",L))},null,8,["modelValue","controls-position","disabled","max","min","precision","step"])):n.type==="switch"||n.column.dataType==="BOOLEAN"?(Vue.openBlock(),Vue.createBlock(U,{key:15,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[76]||(t[76]=L=>i.innerValue=L),"active-text":l.getSwitchConfig("activeText"),"active-value":l.getSwitchConfig("activeValue"),disabled:i.disabled,"inactive-text":l.getSwitchConfig("inactiveText"),"inactive-value":l.getSwitchConfig("inactiveValue"),"active-color":l.getSwitchConfig("onColor"),"inactive-color":l.getSwitchConfig("offColor"),onChange:t[77]||(t[77]=L=>l.cellEvent("change",L)),onInput:t[78]||(t[78]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","active-text","active-value","disabled","inactive-text","inactive-value","active-color","inactive-color"])):n.type==="slider"?(Vue.openBlock(),Vue.createBlock(X,{key:16,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[79]||(t[79]=L=>i.innerValue=L),disabled:i.disabled,onChange:t[80]||(t[80]=L=>l.cellEvent("change",L)),onInput:t[81]||(t[81]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled"])):n.type==="rate"?(Vue.openBlock(),Vue.createBlock(G,{key:17,ref:"item",modelValue:i.innerValue,"onUpdate:modelValue":t[82]||(t[82]=L=>i.innerValue=L),disabled:i.disabled,onChange:t[83]||(t[83]=L=>l.cellEvent("change",L)),onInput:t[84]||(t[84]=L=>l.cellEvent("input",L,!0))},null,8,["modelValue","disabled"])):i.deptManTree||i.deptTree||i.wgManTree||i.wgTree?(Vue.openBlock(),Vue.createBlock(R,{key:18,"check-strictly":i.isCheckStrictly,"department-info":i.departmentInfo,disabled:i.disabled,fields:i.fields,"is-join-table":i.isJoinTable,models:n.row,multiple:i.isMultiTree,"table-name":i.tableName,"tree-type":i.deptManTree?"DeptUserTree":i.deptTree?"DeptTree":i.wgManTree?"WgTree":i.wgTree?"WgUserTree":null,value:i.innerValue,onAppend:l.appendOrganizationInputEvent,onClear:l.clearOrganizationInputEvent,onFocus:l.showOrganizationTree,onReplace:l.replaceOrganizationInputEvent,onSetValue:l.organizationInputEvent},null,8,["check-strictly","department-info","disabled","fields","is-join-table","models","multiple","table-name","tree-type","value","onAppend","onClear","onFocus","onReplace","onSetValue"])):Vue.createCommentVNode("",!0),Vue.createVNode(Ae,{"append-to-body":!0,"show-close":!0,title:e.$t("imatrixUIMessage.tips"),visible:i.annexUploadFlag,width:"30%"},{default:Vue.withCtx(()=>[n.type==="annex"&&i.annexUploadFlag?(Vue.openBlock(),Vue.createBlock(ue,{key:0,accept:i.fileSetObj&&i.fileSetObj.accept?i.fileSetObj.accept:null,action:i.defaultAction,"before-upload":l.handleBeforeUpload,headers:i.headers,"on-success":l.uploadOnSuccess,"with-credentials":!0,name:"file"},{default:Vue.withCtx(()=>[Vue.createVNode(H,null,{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIMessage.upload")),1)]),_:1})]),_:1},8,["accept","action","before-upload","headers","on-success"])):Vue.createCommentVNode("",!0)]),_:1},8,["title","visible"]),i.showSingleImgFlag?(Vue.openBlock(),Vue.createBlock(ce,{key:19,deleteable:!i.disabled,downloadable:!i.disabled,"file-list":i.fileList,onClose:t[85]||(t[85]=L=>i.showSingleImgFlag=!1),onDelete:l.deleteFile},null,8,["deleteable","downloadable","file-list","onDelete"])):Vue.createCommentVNode("",!0)],4))}const DynamicInput=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$U]]),formatter$1={number:function(e,t){const n=t.precision,o=t.sign,i=t.delimiter,l=t.scientific;let f=t.scientificNum;if(e!==void 0&&e!=null)if(n>0&&(e=parseFloat(e),e=e.toFixed(n)),i){const _=(e+"").replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,");return o?_+o:_}else if(l!=null){let v=!1;f?f=parseInt(f):f=11,e.length>=f&&(v=!0),v&&(e=""+e,e=parseFloat(e),e=e.toExponential())}else return o&&!t.isCurrency?e+o:e;return e},currency:function(e,t){const n=t.sign;return t.isCurrency=!0,n+this.number(e,t)},date:function(e,t){const n=t.format;if(e!=null){const C=new Date(e);var o=C.getFullYear(),i=C.getMonth()+1,l=C.getDate(),f=C.getHours(),v=C.getMinutes(),_=C.getSeconds();i<10&&(i="0"+i),l<10&&(l="0"+l),f<10&&(f="0"+f),v<10&&(v="0"+v),_<10&&(_="0"+_);const x=n.replace("yyyy",o).replace("mm",v).replace("M",i).replace("m",i).replace("d",l).replace("hh",f).replace("HH",f).replace("ss",_);return x.indexOf("NaN")===-1?x:e}return e},time:function(e,t){return this.date(e,t)},percent:function(e,t){return e||e>=0?this.number(e,t)+"%":e}};function doFormat$1(e,t){if(t=doFormatWithValueSet(e,t),t==null)return;e.formatter===void 0&&(e.dataType==="DATE"?e.formatter={type:"date",options:{format:"yyyy-m-d"}}:e.dataType==="TIME"&&(e.formatter={type:"time",options:{format:"yyyy-m-d hh:mm:ss"}}));const n=e.formatter;return n!==void 0&&formatter$1[n.type]!==void 0?formatter$1[n.type](t,n.options):t}function doFormatWithValueSet(e,t){if(t==null)return t;const n=e.valueSet;if(n!==void 0)if(e.componentType==="multiselect"&&!isDynamicDataSourceSource(e)){typeof t=="number"&&(t+="");const o=(t+"").split(","),i=[];o.forEach(l=>{const f=n.filter(v=>v.value===l+"");f.length>0&&i.push(f[0].label)}),t=i.join(",")}else{const o=n.filter(i=>i.value===t+"");o.length>0&&(t=o[0].label)}return t}const customFormatter$1={customFormatValue(e,t,n,o){if(this.customFormat){let i=e[t];this.isObjectProp(t)&&(i=this.objectPropOriginalValue(e,t));const l=doFormat$1(this.column,i),f=n.call(this,i,l,e,this.column,o);return typeof f>"u"?!1:(window.$vueApp.component(t+o,f),!0)}else return!1},isObjectProp(e){return!!(e&&e.indexOf(".")>0)},objectPropOriginalValue(e,t){try{let n=e;return t&&t.indexOf(".")>0?(t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n):e[t]}catch{return""}},objectPropValue(e,t){return this.formatter(e,t,this.column)},objectPropValueTwo(e,t){if((t.componentType==="annex"||t.componentType==="multipartUpload")&&t.fileSet){const n=JSON.parse(t.fileSet);if(n.childAnnexDataTableCode){const o=analysisFileSetObj(n,this.isSql),i=this.objectPropValue(e,t.prop);if(i&&i.length>0){const l=otherFilesToStandard(n,o,i,null);return l[l.length-1].showName}}else return this.objectPropValue(e,t.prop)}else if(t.formatter&&t.formatter.type==="files"){const n=JSON.parse(t.formatter.options.fileSet);if(n.childAnnexDataTableCode){const o=analysisFileSetObj(n,this.isSql),i=this.objectPropValue(e,t.prop);if(i&&i.length>0){const l=otherFilesToStandard(n,o,i,null);return l[l.length-1].showName}}else return this.objectPropValue(e,t.prop)}else return this.objectPropValue(e,t.prop)},formatter(e,t,n){const o=this.objectPropOriginalValue(e,t);if(this.columnFormatter!==void 0&&this.columnFormatter.type==="custom"){let i;if(this.columnFormatter.options&&this.columnFormatter.options.format&&(i=this.columnFormatter.options.format),i&&i!==null&&i!==""){const l=store$1.get(this.listCode);if(l.options&&l.options.eventCallBack&&l.options.eventCallBack[i]&&typeof l.options.eventCallBack[i]=="function"){const f={value:o,row:e,column:this.column,prop:t,additionalParamMap:l.additionalParamMap};return l.options.eventCallBack[i].call(this,f)}else return doFormat$1(n,o)}else return doFormat$1(n,o)}else return doFormat$1(n,o)},getColumnValue(e,t){const n=t.prop;let o=e[n];this.isObjectProp(n)&&(o=this.objectPropOriginalValue(e,n));const i=doFormat$1(t,o);return{originalValue:o,formatValue:i}},onClickFun(e,t,n,o,i){const l=this.getColumnValue(e,t);n.call(this,l.originalValue,l.formatValue,e,t,o,i)},isShowButtonFun(e,t,n,o){if(n===void 0)return!0;if(typeof n=="function"){const i=this.getColumnValue(e,t);let l=n.call(this,i.originalValue,i.formatValue,e,t,o);return l===void 0&&(l=!0),l}else return n},getHyperLinkSetting(e,t,n,o,i,l,f){const v=store$1.get(f);let _=null;v.options.extraParam&&v.options.extraParam.entityMap&&(_=v.options.extraParam.entityMap);let C={},x;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(x=e.formatter.options.format),x&&x!==""){const V=initialization(JSON.parse(x),t,n,o,i,l,_,v.pageContext);V&&V.label&&V.label!==""?console.log("label存在"):V.label=this.objectPropValueTwo(t,e),V&&V.title&&V.title!==""?console.log("title存在"):V.title=V.label,C=V}else C.visible=!0,C.label=this.objectPropValueTwo(t,e),C.title=C.label;return C},clickHyperLink(e,t,n,o){let i;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(i=e.formatter.options.format),i&&i!==""){let l=!0;const f=store$1.get(n),v=JSON.parse(i);if(console.log("gupre-grid---clickHyperLink--jumpPageSetting=",v),v.beforeClick){const _=v.beforeClick;if(console.log("gupre-grid---clickHyperLink--jumpPageSetting.beforeClick=",_),console.log("gupre-grid---clickHyperLink--gridParams.options[eventCallBack]=",f.options.eventCallBack),f.options&&f.options.eventCallBack&&f.options.eventCallBack[_]&&typeof f.options.eventCallBack[_]=="function"){const C={row:t,column:e,rowIndex:o,listCode:n,additionalParamMap:f.additionalParamMap};l=f.options.eventCallBack[_].call(this,C)}}isPromise$1(l)?l.then(_=>{this.doClickHyperLink(t,n,o,v,f)}):this.doClickHyperLink(t,n,o,v,f)}},doClickHyperLink(e,t,n,o,i){let l=null;i.options.extraParam&&i.options.extraParam.entityMap&&(l=i.options.extraParam.entityMap),console.log("ridParams.options.extraParam.entityMap",i.options.extraParam),jumpToPage(o,i.system,e.id?e.id:e.ID,e,i.additionalParamMap,null,null,l).then(f=>{console.log("clickHyperLink--openPageParams===",f),f&&(f._position="list",f._listCode=t,f._rowIndex=n,f.row=e,$emit(this,"open-page",f))})},getIconSetting(e,t,n,o,i){let l;const f=o.additionalParamMap,v=o.contextParameter;o&&o.basicInfo&&o.basicInfo.tableName&&(l=o.basicInfo.tableName);let _=null;o.options.extraParam&&o.options.extraParam.entityMap&&(_=o.options.extraParam.entityMap);let C={},x;if(e&&e.formatter&&e.formatter.options&&e.formatter.options.format&&(x=e.formatter.options.format),x&&x!==""){const V=initialization(JSON.parse(x),t,n,f,v,l,_,o.pageContext);V&&V.label&&V.label!==""?console.log("label存在"):V.label=this.objectPropValueTwo(t,e),V&&V.title&&V.title!==""?console.log("title存在"):V.title=V.label,C=V}else C.visible=!0,C.label=this.objectPropValueTwo(t,e),C.title=C.label;return C}};/*!
|
|
33
33
|
* vuex v4.1.0
|
|
34
34
|
* (c) 2022 Evan You
|
|
35
35
|
* @license MIT
|
package/package.json
CHANGED
|
@@ -659,7 +659,7 @@ export default {
|
|
|
659
659
|
if (valueSetOptionsObj.dynamicDataSourceCode && valueSetOptionsObj.dynamicDataSourceCode !== '') {
|
|
660
660
|
this.dynamicDataSourceCode = valueSetOptionsObj.dynamicDataSourceCode
|
|
661
661
|
}
|
|
662
|
-
} else if (this.column.componentType === 'switch') {
|
|
662
|
+
} else if (this.column.componentType === 'switch' && this.column.valueSetOptions) {
|
|
663
663
|
const valueSetOptionsObj = JSON.parse(this.column.valueSetOptions)
|
|
664
664
|
if (valueSetOptionsObj) {
|
|
665
665
|
this.valueSetOptions = valueSetOptionsObj
|
package/src/api/sso-service.js
CHANGED
|
@@ -117,7 +117,7 @@ function getUserLangAndTheme() {
|
|
|
117
117
|
resolve({lang:currentLanguage, theme: currentTheme})
|
|
118
118
|
})
|
|
119
119
|
} else {
|
|
120
|
-
return request.get(window.$vueApp.config.globalProperties.baseAPI + '/
|
|
120
|
+
return request.get(window.$vueApp.config.globalProperties.baseAPI + '/component/user-lang-and-theme')
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
package/src/styles/index.scss
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
@import './theme/gray/sidebar.scss';
|
|
12
12
|
@import './theme/dark-blue/index.scss';
|
|
13
13
|
@import './theme/dark-blue/sidebar.scss';
|
|
14
|
+
@import './theme/ocean-blue/index.scss';
|
|
15
|
+
@import './theme/ocean-blue/sidebar.scss';
|
|
14
16
|
@import './display-layout.scss';
|
|
15
17
|
|
|
16
18
|
body {
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@import "./dark-blue-var.scss";
|
|
2
|
+
|
|
3
|
+
.ocean-blue {
|
|
4
|
+
.is-text {
|
|
5
|
+
color: $--button-default-font-color !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.is-link {
|
|
9
|
+
color: $--button-default-font-color !important;
|
|
10
|
+
|
|
11
|
+
:hover {
|
|
12
|
+
color: #a0d5ff;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.el-button--primary {
|
|
17
|
+
color: #ffffff;
|
|
18
|
+
background: $--button-primary-btn-color;
|
|
19
|
+
border-color: $--button-primary-btn-color;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.operation-area .el-button--primary {
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
background: $--button-opt-background-color;
|
|
25
|
+
border-color: $--button-opt-background-color;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.button--default {
|
|
29
|
+
border-radius: 4px;
|
|
30
|
+
border-color: $--color-primary;
|
|
31
|
+
color: $--color-primary;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.menuDownBtn .el-button-group .el-button {
|
|
35
|
+
border-color: #005eba;
|
|
36
|
+
color: #005eba;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.is-plain {
|
|
40
|
+
color: $--button-default-font-color;
|
|
41
|
+
background-color: #e8eff7;
|
|
42
|
+
border: 1px solid $--button-default-border-color;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.el-dropdown-link {
|
|
46
|
+
color: $--button-default-font-color;
|
|
47
|
+
font-family: Source Han Sans CN;
|
|
48
|
+
font-weight: regular;
|
|
49
|
+
font-size: 14px;
|
|
50
|
+
line-height: 22px;
|
|
51
|
+
letter-spacing: 0px;
|
|
52
|
+
text-align: center;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//switch 开关选中字体样式
|
|
57
|
+
.el-switch__label.is-active {
|
|
58
|
+
color: $--color-primary;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//switch 开关样式
|
|
62
|
+
.el-switch.is-checked .el-switch__core {
|
|
63
|
+
border-color: $--color-primary;
|
|
64
|
+
background-color: $--color-primary;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//单选选中样式
|
|
68
|
+
.el-radio__input.is-checked .el-radio__inner {
|
|
69
|
+
color: $--color-primary;
|
|
70
|
+
border-color: $--color-primary;
|
|
71
|
+
background-color: $--color-primary;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
//单选选中样式
|
|
75
|
+
.el-radio__input.is-checked + .el-radio__label {
|
|
76
|
+
color: $--color-primary;
|
|
77
|
+
}
|
|
78
|
+
}
|