gds-plus-design-vue 1.1.26 → 1.1.27
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/gd-initial.umd.js
CHANGED
|
@@ -413,7 +413,7 @@ public class JOBCLASS : IJob
|
|
|
413
413
|
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
414
414
|
* @copyright Chen, Yi-Cyuan 2014-2017
|
|
415
415
|
* @license MIT
|
|
416
|
-
*/(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(r){return typeof r=="object"&&r.buffer&&r.buffer.constructor===ArrayBuffer});var createOutputMethod=function(r){return function(t){return new Md5(!0).update(t)[r]()}},createMethod=function(){var r=createOutputMethod("hex");NODE_JS&&(r=nodeWrap(r)),r.create=function(){return new Md5},r.update=function(s){return r.create().update(s)};for(var t=0;t<OUTPUT_TYPES.length;++t){var a=OUTPUT_TYPES[t];r[a]=createOutputMethod(a)}return r},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(r){if(typeof r=="string")return crypto.createHash("md5").update(r,"utf8").digest("hex");if(r==null)throw ERROR;return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),Array.isArray(r)||ArrayBuffer.isView(r)||r.constructor===Buffer?crypto.createHash("md5").update(new Buffer(r)).digest("hex"):method(r)};return nodeMethod};function Md5(r){if(r)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(r){if(!this.finalized){var t,a=typeof r;if(a!=="string"){if(a==="object"){if(r===null)throw ERROR;if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw ERROR}else throw ERROR;t=!0}for(var s,o=0,l,d=r.length,u=this.blocks,f=this.buffer8;o<d;){if(this.hashed&&(this.hashed=!1,u[0]=u[16],u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),t)if(ARRAY_BUFFER)for(l=this.start;o<d&&l<64;++o)f[l++]=r[o];else for(l=this.start;o<d&&l<64;++o)u[l>>2]|=r[o]<<SHIFT[l++&3];else if(ARRAY_BUFFER)for(l=this.start;o<d&&l<64;++o)s=r.charCodeAt(o),s<128?f[l++]=s:s<2048?(f[l++]=192|s>>6,f[l++]=128|s&63):s<55296||s>=57344?(f[l++]=224|s>>12,f[l++]=128|s>>6&63,f[l++]=128|s&63):(s=65536+((s&1023)<<10|r.charCodeAt(++o)&1023),f[l++]=240|s>>18,f[l++]=128|s>>12&63,f[l++]=128|s>>6&63,f[l++]=128|s&63);else for(l=this.start;o<d&&l<64;++o)s=r.charCodeAt(o),s<128?u[l>>2]|=s<<SHIFT[l++&3]:s<2048?(u[l>>2]|=(192|s>>6)<<SHIFT[l++&3],u[l>>2]|=(128|s&63)<<SHIFT[l++&3]):s<55296||s>=57344?(u[l>>2]|=(224|s>>12)<<SHIFT[l++&3],u[l>>2]|=(128|s>>6&63)<<SHIFT[l++&3],u[l>>2]|=(128|s&63)<<SHIFT[l++&3]):(s=65536+((s&1023)<<10|r.charCodeAt(++o)&1023),u[l>>2]|=(240|s>>18)<<SHIFT[l++&3],u[l>>2]|=(128|s>>12&63)<<SHIFT[l++&3],u[l>>2]|=(128|s>>6&63)<<SHIFT[l++&3],u[l>>2]|=(128|s&63)<<SHIFT[l++&3]);this.lastByteIndex=l,this.bytes+=l-this.start,l>=64?(this.start=l-64,this.hash(),this.hashed=!0):this.start=l}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var r=this.blocks,t=this.lastByteIndex;r[t>>2]|=EXTRA[t&3],t>=56&&(this.hashed||this.hash(),r[0]=r[16],r[16]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=0),r[14]=this.bytes<<3,r[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var r,t,a,s,o,l,d=this.blocks;this.first?(r=d[0]-680876937,r=(r<<7|r>>>25)-271733879<<0,s=(-1732584194^r&2004318071)+d[1]-117830708,s=(s<<12|s>>>20)+r<<0,a=(-271733879^s&(r^-271733879))+d[2]-1126478375,a=(a<<17|a>>>15)+s<<0,t=(r^a&(s^r))+d[3]-1316259209,t=(t<<22|t>>>10)+a<<0):(r=this.h0,t=this.h1,a=this.h2,s=this.h3,r+=(s^t&(a^s))+d[0]-680876936,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[1]-389564586,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[2]+606105819,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[3]-1044525330,t=(t<<22|t>>>10)+a<<0),r+=(s^t&(a^s))+d[4]-176418897,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[5]+1200080426,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[6]-1473231341,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[7]-45705983,t=(t<<22|t>>>10)+a<<0,r+=(s^t&(a^s))+d[8]+1770035416,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[9]-1958414417,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[10]-42063,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[11]-1990404162,t=(t<<22|t>>>10)+a<<0,r+=(s^t&(a^s))+d[12]+1804603682,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[13]-40341101,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[14]-1502002290,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[15]+1236535329,t=(t<<22|t>>>10)+a<<0,r+=(a^s&(t^a))+d[1]-165796510,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[6]-1069501632,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[11]+643717713,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[0]-373897302,t=(t<<20|t>>>12)+a<<0,r+=(a^s&(t^a))+d[5]-701558691,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[10]+38016083,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[15]-660478335,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[4]-405537848,t=(t<<20|t>>>12)+a<<0,r+=(a^s&(t^a))+d[9]+568446438,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[14]-1019803690,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[3]-187363961,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[8]+1163531501,t=(t<<20|t>>>12)+a<<0,r+=(a^s&(t^a))+d[13]-1444681467,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[2]-51403784,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[7]+1735328473,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[12]-1926607734,t=(t<<20|t>>>12)+a<<0,o=t^a,r+=(o^s)+d[5]-378558,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[8]-2022574463,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[11]+1839030562,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[14]-35309556,t=(t<<23|t>>>9)+a<<0,o=t^a,r+=(o^s)+d[1]-1530992060,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[4]+1272893353,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[7]-155497632,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[10]-1094730640,t=(t<<23|t>>>9)+a<<0,o=t^a,r+=(o^s)+d[13]+681279174,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[0]-358537222,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[3]-722521979,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[6]+76029189,t=(t<<23|t>>>9)+a<<0,o=t^a,r+=(o^s)+d[9]-640364487,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[12]-421815835,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[15]+530742520,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[2]-995338651,t=(t<<23|t>>>9)+a<<0,r+=(a^(t|~s))+d[0]-198630844,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[7]+1126891415,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[14]-1416354905,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[5]-57434055,t=(t<<21|t>>>11)+a<<0,r+=(a^(t|~s))+d[12]+1700485571,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[3]-1894986606,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[10]-1051523,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[1]-2054922799,t=(t<<21|t>>>11)+a<<0,r+=(a^(t|~s))+d[8]+1873313359,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[15]-30611744,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[6]-1560198380,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[13]+1309151649,t=(t<<21|t>>>11)+a<<0,r+=(a^(t|~s))+d[4]-145523070,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[11]-1120210379,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[2]+718787259,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[9]-343485551,t=(t<<21|t>>>11)+a<<0,this.first?(this.h0=r+1732584193<<0,this.h1=t-271733879<<0,this.h2=a-1732584194<<0,this.h3=s+271733878<<0,this.first=!1):(this.h0=this.h0+r<<0,this.h1=this.h1+t<<0,this.h2=this.h2+a<<0,this.h3=this.h3+s<<0)},Md5.prototype.hex=function(){this.finalize();var r=this.h0,t=this.h1,a=this.h2,s=this.h3;return HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[a&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var r=this.h0,t=this.h1,a=this.h2,s=this.h3;return[r&255,r>>8&255,r>>16&255,r>>24&255,t&255,t>>8&255,t>>16&255,t>>24&255,a&255,a>>8&255,a>>16&255,a>>24&255,s&255,s>>8&255,s>>16&255,s>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var r=new ArrayBuffer(16),t=new Uint32Array(r);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,r},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var r,t,a,s="",o=this.array(),l=0;l<15;)r=o[l++],t=o[l++],a=o[l++],s+=BASE64_ENCODE_CHAR[r>>>2]+BASE64_ENCODE_CHAR[(r<<4|t>>>4)&63]+BASE64_ENCODE_CHAR[(t<<2|a>>>6)&63]+BASE64_ENCODE_CHAR[a&63];return r=o[l],s+=BASE64_ENCODE_CHAR[r>>>2]+BASE64_ENCODE_CHAR[r<<4&63]+"==",s};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5);const main_vue_vue_type_style_index_0_scoped_29082992_lang="",_sfc_main$2T={name:"GdUserPermissions",props:{height:{type:Number,default:100}},data(){return{searcLoading:!1,loading:!1,userId:"",userList:[],fkEntityName:"sys_user"}},computed:{styled(){return`height:${this.height+76}px`}},methods:{query(){},searchData(r){this.searcLoading=!0,baseFkList({name:r,fkEntityName:this.fkEntityName}).then(t=>{t.code===200&&(this.userList=t.data),this.searcLoading=!1})},change(r){r!==""&&this.getUseRole()},getUseRole(){this.loading=!0,sysUserOwnRole({id:this.userId}).then(r=>{this.loading=!1,r.code===200&&(this.userList=r.data)})}},created(){this.searchData("")}};var _sfc_render$2T=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[a("div",{staticClass:"page-view-trees",style:t.styled},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"trees-operatorl"},[a("el-select",{staticClass:"treesr-input",attrs:{placeholder:t.$i18nt("gd.teamSharing.name","\u89D2\u8272\u540D"),clearable:"",filterable:"",loading:t.searcLoading,"remote-method":t.searchData,clearable:"",remote:""},on:{change:t.change},model:{value:t.userId,callback:function(s){t.userId=s},expression:"userId"}},t._l(t.userList,function(s){return a("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),a("div",{staticClass:"treesr-search",on:{click:t.query}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"trees-list"})]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"page-view-list"})])},_sfc_staticRenderFns$2T=[],__component__$2T=normalizeComponent(_sfc_main$2T,_sfc_render$2T,_sfc_staticRenderFns$2T,!1,null,"29082992",null,null);const GDpackage$g=__component__$2T.exports;GDpackage$g.install=function(r){r.component(GDpackage$g.name,GDpackage$g)};function sysDataSourcePage(r){return window.axios({url:"/sysDataSource/page",method:"get",params:r})}function sysDataSourceAdd(r){return window.axios({url:"/sysDataSource/add",method:"post",data:r})}function sysDataSourceDel(r){return window.axios({url:"/sysDataSource/delete",method:"post",data:r})}function sysDataSourceEdit(r){return window.axios({url:"/sysDataSource/edit",method:"post",data:r})}function sysDataSourceConnection(r){return window.axios({url:"/sysDataSource/testConnection",method:"post",data:r})}function sysDataSourceDetail(r){return window.axios({url:"/sysDataSource/detail",method:"get",params:r})}function sysDataSourceColumns(r){return window.axios({url:"/sysDataSource/getTableColumns",method:"post",data:r})}const mixins$n={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_f319dc31_lang="",_sfc_main$2S={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[tablesFilter,mixins$n],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:r=>sysDataSourcePage(Object.assign(r,this.queryParam)).then(t=>(t.success&&this.openMode==2&&this.$emit("changeData",t.data.rows),t.data))}},computed:{getTableColumns(){return this.tableColumns.filter(r=>r.type==="selection"?this.openMode==1:r.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const r=this.openMode==2?80:0;return this.height-r},...mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(r){this.queryParam={...r},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(r){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(r).then(t=>{const a=sysDataSourceDetail({id:r.id});t.done(a),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[];this.selectedRows.forEach(o=>{let l=sysDataSourceDel(o).then(d=>d);s.push(l)}),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(o=>{a();const l=o.filter(d=>!d.success);l.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+l[0].message),this.handleOk(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:r,record:t,btn:a},s,o){let l=a.item.functionName;this[l]&&this[l]({data:r,record:t,btn:a},s,o)},handleSubmit({data:r,record:t,btn:a},s,o){this.formLoading=!0,(t?sysDataSourceEdit:sysDataSourceAdd)(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),o(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},handleConnection({data:r,record:t,btn:a},s,o){this.formLoading=!0,sysDataSourceConnection(r).then(l=>{l.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a!=null&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const r=typeof this.record.options.val;let t=r==="string"||r==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=t.filter(a=>a!=="")}}};var _sfc_render$2S=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""},on:{click:t.editForm}})]}},{key:"datasourcetype",fn:function({column:s,row:o}){return[t.dictSwitch(o.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(o.datasourcetype,"datasourcetype")}},[t._v(" "+t._s(t._f("dictType")("datasourcetype",o.datasourcetype))+" ")]):a("span",[t._v(t._s(t._f("dictType")("datasourcetype",o.datasourcetype)))])]}},{key:"statecodes",fn:function({column:s,row:o}){return[t.dictSwitch(o.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(o.statecodes,"state_code")}},[t._v(" "+t._s(t._f("dictType")("state_code",o.statecodes))+" ")]):a("span",[t._v(t._s(t._f("dictType")("state_code",o.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:t.refresh.apply(null,arguments)}},model:{value:t.queryParam.name,callback:function(s){t.$set(t.queryParam,"name",s)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:t.formLoading,transKey:t.transKey,buttons:t.formButtons,columns:t.formColumns,labelPosition:t.labelPosition,formMode:t.formMode,needLoad:!0},on:{sbumit:t.sbumit},scopedSlots:t._u([{key:"password",fn:function({data:s,column:o}){return[a("el-input",{attrs:{type:t.type,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:s[o.prop],callback:function(l){t.$set(s,o.prop,l)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:t.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:t.swichType},slot:"suffix"})])]}}])})],1)},_sfc_staticRenderFns$2S=[],__component__$2S=normalizeComponent(_sfc_main$2S,_sfc_render$2S,_sfc_staticRenderFns$2S,!1,null,"f319dc31",null,null);const GDpackage$f=__component__$2S.exports;GDpackage$f.install=function(r){r.component(GDpackage$f.name,GDpackage$f)};const mixins$m={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0(\u70B9\u51FB\u53EF\u6392\u5E8F)",type:"slot",slotType:"sysCodeGenId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.flow.explain",prop:"description",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowProcess:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowProcess:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowProcess:delete"},{displayName:"\u6392\u5E8F",functionName:"sortSel",show:!0,transKey:"gd.btn.sort",icon:"el-icon-rank",name:"sysFlowProcess:sort"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},processFlow_vue_vue_type_style_index_0_scoped_7e620e71_lang="",_sfc_main$2R={props:{height:{type:Number,default:0}},mixins:[tablesFilter,mixins$m],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:r=>onlineBizProcessPage(Object.assign(r,this.queryParam)).then(t=>(this.upStatuList=null,t.data)),detail:{}}},computed:{getHeight(){return this.height-55},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign:flowDesign$2,FlowsSort},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[],o=onlineBizProcessDel({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(o),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(l=>{a(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0;const d=l.filter(u=>!u.success);d.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+d[0].message),this.refresh()})},enabling(r){let t=Object.assign({...r},{statecodes:r.statecodes==1?0:1}),a=r.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(a,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r.statecodes==1?this.$i18nt("gd.state.disable"):this.$i18nt("gd.state.enable"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,o,l)=>{this.enabHand(s,o,l,t)}})},enabHand(r,t,a,s){if(r!=="confirm"){a();return}let o=[],l=onlineBizProcessEdit(s).then(d=>d);o.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(o).then(d=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const u=d.filter(f=>!f.success);u.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+u[0].message),this.refresh()})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},saveQueries(r){this.queryParam={...r},this.refresh()},editForm(r){this.$refs.flowDesign.open(r.id)},sortList(r){!this.$hasPerm("sysFlowProcess:sort")||(this.detail=r,this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsSort.open()},0)}))},sortSel(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.detail=this.selectedRows[0],this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsSort.open()},0)})},refresh(){this.$refs.table.refresh()},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a!=null&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2R=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!0,initialLoading:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.table.tableNameTip","\u8BF7\u8F93\u5165\u8868\u540D\u79F0"),"reserve-keyword":"",clearable:"","collapse-tags":!0},model:{value:t.queryParam.tableId,callback:function(s){t.$set(t.queryParam,"tableId",s)},expression:"queryParam.tableId"}},t._l(t.tableLists,function(s){return a("el-option",{key:s.id,attrs:{label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+t._s(s.tablename)+" ")])}),1),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:s,row:o}){return[a("div",{staticClass:"active-color line1",staticStyle:{cursor:"pointer"},on:{click:function(l){return t.editForm(o)}}},[t._v(t._s(o.name))])]}},{key:"sysCodeGenId",fn:function({column:s,row:o}){return[o.syscodegen?a("span",{style:t.styled,on:{click:function(l){return t.sortList(o)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${o.syscodegen.transkey}`,o.syscodegen.busname))+" ")]):t._e()]}},{key:"stateCodes",fn:function(s){return[t.dictSwitch(s.row.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(s.row.statecodes,"state_code")},on:{click:function(o){return t.enabling(s.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",s.row.statecodes))+" ")]):a("span",{on:{click:function(o){return t.enabling(s.row)}}},[t._v(t._s(t._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}}),a("FlowsSort",{ref:"flowsSort",attrs:{record:t.detail},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2R=[],__component__$2R=normalizeComponent(_sfc_main$2R,_sfc_render$2R,_sfc_staticRenderFns$2R,!1,null,"7e620e71",null,null);const processFlow=__component__$2R.exports,mixins$l={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0",type:"slot",slotType:"sysCodeGenId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowWork:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowWork:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowWork:delete"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},workFlow_vue_vue_type_style_index_0_scoped_2cdbda5e_lang="",_sfc_main$2Q={props:{height:{type:Number,default:0}},mixins:[tablesFilter,mixins$l],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:r=>onlineWorkflowPage(Object.assign(r,this.queryParam)).then(t=>(this.upStatuList=null,t.data)),confirmLoading:!1,upStatuList:null}},computed:{getHeight(){return this.height-55},...mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign:flowDesign$1},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[],o=onlineWorkflowDel({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(o),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(l=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const d=l.filter(u=>!u.success);d.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+d[0].message),this.refresh(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0})},getDetail(r){this.confirmLoading=!0,onlineWorkflowDetails({id:r}).then(t=>{t.success&&(this.upStatuList=t.data)})},enabling(r){if(!this.$hasPerm("sysFlowWork:edit"))return;this.getDetail(r.id);let t=r.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r.statecodes==1?this.$i18nt("gd.state.disable","\u7981\u7528"):this.$i18nt("gd.state.enable","\u542F\u7528"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,s,o)=>{this.upStatuList.data.statecodes=r.statecodes==1?0:1,this.enabHand(a,s,o,this.upStatuList)}})},enabHand(r,t,a,s){if(r!=="confirm"){a();return}let o=[],l=onlineWorkflowEdit(s).then(d=>d);o.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(o).then(d=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const u=d.filter(f=>!f.success);u.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+u[0].message),this.refresh()})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},saveQueries(r){this.queryParam={...r},this.refresh()},editForm(r){this.$refs.flowDesign.open(r.id)},refresh(){this.upStatuList=null,this.$refs.table.refresh()},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a!=null&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2Q=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,initialLoading:!1,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.table.tableNameTip","\u8BF7\u8F93\u5165\u8868\u540D\u79F0"),"reserve-keyword":"",clearable:"","collapse-tags":!0},model:{value:t.queryParam.tableId,callback:function(s){t.$set(t.queryParam,"tableId",s)},expression:"queryParam.tableId"}},t._l(t.tableLists,function(s){return a("el-option",{key:s.id,attrs:{label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+t._s(s.tablename)+" ")])}),1),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""},on:{click:t.editForm}})]}},{key:"sysCodeGenId",fn:function({column:s,row:o}){return[o.syscodegen?a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${o.syscodegen.transkey}`,o.syscodegen.busname))+" ")]):t._e()]}},{key:"stateCodes",fn:function(s){return[t.dictSwitch(s.row.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(s.row.statecodes,"state_code")},on:{click:function(o){return t.enabling(s.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",s.row.statecodes))+" ")]):a("span",{on:{click:function(o){return t.enabling(s.row)}}},[t._v(t._s(t._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2Q=[],__component__$2Q=normalizeComponent(_sfc_main$2Q,_sfc_render$2Q,_sfc_staticRenderFns$2Q,!1,null,"2cdbda5e",null,null);const workFlow=__component__$2Q.exports,mixins$k={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.approval.name",prop:"name",label:"\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.approval.table",prop:"tableId",label:"\u5173\u8054\u8868",width:"160",type:"slot",slotType:"tableId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.approval.classify",prop:"category",width:"160",label:"\u5206\u7C7B",type:"slot",slotType:"category",align:"left"},{transKey:"gd.flow.approval.code",prop:"encode",width:"160",label:"\u7F16\u7801",align:"left"},{transKey:"gd.flow.state",prop:"stateCodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.flow.explain",prop:"description",width:"160",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowApproval:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowApproval:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowApproval:delete"}],tableQueries:[{transKey:"gd.flow.approval.name",prop:"keyword",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]},{transKey:"gd.flow.state",prop:"category",label:"\u5206\u7C7B",effectType:"select",dictTypeCode:"table_flows_type",rules:[]}]}}},approvalFlow_vue_vue_type_style_index_0_scoped_858b2eef_lang="",_sfc_main$2P={props:{height:{type:Number,default:0}},mixins:[tablesFilter,mixins$k],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:r=>{let t={...this.queryParam};return t.stateCodes!=null&&(t=Object.assign({...t},{stateCodes:t.stateCodes})),approvalProcess(Object.assign(r,t)).then(a=>{if(a.code===200){const s=a.data.rows.map(o=>{const l=this.tableLists.filter(d=>d.id===o.tableid)[0];return Object.assign(o,l?{tableData:l}:{})});Object.assign(a.data,{rows:s})}return a.data})}}},computed:{getHeight(){return this.height-55},...mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[],o=approvalProcessDel({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(o),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(l=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const d=l.filter(u=>!u.success);d.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+d[0].message),this.refresh()})},enabling(r){let t=Object.assign({...r},{statecodes:r.statecodes==1?0:1}),a=r.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(a,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r.statecodes==1?this.$i18nt("gd.state.disable"):this.$i18nt("gd.state.enable"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,o,l)=>{this.enabHand(s,o,l,t)}})},enabHand(r,t,a,s){if(r!=="confirm"){a();return}let o=[],l=approvalProcessEdit(s).then(d=>d);o.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(o).then(d=>{a(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0;const u=d.filter(f=>!f.success);u.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+u[0].message),this.refresh()})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},saveQueries(r){this.queryParam={...r},this.refresh()},editForm(r){this.$refs.flowDesign.open(r.id)},refresh(){this.$refs.table.refresh()},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2P=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,initialLoading:!1,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.flow.approval.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:t.refresh.apply(null,arguments)}},model:{value:t.queryParam.keyword,callback:function(s){t.$set(t.queryParam,"keyword",s)},expression:"queryParam.keyword"}}),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""},on:{click:t.editForm}})]}},{key:"tableId",fn:function({column:s,row:o}){return[o.tableData?a("span",[t._v(t._s(t.$i18nt(`Dynamics.${o.tableData.transkey}`,o.tableData.busname)))]):t._e()]}},{key:"stateCodes",fn:function(s){return[t.dictSwitch(s.row.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(s.row.statecodes,"state_code")},on:{click:function(o){return t.enabling(s.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",s.row.statecodes))+" ")]):a("span",{on:{click:function(o){return t.enabling(s.row)}}},[t._v(t._s(t._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"category",fn:function(s){return[a("span",[t._v(t._s(t._f("dictType")("table_flows_type",s.row.category)))])]}},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2P=[],__component__$2P=normalizeComponent(_sfc_main$2P,_sfc_render$2P,_sfc_staticRenderFns$2P,!1,null,"858b2eef",null,null);const approvalFlow=__component__$2P.exports,main_vue_vue_type_style_index_0_scoped_5b2819f1_lang="",_sfc_main$2O={props:{height:{type:Number,default:0}},name:"GdFlowList",data(){return{type:"process"}},computed:{getHeight(){return this.height}},components:{processFlow,workFlow,approvalFlow},mounted(){this.$hasPerm("sysFlowProcess:page")?this.type="process":this.$hasPerm("sysFlowWork:page")?this.type="work":this.$hasPerm("sysFlowApproval:page")&&(this.type="approval")},methods:{tabChange(r){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.type+"Flow"].refresh()},0)})}}};var _sfc_render$2O=function r(){var t=this,a=t._self._c;return a("div",[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.tabChange},model:{value:t.type,callback:function(s){t.type=s},expression:"type"}},[a("el-tab-pane",{attrs:{name:"process",label:t.$i18nt("gd.flow.process.title","\u4E1A\u52A1\u6D41\u7A0B")}},[t.$hasPerm("sysFlowProcess:page")&&t.type=="process"?a("processFlow",{ref:"processFlow",attrs:{height:t.getHeight}}):t._e()],1),a("el-tab-pane",{attrs:{name:"work",label:t.$i18nt("gd.flow.work.title","\u5DE5\u4F5C\u6D41\u7A0B")}},[t.$hasPerm("sysFlowWork:page")&&t.type=="work"?a("workFlow",{ref:"workFlow",attrs:{height:t.getHeight}}):t._e()],1),a("el-tab-pane",{attrs:{name:"approval",label:t.$i18nt("gd.flow.approval.title","\u5BA1\u6279\u6D41\u7A0B")}},[t.$hasPerm("sysFlowApproval:page")&&t.type=="approval"?a("approvalFlow",{ref:"approvalFlow",attrs:{height:t.getHeight}}):t._e()],1)],1)],1)},_sfc_staticRenderFns$2O=[],__component__$2O=normalizeComponent(_sfc_main$2O,_sfc_render$2O,_sfc_staticRenderFns$2O,!1,null,"5b2819f1",null,null);const GDpackage$e=__component__$2O.exports;GDpackage$e.install=function(r){r.component(GDpackage$e.name,GDpackage$e)};const index_vue_vue_type_style_index_0_scoped_68d86fd3_lang="",_sfc_main$2N={props:{placement:{type:String,default:"top"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(r){this.visible=!1,!this.disabled&&this.$emit("selType",r)}}};var _sfc_render$2N=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"lian"},[a("div",{ref:"lianBtn",staticClass:"lian-btn"},[a("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[a("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),a("div",{staticClass:"connect-solid"},[a("el-divider")],1),a("div",{staticClass:"contents"},[a("div",{staticClass:"item term",on:{click:function(s){return t.selType("condition")}}},[a("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])]),a("div",{staticClass:"item move",on:{click:function(s){return t.selType("step")}}},[a("i",{staticClass:"gd-icons gd-icon-Interaction anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))])])]),a("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$2N=[],__component__$2N=normalizeComponent(_sfc_main$2N,_sfc_render$2N,_sfc_staticRenderFns$2N,!1,null,"68d86fd3",null,null);const ConnectDesigner$2=__component__$2N.exports,index_vue_vue_type_style_index_0_scoped_f73071ec_lang="",_sfc_main$2M={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,fetching:!1,show:!1,ruleFormData:{name:"",sysCodeGenId:"",code:"",span:"",description:"",stateCodes:"",transKey:null,langs:"[]"},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],span:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},confirmLoading:!1}},components:{ConnectDesigner:ConnectDesigner$2},computed:{getTableLists(){return this.tableLists.filter(r=>(r.isbusinessprocess===void 0?1:r.isbusinessprocess)===1)},getName(){let r=this.record.data.name;if(this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(a=>a.code==this.language)[0];r=t==null?r:t.val}else this.record.data.transKey&&(r=this.$i18nt(`Dynamics.${this.record.data.transKey}`,r));return r},disabled(){return!this.permissionsBnt||this.stateCodes==1?!0:this.record.data.code!==""},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","primaryColor","tableLists"])},methods:{lookupSeled(r){let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleFormData=Object.assign(this.ruleFormData,{name:r.defaulttext,langs:JSON.stringify(t)}),this.record.data.langs=t,this.record.data.name=r.defaulttext},sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)}),this.onClose(1))})},see(){this.show=this.record.data.stateCodes!==void 0,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let r={span:this.record.data.span,name:this.record.data.name,sysCodeGenId:Number(this.record.data.sysCodeGenId),description:this.record.data.description,code:this.record.data.code,transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.record.data.stateCodes!==void 0&&(r=Object.assign(r,{stateCodes:this.record.data.stateCodes})),console.log(this.record.data.stateCodes,"str"),this.ruleFormData=Object.assign({...r}),this.$refs.gdTranslation},0)})},afterVisibleChange(){if(this.visible)return;let r=this.form.getFieldsValue();this.record.data=r},handleChange(r){this.record.data.title=r},onClose(r){if(r!=null&&r==1){this.visible=!1;return}if(this.record.data.transKey){let t=this.ruleFormData,a=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:a,name:t.name})}this.visible=!1},selType(r){this.$emit("addType",r,this.index)},getDictionary(r){return this.$options.filters.dictData(r)}}};var _sfc_render$2M=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"start"},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(s){t.$set(t.ruleFormData,"transKey",s)},expression:"ruleFormData.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(s){t.$set(t.ruleFormData,"langs",s)},expression:"ruleFormData.langs"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.name"),prop:"name"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!t.record.data.transKey,expression:"visible && !record.data.transKey"}],staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}}),t.visible&&t.record.data.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.record.data,keyI18n:"transKey",type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.table"),prop:"sysCodeGenId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),disabled:!0,filterable:"",remote:"","reserve-keyword":"",loading:t.fetching},model:{value:t.ruleFormData.sysCodeGenId,callback:function(s){t.$set(t.ruleFormData,"sysCodeGenId",s)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.getTableLists,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname)}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname)))]),a("span",[t._v(t._s(s.tablename))])])}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.input")},model:{value:t.ruleFormData.code,callback:function(s){t.$set(t.ruleFormData,"code",s)},expression:"ruleFormData.code"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.display","\u663E\u793A"),prop:"span"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.span,callback:function(s){t.$set(t.ruleFormData,"span",s)},expression:"ruleFormData.span"}},[a("el-option",{attrs:{value:"24",label:t.$i18nt("gd.flow.process.oneColumn","\u4E00\u884C\u4E00\u5217")}}),a("el-option",{attrs:{value:"12",label:t.$i18nt("gd.flow.process.twoColumn","\u4E00\u884C\u4E24\u5217")}}),a("el-option",{attrs:{value:"8",label:t.$i18nt("gd.flow.process.threeColumn","\u4E00\u884C\u4E09\u5217")}}),a("el-option",{attrs:{value:"6",label:t.$i18nt("gd.flow.process.fourColumn","\u4E00\u884C\u56DB\u5217")}})],1)],1)],1),t.show?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state"),prop:"stateCodes"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(s){t.$set(t.ruleFormData,"stateCodes",s)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1):t._e(),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.describe","\u63CF\u8FF0"),prop:"description"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(s){t.$set(t.ruleFormData,"description",s)},expression:"ruleFormData.description"}})],1)],1)],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply"))+" ")])],1)],2)],1)},_sfc_staticRenderFns$2M=[],__component__$2M=normalizeComponent(_sfc_main$2M,_sfc_render$2M,_sfc_staticRenderFns$2M,!1,null,"f73071ec",null,null);const StartDesigner$2=__component__$2M.exports,index_vue_vue_type_style_index_0_scoped_e68d8cd2_lang="",_sfc_main$2L={data(){return{}}};var _sfc_render$2L=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"end"},[a("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$2L=[],__component__$2L=normalizeComponent(_sfc_main$2L,_sfc_render$2L,_sfc_staticRenderFns$2L,!1,null,"e68d8cd2",null,null);const EndDesigner$2=__component__$2L.exports,index_vue_vue_type_style_index_0_scoped_47296bbe_lang="",_sfc_main$2K={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:""},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,list:[],fieldsList:[],ruleForm:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},components:{ConnectDesigner:ConnectDesigner$2,draggable},computed:{dictList(){return this.loadData.filter(r=>r.dicttypecode)},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getName(){let r=this.record.name;if(this.record.langs&&this.record.langs.length>0){let t=this.record.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.transKey&&(r=this.$i18nt(`Dynamics.${this.record.transKey}`,r));return r},languageMessages(){return this.$i18n.messages},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},stylede(){return`padding-left:4px;color:${this.primaryColor};`},...mapGetters(["language","tableLists","primaryColor"])},methods:{delFieldsList(r){this.fieldsList=this.fieldsList.filter((t,a)=>a!==r)},seleFields(r,t){const a=this.dictList.filter(s=>s.columnname===r)[0];this.fieldsList[t].dictTypeCode=a.dicttypecode},addFieldsList(){let r=[...this.fieldsList];r.push({columnName:"",val:"",dictTypeCode:""}),this.fieldsList=[...r]},getDictList(r){let t=[];return this.fieldsList.forEach(s=>{s.columnName&&s.columnName!==r.columnName&&t.push(s.columnName)}),this.dictList.filter(s=>!t.includes(s.columnname))},getTransKey(r,t){let a=this.tableLists.filter(d=>d.id==this.codeGenId)[0],s=a===void 0?"":`_${a.tablename}`,o=`SFO_N${s}_${uuid$1(8)}`;t==1&&(o=`SFO_N${s}_field_${uuid$1(8)}`);let l=[];for(let d in this.languageMessages)l.push({name:transKeyCodeName(d),val:r.name,code:d});return JSON.stringify({name:o,langs:l})},lookupSeled(r){this.record.transKey||this.$emit("addTransKey",r.name);let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleForm=Object.assign({...this.ruleForm},{name:r.defaulttext,langsd:JSON.stringify(t),langs:t,transKey:r.name}),this.record.transKey=r.name,this.record.langs=t},lookupSeleds(r,t){let a=[...this.list];a[t].transKey||this.$emit("addTransKey",r.name);let s=[];r.langs.forEach(o=>{s.push({name:o.languagename,val:o.description,code:o.languagecode})}),a[t].name=r.defaulttext,a[t].transKey=r.name,a[t].langs=r.langs,this.list=[...a]},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.list.length==0){this.$message.error(this.$i18nt("gd.flow.process.stepNameTip","\u8BF7\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4\uFF01"));return}if(!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.process.addStepTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F\uFF01"));return}if(this.ruleForm.updateOpen&&this.fieldsList.length===0){this.$message.error(this.$i18nt("gd.flow.process.addFieldsTip","\u8BF7\u8865\u5145\u66F4\u65B0\u5B57\u6BB5\u4FE1\u606F\uFF01"));return}if(this.ruleForm.updateOpen&&!this.isCheckedFields()){this.$message.error(this.$i18nt("gd.flow.process.addFieldsTip","\u8BF7\u8865\u5145\u66F4\u65B0\u5B57\u6BB5\u4FE1\u606F\uFF01"));return}this.record.err=!1,this.record.name=this.ruleForm.name,this.record.transKey=this.ruleForm.transKey,this.record.langs=this.ruleForm.transKey?[]:this.ruleForm.langs,this.record.list=[...this.list],this.record.updateOpen=this.ruleForm.updateOpen,this.record.fieldsList=[...this.fieldsList],this.onClose(1)}})},isChecked(r){return this.list.every((t,a,s)=>t.columnName!=null&&t.columnName!=""&&t.name!="")},isCheckedFields(){return this.fieldsList.every((r,t,a)=>r.columnName!=""&&r.val!="")},selColumn(r,t){const a=this.loadData.filter(s=>s.columnname===r)[0];this.list[t].columnId=a?a.id:"",this.list[t].name=this.list[t].name==""?a?a.columncomment:this.list[t].name:this.list[t].name,this.list[t].fieldTransKey=a?a.transkey:this.list[t].fieldTransKey},addList(){let r={id:uuid$1(),name:"",columnName:"",columnId:"",disabled:!1,rules:[{required:!1,message:"\u5FC5\u586B\u9879"}],fieldTransKey:null,transKey:null};this.list=this.list.concat(r)},delList(r){let t=this.list[r];this.list=this.list.filter((a,s)=>s!=r),t.transKey&&this.$emit("deltransKey",t.transKey)},see(){this.visible=!0;let r=this.record.langs?this.record.langs:[];this.list=[...this.record.list],this.fieldsList=this.record.fieldsList!==void 0?this.record.fieldsList:[],this.record.langs=[],this.$nextTick(()=>{setTimeout(()=>{this.ruleForm=Object.assign({name:this.record.name,transKey:this.record.transKey?this.record.transKey:null,langsd:JSON.stringify(r),langs:this.record.transKey?[]:r,updateOpen:this.record.updateOpen!==void 0?this.record.updateOpen:!1}),this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(r){if(r!==void 0&&r==1){this.visible=!1;return}this.record.transKey&&(this.record.name=this.ruleForm.name,this.record.langs=this.ruleForm.langs),this.visible=!1},getDictionary(r){return this.$options.filters.dictData(r)}}};var _sfc_render$2K=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})]),t.record.isDelete?a("i",{staticClass:"el-icon-close",attrs:{id:"close"},on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}}):t._e()])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleForm.transKey,callback:function(s){t.$set(t.ruleForm,"transKey",s)},expression:"ruleForm.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langsd"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleForm.langsd,callback:function(s){t.$set(t.ruleForm,"langsd",s)},expression:"ruleForm.langsd"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{staticStyle:{display:"none"},attrs:{disabled:t.disabled},model:{value:t.ruleForm.name,callback:function(s){t.$set(t.ruleForm,"name",s)},expression:"ruleForm.name"}}),t.visible&&!t.ruleForm.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleForm,transKey:t.getTransKey(t.ruleForm,1),type:3,keyI18n:"transKey"},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.record.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleForm,transKey:t.getTransKey(t.ruleForm,1),type:2,keyI18n:"transKey"},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.process.dataSteps","\u6570\u636E\u6B65\u9AA4")))]),a("div",[t.list.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.stepName","\u6B65\u9AA4\u540D\u79F0")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5")))]),a("el-col",{attrs:{span:2}},[t._v(t._s(t.$i18nt("gd.flow.process.required","\u5FC5\u586B")))]),a("el-col",{attrs:{span:2}},[t._v(t._s(t.$i18nt("gd.flow.process.disable","\u7981\u7528")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e()],1),a("div",[a("draggable",t._b({model:{value:t.list,callback:function(s){t.list=s},expression:"list"}},"draggable",{animation:300,handle:"#drag-btn"},!1),t._l(t.list,function(s,o){return a("el-row",{key:s.id,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[t.visible&&!s.transKey?a("gd-translation",{ref:"gdTranslationd",refInFor:!0,attrs:{recordData:s,transKey:t.getTransKey(s,2),type:3,keyI18n:"transKey"},on:{lookupSeled:l=>t.lookupSeleds(l,o)}}):t._e(),t.visible&&s.transKey?a("gd-translation",{ref:"gdTranslationd",refInFor:!0,attrs:{recordData:s,transKey:t.getTransKey(s,2),type:2,keyI18n:"transKey"},on:{lookupSeled:l=>t.lookupSeleds(l,o)}}):t._e()],1),a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},on:{change:function(l){return t.selColumn(l,o)}},model:{value:s.columnName,callback:function(l){t.$set(s,"columnName",l)},expression:"item.columnName"}},t._l(t.loadData,function(l,d){return a("el-option",{key:l.columnname,attrs:{label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),value:l.columnname}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnname))])])}),1)],1),a("el-col",{attrs:{span:2}},[a("el-checkbox",{staticStyle:{"margin-top":"6px"},attrs:{disabled:t.disabled},model:{value:s.rules[0].required,callback:function(l){t.$set(s.rules[0],"required",l)},expression:"item.rules[0].required"}})],1),a("el-col",{attrs:{span:2}},[a("el-checkbox",{staticStyle:{"margin-top":"6px"},attrs:{disabled:t.disabled},model:{value:s.disabled,callback:function(l){t.$set(s,"disabled",l)},expression:"item.disabled"}})],1),a("el-col",{attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-rank",attrs:{id:"drag-btn"}}),t.disabled?t._e():a("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(l){return t.delList(o)}}})])],1)}),1)],1),t.disabled?t._e():a("div",{staticClass:"add"},[a("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.addStep","\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4"))+" ")])]),a("div",{staticClass:"title"},[t._v(" "+t._s(t.$i18nt("gd.flow.process.mapping","\u6620\u5C04"))+" "),a("el-switch",{staticStyle:{float:"right"},attrs:{"active-color":t.primaryColor,disabled:t.disabled},model:{value:t.ruleForm.updateOpen,callback:function(s){t.$set(t.ruleForm,"updateOpen",s)},expression:"ruleForm.updateOpen"}})],1),a("div",[t.fieldsList.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.process.mapFields","\u6620\u5C04\u5B57\u6BB5")))]),a("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.process.mapValue","\u6620\u5C04\u503C")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e()],1),a("div",t._l(t.fieldsList,function(s,o){return a("el-row",{key:s.columnName,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},on:{change:function(l){return t.seleFields(l,o)}},model:{value:s.columnName,callback:function(l){t.$set(s,"columnName",l)},expression:"item.columnName"}},[t._l(t.getDictList(s),function(l,d){return[a("el-option",{attrs:{label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),value:l.columnname}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnname))])])]})],2)],1),a("el-col",{attrs:{span:10}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}},t._l(t.getDictionary(s.dictTypeCode),function(l,d){return a("el-option",{key:l.code,attrs:{label:t.$i18nt(`Dynamics.${l.transkey}`,l.name),value:l.code}})}),1)],1),a("el-col",{attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(l){return t.delFieldsList(o)}}})])],1)}),1),!t.disabled&&t.ruleForm.updateOpen?a("div",{staticClass:"add"},[a("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addFieldsList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addField","\u6DFB\u52A0\u5B57\u6BB5"))+" ")])]):t._e()],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1)],1)},_sfc_staticRenderFns$2K=[],__component__$2K=normalizeComponent(_sfc_main$2K,_sfc_render$2K,_sfc_staticRenderFns$2K,!1,null,"47296bbe",null,null);const StepsDesigner$2=__component__$2K.exports;function nodeData$2(r){switch(r){case"step":return{type:"step",name:"\u65B0\u5EFA\u9636\u6BB5/\u6B65\u9AA4",list:[],err:!1,isDelete:!0,transKey:null,langs:[],updateOpen:!1,fieldsList:[]};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",rule:[],list:[],err:!1,transKey:null,langs:[]},{type:"else",name:"ELSE",rule:[],list:[],err:!1}],isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_14235c7b_lang="",_sfc_main$2J={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:""},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{detail:{},visible:!1,list:[],rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,confirmLoading:!1,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],span:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}}},components:{ConnectDesigner:ConnectDesigner$2,StepsDesigner:StepsDesigner$2},methods:{addTransKey(r){this.$emit("addTransKey",r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.list.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u89C4\u5219\uFF01");return}if(!this.isChecked()){this.$message.error("\u8BF7\u8865\u5145\u89C4\u5219\u4FE1\u606F\uFF01");return}this.record.list[this.seeIndex].name=this.ruleFormData.name,this.list.map(t=>(t.type=this.ruleFormData.type,t)),this.record.list[this.seeIndex].rule=[...this.list],this.record.list[this.seeIndex].err=!1,this.onClose()}})},isChecked(r){return this.list.every((t,a,s)=>{let o=t.rules!=5&&t.rules!=6?t.val:t.columnName;return t.columnName!=null&&t.columnName!=""&&o!=""})},addList(){let r={type:1,id:uuid$1(),columnName:"",columnId:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"input",fieldFormat:null,fkData:[]};this.list=this.list.concat(r)},delList(r){this.list=this.list.filter((t,a)=>a!=r)},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r,this.list=[...t.rule],this.ruleFormData={name:t.name,type:t.rule.length>0?t.rule[0].type:"1"}},0)})},addCondition(){let r=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",rule:[],list:[],err:!1,id:uuid$1(),sourceId:this.record.sourceId,pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData$2(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1(),sourceId:this.record.sourceId}),a.type=="condition"&&a.list.map(s=>(s=Object.assign(s,{pid:a.id,id:uuid$1(),sourceId:this.record.sourceId}),s)),this.record.list[t].list.splice(0,0,a)},deltransKey(r){this.$emit("deltransKey",r)},async del(r){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list[r],a=this.record.list.filter((l,d)=>d!=r);a[0].type="if",this.record.list=[...a];let s=await this.hasItem([t]).filter(l=>l.transKey),o=[];s.forEach(l=>{o.push(l.transKey)}),o.length!=0&&this.$emit("deltransKey",o)},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>(o.type=="if"&&(o.list=a(o.list)),o.type=="condition"&&o.list.forEach(d=>{d.list=a(d.list)}),o.type=="step"&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},addType(r,t,a){let s=nodeData$2(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1(),sourceId:this.record.sourceId}),s.type=="condition"&&s.list.map(o=>(o=Object.assign(o,{pid:s.id,id:uuid$1(),sourceId:this.record.sourceId}),o)),this.record.list[t].list.splice(a+1,0,s)},async delChildItem(r,t,a){let s=this.record.list[t].list[r],o=this.record.list[t].list.filter((u,f)=>f!=r);this.record.list[t].list=[...o];let l=await this.hasItem([s]).filter(u=>u.transKey),d=[];l.forEach(u=>{d.push(u.transKey)}),d.length!=0&&this.$emit("deltransKey",d)},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},lookup(r,t){this.lookIndex=r;let a=this.loadData.filter(s=>s.id==this.list[r].columnId)[0];this.$refs.viewSearch.open(Object.assign({...a},{val:t}))},lookupSeled(r){this.handleLookupCancel(),["fk","about","user"].includes(this.list[this.lookIndex].effectType)&&(this.list[this.lookIndex].fkData=r.fkData,this.list[this.lookIndex].val=r.data[0])},handleLookupCancel(){this.lookupShow=!1},selColumn(r,t){console.log(r,t),this.$nextTick(()=>{setTimeout(()=>{let a=this.loadData.filter(o=>o.id==r.id)[0],s=this.rulesList.filter(o=>o.remark.split(",").includes(r.effecttype));a.fieldformat&&(this.list[t].fieldFormat=this.fieldFormat.filter(o=>o.code==a.fieldformat)[0].name),this.list[t].columnId=r.id,this.list[t].effectType=a.effecttype,this.list[t].val="",this.list[t].rulesList=[...s],this.list[t].rules=s.length>0?s[0].code:"",a.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnId)[0];this.fetching=!0,this.list[t].fkData=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkData=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnId)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldFormat.length>10}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2J=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[s.type=="else"?a("div",{staticClass:"condition-body"},[a("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute","\u4E0D\u6EE1\u8DB3\u65F6\u6267\u884C")))])])]):a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("div",{staticClass:"condition-bodyt line1"},[t._v(t._s(s.name))]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.process.set","\u5DF2\u8BBE\u7F6E"))+" "+t._s(s.rule.length)+" "+t._s(t.$i18nt("gd.flow.process.rules","\u6761\u89C4\u5219"))+" ")]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{flex:"0 0 20px","text-align":"right"}})]),a("i",{staticClass:"el-icon-close",attrs:{id:"close"},on:{click:function(l){return l.stopPropagation(),t.del(o)}}}),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.process.supplementRules","\u8BF7\u8865\u5145\u89C4\u5219\u4FE1\u606F")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"1"}},[l.type=="step"?a("StepsDesigner",{attrs:{loadData:t.loadData,codeGenId:t.codeGenId,record:l,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,index:d},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,codeGenId:t.codeGenId,loadData:t.loadData,index:d,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{visible:t.visible,"append-to-body":!0,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:t.list.length>1,expression:"list.length > 1"}],attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"12px","margin-top":"-12px"},attrs:{label:t.$i18nt("gd.flow.process.ruleLogic","\u89C4\u5219\u903B\u8F91")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.develop.filter.and","\u548C")}}),a("el-option",{attrs:{value:"2",label:t.$i18nt("gd.develop.filter.or","\u6216")}})],1)],1)],1)],1),a("el-divider"),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.rule","\u89C4\u5219"))+":")]),a("div",[a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:7}},[t._v(t._s(t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5")))]),a("el-col",{attrs:{span:6}},[t._v(t._s(t.$i18nt("gd.flow.process.operator","\u64CD\u4F5C\u7B26")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.value","\u503C")))]),a("el-col",{attrs:{span:3}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1),t._l(t.list,function(s,o){return a("el-row",{key:s.id,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),filterable:"",clearable:"",disabled:t.disabled},model:{value:s.columnName,callback:function(l){t.$set(s,"columnName",l)},expression:"item.columnName"}},t._l(t.loadData,function(l,d){return a("el-option",{key:l.id,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment)},nativeOn:{click:function(u){return t.selColumn(l,o)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnname)+" ")])}),1)],1),a("el-col",{attrs:{span:6}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:s.rules,callback:function(l){t.$set(s,"rules",l)},expression:"item.rules"}},t._l(s.rulesList,function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:l.name}})}),1)],1),a("el-col",{attrs:{span:8}},[s.rules!=5&&s.rules!=6?a("div",{staticStyle:{width:"100%"}},[s.effectType=="select"||s.effectType=="radio"||s.effectType=="checkbox"||s.effectType=="switch"?a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}},t._l(t.getDictionary(s),function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.name))+" ")])}),1):s.effectType=="inputnumber"?a("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),step:1,disabled:t.disabled},model:{value:t.ite.val,callback:function(l){t.$set(t.ite,"val",l)},expression:"ite.val"}}):s.effectType=="datepicker"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(s),valueFormat:s.fieldformat,disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}}):s.effectType=="fk"||s.effectType=="about"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select"),clearable:"",disabled:t.disabled?!0:s.effectType=="about"},on:{change:function(l){return t.searchData(l,o)}},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}},[t.fetching?a("el-spin",{attrs:{slot:"notFoundContent",size:"small"},slot:"notFoundContent"}):t._e(),t._l(s.fkData,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}})})],2),t.disabled?t._e():a("i",{staticClass:"el-input__icon el-icon-search",attrs:{id:"cao_setting"},on:{click:function(l){return t.lookup(o,s.val)}}})],1):a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}})],1):t._e()]),a("el-col",{attrs:{span:3}},[t.disabled?t._e():a("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(l){return t.delList(o)}}})])],1)})],2),t.disabled?t._e():a("div",{staticClass:"add"},[a("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.flow.addRule","\u6DFB\u52A0\u89C4\u5219")))])])],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$2J=[],__component__$2J=normalizeComponent(_sfc_main$2J,_sfc_render$2J,_sfc_staticRenderFns$2J,!1,null,"14235c7b",null,null);const ConditionDesigner$2=__component__$2J.exports,main_vue_vue_type_style_index_0_scoped_04f792d8_lang="",_sfc_main$2I={name:"GdProcessFlow",props:{value:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100}},data(){return{visible:!1,list:[],loadData:[],codeGenId:"",delTransKeyList:[],addTransKeyList:[]}},computed:{style(){let r=this.scaleVal/100;return`transform-origin: top;transform:scale(${r},${r});`}},components:{StartDesigner:StartDesigner$2,ConnectDesigner:ConnectDesigner$2,EndDesigner:EndDesigner$2,StepsDesigner:StepsDesigner$2,ConditionDesigner:ConditionDesigner$2},methods:{addTransKey(r){this.addTransKeyList=this.addTransKeyList.concat([r])},init(r){this.delTransKeyList=[],this.addTransKeyList=[],this.codeGenId=r[0].data.sysCodeGenId,this.list=[...r],this.getLoadData()},addType(r,t){let a=nodeData$2(r),s=uuid$1();a=Object.assign(a,{pid:0,id:s,sourceId:s}),a.type=="condition"&&a.list.map(o=>(o=Object.assign(o,{pid:a.id,id:uuid$1(),sourceId:a.id}),o)),this.list.splice(t+1,0,a)},deltransKey(r){this.delTransKeyList=this.delTransKeyList.concat(r)},async delItem(r){let t=this.list[r],a=this.list.filter((l,d)=>d!=r);this.list=[...a];let s=await this.hasItem([t]).filter(l=>l.transKey),o=[];s.forEach(l=>{o.push(l.transKey)}),o.length!=0&&(this.delTransKeyList=this.delTransKeyList.concat(o))},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>(o.type=="condition"&&o.list.forEach(d=>{d.list=a(d.list)}),o.type=="step"&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},getLoadData(){onlineFormGetCodeGenerateList({codeGenId:this.codeGenId}).then(r=>{r.data&&(this.loadData=r.data.filter(t=>t.effecttype=="about"&&t.columnname==(t.relations+"_AboutTable").toLowerCase()?!1:!(t.effecttype=="currency"&&t.columnname==(t.relations+"_Currency_Base").toLowerCase())))})}}};var _sfc_render$2I=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"flowsdesigner",style:t.style},[a("div",{staticClass:"flowsdesigners"},[a("div",{staticClass:"flowdesign"},[t._l(t.list,function(s,o){return[s.type=="start"?a("StartDesigner",{attrs:{record:s,loadData:t.loadData,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType}}):t._e(),s.type=="step"?a("StepsDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="condition"?a("ConditionDesigner",{attrs:{loadData:t.loadData,record:s,index:o,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="end"?a("EndDesigner"):t._e()]})],2)])])},_sfc_staticRenderFns$2I=[],__component__$2I=normalizeComponent(_sfc_main$2I,_sfc_render$2I,_sfc_staticRenderFns$2I,!1,null,"04f792d8",null,null);const GDpackage$d=__component__$2I.exports;GDpackage$d.install=function(r){r.component(GDpackage$d.name,GDpackage$d)};const index_vue_vue_type_style_index_0_scoped_36b86bb0_lang="",_sfc_main$2H={props:{placement:{type:String,default:"top"},type:{type:String,default:"other"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(r){this.visible=!1,!this.disabled&&this.$emit("selType",r)}}};var _sfc_render$2H=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"lian"},[a("div",{ref:"lianBtn",staticClass:"lian-btn"},[a("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[a("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),a("div",{staticClass:"connect-solid"},[a("el-divider")],1),t.type=="start"?a("div",[a("div",{staticClass:"contents"},[a("div",{staticClass:"item stage",on:{click:function(s){return t.selType("stage")}}},[a("i",{staticClass:"el-icon-document-copy anticon",staticStyle:{height:"40px",padding:"9px"}}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.stage","\u9636\u6BB5")))])])])]):a("div",[a("div",{staticClass:"contents"},[t.type!="condition"?a("div",{staticClass:"item term",on:{click:function(s){return t.selType("condition")}}},[a("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])]):t._e(),a("div",{staticClass:"item move",on:{click:function(s){return t.selType("step")}}},[a("i",{staticClass:"gd-icons gd-icon-Interaction anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.step","\u6B65\u9AA4")))])])])]),a("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$2H=[],__component__$2H=normalizeComponent(_sfc_main$2H,_sfc_render$2H,_sfc_staticRenderFns$2H,!1,null,"36b86bb0",null,null);const ConnectDesigner$1=__component__$2H.exports,index_vue_vue_type_style_index_0_scoped_182541d4_lang="",_sfc_main$2G={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,tableNameData:[],fetching:!1,disabled:!1,fieldList:[],codeGenId:"",userList:[],show:!1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],ranges:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],firing:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],isBackgroud:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{name:"",transKey:null,langs:"[]",isBackgroud:[],firing:[]},confirmLoading:!1}},components:{ConnectDesigner:ConnectDesigner$1,FlowsDesignerGenName},computed:{getName(){let r=this.record.data.name;if(this.getBootTrans&&this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(a=>a.code==this.language)[0];r=t==null?r:t.val}else this.getBootTrans&&this.record.data.transKey&&(r=this.$i18nt(`Dynamics.${this.record.data.transKey}`,0,r));return r},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},disabledd(){return!this.permissionsBnt||this.stateCodes==1?!0:this.record.data.code!==""},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","labelPosition"])},methods:{lookupSeled(r){let t=[];r.langs.forEach(a=>{t.push({name:a.languageName,val:a.description,code:a.languageCode})}),this.ruleFormData={name:r.defaultText,langs:JSON.stringify(t)},this.record.data.langs=t},selGenName(){this.fieldList=this.record.data.updateFields,this.$refs.codeGenName.open(this.fieldList)},sbumitGenName(r){this.fieldList=r,this.record.data.updateFields=r},sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)}),this.onClose(1))})},searchTable(r){this.fetching=!0,this.tableNameData=[],codeGenerateInformationList({busName:r}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},see(){this.show=this.record.data.stateCodes!=null,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.codeGenId=this.record.data.sysCodeGenId;let r={name:this.record.data.name,sysCodeGenId:this.record.data.sysCodeGenId,ranges:this.record.data.ranges,isBackgroud:this.record.data.isBackgroud,firing:this.record.data.firing,code:this.record.data.code,transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.record.data.stateCodes!=null&&(r=Object.assign(r,{stateCodes:this.record.data.stateCodes}),this.calculation(r),this.codeGenId=this.record.data.sysCodeGenId),this.ruleFormData=r,this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},onClose(r){if(r!=null&&r==1){this.visible=!1;return}if(this.getBootTrans&&this.record.data.transKey){let t=this.form.getFieldsValue(),a=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:a,name:t.name})}this.visible=!1},selType(r){this.$emit("addType",r,this.index)},firingChange(r){let t=this.form.getFieldsValue();t.firing=r,this.calculation(t)},selTable(r){let t=this.form.getFieldsValue();t.sysCodeGenId=r.id,this.codeGenId=r.id,this.calculation(t)},calculation(r){let t=r.firing!=null?r.firing:[],a=r.sysCodeGenId!=null&&r.sysCodeGenId!="";this.disabled=!(a&&t.includes("2"))},getDictionary(r){return this.$options.filters.dictData(r)}},mounted(){this.searchTable("");let r=this.$options.filters.dictData("data_scope_type");this.userList=r.filter(t=>t.code!=5)}};var _sfc_render$2G=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"start"},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),a("ConnectDesigner",{attrs:{type:"start",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(s){t.$set(t.ruleFormData,"transKey",s)},expression:"ruleFormData.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(s){t.$set(t.ruleFormData,"langs",s)},expression:"ruleFormData.langs"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.name","\u540D\u79F0"),prop:"name"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:t.record.data&&!t.record.data.transKey,expression:"record.data && !record.data.transKey"}],attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.table","\u8868"),prop:"sysCodeGenId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0,filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.sysCodeGenId,callback:function(s){t.$set(t.ruleFormData,"sysCodeGenId",s)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.tableNameData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.busName},nativeOn:{click:function(l){return t.selTable(s)}}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.busName))+" "+t._s(s.tableName))])])}),1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.range","\u8303\u56F4"),prop:"ranges"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",disabled:t.disableds},model:{value:t.ruleFormData.ranges,callback:function(s){t.$set(t.ruleFormData,"ranges",s)},expression:"ruleFormData.ranges"}},t._l(t.userList,function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:s.name}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.name)))])])}),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.run","\u8FD0\u884C"),prop:"isBackgroud"}},[a("el-checkbox-group",{attrs:{disabled:t.disableds},model:{value:t.ruleFormData.isBackgroud,callback:function(s){t.$set(t.ruleFormData,"isBackgroud",s)},expression:"ruleFormData.isBackgroud"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.backgrounder","\u5728\u540E\u53F0\u8FD0\u884C\u6B64\u5DE5\u4F5C\u6D41"))+" ")])],1)],1)],1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabledd,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.code,callback:function(s){t.$set(t.ruleFormData,"code",s)},expression:"ruleFormData.code"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.startTime","\u542F\u52A8\u65F6\u95F4"),prop:"firing"}},[a("el-checkbox-group",{attrs:{disabled:t.disableds},on:{change:t.firingChange},model:{value:t.ruleFormData.firing,callback:function(s){t.$set(t.ruleFormData,"firing",s)},expression:"ruleFormData.firing"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"1"}},[t._v(t._s(t.$i18nt("gd.flow.work.afterCreation","\u521B\u5EFA\u8BB0\u5F55\u540E")))])],1),a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"2",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterChange","\u8BB0\u5F55\u5B57\u6BB5\u66F4\u6539\u540E"))+" "),a("el-button",{staticClass:"sel",attrs:{type:"primary",size:"mini",disabled:t.disableds?!0:t.disabled},on:{click:t.selGenName}},[t._v(" "+t._s(t.$i18nt("gd.btn.choice","\u9009\u62E9"))+" ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"3",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterDeletion","\u5220\u9664\u8BB0\u5F55\u540E"))+" ")])],1)],1)],1)],1)],1),t.show?a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(s){t.$set(t.ruleFormData,"stateCodes",s)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,0,s.name)}})}),1)],1)],1):t._e()],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("FlowsDesignerGenName",{ref:"codeGenName",attrs:{codeGenId:t.codeGenId},on:{ok:t.sbumitGenName}})],1)},_sfc_staticRenderFns$2G=[],__component__$2G=normalizeComponent(_sfc_main$2G,_sfc_render$2G,_sfc_staticRenderFns$2G,!1,null,"182541d4",null,null);const StartDesigner$1=__component__$2G.exports,index_vue_vue_type_style_index_0_scoped_4d4241b3_lang="",_sfc_main$2F={data(){return{}}};var _sfc_render$2F=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"end"},[a("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$2F=[],__component__$2F=normalizeComponent(_sfc_main$2F,_sfc_render$2F,_sfc_staticRenderFns$2F,!1,null,"4d4241b3",null,null);const EndDesigner$1=__component__$2F.exports,moreOptions_vue_vue_type_style_index_0_scoped_447b505f_lang="",_sfc_main$2E={props:{codeList:{type:Array,default:()=>[]},record:{type:Object,default:()=>({})},codeGenId:{type:[Number,String],default:0},tableNameData:{type:Array,default:()=>[]}},computed:{style(){return{"--background-color-hover":this.primaryColor}},styles(){return`color:${this.primaryColor}`},...mapGetters(["primaryColor"])},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:18}},spinning:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,showField:!1,selItem:{},tableList:[],fieldContent:{},tableFieldData:[],fetching:!1,fkfileId:"",fkfileId2:"",splitList:[],selIndex:0,oldselItem:{},fullscreen:!1,width:"600px"}},components:{EffectTypeIcon},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},delItem(r){let t=this.splitList.filter((f,p)=>p!=r),a=0,s=[],o={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,wid:"4px",selindex:0},l=1,d="",u=!1;t.forEach((f,p)=>{f.type==1&&(u=!1,d+=f.fieldvalue),f.type==2&&(s.push(Object.assign({...o},{fieldvalue:d,wid:this.styled(d),selindex:a})),s.push(Object.assign({...f},{varnumber:l})),u=!0,d="",l+=1,a+=1)}),this.selItem.effecttype=="input"||this.selItem.effecttype=="textarea"||this.selItem.effecttype=="double"||this.selItem.effecttype=="currency"||this.selItem.effecttype=="image"||this.selItem.effecttype=="editor"?s=u?s:s.concat([Object.assign({...o},{fieldvalue:d,wid:this.styled(d),selindex:a})]):s=u?s:[],this.splitList=[...s],this.selItem.fieldinfos=s.filter(f=>!(f.type==1&&f.fieldvalue=="")),this.selIndex=a},selData(r){this.selIndex=r.selindex},changeInput(r,t,a){this.selItem.fieldinfos.map(s=>(s.type==1&&s.selindex==a.selindex&&(s.fieldvalue=r),s)),a.wid=this.styled(r)},styled(r){return`${String(r).length*11+4}px`},seeDetail(r){this.splitList.filter(a=>a.type==2).length!=0&&(this.showField=!0)},open(r){this.fullscreen=!1,this.splitList=[],this.oldselItem={...r},this.selItem={...r},this.analysis(r),this.confirmLoading=!0,this.visible=!0,this.onlineFormGetFieldList().then(t=>{if(t.success){let a=t.data.filter(s=>(s.children=null,s.effecttype=="about"&&s.columnName===(s.relations+"_AboutTable").toLowerCase()?!1:!(s.effecttype=="currency"&&s.columnName===(s.relations+"_Currency_Base").toLowerCase())));this.tableList=a}this.confirmLoading=!1})},analysis(r){console.log(r);let t={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,wid:"4px",selindex:0,transkey:null,transkey2:null,transkeytable:null},a=[],s=0;if(r.effecttype=="input"||r.effecttype=="textarea"||r.effecttype=="double"||r.effecttype=="currency"||r.effecttype=="image"||r.effecttype=="editor"){let o=1,l="",d=!1;r.fieldinfos.length==0&&(l=r.value),r.fieldinfos.forEach((u,f)=>{u.type==1&&(d=!1,l=u.fieldvalue),u.type==2&&(a=d?a:a.concat([Object.assign({...t},{fieldvalue:l,wid:this.styled(l),selindex:s})]),a.push(Object.assign({...u},{varnumber:o})),d=!0,o+=1,s+=1)}),a=a.concat([Object.assign({...t},{fieldvalue:d?"":l,wid:d?"4px":this.styled(l),selindex:s})]),this.splitList=[...a],this.selIndex=s;return}r.fieldinfos.forEach((o,l)=>{a.push(Object.assign({...o},{varnumber:1}))}),this.splitList=[...a],this.selIndex=s},isChecked(r,t){return r?r.every((a,s,o)=>a!=`[${t}]`):!0},onlineFormGetFieldList(){let r={fieldId:this.selItem.fieldid,tableId:this.codeGenId};return this.fkfileId!==void 0&&this.fkfileId!==""&&(r=Object.assign(r,{fkfileId:this.fkfileId})),onlineFormGetFieldList(r).then(t=>t)},addField(){if(this.fkfileId===""){this.$message.warning(this.$i18nt("gd.flow.work.tableFieldsTip"));return}if(this.tableFieldData.length>0&&this.fkfileId2===""){this.$message.warning(this.$i18nt("gd.flow.work.tableFieldsTwoTip"));return}let r=this.tableList.filter(o=>o.id==this.fkfileId)[0],t=this.tableNameData.filter(o=>o.id==this.codeGenId)[0];this.selItem.fieldinfos.length;let a={title:r.columncomment,fieldvalue:r.columnname,tabletitle:t.tablename,tablevalue:t.busname,tablevalue2:r.fkentityname,varnumber:1,type:2,transkey:r.transkey?r.transkey:null,transkey2:null,transkeytable:t.transkey?t.transkey:null},s={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,transkey:null,transkey2:null,transkeytable:null};if(this.fkfileId2!==""){let o=this.tableFieldData.filter(l=>l.id==this.fkfileId2)[0];a=Object.assign(a,{title:o.columncomment,fieldvalue2:o.columnname,transkey2:o.transkey?o.transkey:null})}if(this.selItem.effecttype=="input"||this.selItem.effecttype=="textarea"||this.selItem.effecttype=="double"||this.selItem.effecttype=="currency"||this.selItem.effecttype=="image"||this.selItem.effecttype=="editor"){let o=this.splitList.filter(h=>h.selindex==this.selIndex)[0].fieldvalue,l=document.querySelectorAll(".splicing-l>.el-input>.el-input__inner")[this.selIndex].selectionStart,d=o.slice(0,l),u=o.slice(l),f=[],p=1;this.splitList.forEach((h,v)=>{h.selindex==this.selIndex&&h.type==1?(f.push(Object.assign({...s},{fieldvalue:d})),f.push(Object.assign({...a},{varnumber:p})),f.push(Object.assign({...s},{fieldvalue:u})),p+=1):h.type==2?(f.push(Object.assign({...h},{varnumber:p})),p+=1):f.push(h)}),this.selItem.fieldinfos=[...f]}else this.selItem.fieldinfos=[a];this.fkfileId="",this.fkfileId2="",this.tableFieldData=[],this.analysis(this.selItem)},changeField(r){let t=this.tableList.filter(a=>a.id==this.fkfileId)[0];if(t.effecttype!=="fk"&&t.effecttype!=="about"&&t.effecttype!=="user"){this.tableFieldData=[],this.fkfileId2="";return}this.onlineFormGetFieldList().then(a=>{if(a.success){let s=a.data.filter(o=>(o.children=null,o.effecttype=="about"&&o.columnname===(o.relations+"_AboutTable").toLowerCase()?!1:!(o.effecttype=="currency"&&o.columnname===(o.relations+"_Currency_Base").toLowerCase())));this.tableFieldData=s}})},handleSubmit(){let r={...this.selItem};r.fieldinfos=[...this.splitList],this.$emit("ok",{...r}),this.cancel()},cancel(){this.visible=!1,this.selItem={},this.selIndex=0,this.tableFieldData=[],this.fkfileId="",this.fkfileId2=""},getDictionary(r){let t=this.codeList.filter(a=>a.id==r.fieldid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldFormat.length>10},doEvent(r){this.handleSubmit()}}};var _sfc_render$2E=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.cancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.work.fieldConfiguration","\u5B57\u6BB5\u914D\u7F6E")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[a("el-form",{ref:"ruleForm",staticStyle:{"min-height":"600px"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:24,sm:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.selectedFields","\u5DF2\u9009\u5B57\u6BB5")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u8868\u5B57\u6BB5")},model:{value:t.selItem.fieldid,callback:function(s){t.$set(t.selItem,"fieldid",s)},expression:"selItem.fieldid"}},t._l(t.codeList,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[t._v(" "+t._s(s.columnName)+" "),a("span",{style:t.styles},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ")]),t._v(" "+t._s(s.effectType)+" ")])}),1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:24,sm:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.tableFields","\u8868\u5B57\u6BB5")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u8868\u5B57\u6BB5"),filterable:""},on:{change:t.changeField},model:{value:t.fkfileId,callback:function(s){t.fkfileId=s},expression:"fkfileId"}},t._l(t.tableList,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ("+t._s(s.columnname)+") ")])],1)}),1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:24,sm:24}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.tableFieldData.length>0,expression:"tableFieldData.length > 0"}],staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.tableFieldsTwo","\u8868\u5B57\u6BB52"),disabled:!(t.tableFieldData.length>0)}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u5173\u4E8E\u7684\u8868\u548C\u5B57\u6BB5"),filterable:"",clearable:""},model:{value:t.fkfileId2,callback:function(s){t.fkfileId2=s},expression:"fkfileId2"}},t._l(t.tableFieldData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ("+t._s(s.columnname)+") ")])],1)}),1)],1)],1)],1),a("div",{staticClass:"splicing pa",style:t.style},[t._l(t.splitList,function(s,o){return[s.type==1?a("div",{staticClass:"splicing-l pa",on:{click:function(l){return t.selData(s)}}},[a("div",{staticClass:"splicing-zhan line1"},[t._v(t._s(s.fieldvalue))]),a("el-input",{on:{change:function(l){return t.changeInput(l,o,s)}},model:{value:s.fieldvalue,callback:function(l){t.$set(s,"fieldvalue",l)},expression:"item.fieldvalue"}})],1):t._e(),s.type==2?[a("div",{staticClass:"splicing-l pa"},[a("div",{staticClass:"splicing-d"},[a("span",{staticClass:"splicing-tilte"},[t._v(" ["+t._s(s.varnumber)+"-"+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.title))+"] ")]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return t.delItem(o)}}})])])]:t._e()]})],2),a("div",{staticClass:"inputbox"},[a("div",{staticClass:"flex-between"},[a("div",{staticClass:"left-btn"}),a("div",{staticClass:"right-btn"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:t.addField}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addField","\u6DFB\u52A0\u5B57\u6BB5"))+" ")])],1)])]),a("div",{staticClass:"line3",staticStyle:{cursor:"pointer","padding-top":"10px"},on:{click:t.seeDetail}},[t._l(t.splitList,function(s){return[s.type==1?a("span",[t._v(t._s(s.fieldvalue))]):a("a",[t._v("["+t._s(s.varnumber)+"-"+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.title))+"]")])]})],2)],1)],1)],2),a("el-drawer",{attrs:{title:t.$i18nt("gd.btn.view"),size:500,visible:t.showField,"append-to-body":!0,"custom-class":"gd-drawer-form"},on:{close:function(s){t.showField=!1}}},[a("el-collapse",{attrs:{accordion:""}},t._l(t.splitList,function(s,o){return s.type==2?a("el-collapse-item",{key:o,staticClass:"showdoc",attrs:{title:`${s.varnumber}-${t.$i18nt(`Dynamics.${s.transkey}`,s.title)}`}},[a("p",[t._v(" "+t._s(t.$i18nt("gd.flow.work.entityTable","\u5B9E\u4F53\u8868"))+"\uFF1A"+t._s(s.tablevalue)+" "+t._s(t.$i18nt(`Dynamics.${s.transkeytable}`,s.tabletitle))+" ")]),a("p",[t._v(" "+t._s(t.$i18nt("gd.flow.work.tableFields","\u8868\u5B57\u6BB5"))+"\uFF1A"+t._s(s.fieldvalue)+" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.title))+" ")]),a("p",{directives:[{name:"show",rawName:"v-show",value:s.fieldvalue2,expression:"item.fieldvalue2"}]},[t._v(" "+t._s(t.$i18nt("gd.flow.work.tableFieldsTwo","\u8868\u5B57\u6BB52"))+"\uFF1A"+t._s(s.fieldvalue2)+" "+t._s(t.$i18nt(`Dynamics.${s.transkey2}`,s.title))+" ")]),a("div",{staticClass:"flex-between"})]):t._e()}),1)],1)],1)},_sfc_staticRenderFns$2E=[],__component__$2E=normalizeComponent(_sfc_main$2E,_sfc_render$2E,_sfc_staticRenderFns$2E,!1,null,"447b505f",null,null);const moreOptions=__component__$2E.exports,index_vue_vue_type_style_index_0_scoped_2cfd8ada_lang="",_sfc_main$2D={props:{tableNameData:{type:Array,default:()=>[]},relevantData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleOk",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,spinning:!1,record:{},fieldList:[],codeList:[],fetching:!1,fieldFormat:[],lookIndex:0,tableId:"",title:"",fullscreen:!1,width:"900px",searList:{}}},computed:{style(){return`color:${this.primaryColor}`},lineHeight(){return this.tableSize=="small"?"line-height: 32px":this.tableSize=="medium"?"line-height: 36px":"line-height: 26px"},...mapGetters(["primaryColor","tableSize"])},components:{moreOptions,EffectTypeIcon},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},moreSbumit(r){let t=[...this.fieldList],a={...r},s="",o=a.fieldinfos.filter(d=>!(d.type==1&&d.fieldvalue==""));o.forEach(d=>{d.type==1?s+=d.fieldvalue:s+=`[${d.varnumber}-${d.title}]`});let l=o.filter(d=>d.type==2);a.fieldinfos=l.length>0?o:[],a.value=o.length>0?s:a.value,t[this.lookIndex]={...a},this.fieldList=[...t]},more(r){this.lookIndex=r,this.$refs.moreOptions.open(this.fieldList[r])},searchData(r){let a=this.codeList.filter(s=>s.id==this.searList.fieldid)[0].fkentityname.split(",")[0];this.fetching=!0,this.searList.fkdata=[],baseFkList({name:r,fkEntityName:a}).then(s=>{s.success&&(this.searList.fkdata=[...s.data]),this.fetching=!1})},selectData(r){let t=this.fieldList.filter(a=>a.value===r);console.log(r,this.fieldList,t)},lookupSeled(r){["fk","about","user"].includes(this.fieldList[this.lookIndex].effecttype)?(this.fieldList[this.lookIndex].value=r.data[0],this.fieldList[this.lookIndex].fkdata=r.fkdata):(this.fieldList[this.lookIndex].value=r.data,this.fieldList[this.lookIndex].fkdata=r.fkdata)},lookup(r,t){let a=this.codeList.filter(s=>s.id==this.fieldList[r].fieldid)[0];this.lookIndex=r,this.$refs.engineSearch.open(Object.assign({...a},{val:t}))},addList(){if(this.fieldList.length<this.codeList.length){let r=[...this.fieldList],t=this.filteredOptions({fieldid:""}),a={fieldid:"",fieldname:"",codelist:this.codeList.filter(s=>!t.includes(s.id)),value:"",fkdata:[],effecttype:"input",fieldformat:null,fieldinfos:[],html:"",disabled:!0};r.push(a),this.fieldList=[...r],console.log(this.fieldList)}},delList(r){let t=[...this.fieldList];t.splice(r,1),this.fieldList=[...t],this.$nextTick(()=>{setTimeout(()=>{t.forEach((a,s)=>{let o=this.filteredOptions(a),l=this.codeList.filter(d=>!o.includes(d.id));t[s].codelist=l}),this.fieldList=[...t]},0)})},changeCode(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=[...this.fieldList];a.forEach((o,l)=>{let d=this.filteredOptions(o),u=this.codeList.filter(f=>!d.includes(f.id));a[l].codelist=u}),this.fieldList=[...a];let s=this.codeList.filter(o=>o.id==r)[0];s.fieldformat&&(this.fieldList[t].fieldFormat=this.fieldFormat.filter(o=>o.code==s.fieldformat)[0].name),this.fieldList[t].effecttype=s.effecttype,this.fieldList[t].value="",this.fieldList[t].fieldinfos=[],this.fieldList[t].fkdata=[],["fk","about","user","participants"].includes(s.effecttype)&&(this.searList=this.fieldList[t],this.searchData(""))},0)})},changeFieldId(r,t){this.changeCode(r,t),this.$nextTick(()=>{setTimeout(()=>{this.fieldList[t].disabled=r==null},0)})},open(r){console.log(r),this.fullscreen=!1,this.fieldList=[];let t=String(r.tableid).split(",")[0];this.tableId=t,this.fieldFormat=this.$options.filters.dictData("time_longshort");let a=r.tableNameData.filter(o=>o.id==t)[0],s=this.$i18nt(`Dynamics.${a.transkey}`,a.busname);this.title=`${r.operationtype==1?this.$i18nt("gd.flow.work.create"):this.$i18nt("gd.flow.work.update")} ${s}`,this.list=r.fieldrelations,this.record=r,this.visible=!0,this.spinning=!0,Promise.all([this.onlineGenerateList()]).then(o=>{let l=r.fieldrelations;l.forEach((d,u)=>{let f=this.filteredOptions(d),p=this.codeList.filter(h=>!f.includes(h.id));l[u].codelist=p,l[u].fieldid=Number(d.fieldid),l[u].fkdata=typeof d.fkdata=="string"?JSON.parse(d.fkdata):d.fkdata,l[u].value=(d.effecttype=="fk"||d.effecttype=="about"||d.effecttype=="user"||d.effecttype=="participants")&&d.fieldinfos.length==0?Number(d.value):d.value}),this.fieldList=l,this.spinning=!1})},onlineGenerateList(){return onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(r=>{if(r.success){let t=r.data.filter(a=>(a.children=null,a.effecttype=="about"&&a.columnname===(a.relations+"_AboutTable").toLowerCase()?!1:!(a.effecttype=="currency"&&a.columnname===(a.relations+"_Currency_Base").toLowerCase())));this.codeList=t}return r})},filteredOptions(r){let t=[];if(this.fieldList.forEach((a,s)=>{a.fieldid!==void 0&&t.push(a.fieldid)}),t.includes(r.fieldid)){let a=t.indexOf(r.fieldid);t.splice(a,1)}return t},getDictionary(r){let t=this.codeList.filter(a=>a.id==r.fieldid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldFormat.length>10},doEvent(r){this.handleOk()},handleOk(){if(this.fieldList.forEach((r,t)=>{}),this.fieldList.map(r=>{if(r.effecttype=="fk"||r.effecttype=="about"){let t=r.fkdata.filter(a=>a.id==r.value);r.fkdata=t}return r.fkdata=JSON.stringify(r.fkdata),r.fieldname=r.codelist.filter(t=>t.id==r.fieldid)[0].columnname,r}),!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.approval.replenishData"));return}this.$emit("ok",this.fieldList),this.handleCancel()},handleCancel(){this.visible=!1},isChecked(){return this.fieldList.every((r,t,a)=>r.value!==""&&r.value!==""&&r.fieldid!=="")}}};var _sfc_render$2D=function r(){var t=this,a=t._self._c;return a("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.title))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[a("div",{staticStyle:{"min-height":"600px"}},[t.fieldList.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.work.selField","\u5B57\u6BB5")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.value","\u503C")))]),a("el-col",{attrs:{span:2}})],1):t._e(),t._l(t.fieldList,function(s,o){return a("el-row",{key:o,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",filterable:""},on:{change:function(l){return t.changeFieldId(l,o)}},model:{value:s.fieldid,callback:function(l){t.$set(s,"fieldid",l)},expression:"item.fieldid"}},t._l(s.codelist,function(l,d){return a("el-option",{key:l.id,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:l.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" ("+t._s(l.columnname)+") ")])],1)}),1)],1),s.fieldinfos.length==0?a("el-col",{attrs:{span:8}},[s.effecttype=="select"||s.effecttype=="radio"||s.effecttype=="checkbox"||s.effecttype=="switch"?a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}},t._l(t.getDictionary(s),function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}})}),1):s.effecttype=="inputnumber"?a("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),step:1},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}}):s.effecttype=="datepicker"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(s),type:t.showTime?"datetime":"date","value-format":s.fieldformat,format:s.fieldformat},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}}):s.effecttype=="fk"||s.effecttype=="about"||s.effecttype=="user"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",size:t.tableSize,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.fetching,clearable:"",remote:"","reserve-keyword":"","remote-method":t.searchData},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}},t._l(s.fkdata,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.name))+" ")])])}),1),a("i",{staticClass:"el-icon-search cao_setting",style:t.lineHeight,on:{click:function(l){return t.lookup(o,s.value)}}})],1):s.effecttype=="participants"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{size:t.tableSize,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"remote-method":t.searchData,loading:t.fetching,clearable:"",filterable:"",remote:"","collapse-tags":"","reserve-keyword":""},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}},[t._l(s.fkdata,function(l,d){return[a("el-option",{key:l.id,attrs:{value:l.id,label:l.name}})]})],2),a("i",{staticClass:"el-icon-search cao_setting",style:t.lineHeight,on:{click:function(l){return t.lookup(o,s.value)}}})],1):a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}})],1):a("el-col",{attrs:{span:8}},[a("el-tooltip",{staticStyle:{width:"100%"},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(s.value))])]),a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"\u8BF7\u8F93\u5165",disabled:!0},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}})],1)],1),a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{type:"primary",disabled:s.disabled},on:{click:function(l){return t.more(o)}}},[t._v(" "+t._s(t.$i18nt("gd.btn.more"))+" ")]),a("i",{staticClass:"el-icon-delete del-btn",on:{click:function(l){return t.delList(o)}}})],1)],1)}),a("div",{staticClass:"add"},[a("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0")))])])],2)]),a("moreOptions",{ref:"moreOptions",attrs:{codeList:t.codeList,record:t.record,tableNameData:t.tableNameData,codeGenId:t.codeGenId},on:{ok:t.moreSbumit}}),a("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],2)},_sfc_staticRenderFns$2D=[],__component__$2D=normalizeComponent(_sfc_main$2D,_sfc_render$2D,_sfc_staticRenderFns$2D,!1,null,"2cfd8ada",null,null);const AttributesDesigner=__component__$2D.exports,index_vue_vue_type_style_index_0_scoped_978a794c_lang="",_sfc_main$2C={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,list:[],tableNameData:[],relevantData:[],fetching:!1,subIndex:0,confirmLoading:!1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner:ConnectDesigner$1,AttributesDesigner,draggable},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}}},methods:{okAttributes(r){this.list[this.subIndex].fieldrelations=r},setAttributes(r){this.subIndex=r,this.$refs.attributes.open(this.list[r])},selectType(r,t){t.tableid="",t.fieldrelations=[],t.tableNameData=r==1?this.tableNameData:this.relevantData,this.selectTable(t.tableid,t)},selectTable(r,t){t.disabled=!(t.operationtype!=""&&t.tableid!=""),t.fieldrelations=[],console.log(r,t)},async init(){this.confirmLoading=!0;let r=await this.codeGenerateList(""),t=await this.onlineFkTableList();this.tableNameData=[...r.data];const a=t.data.filter(s=>s.updatafiled).map(s=>(s.busid=s.id+","+s.updatafiled.columnname,s));this.relevantData=[...a],this.confirmLoading=!1},async searchTable(r,t){this.fetching=!0,t.tableNameData=[];let a=await this.codeGenerateList(r);t.tableNameData=[...a.data],this.fetching=!1},codeGenerateList(r){return codeGenerateInformationList({busName:r}).then(t=>t)},onlineFkTableList(){return onlineFormGetFkTableList({tableId:this.codeGenId}).then(r=>r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.list.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u6B65\u9AA4\u64CD\u4F5C\uFF01");return}if(!this.isChecked()){this.$message.error("\u8BF7\u8865\u5145\u6B65\u9AA4\u64CD\u4F5C\u6570\u636E\uFF01");return}this.list.map(t=>{let a={};t.operationtype==1?a=t.tableNameData.filter(o=>o.id==t.tableid)[0]:a=t.tableNameData.filter(o=>o.busid==t.tableid)[0],a.tablename&&(t.tablename=a.tablename);let s=String(t.tableid).split(",");return t.tableid=s[0],t.updatafiled=t.operationtype==2?s[1]:null,t}),this.record.err=!1,this.record.name=this.ruleFormData.name,this.record.list=[...this.list],this.onClose()}})},isChecked(r){return this.list.every((t,a,s)=>t.operationtype!=""&&t.tableid!=""&&t.fieldrelations.length>0)},selColumn(r,t){this.list[t].columnid=r.id,this.list[t].name=this.list[t].name==""?r.columncomment:this.list[t].name},addList(){let r={id:uuid$1(),operationtype:"",tableid:"",tablename:"",tableNameData:[],fieldrelations:[],disabled:!0,updatafiled:null};this.list=this.list.concat(r)},delList(r){this.list=this.list.filter((t,a)=>a!=r)},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}this.$nextTick(()=>{setTimeout(()=>{let r=[];this.record.list.forEach(t=>{let a=t.operationtype==1?this.tableNameData:this.relevantData,s=t.operationtype==1?Number(t.tableid):String(t.tableid).split(",")[0]+","+t.updatafiled;t.tableNameData===void 0&&(t.tableNameData=a),t.tableNameData!==void 0&&t.tableNameData.length==0&&(t.tableNameData=a),r.push(Object.assign({...t},{tableid:s,operationtype:String(t.operationtype)}))}),console.log(r),this.list=[...r],this.ruleFormData={name:this.record.name}},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1}},created(){this.init()}};var _sfc_render$2C=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.record.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.record.name))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})]),a("i",{staticClass:"el-icon-close close",on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.stepName","\u6B65\u9AA4\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1)],1),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.work.stepOperation","\u6B65\u9AA4\u64CD\u4F5C")))]),a("div",[t.list.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.type","\u64CD\u4F5C\u7C7B\u578B")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.table","\u9009\u62E9\u8868")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.work.attribute","\u8BBE\u7F6E\u5C5E\u6027")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),a("div",[a("draggable",t._b({model:{value:t.list,callback:function(s){t.list=s},expression:"list"}},"draggable",{animation:300,handle:".drag-btn"},!1),t._l(t.list,function(s,o){return a("el-row",{key:s.id,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},on:{change:function(l){return t.selectType(l,s)}},model:{value:s.operationtype,callback:function(l){t.$set(s,"operationtype",l)},expression:"item.operationtype"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.flow.work.createRecords","\u521B\u5EFA\u8BB0\u5F55")}}),a("el-option",{attrs:{value:"2",label:t.$i18nt("gd.flow.work.updateRecords","\u66F4\u65B0\u8BB0\u5F55")}})],1)],1),a("el-col",{attrs:{span:8}},[s.operationtype==1?a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:t.$i18nt("gd.flow.work.table"),disabled:t.disabled},on:{change:function(l){return t.selectTable(l,s)}},model:{value:s.tableid,callback:function(l){t.$set(s,"tableid",l)},expression:"item.tableid"}},t._l(s.tableNameData,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.busname)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.busname))+" "+t._s(l.tablename)+" ")])}),1):s.operationtype==2?a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:t.$i18nt("gd.flow.work.table"),disabled:t.disabled},on:{change:function(l){return t.selectTable(l,s)}},model:{value:s.tableid,callback:function(l){t.$set(s,"tableid",l)},expression:"item.tableid"}},t._l(s.tableNameData,function(l,d){return a("el-option",{key:d,attrs:{value:l.busid,label:t.$i18nt(`Dynamics.${l.transkey}`,l.busname)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.busname))+" "+t._s(l.tablename)+" "+t._s(l.updatafiled.columncomment)+" ")])])}),1):a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.table"),disabled:""},model:{value:s.tableid,callback:function(l){t.$set(s,"tableid",l)},expression:"item.tableid"}},t._l(s.tableNameData,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.busname)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.busname))+" "+t._s(l.tablename)+" ")])}),1)],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{type:s.fieldrelations.length==0?"danger":"primary",disabled:t.disabled?!0:s.disabled},on:{click:function(l){return t.setAttributes(o)}}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.attribute","\u8BBE\u7F6E\u5C5E\u6027"))+" ")])],1),a("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-rank drag-btn"}),t.disabled?t._e():a("i",{staticClass:"el-icon-close del-btn",on:{click:function(l){return t.delList(o)}}})])],1)}),1)],1)],1),t.disabled?t._e():a("div",{staticClass:"add"},[a("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.flow.addStep","\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4")))])])],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd-.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd-.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("AttributesDesigner",{ref:"attributes",attrs:{tableNameData:t.tableNameData,codeGenId:t.codeGenId,relevantData:t.relevantData},on:{ok:t.okAttributes}})],1)},_sfc_staticRenderFns$2C=[],__component__$2C=normalizeComponent(_sfc_main$2C,_sfc_render$2C,_sfc_staticRenderFns$2C,!1,null,"978a794c",null,null);const StepsDesigner$1=__component__$2C.exports;function nodeData$1(r){switch(r){case"step":return{type:"step",name:"\u65B0\u5EFA\u6B65\u9AA4",list:[],err:!1,isDelete:!0};case"stage":return{type:"stage",name:"\u65B0\u5EFA\u9636\u6BB5",list:[],err:!1,isDelete:!0};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1},{type:"else",name:"ELSE",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1}],isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_4143fbc5_lang="",plugFilters$3={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2B={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner:ConnectDesigner$1,StepsDesigner:StepsDesigner$1,FlowsFilter},methods:{sbumit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.list.list[0],a=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].fieldwheres={...a},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(r){this.list={...r}},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r;let a=t.fieldwheres,o=Object.prototype.toString.call(a)==="[object Array]"?Object.assign({...plugFilters$3},{list:a}):{...a},l=o.pid===null?o.list:[o],d=o.pid===null?o:plugFilters$3;this.list=Object.assign({...d},{list:l}),this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let r=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1,id:uuid$1(),pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData$1(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),a.type=="condition"&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},del(r){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((a,s)=>s!=r);t[0].type="if",this.record.list=[...t]},addType(r,t,a){let s=nodeData$1(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),s.type=="condition"&&s.list.map(o=>(o.id=uuid$1(),o.pid=s.id,o)),this.record.list[t].list.splice(a+1,0,s)},delChildItem(r,t,a){let s=this.record.list[t].list.filter((o,l)=>l!=r);this.record.list[t].list=[...s]},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkData=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkdata=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2B=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[s.type=="else"?a("div",{staticClass:"condition-body"},[a("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute","\u4E0D\u6EE1\u8DB3\u65F6\u6267\u884C")))])])]):a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219"))+" ")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del.apply(null,arguments)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{key:d,staticStyle:{position:"relative","z-index":"10"}},[l.type=="step"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,index:d,type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,table:t.table,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{placement:"right",visible:t.visible,size:600,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[a("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules","\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219"))+" ")]),a("div",{staticClass:"tips"},[t.listError?a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?a("div",{style:t.styleMode},[a("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2B=[],__component__$2B=normalizeComponent(_sfc_main$2B,_sfc_render$2B,_sfc_staticRenderFns$2B,!1,null,"4143fbc5",null,null);const ConditionDesigner$1=__component__$2B.exports,index_vue_vue_type_style_index_0_scoped_6c060a35_lang="",_sfc_main$2A={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{detail:{},visible:!1,list:[],rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleForm:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{disableds(){return this.permissionsBnt?this.stateCodes==1:!0},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},table(){return this.tableLists.filter(r=>r.id===this.codeGenId)[0]},...mapGetters(["screenHeight","tableLists"])},components:{ConnectDesigner:ConnectDesigner$1,StepsDesigner:StepsDesigner$1,ConditionDesigner:ConditionDesigner$1},methods:{sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.list[this.seeIndex].name=this.ruleForm.name,this.onClose())})},addList(){let r={type:1,id:uuid$1(),columnname:"",columnid:"",rules:"1",val:"",ruleslist:[...this.rulesList],effecttype:"input",fieldformat:null,fkdata:[]};this.list=this.list.concat(r)},delList(r){this.list=this.list.filter((t,a)=>a!=r)},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r,this.ruleForm={name:t.name}},0)})},selTyped(r,t){let a=nodeData$1(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),a.type=="condition"&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},del(r){if(this.record.list.length==1){this.$emit("delItem",this.index);return}let t=this.record.list.filter((a,s)=>s!=r);this.record.list=[...t]},addType(r,t,a){let s=nodeData$1(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),this.record.list[t].list.splice(a+1,0,s)},delChildItem(r,t,a){let s=this.record.list[t].list.filter((o,l)=>l!=r);this.record.list[t].list=[...s]},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},lookup(r){this.lookIndex=r;let t=this.loadData.filter(a=>a.id==this.list[r].columnid)[0];this.$refs.engineSearch.open(t)},lookupSeled(r){this.handleLookupCancel(),this.list[this.lookIndex].effecttype=="fk"&&(this.list[this.lookIndex].fkdata=[r],this.list[this.lookIndex].val=r.id),this.list[this.lookIndex].effecttype=="about"&&(this.list[this.lookIndex].fkdata=[r.data],this.list[this.lookIndex].val=r.data.id)},handleLookupCancel(){this.lookupShow=!1},selColumn(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=this.loadData.filter(o=>o.id==r.id)[0],s=this.rulesList.filter(o=>o.remark.split(",").includes(r.effecttype));a&&a.fieldformat&&(this.list[t].fieldformat=this.fieldFormat.filter(o=>o.code==a.fieldformat)[0].name),this.list[t].columnid=r.id,this.list[t].effecttype=a.effecttype,this.list[t].val="",this.list[t].ruleslist=[...s],this.list[t].rules=s.length>0?s[0].code:"",a.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkdata=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkdata=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnid)[0];return t==null?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldformat.length>10}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2A=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt"},[t._v(t._s(t.$i18nt("gd.flow.stage")))]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del(o)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"10"}},[l.type=="step"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,index:d,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,codeGenId:t.codeGenId,table:t.table,index:d,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e()],1)})],2)}),0),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.stageName"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleForm.name,callback:function(s){t.$set(t.ruleForm,"name",s)},expression:"ruleForm.name"}})],1)],1)],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply"))+" ")])],1)],1)],1)},_sfc_staticRenderFns$2A=[],__component__$2A=normalizeComponent(_sfc_main$2A,_sfc_render$2A,_sfc_staticRenderFns$2A,!1,null,"6c060a35",null,null);const StageDesigner$1=__component__$2A.exports,main_vue_vue_type_style_index_0_scoped_0bb44168_lang="",_sfc_main$2z={name:"GdWorkFlow",props:{value:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100}},data(){return{visible:!1,list:[],loadData:[],codeGenId:""}},computed:{style(){let r=this.scaleVal/100;return`transform-origin: top;transform:scale(${r},${r});`}},components:{StartDesigner:StartDesigner$1,ConnectDesigner:ConnectDesigner$1,EndDesigner:EndDesigner$1,StepsDesigner:StepsDesigner$1,ConditionDesigner:ConditionDesigner$1,StageDesigner:StageDesigner$1},methods:{init(r){this.codeGenId=r[0].data.sysCodeGenId,this.list=[...r],this.getLoadData()},addType(r,t){let a=nodeData$1(r);if(a=Object.assign(a,{pid:0,id:uuid$1()}),this.list.length==2){let s={list:[],name:"\u9876\u70B9",type:"stage",id:0};s.list.push(a),this.list.splice(t+1,0,s)}else{let s=this.list[t+1];s.list.push(a),this.list[t+1]=s}},delItem(r){let t=this.list.filter((a,s)=>s!=r);this.list=[...t]},getLoadData(){onlineFormGetCodeGenerateList({codeGenId:this.codeGenId}).then(r=>{if(r.data){let t=r.data.filter(a=>a.effecttype=="about"&&a.columnname==(a.relations+"_AboutTable").toLowerCase()?!1:!(a.effecttype=="currency"&&a.columnname==(a.relations+"_Currency_Base").toLowerCase()));this.loadData=t}})}}};var _sfc_render$2z=function r(){var t=this,a=t._self._c;return a("div",[a("div",{staticClass:"flowsdesigner",style:t.style},[a("div",{staticClass:"flowsdesigners"},[a("div",{staticClass:"flowdesign"},[t._l(t.list,function(s,o){return[s.type=="start"?a("StartDesigner",{attrs:{record:s,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType}}):t._e(),s.type=="stage"?a("StageDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem}}):t._e(),s.type=="end"?a("EndDesigner"):t._e()]})],2)])])])},_sfc_staticRenderFns$2z=[],__component__$2z=normalizeComponent(_sfc_main$2z,_sfc_render$2z,_sfc_staticRenderFns$2z,!1,null,"0bb44168",null,null);const GDpackage$c=__component__$2z.exports;GDpackage$c.install=function(r){r.component(GDpackage$c.name,GDpackage$c)};const index_vue_vue_type_style_index_0_scoped_ce4807fb_lang="",_sfc_main$2y={props:{placement:{type:String,default:"top"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(r){this.visible=!1,!this.disabled&&this.$emit("selType",r)}}};var _sfc_render$2y=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"lian"},[a("div",{ref:"lianBtn",staticClass:"lian-btn"},[a("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[a("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),a("div",{staticClass:"connect-solid"},[a("el-divider")],1),a("div",{staticClass:"contents"},[a("div",{staticClass:"item auto",on:{click:function(s){return t.selType("approver")}}},[a("i",{staticClass:"gd-icons gd-icon-audit anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.approval.reviewedBy","\u5BA1\u6838\u4EBA")))])]),a("div",{staticClass:"item stage",on:{click:function(s){return t.selType("circulate")}}},[a("i",{staticClass:"el-icon-s-promotion anticon",staticStyle:{height:"40px","font-size":"25px"}}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.approval.CcBy","\u6284\u9001\u4EBA")))])]),a("div",{staticClass:"item term",on:{click:function(s){return t.selType("condition")}}},[a("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])])]),a("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$2y=[],__component__$2y=normalizeComponent(_sfc_main$2y,_sfc_render$2y,_sfc_staticRenderFns$2y,!1,null,"ce4807fb",null,null);const ConnectDesigner=__component__$2y.exports,index_vue_vue_type_style_index_0_scoped_9ce801dd_lang="",_sfc_main$2x={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},startCategory:{type:String,default:""}},data(){return{visible:!1,tableNameData:[],fetching:!1,show:!1,msgList:[],msgListCC:[],msgListPress:[],msgListBack:[],msgListRject:[],msgListEnd:[],msgListTrans:[],msgListReturn:[],msgListApproval:[],msgListAutomatic:[],fkEntityName:"Msg_MessagetemPlate",type:1,datail:null,showHistory:!1,textReturn:!1,textSgin:!1,isReturnMsg:!1,isRejectMsg:!1,ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],tableId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],category:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],autoApprovalType:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],enCode:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},components:{ConnectDesigner},computed:{categoryDisableds(){let r=this.getDictionary("table_flows_type").filter(t=>t.code==this.startCategory)[0];return r===void 0||r.statecodes==1?"":r.code},dictList(){return this.getDictionary("table_flows_type").filter(t=>t.statecodes==1||t.code==this.categoryDisableds)},disableds(){return this.stateCodes==1},getName(){let r=this.record.data.name;if(this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.data.transKey&&(r=this.$i18nt(`Dynamics.${this.record.data.transKey}`,0,r));return r},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language"])},methods:{onChange(r){this.isReturnMsg=r.target.checked},onChange1(r){this.isRejectMsg=r.target.checked},lookupSeleds(r){let t=[];r.langs.forEach(a=>{t.push({name:a.languageName,val:a.description,code:a.languageCode})}),this.form.setFieldsValue({name:r.defaulttext,langs:JSON.stringify(t)}),this.record.data.langs=t},lookupSeled(r){this.type==1?(this.msgList=r.fkData,this.ruleFormData.msg_MessagetemPlateId=r.data[0]):this.type==2?(this.msgListCC=r.fkData,this.ruleFormData.msg_MessagetemPlateId_CC=r.data[0]):this.type==3?(this.msgListPress=r.fkData,this.ruleFormData.msg_MessagetemPlateId_UP=r.data[0]):this.type==4?(this.msgListBack=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RV=r.data[0]):this.type==5?(this.msgListRject=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RJ=r.data[0]):this.type==6?(this.msgListTrans=r.fkData,this.ruleFormData.msg_MessagetemPlateId_TR=r.data[0]):this.type==7?(this.msgListEnd=r.fkData,this.ruleFormData.msg_MessagetemPlateId_AS=r.data[0]):this.type==8?(this.msgListReturn=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RT=r.data[0]):this.type==9?(this.msgListApproval=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RTA=r.data[0]):this.type==10&&(this.msgListAutomatic=r.fkData,this.ruleFormData.msg_MessagetemPlateId_AA=r.data[0])},async lookup(r,t){this.type=r;let a=t,s={fkEntityName:this.fkEntityName,effectType:"fk",options:{},val:a};this.$refs.engineSearch.open(s)},sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)},{isReturnMsg:this.isReturnMsg},{isRejectMsg:this.isRejectMsg}),this.onClose(1))})},searchTable(r){this.fetching=!0,this.tableNameData=[],codeGenerateApprovalList({busName:r}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},changeMsg(r){this.msgType=r,this.searchMsgData("")},searchMsgData(r){let t={fkEntityName:this.fkEntityName,name:r};this.fetching=!0,this.msgList=this.msgType==1?[]:this.msgList,this.msgListCC=this.msgType==2?[]:this.msgListCC,this.msgListPress=this.msgType==3?[]:this.msgListPress,this.msgListBack=this.msgType==4?[]:this.msgListBack,this.msgListRject=this.msgType==5?[]:this.msgListRject,this.msgListTrans=this.msgType==6?[]:this.msgListTrans,this.msgListEnd=this.msgType==7?[]:this.msgListEnd,this.msgListReturn=this.msgType==8?[]:this.msgListReturn,this.msgListApproval=this.msgType==9?[]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[]:this.msgListAutomatic,baseFkList(t).then(a=>{this.fetching=!1,a.success&&(this.msgList=this.msgType==1?[...a.data]:this.msgList,this.msgListCC=this.msgType==2?[...a.data]:this.msgListCC,this.msgListPress=this.msgType==3?[...a.data]:this.msgListPress,this.msgListBack=this.msgType==4?[...a.data]:this.msgListBack,this.msgListRject=this.msgType==5?[...a.data]:this.msgListRject,this.msgListTrans=this.msgType==6?[...a.data]:this.msgListTrans,this.msgListEnd=this.msgType==7?[...a.data]:this.msgListEnd,this.msgListReturn=this.msgType==8?[...a.data]:this.msgListReturn,this.msgListApproval=this.msgType==9?[...a.data]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[...a.data]:this.msgListAutomatic)})},searchMsgDataId(r,t){let a={fkEntityName:this.fkEntityName,id:r};this.fetching=!0,this.msgList=t==1?[]:this.msgList,this.msgListCC=t==2?[]:this.msgListCC,this.msgListPress=t==3?[]:this.msgListPress,this.msgListBack=t==4?[]:this.msgListBack,this.msgListRject=t==5?[]:this.msgListRject,this.msgListTrans=t==6?[]:this.msgListTrans,this.msgListEnd=t==7?[]:this.msgListEnd,this.msgListReturn=t==8?[]:this.msgListReturn,this.msgListApproval=t==9?[]:this.msgListApproval,this.msgListAutomatic=t==10?[]:this.msgListAutomatic,baseFkList(a).then(s=>{s.code==200&&(this.msgList=t==1?[...s.data]:this.msgList,this.msgListCC=t==2?[...s.data]:this.msgListCC,this.msgListPress=t==3?[...s.data]:this.msgListPress,this.msgListBack=t==4?[...s.data]:this.msgListBack,this.msgListRject=t==5?[...s.data]:this.msgListRject,this.msgListTrans=t==6?[...s.data]:this.msgListTrans,this.msgListEnd=t==7?[...s.data]:this.msgListEnd,this.msgListReturn=t==8?[...s.data]:this.msgListReturn,this.msgListApproval=t==9?[...s.data]:this.msgListApproval,this.msgListAutomatic=t==10?[...s.data]:this.msgListAutomatic),this.fetching=!1})},see(){console.log(this.record),this.show=this.record.data.stateCodes!=null,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let r={name:this.record.data.name,tableId:this.record.data.tableId,category:this.record.data.category,description:this.record.data.description,enCode:this.record.data.enCode,msg_MessagetemPlateId:this.record.data.msg_MessagetemPlateId,msg_MessagetemPlateId_CC:this.record.data.msg_MessagetemPlateId_CC,msg_MessagetemPlateId_UP:this.record.data.msg_MessagetemPlateId_UP,msg_MessagetemPlateId_RV:this.record.data.msg_MessagetemPlateId_RV,msg_MessagetemPlateId_RJ:this.record.data.msg_MessagetemPlateId_RJ,msg_MessagetemPlateId_TR:this.record.data.msg_MessagetemPlateId_TR,msg_MessagetemPlateId_AS:this.record.data.msg_MessagetemPlateId_AS,msg_MessagetemPlateId_RT:this.record.data.msg_MessagetemPlateId_RT,msg_MessagetemPlateId_RTA:this.record.data.msg_MessagetemPlateId_RTA,msg_MessagetemPlateId_AA:this.record.data.msg_MessagetemPlateId_AA,autoApprovalType:String(this.record.data.autoApprovalType),transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.isReturnMsg=this.record.data.isReturnMsg,this.isRejectMsg=this.record.data.isRejectMsg,this.record.data.stateCodes!=null&&(r=Object.assign(r,{stateCodes:this.record.data.stateCodes})),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId,1),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_CC,2),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_UP,3),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RV,4),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RJ,5),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_TR,6),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_AS,7),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RT,8),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RTA,9),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_AA,10),this.ruleFormData=r,this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},handleChange(r){this.record.data.title=r},onClose(r){if(r!=null&&r==1){this.visible=!1;return}if(this.record.data.transKey){let t=this.form.getFieldsValue(),a=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:a,name:t.name})}this.visible=!1},selType(r){this.$emit("addType",r,this.index)},getDictionary(r){return this.$options.filters.dictData(r)},toggleHistory(){this.showHistory=!this.showHistory}},mounted(){this.searchTable("")}};var _sfc_render$2x=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"start"},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),a("el-form",{ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(s){t.$set(t.ruleFormData,"transKey",s)},expression:"ruleFormData.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(s){t.$set(t.ruleFormData,"langs",s)},expression:"ruleFormData.langs"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.name","\u540D\u79F0"),prop:"name"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.table","\u5173\u8054\u8868"),prop:"tableId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0,clearable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.tableId,callback:function(s){t.$set(t.ruleFormData,"tableId",s)},expression:"ruleFormData.tableId"}},t._l(t.tableNameData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname)}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname)))]),a("span",[t._v(t._s(s.tablename))])])}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.classify"),prop:"category"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.category,callback:function(s){t.$set(t.ruleFormData,"category",s)},expression:"ruleFormData.category"}},t._l(t.dictList,function(s,o){return a("el-option",{key:o,class:s.code===t.categoryDisableds?"category-dels":"",attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.autoApproval")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.autoApprovalType,callback:function(s){t.$set(t.ruleFormData,"autoApprovalType",s)},expression:"ruleFormData.autoApprovalType"}},t._l(t.getDictionary("table_flows_autoApproval"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{"margin-top":"10px"}},[a("span",[t._v(" "+t._s(t.$i18nt("gd.flow.approval.configTemplate","\u6A21\u7248\u914D\u7F6E"))+" "),t.showHistory==!1?a("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.down","\u5C55\u5F00"))+" "),a("i",{staticClass:"el-icon-arrow-down"})]):a("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.up","\u6536\u8D77"))+" "),a("i",{staticClass:"el-icon-arrow-up"})])])])]),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplate","\u5BA1\u6279\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(1)}},model:{value:t.ruleFormData.msg_MessagetemPlateId,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId",s)},expression:"ruleFormData.msg_MessagetemPlateId"}},t._l(t.msgList,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(1,t.ruleFormData.msg_MessagetemPlateId)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplatecc","\u6284\u9001\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId_CC"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(2)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_CC,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_CC",s)},expression:"ruleFormData.msg_MessagetemPlateId_CC"}},t._l(t.msgListCC,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(2)}}})],1)])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showHistory,expression:"showHistory"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplatePress","\u50AC\u529E\u6A21\u677F"),prop:"msg_MessagetemPlateId_UP"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(3)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_UP,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_UP",s)},expression:"ruleFormData.msg_MessagetemPlateId_UP"}},t._l(t.msgListPress,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(3)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateRecall"),prop:"msg_MessagetemPlateId_RV"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(4)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RV,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RV",s)},expression:"ruleFormData.msg_MessagetemPlateId_RV"}},t._l(t.msgListBack,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(4)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurn"),prop:"msg_MessagetemPlateId_RJ"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(5)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RJ,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RJ",s)},expression:"ruleFormData.msg_MessagetemPlateId_RJ"}},t._l(t.msgListRject,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(5)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurn","\u9A73\u56DE\u6A21\u677F"),prop:"isRejectMsg"}},[a("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange1},model:{value:t.isRejectMsg,callback:function(s){t.isRejectMsg=s},expression:"isRejectMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textReturn","\u662F\u5426\u5F00\u542F\u9A73\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurret","\u8F6C\u5BA1\u6A21\u677F"),prop:"msg_MessagetemPlateId_TR"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(6)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_TR,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_TR",s)},expression:"ruleFormData.msg_MessagetemPlateId_TR"}},t._l(t.msgListTrans,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(6)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateEnd","\u52A0\u7B7E\u6A21\u677F"),prop:"msg_MessagetemPlateId_AS"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(7)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_AS,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_AS",s)},expression:"ruleFormData.msg_MessagetemPlateId_AS"}},t._l(t.msgListEnd,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(7)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateSign","\u9000\u56DE\u6A21\u677F"),prop:"msg_MessagetemPlateId_RT"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(8)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RT,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RT",s)},expression:"ruleFormData.msg_MessagetemPlateId_RT"}},t._l(t.msgListReturn,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(8)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"",prop:"isReturnMsg"}},[a("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange},model:{value:t.isReturnMsg,callback:function(s){t.isReturnMsg=s},expression:"isReturnMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textSgin","\u662F\u5426\u5F00\u542F\u9000\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.returnApproval","\u9000\u56DE\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_RTA"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(9)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RTA,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RTA",s)},expression:"ruleFormData.msg_MessagetemPlateId_RTA"}},t._l(t.msgListApproval,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(9)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.automatic","\u81EA\u52A8\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_AA"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(10)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_AA,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_AA",s)},expression:"ruleFormData.msg_MessagetemPlateId_AA"}},t._l(t.msgListAutomatic,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(10)}}})],1)])],1)],1),t.show?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(s){t.$set(t.ruleFormData,"stateCodes",s)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1):t._e(),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"enCode"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.enCode,callback:function(s){t.$set(t.ruleFormData,"enCode",s)},expression:"ruleFormData.enCode"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.explain","\u63CF\u8FF0"),prop:"description"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(s){t.$set(t.ruleFormData,"description",s)},expression:"ruleFormData.description"}})],1)],1)],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$2x=[],__component__$2x=normalizeComponent(_sfc_main$2x,_sfc_render$2x,_sfc_staticRenderFns$2x,!1,null,"9ce801dd",null,null);const StartDesigner=__component__$2x.exports,index_vue_vue_type_style_index_0_scoped_9a02d003_lang="",_sfc_main$2w={data(){return{}}};var _sfc_render$2w=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"end"},[a("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$2w=[],__component__$2w=normalizeComponent(_sfc_main$2w,_sfc_render$2w,_sfc_staticRenderFns$2w,!1,null,"9a02d003",null,null);const EndDesigner=__component__$2w.exports,index_vue_vue_type_style_index_0_scoped_95ecfaf5_lang="",_sfc_main$2v={props:{menberList:{type:Array,default:()=>[]}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],qVisible:!1,qConfirmLoading:!1,qSpinning:!1,selData:[],list:[],checkedKeys:[],id:"",menberList1:[],fullscreen:!1,width:"80%",defaultExpandedKeys:[],defaultProps:{children:"children",label:"name",value:"id"},currentNodeKey:null,selectedKey:null}},components:{draggable},watch:{language(r,t){this.changeLanguage()}},computed:{style(){let r=this.screenHeight-272;return`height:${this.fullscreen?r+190:r}px;`},...mapGetters(["language","tableSize","screenHeight"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},onCheck(r,t){this.getSelData(t.checkedKeys)},handleClickChange(r,t){if(!t){this.getSelData([]);return}this.$refs.tree.setCheckedNodes([r]),this.getSelData([r.id])},init(r,t){this.fullscreen=!1,this.id=t,console.log(r,this.id,"e....");let a=[],s=[];r.forEach(o=>{a.push(o.id?o.id:o)}),this.list=a,this.selData=[...r],this.qVisible=!0,t==5||t==6?(s=r.length==0?[]:[r[0].id],this.getMenber(s)):(this.checkedKeys=r.length>0?[...a]:[],this.checkedKeys.length==0&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.treeList.setCheckedNodes([])},0)}))},getSelData(r){let t=[],a=[];const s=o=>(o=o.filter((l,d)=>(l.children&&l.children.length>0&&(l.children=s(l.children)),l.type==2&&r.includes(l.id)&&t.push(l),l.type==1&&r.includes(l.id)&&a.push(l),!0)),o);this.id==5?(s(this.menberList1),this.selData=[...a]):(s(this.menberList),this.selData=[...t])},handleSubmit(){this.$emit("ok",this.selData,this.id),this.handleCancel()},handleCancel(){this.mockData=[],this.qVisible=!1},doEvent(r){let t=r.item.functionName;this[t]()},getMenber(r){if(this.type==3){let t=localStorage.getItem("transName");t=JSON.parse(t)}getBUEmployeeTree().then(t=>{if(t.code==200){const a=s=>(s=s.filter((o,l)=>o.type!=2?(o.key=o.id,o.title=o.name,o.children&&o.children.length>0&&(o.children=a(o.children)),!0):!1),s);a(t.data),this.menberList1=t.data,this.defaultExpandedKeys=r,this.$nextTick(()=>{setTimeout(()=>{this.defaultExpandedKeys.length==0&&this.$refs.tree.setCheckedNodes([])},0)})}})}}};var _sfc_render$2v=function r(){var t=this,a=t._self._c;return a("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.qVisible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px"},on:{"update:visible":function(s){t.qVisible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.specifyMembers","\u6307\u5B9A\u6210\u5458")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.qConfirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.qSpinning,expression:"qSpinning"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[a("div",{staticClass:"view_query"},[t.id==5?a("div",{staticClass:"l",style:t.style},[a("el-tree",{ref:"tree",staticClass:"treeRadio",attrs:{data:t.menberList1,props:t.defaultProps,"default-expand-all":"","default-checked-keys":t.defaultExpandedKeys,"show-checkbox":"","check-strictly":"","node-key":"id"},on:{"check-change":t.handleClickChange,check:t.onCheck}})],1):t.id==6?a("div",{staticClass:"l",style:t.style},[a("el-tree",{ref:"tree",staticClass:"treeRadio",attrs:{data:t.menberList,props:t.defaultProps,"default-expand-all":"","default-checked-keys":t.defaultExpandedKeys,"show-checkbox":"","check-strictly":"","node-key":"id"},on:{"check-change":t.handleClickChange,check:t.onCheck}})],1):a("div",{staticClass:"l",style:t.style},[t.menberList.length?a("el-tree",{ref:"treeList",attrs:{data:t.menberList,props:t.defaultProps,"node-key":"id","show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":t.checkedKeys},on:{check:t.onCheck}}):t._e()],1),a("div",{staticClass:"c"},[a("a",[a("i",{staticClass:"el-icon-d-arrow-right",staticStyle:{"font-size":"20px"}})])]),t.qVisible&&t.id==5?a("div",{staticClass:"l",style:t.style},[a("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selDepartment"))+" ")]),t._l(t.selData,function(s,o){return a("div",{key:o,staticClass:"line1",staticStyle:{margin:"10px"}},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(s.name)+" ")])})],2):t._e(),t.qVisible&&t.id==6?a("div",{staticClass:"l",style:t.style},[a("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selDepartment"))+" ")]),t._l(t.selData,function(s,o){return a("div",{key:o,staticClass:"line1",staticStyle:{margin:"10px"}},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(s.name)+" ")])})],2):t._e(),t.qVisible&&t.id!=5&&t.id!=6?a("div",{staticClass:"l",style:t.style},[a("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selMembers","\u5DF2\u9009\u6210\u5458"))+" ")]),a("draggable",t._b({model:{value:t.selData,callback:function(s){t.selData=s},expression:"selData"}},"draggable",{animation:300,handle:".drag-move"},!1),t._l(t.selData,function(s,o){return a("div",{key:o,staticClass:"line1",staticStyle:{margin:"10px"}},[a("i",{staticClass:"el-icon-rank drag-move",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(s.name)+" ")])}),0)],1):t._e()])])],2)},_sfc_staticRenderFns$2v=[],__component__$2v=normalizeComponent(_sfc_main$2v,_sfc_render$2v,_sfc_staticRenderFns$2v,!1,null,"95ecfaf5",null,null);const Menbers=__component__$2v.exports,__$_require_e8adeb72__="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAQlBMVEUAAAD////////////////////////////////////////////////////////////////////g7P3////1+f/r9P7kNebLAAAAEnRSTlMA889POxugZK7jxb1vEFuFLuUrCRQXAAADa0lEQVRo3ryZ626DMAyFcYBw7yXHfv9XndjYLHUtinHg+w36emzHqURlZmm6e5zCQAQQDWGK965ZqnNp5n7AW4Z+bqpzaLuesMIsIukPEWHGCvVdW9q6dNPmTB/Y7FO3lKxwJAAq/SwHQLFUzesRas1yj3UJbVi1ycCqDl51E17CZscOnoK3UbV2dTw84jMBkg4iAM3H4o4AJwcMjAdC3zSuJ/TN6o0a1xc62socNK43dDCU+/EEUiGA5yN7ZxA4FYNBdaYX6i1jRpb5pt5y5psnrz+z31ve/CD1ljXT7my3g3pLm4e98xzUW94cdvdkOg0g7hykdCIfD1VLpv0sK7a9Te/bPIINHfuFxfDS+M47A4b/NYrh4AOzp9CMf4ij2H3uD4diDs3oX70NkHuze8xAc3B1AC6zvK6R2uE19ZlRvwSWg3OlGCJbAwv24AORR0NgZ7EFo32ksQ+bBzsaKu3uMusttRAMK8s92KBlE3e2s+Qfr24TT5ArxYJpux5M29Lf5AS0WunrxFrrHnKtWLY7Smf63B4roJ/twVeL+XuHzOXEki2etcUZcIkWa5MHw/M+sYKhqhbD885KK8Cis+WPnLJhNLo+cvAH1hVyt7wgrrOkCO5VVLHPnAwIol5NebDTqxdUQDLBDq+CoMfYU21ORvDUK8IRWpIVkIoNCB/WqhgqtrlZv0PZAb66N5fchmEYiDaG67hFsgiGvP9VC68EBPBLZIq1lLnAA2VDn+EQwGEx+HIO+HIe+HEO+PE1nQOecMtkk8vsqaFbt2UuleANqCeZeS14qToW3bQv87pj8SoLUBHOF4FZVkll+btXn7tUeyDFy5bucL0FbPRFoR+40AM2inatL58wpoPyl0+YmcA6Lud/i5+pisjwmYofWTE5fGK0Ikw5ZNMVzRdXWGC+gN2kuBzsprLWCWDbWWm0FF0NBJZiMVH/CWxawDZOBEszGOWNwAZGeWkNJFXM3ZBJngLmZkgpOR9cCi4lZ4Cx4PJj54OlGZqaeWDTCm3cBDD2zG9S9l4t3d5p1XtrrukXwgkZKgvdVxwjP4DSX+QmOWTUY6xqN0g2aIRt4/YbFsyJR/YdCG0fge0/9Ns05jxKsLtVlH2k8P5W9BoZV1i/xxvQiIykjDuEc2TsaPxBqyOjZR8wTNd4fPAPFfElFmMfdj8AAAAASUVORK5CYII=",index_vue_vue_type_style_index_0_scoped_04283b74_lang="",_sfc_main$2u={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{radioStyle:{display:"block",height:"30px",lineHeight:"30px"},visible:!1,list:[],confirmLoading:!1,assigneeType:"",seeList:[],rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner,Menbers},computed:{languageMessages(){return this.$i18n.messages},getTransKey(){let r=this.tableLists.filter(o=>o.id==this.codeGenId)[0],a=`SFOA_N${r===void 0?"":`_${r.tablename}`}_${uuid$1(8)}`,s=[];for(let o in this.languageMessages)s.push({name:transKeyCodeName(o),val:this.ruleFormData.name,code:o});return JSON.stringify({name:a,langs:s})},getName(){let r=this.record.name;if(this.record.properties.langs&&this.record.properties.langs.length>0){let t=this.record.properties.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.properties.transkey&&(r=this.$i18nt(`Dynamics.${this.record.properties.transkey}`,r));return r},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getAuditorType(){let t=this.getDictionary("table_flows_ccmode").filter(s=>s.code==this.record.properties.assigneeType)[0];return t?this.$i18nt(t.transkey,t.name):this.$i18nt("gd.flow.approval.CcByTip","\u8BF7\u9009\u62E9\u6284\u9001\u4EBA")},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","tableLists"])},methods:{lookupSeled(r){this.record.properties.transkey||this.$emit("addTransKey",r.name);let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleFormData=Object.assign({...this.ruleFormData},{name:r.defaulttext,langs:t,transkey:r.name}),this.record.properties.transkey=r.name,this.record.properties.langs=t},delMwnber(r){let t=this.seeList.filter(a=>a!=r);this.seeList=[...t]},selMenbers(r){this.seeList=[...r]},addMember(){this.$refs.menbers.init(this.seeList)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.assigneeType==""){this.$message.error("\u8BF7\u9009\u62E9\u6284\u9001\u65B9\u5F0F");return}if(this.assigneeType==1&&this.seeList.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u6210\u5458\uFF01");return}let t=[];this.seeList.forEach(s=>{t.push(s.id)});let a={assigneeType:this.assigneeType,approvers:this.assigneeType==1?[...t]:[],transkey:this.ruleFormData.transkey,langs:this.ruleFormData.langs};this.record.err=!1,this.record.name=this.ruleFormData.name,this.record.properties={...a},this.onClose()}})},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}let r={...this.record.properties},t=[],a=[];const s=o=>(o=o.filter((l,d)=>(l.children&&l.children.length>0&&(l.children=s(l.children)),l.type==2&&r.approvers.includes(l.id)&&a.push(l),!0)),o);s(this.menberList),r.approvers.forEach(o=>{a.forEach(l=>{l.id==o&&t.push(l)})}),this.$nextTick(()=>{setTimeout(()=>{this.seeList=[...t],this.assigneeType=r.assigneeType;let o=r.langs?r.langs:[];this.ruleFormData={name:this.record.name,transkey:r.transkey?r.transkey:null,langs:r.transkey?[]:o}},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1},getDictionary(r){return this.$options.filters.dictData(r)}},created(){}};var _sfc_render$2u=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getAuditorType}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.getName))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getAuditorType))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.ccInformation","\u6284\u9001\u4EBA\u4FE1\u606F")))])])]),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName"),prop:"name"}},[t.visible&&!t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:3},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),a("el-divider"),a("div",{staticStyle:{margin:"12px 0"}},[a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.assigneeType,callback:function(s){t.assigneeType=s},expression:"assigneeType"}},t._l(t.getDictionary("table_flows_ccmode"),function(s,o){return a("el-radio",{key:s.code,style:t.radioStyle,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1),a("el-divider"),t.assigneeType==1?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.addMembers","\u6DFB\u52A0\u6210\u5458"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458")))])]),a("div",{staticClass:"b"},[t._l(t.seeList,function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[t.disabled?t._e():a("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(l){return t.delMwnber(s)}}}),a("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),a("div",{staticClass:"name line1"},[t._v(t._s(s.name))])]):t._e()]}),t.disabled?t._e():a("div",{staticClass:"item fl"},[a("div",{staticClass:"jia",on:{click:t.addMember}},[a("i",{staticClass:"el-icon-plus icon"})])])],2)]):t._e()],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("Menbers",{ref:"menbers",attrs:{menberList:t.menberList},on:{ok:t.selMenbers}})],1)},_sfc_staticRenderFns$2u=[],__component__$2u=normalizeComponent(_sfc_main$2u,_sfc_render$2u,_sfc_staticRenderFns$2u,!1,null,"04283b74",null,null);const StepsDesigner=__component__$2u.exports,index_vue_vue_type_style_index_0_scoped_e32c8065_lang="",_sfc_main$2t={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}}},data(){return{defaultValue:"1",radioStyle:{display:"block",height:"30px",lineHeight:"30px"},visible:!1,list:[],tableNameData:[],relevantData:[],fetching:!1,subIndex:0,confirmLoading:!1,fieldList:[],codeList:[],managerLevel:"1",counterSign:"1",tableName:"",seeList:[],seeList1:[],assigneeType:"",tableRelationData:[],autoApprvalType:"0",optionSign:"1",atureSign:"1",optionallowCC:"1",optionShow:!1,atureShow:!1,allowccShow:!1,checkedValues:[],options:[{label:"\u5141\u8BB8\u9000\u56DE",value:"1"},{label:"\u81EA\u52A8\u6284\u9001",value:"2"},{label:"\u8F6C\u5BA1\u8303\u56F4",value:"3"},{label:"\u52A0\u5BA1\u8303\u56F4",value:"4"}],allowAddSignature:!0,allowCC:!0,allowReturn:!0,allowTransfer:!0,sendModel:!0,showEditTrans:!1,showEdit:!1,showEditSign:!1,rejectModel:!0,maskList:[],turretList:[],endorseList:[],id:"1",rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner,AttributesDesigner,Menbers},computed:{languageMessages(){return this.$i18n.messages},getTransKey(){let r=this.tableLists.filter(o=>o.id==this.codeGenId)[0],a=`SFOA_N${r===void 0?"":`_${r.tablename}`}_${uuid$1(8)}`,s=[];for(let o in this.languageMessages)s.push({name:transKeyCodeName(o),val:this.ruleFormData.name,code:o});return JSON.stringify({name:a,langs:s})},getName(){let r=this.record.name;if(this.record.properties.langs&&this.record.properties.langs.length>0){let t=this.record.properties.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.properties.transkey&&(r=this.$i18nt(`Dynamics.${this.record.properties.transkey}`,r));return r},apprvalTypeErr(){return this.tasksAutoApprovalList.filter(t=>t.disabled).filter(t=>t.code==this.autoApprvalType)[0]!==void 0},tasksAutoApprovalList(){let r=this.getDictionary("table_Tasks_autoApproval"),t=this.getDictionary("table_flows_autoApproval");if(!this.settingsData.data)return r;let a=this.settingsData.data.autoApprovalType,s=t.filter(d=>d.code==String(a))[0];if(s===void 0)return r;let o=s.remark?s.remark.split("#"):[],l=s.remark?o[o.length-1].split(","):[];return r.map(d=>(d.disabled=!l.includes(d.code),d))},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getAuditorType(){let t=this.getDictionary("table_flows_mode").filter(s=>s.code==this.record.properties.assigneeType)[0];return t?this.$i18nt(t.transkey,t.name):t.name},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","tableLists"])},methods:{lookupSeled(r){this.record.properties.transkey||this.$emit("addTransKey",r.name);let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleFormData=Object.assign({...this.ruleFormData},{name:r.defaulttext,langs:t,transkey:r.name}),console.log(r),this.record.properties.transkey=r.name,this.record.properties.langs=t},returnClick(r){this.sendModel=r},rejectClick(r){this.rejectModel=r},onChange(r){r==!0?(this.allowccShow=!0,this.optionallowCC="1"):r==!1&&(this.allowccShow=!1,this.optionallowCC=""),this.maskList=[],this.showEdit=!1,this.allowCC=r},onChange1(r){r==!0?(this.atureShow=!0,this.atureSign="1"):(this.atureShow=!1,this.atureSign=""),this.turretList=[],this.showEditTrans=!1,this.allowTransfer=r},onChange2(r){r==!0?(this.optionShow=!0,this.optionSign="1"):(this.optionShow=!1,this.optionSign=""),this.endorseList=[],this.showEditSign=!1,this.allowAddSignature=r},edit(){this.id=2,this.$refs.menbers.init(this.maskList,this.id)},editSign(){this.id=3,this.$refs.menbers.init(this.turretList,this.id)},editCC(){this.id=4,this.$refs.menbers.init(this.endorseList,this.id)},radioCC(r){r==2?this.showEdit=!0:(this.showEdit=!1,this.maskList=[]),this.optionallowCC=r},radioTrans(r){r=="2"?this.showEditTrans=!0:(this.showEditTrans=!1,this.turretList=[]),this.atureSign=r},radioSign(r){r=="2"?this.showEditSign=!0:(this.showEditSign=!1,this.endorseList=[]),this.optionSign=r},delField(r){let t=[...this.fieldList];t.splice(r,1),this.fieldList=[...t],this.$nextTick(()=>{setTimeout(()=>{t.forEach((a,s)=>{let o=this.filteredOptions(a),l=this.codeList.filter(d=>!o.includes(d.columnname));t[s].codelist=l}),this.fieldList=[...t]},0)})},changeCode(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=[...this.fieldList];a.forEach((s,o)=>{let l=this.filteredOptions(s),d=this.codeList.filter(u=>!l.includes(u.columnname));a[o].codelist=d}),this.fieldList=[...a]},0)})},addField(){if(this.fieldList.length<this.codeList.length){let r=[...this.fieldList],t=this.filteredOptions({columnname:""}),a={columnname:"",codeList:this.codeList.filter(s=>!t.includes(s.columnname))};r.push(a),this.fieldList=[...r]}},filteredOptions(r){let t=[];if(this.fieldList.forEach((a,s)=>{a.columnname!==""&&t.push(a.columnname)}),t.includes(r.columnname)){let a=t.indexOf(r.columnname);t.splice(a,1)}return t},delMwnber(r){let t=this.seeList.filter(a=>a!=r);this.seeList=[...t]},delMask(r,t){if(t==1){let a=this.maskList.filter(s=>s!=r);this.maskList=[...a]}else if(t==2){let a=this.turretList.filter(s=>s!=r);this.turretList=[...a]}else if(t==3){let a=this.endorseList.filter(s=>s!=r);this.endorseList=[...a]}},selMenbers(r,t){t==1?this.seeList=[...r]:t==2?this.maskList=[...r]:t==3?this.turretList=[...r]:t==4?this.endorseList=[...r]:t==5&&(this.seeList1=[...r])},addMember(){this.id=1,this.$refs.menbers.init(this.seeList,this.id)},delMwnber1(r){let t=this.seeList1.filter(a=>a!=r);this.seeList1=[...t]},addMember1(){this.id=5,this.$refs.menbers.init(this.seeList1,this.id)},changeMode(r){this.managerLevel="1",this.counterSign="1",this.tableName="",this.seeList=[],this.fieldList=[],this.maskList=[],this.endorseList=[],this.turretList=[],this.seeList1=[]},selectTable(r){this.codeList=[],this.fieldList=[],this.getFiledList(r)},async init(){this.confirmLoading=!0;let r=await this.codeGenerateList(""),t=await this.codeGeneratefkList();this.tableNameData=[...r.data],t.data.map(a=>{let s=r.data.filter(o=>o.tablename==a.fkentityname)[0];return a.busname=s===void 0?"--":s.busname,a.tablebame=a.fkentityname,a.transkeytable=s===void 0?null:s.transkey?s.transkey:null,a.currenttableId=s===void 0?"--":s.id,a}),this.tableRelationData=[...t.data],this.confirmLoading=!1},async searchTable(r){this.fetching=!0,this.tableNameData=[];let t=await this.codeGenerateList(r);this.tableNameData=[...t.data],this.fetching=!1},codeGeneratefkList(){return codeGeneratefkList({tableId:this.codeGenId}).then(r=>r)},codeGenerateList(r){return codeGenerateInformationList({busName:r}).then(t=>t)},onlineFkTableList(){return onlineFormGetFkTableList({tableId:this.codeGenId}).then(r=>r)},getFiledList(r){let t=this.tableRelationData.filter(a=>a.id==r)[0].currentTableId;onlineFormGetCodeGenerateList({codeGenId:t}).then(a=>{a.data.map(o=>(o.children=null,o));let s=a.data.filter(o=>!(o.effecttype=="about"&&o.columnname===(o.relations+"_AboutTable").toLowerCase()));this.codeList=[...s]})},getFiledFilter(){let r=this.tableNameData.filter(t=>t.tablename==this.record.properties.tableName)[0];r!=null&&(this.confirmLoading=!0,onlineFormGetCodeGenerateList({codeGenId:r.id}).then(t=>{t.data.map(o=>(o.children=null,o));let a=t.data.filter(o=>!(o.effectType=="about"&&o.columnname===(o.relations+"_AboutTable").toLowerCase()));this.codeList=[...a];let s=[];this.record.properties.tableFields.forEach(o=>{let l=this.record.properties.tableFields.filter(f=>f!=o),d=a.filter(f=>!l.includes(o)),u={columnname:o,codelist:d};s.push(u)}),this.fieldList=[...s],this.confirmLoading=!1}))},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(console.log(this.assigneeType),this.assigneeType==""){this.$message.error(this.$i18nt("gd.flow.approval.approvalMethodTip","\u8BF7\u9009\u62E9\u5BA1\u6279\u65B9\u5F0F"));return}if(this.assigneeType==1&&this.seeList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.assigneeType==6&&this.seeList1.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersHead","\u8BF7\u6DFB\u52A0\u90E8\u95E8"));return}if(this.assigneeType==5&&this.fieldList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addFieldTip","\u8BF7\u6DFB\u52A0\u8868\u5B57\u6BB5\u6570\u636E"));return}if(this.assigneeType==5&&!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}if((this.assigneeType==3||this.assigneeType==4)&&this.apprvalTypeErr){this.$message.error(this.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"));return}if(this.optionallowCC==2&&this.maskList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.atureSign==2&&this.turretList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.optionSign==2&&this.endorseList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}let t=[];this.fieldList.filter(h=>{t.push(h.columnName)});let a=[];this.seeList.forEach(h=>{a.push(h.id)});let s=[];this.maskList.forEach(h=>{s.push(h.id)});let o=[];this.turretList.forEach(h=>{o.push(h.id)});let l=[];this.endorseList.forEach(h=>{l.push(h.id)});let d=[];this.seeList1.forEach(h=>{d.push(h.id)}),this.record.err=!1;let u=this.tableRelationData.filter(h=>h.id==this.tableName)[0],f=this.tableNameData.filter(h=>h.id==this.codeGenId)[0],p={assigneeType:this.assigneeType,managerLevel:this.managerLevel,counterSign:this.counterSign,tableName:u===void 0?"":u.fkentityname,approvers:a,currentTableName:f.tablename,currentFieldName:u===void 0?"":u.columnname,tableFields:t,autoApprvalType:this.autoApprvalType,businessUnitId:d.join(),allowReturn:this.sendModel,allowTransfer:this.allowTransfer,allowAddSignature:this.allowAddSignature,allowCC:this.allowCC,showreject:this.rejectModel,allowccShow:this.allowccShow,optionallowCC:this.optionallowCC,CCApprovers:s,transferApprovers:o,atureShow:this.atureShow,atureSign:this.atureSign,addSignatureApprovers:l,optionShow:this.optionShow,optionSign:this.optionSign,transkey:this.ruleFormData.transkey,langs:this.ruleFormData.langs};this.record.name=this.ruleFormData.name,this.record.properties={...p},console.log(p,"properties"),this.onClose()}})},isChecked(r){return this.fieldList.every((t,a,s)=>!(t.columnname==null||t.columnname==""))},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}let r={...this.record.properties};console.log(this.record,"this.record");let t=[],a=[],s=[],o=[],l=[],d=[],u=[],f=[],p=[];const h=v=>(v=v.filter((g,y)=>(g.children&&g.children.length>0&&(g.children=h(g.children)),g.type==2&&r.approvers.includes(g.id)&&a.push(g),r.CCApprovers!==void 0&&g.type==2&&r.CCApprovers.includes(g.id)&&s.push(g),r.transferApprovers!==void 0&&g.type==2&&r.transferApprovers.includes(g.id)&&l.push(g),r.addSignatureApprovers!==void 0&&g.type==2&&r.addSignatureApprovers.includes(g.id)&&u.push(g),r.businessUnitId!==void 0&&g.type==1&&r.businessUnitId==g.id&&p.push(g),!0)),v);h(this.menberList),r.approvers.forEach(v=>{a.forEach(g=>{g.id==v&&t.push(g)})}),r.CCApprovers&&r.CCApprovers.forEach(v=>{s.forEach(g=>{g.id==v&&o.push(g)})}),r.transferApprovers&&r.transferApprovers.forEach(v=>{l.forEach(g=>{g.id==v&&d.push(g)})}),r.addSignatureApprovers&&r.addSignatureApprovers.forEach(v=>{u.forEach(g=>{g.id==v&&f.push(g)})}),this.$nextTick(()=>{setTimeout(()=>{let v=r.autoApprvalType===void 0?"0":r.autoApprvalType;this.tasksAutoApprovalList.filter(_=>!_.disabled).filter(_=>_.code==v)[0];let y=this.tableRelationData.filter(_=>_.columnname==r.currentFieldName)[0];this.assigneeType=r.assigneeType,this.managerLevel=r.managerLevel,this.autoApprvalType=v,this.counterSign=r.counterSign,this.tableName=y==null?"":y.id,this.seeList=[...t],this.seeList1=[...p],this.sendModel=r.allowReturn,this.allowTransfer=r.allowTransfer,this.allowAddSignature=r.allowAddSignature,this.allowCC=r.allowCC,this.rejectModel=r.showreject,this.maskList=[...o],this.allowccShow=r.allowccShow,this.optionallowCC=r.optionallowCC,this.turretList=[...d],this.atureShow=r.atureShow,this.atureSign=r.atureSign,this.endorseList=[...f],this.optionShow=r.optionShow,this.optionSign=r.optionSign,this.atureSign=="2"?this.showEditTrans=!0:this.showEditTrans=!1,this.optionallowCC=="2"?this.showEdit=!0:this.showEdit=!1,this.optionSign=="2"?this.showEditSign=!0:this.showEditSign=!1;let b=r.langs?r.langs:[];this.ruleFormData={name:this.record.name,transkey:r.transkey?r.transkey:null,langs:r.transkey?[]:b},this.$refs.gdTranslation&&this.$refs.gdTranslation.init(),r.tableName&&this.codeList.length==0&&this.getFiledFilter()},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1},getDictionary(r){return this.$options.filters.dictData(r)},doEvent(r){let t=r.item.functionName;this[t]()}},created(){this.init()}};var _sfc_render$2t=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getAuditorType}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.getName))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getAuditorType))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.approverInformation","\u5BA1\u6279\u4EBA\u4FE1\u606F")))])])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[a("el-form",{ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[t.visible&&!t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:3},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),a("div",{staticStyle:{"margin-bottom":"12px"}},[a("el-radio-group",{attrs:{disabled:t.disabled},on:{change:t.changeMode},model:{value:t.assigneeType,callback:function(s){t.assigneeType=s},expression:"assigneeType"}},t._l(t.getDictionary("table_flows_mode"),function(s,o){return a("el-radio",{key:s.code,style:t.radioStyle,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1),a("el-divider"),t.assigneeType==1?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.addMembers","\u6DFB\u52A0\u6210\u5458"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458")))])]),a("div",{staticClass:"b"},[t._l(t.seeList,function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[t.disabled?t._e():a("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(l){return t.delMwnber(s)}}}),a("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),a("div",{staticClass:"name line1"},[t._v(t._s(s.name))])]):t._e()]}),t.disabled?t._e():a("div",{staticClass:"item fl"},[a("div",{staticClass:"jia",on:{click:t.addMember}},[a("i",{staticClass:"el-icon-plus icon"})])])],2),t.seeList.length>1?a("div",[a("el-divider",{staticStyle:{margin:"12px 0"}}),a("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.personsApproval","\u591A\u4EBA\u5BA1\u6279\u65B9\u5F0F")))]),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.counterSign,callback:function(s){t.counterSign=s},expression:"counterSign"}},[a("el-radio",{style:t.radioStyle,attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.orSignature","\u6216\u7B7E\uFF08 \u4E00\u540D\u6210\u5458\u540C\u610F\u5373\u53EF \uFF09"))+" ")]),a("el-radio",{style:t.radioStyle,attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.jointlySign","\u4F1A\u7B7E\uFF08 \u987B\u6240\u6709\u6210\u5458\u540C\u610F \uFF09"))+" ")])],1)],1):t._e()]):t.assigneeType==2||t.assigneeType==3?[t.assigneeType==3?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.autoApproval","\u81EA\u52A8\u5BA1\u6279"))+" "),t.apprvalTypeErr?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")))])]),a("i",{staticClass:"el-icon-warning-outline",staticStyle:{color:"#f56c6c","font-size":"18px"}})]):t._e()],1),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.autoApprvalType,callback:function(s){t.autoApprvalType=s},expression:"autoApprvalType"}},t._l(t.tasksAutoApprovalList,function(s,o){return a("el-radio",{key:o,style:t.radioStyle,attrs:{label:s.code,disabled:s.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1):t._e(),a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.assigneeType==2?t.$i18nt("gd.flow.approval.designatedLevel","\u6307\u5B9A\u5C42\u7EA7"):t.$i18nt("gd.flow.approval.endPoint","\u6307\u5B9A\u7EC8\u70B9"))+" ")]),a("el-row",{staticStyle:{margin:"12px 0"},attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.defaultValue,callback:function(s){t.defaultValue=s},expression:"defaultValue"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.flow.approval.bottomUp","\u4ECE\u4E0B\u81F3\u4E0A")}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:t.managerLevel,callback:function(s){t.managerLevel=s},expression:"managerLevel"}},t._l(t.getDictionary("table_flows_pid"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("div",{staticClass:"tip"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.bottomUpTip","\u4ECE\u4E0B\u81F3\u4E0A\u6307\u4EE5\u7533\u8BF7\u4EBA\u7684\u76F4\u5C5E\u4E0A\u7EA7\u4E3A\u7B2C\u4E00\u7EA7\uFF0C\u5411\u66F4\u9AD8\u5C42\u7EA7\u9012\u589E"))+" ")])],1)]:t.assigneeType==4?[a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.autoApproval","\u81EA\u52A8\u5BA1\u6279"))+" "),t.apprvalTypeErr?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("template",{slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")))])]),a("i",{staticClass:"el-icon-warning-outline",staticStyle:{color:"#f56c6c","font-size":"18px"}})],2):t._e()],1),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.autoApprvalType,callback:function(s){t.autoApprvalType=s},expression:"autoApprvalType"}},t._l(t.tasksAutoApprovalList,function(s,o){return a("el-radio",{key:o,style:t.radioStyle,attrs:{label:s.code,disabled:s.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1),a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.endPoint","\u6307\u5B9A\u7EC8\u70B9")))]),a("el-row",{staticStyle:{margin:"12px 0"},attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.defaultValue,callback:function(s){t.defaultValue=s},expression:"defaultValue"}},[a("el-option",{attrs:{value:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.bottomUp","\u4ECE\u4E0B\u81F3\u4E0A"))+" ")])],1)],1),a("el-col",{attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:t.managerLevel,callback:function(s){t.managerLevel=s},expression:"managerLevel"}},t._l(t.getDictionary("table_flows_director"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1)]:t.assigneeType==5?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.associatedMembers","\u5173\u8054\u6210\u5458\u63A7\u4EF6")))]),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.businessTable","\u4E1A\u52A1\u5DE5\u5355\u5173\u8054\u8868"),required:!0}},[a("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",disabled:t.disabled},on:{change:t.selectTable},model:{value:t.tableName,callback:function(s){t.tableName=s},expression:"tableName"}},t._l(t.tableRelationData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkeytable}`,s.busame)}},[a("span",[a("span",{staticClass:"active-color"},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkeytable}`,s.busname))+" ")]),t._v(" "+t._s(s.tablename)+" "),a("span",{staticClass:"active-color",staticStyle:{padding:"0 4px 0 4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ")]),t._v(" "+t._s(s.columnName)+" ")])])}),1)],1)],1),t.fieldList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.develop.table.field","\u5B57\u6BB5"),required:!0}},t._l(t.fieldList,function(s,o){return a("el-row",{key:o,attrs:{gutter:24}},[a("el-col",{attrs:{span:20}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",filterable:"",disabled:t.disabled},on:{change:function(l){return t.changeCode(l,o)}},model:{value:s.columnname,callback:function(l){t.$set(s,"columnname",l)},expression:"item.columnname"}},t._l(s.codelist,function(l,d){return a("el-option",{key:d,attrs:{value:l.columnname,label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnName)+" ")])])}),1)],1),a("el-col",{attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"16px",color:"#ff4d4f",cursor:"pointer"},on:{click:function(l){return t.delField(o)}}})])],1)}),1)],1):t._e(),t.tableName!=null?a("el-col",{attrs:{span:24}},[t.disabled?t._e():a("div",{staticClass:"add"},[a("a",{on:{click:t.addField}},[t._v(t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0")))])])]):t._e()],1),a("el-divider",{staticStyle:{margin:"12px 0"}}),t.fieldList.length>1?a("div",[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.personsApproval","\u591A\u4EBA\u5BA1\u6279\u65B9\u5F0F"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.associatedMembersTip","\u8BE5\u6210\u5458\u63A7\u4EF6\u4E3A\u591A\u9009")))])]),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.counterSign,callback:function(s){t.counterSign=s},expression:"counterSign"}},[a("el-radio",{style:t.radioStyle,attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.orSignature","\u6216\u7B7E\uFF08 \u4E00\u540D\u6210\u5458\u540C\u610F\u5373\u53EF \uFF09"))+" ")]),a("el-radio",{style:t.radioStyle,attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.jointlySign","\u4F1A\u7B7E\uFF08 \u987B\u6240\u6709\u6210\u5458\u540C\u610F \uFF09"))+" ")])],1)],1):t._e()],1):t.assigneeType==6?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.departmentHead","\u6DFB\u52A0\u90E8\u95E8"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersHead","\u8BF7\u6DFB\u52A0\u90E8\u95E8")))])]),a("div",{staticClass:"b"},[t._l(t.seeList1,function(s,o){return[s.type==1?a("div",{staticClass:"item fl"},[t.disabled?t._e():a("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(l){return t.delMwnber1(s)}}}),a("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),a("div",{staticClass:"name line1"},[t._v(t._s(s.name))])]):t._e()]}),t.disabled?t._e():a("div",{staticClass:"item fl"},[a("div",{staticClass:"jia",on:{click:t.addMember1}},[a("i",{staticClass:"el-icon-plus icon"})])])],2)]):t._e()],2),t.fieldList.length>1?a("el-divider"):t._e(),a("div",{staticStyle:{"line-height":"30px"}},[a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.returnClick(s)}},model:{value:t.sendModel,callback:function(s){t.sendModel=s},expression:"sendModel"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowReturn","\u9000\u56DE"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentReturn","\u662F\u5426\u5141\u8BB8\u8282\u70B9\u5BA1\u6279\u4EBA\u5C06\u6D41\u7A0B\u9000\u56DE\u5230\u5386\u53F2\u8282\u70B9")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})])],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.rejectClick(s)}},model:{value:t.rejectModel,callback:function(s){t.rejectModel=s},expression:"rejectModel"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowRreject","\u9A73\u56DE"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.showReject","\u662F\u5426\u5141\u8BB8\u8282\u70B9\u5BA1\u6279\u4EBA\u5C06\u6D41\u7A0B\u9A73\u56DE\u5230\u63D0\u4EA4\u4EBA(\u6D41\u7A0B\u4F5C\u5E9F)")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})])],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.onChange(s)}},model:{value:t.allowCC,callback:function(s){t.allowCC=s},expression:"allowCC"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowCC"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentCC","\u662F\u5426\u5141\u8BB8\u5C06\u5F53\u524D\u5BA1\u6279\u7ED3\u679C\u53D1\u9001\u7ED9\u6307\u5B9A\u4EBA\u5458")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),a("div",{staticClass:"rectangle"},[a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.allowccShow,expression:"allowccShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioCC},model:{value:t.optionallowCC,callback:function(s){t.optionallowCC=s},expression:"optionallowCC"}},[a("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),a("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),a("a",{directives:[{name:"show",rawName:"v-show",value:t.showEdit,expression:"showEdit"}],staticClass:"question",on:{click:t.edit}},[t._v(t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539")))]),a("div",{staticClass:"b"},[t._l(t.maskList.slice(0,5),function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[a("div",{staticClass:"name line1"},[a("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),a("span",[t._v(t._s(s.name))]),t.disabled?t._e():a("i",{staticClass:"el-icon-close cuo",on:{click:function(l){return t.delMask(s,1)}}})])]):t._e()]}),t.maskList.length>=3?a("div",{staticClass:"item fl"},[a("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.onChange1(s)}},model:{value:t.allowTransfer,callback:function(s){t.allowTransfer=s},expression:"allowTransfer"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowTransfer","\u8F6C\u5BA1"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentTrans","\u662F\u5426\u5141\u8BB8\u5BA1\u6279\u4EBA\u5C06\u5BA1\u6279\u4EFB\u52A1\u8F6C\u7ED9\u6307\u5B9A\u4EBA\u5458")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),a("div",{staticClass:"rectangle"},[a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.atureShow,expression:"atureShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioTrans},model:{value:t.atureSign,callback:function(s){t.atureSign=s},expression:"atureSign"}},[a("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),a("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),a("a",{directives:[{name:"show",rawName:"v-show",value:t.showEditTrans,expression:"showEditTrans"}],staticClass:"question",on:{click:t.editSign}},[t._v(" "+t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539"))+" ")]),a("div",{staticClass:"b"},[t._l(t.turretList.slice(0,5),function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[a("div",{staticClass:"name line1"},[a("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),a("span",[t._v(t._s(s.name))]),t.disabled?t._e():a("i",{staticClass:"el-icon-close cuo",on:{click:function(l){return t.delMask(s,2)}}})])]):t._e()]}),t.turretList.length>=3?a("div",{staticClass:"item fl"},[a("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.onChange2(s)}},model:{value:t.allowAddSignature,callback:function(s){t.allowAddSignature=s},expression:"allowAddSignature"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowAddSignature","\u52A0\u7B7E"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentSign","\u662F\u5426\u5141\u8BB8\u5F53\u524D\u5BA1\u6279\u4EBA\u6DFB\u52A0\u6307\u5B9A\u4EBA\u5458\u8FDB\u884C\u5BA1\u6279")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),a("div",{staticClass:"rectangle"},[a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.optionShow,expression:"optionShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioSign},model:{value:t.optionSign,callback:function(s){t.optionSign=s},expression:"optionSign"}},[a("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),a("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),a("a",{directives:[{name:"show",rawName:"v-show",value:t.showEditSign,expression:"showEditSign"}],staticClass:"question",on:{click:t.editCC}},[t._v(" "+t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539"))+" ")]),a("div",{staticClass:"b"},[t._l(t.endorseList.slice(0,5),function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[a("div",{staticClass:"name line1"},[a("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),a("span",[t._v(t._s(s.name))]),t.disabled?t._e():a("i",{staticClass:"el-icon-close cuo",on:{click:function(l){return t.delMask(s,3)}}})])]):t._e()]}),t.endorseList.length>=3?a("div",{staticClass:"item fl"},[a("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1)])],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("Menbers",{ref:"menbers",attrs:{menberList:t.menberList},on:{ok:t.selMenbers}})],1)},_sfc_staticRenderFns$2t=[],__component__$2t=normalizeComponent(_sfc_main$2t,_sfc_render$2t,_sfc_staticRenderFns$2t,!1,null,"e32c8065",null,null);const StageDesigner=__component__$2t.exports;function nodeData(r){switch(r){case"circulate":return{type:"circulate",name:"\u6284\u9001\u4EBA",list:[],err:!1,isDelete:!0,properties:{assigneeType:"",approvers:[],transkey:null}};case"approver":return{type:"approver",name:"\u5BA1\u6279\u4EBA",list:[],err:!1,isDelete:!0,properties:{assigneeType:"",approveType:"1",approvers:[],tableName:"",currentTableName:"",currentFieldName:"",tableFields:[],managerLevel:"1",counterSign:"1",allowAddSignature:!0,allowCC:!0,allowTransfer:!0,allowReturn:!0,optionShow:!0,atureShow:!0,allowccShow:!0,optionSign:"1",atureSign:"1",optionallowCC:"1",showreject:!0,transkey:null}};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1},{type:"else",name:"ELSE",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1}],isDelete:!0};case"parallel":return{type:"parallel",name:"\u5E76\u884C",list:[{type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",list:[],properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},err:!1},{type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",list:[],properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},err:!1}],err:!1,isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_0500274e_lang="",plugFilters$2={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2s={name:"ParallelDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner,StepsDesigner,StageDesigner,FlowsFilter,ConditionDesigner:()=>Promise.resolve().then(()=>index)},methods:{addTransKey(r){this.$emit("addTransKey",r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.list.list[0],a=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].properties.conditions={...a},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(r){this.list={...r}},see(r){console.log(r),this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r;let a=t.properties.conditions,o=Object.prototype.toString.call(a)==="[object Array]"?Object.assign({...plugFilters$2},{list:a}):{...a},l=o.pid===null?o.list:[o],d=o.pid===null?o:plugFilters$2,u=Object.assign({...d},{list:l});this.list=u,this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let r=this.record.list.length,t={type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1,transkey:null,id:uuid$1(),pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),(a.type=="condition"||a.type=="parallel")&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},deltransKey(r){this.$emit("deltransKey",r)},async del(r){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((o,l)=>l!=r);this.record.list=[...t];let a=await this.hasItem([data]).filter(o=>o.transkey),s=[];a.forEach(o=>{s.push(o.transkey)}),s.length!=0&&this.$emit("deltransKey",s)},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>((o.type=="if"||o.type=="elseif"||o.type=="parallelNode")&&(o.list=a(o.list)),(o.type=="condition"||o.type=="parallel")&&o.list.forEach(d=>{d.list=a(d.list)}),(o.type=="circulate"||o.type=="approver")&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},addType(r,t,a){let s=nodeData(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),(s.type=="condition"||s.type=="parallel")&&s.list.map(o=>(o.id=uuid$1(),o.pid=s.id,o)),this.record.list[t].list.splice(a+1,0,s)},async delChildItem(r,t,a){let s=this.record.list[t].list.filter((d,u)=>u!=r);this.record.list[t].list=[...s];let o=await this.hasItem([data]).filter(d=>d.transkey),l=[];o.forEach(d=>{l.push(d.transkey)}),l.length!=0&&this.$emit("deltransKey",l)},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1}}};var _sfc_render$2s=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addParallel","\u6DFB\u52A0\u5E76\u884C"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.task.parallel","\u5E76\u884C"))+" ")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del(o)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"10"}},[l.type=="approver"?a("StageDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="circulate"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),l.type=="parallel"?a("ParallelDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{placement:"right",visible:t.visible,size:"50%","close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[a("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules"))+" ")]),a("div",{staticClass:"tips"},[t.listError?a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?a("div",{style:t.styleMode},[a("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2s=[],__component__$2s=normalizeComponent(_sfc_main$2s,_sfc_render$2s,_sfc_staticRenderFns$2s,!1,null,"0500274e",null,null);const ParallelDesigner=__component__$2s.exports,index_vue_vue_type_style_index_0_scoped_dc9c3419_lang="",plugFilters$1={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2r={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner,StepsDesigner,StageDesigner,ParallelDesigner,FlowsFilter},methods:{addTransKey(r){this.$emit("addTransKey",r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.list.list[0],a=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].properties.conditions={...a},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(r){this.list={...r}},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r;let a=t.properties.conditions,o=Object.prototype.toString.call(a)==="[object Array]"?Object.assign({...plugFilters$1},{list:a}):{...a},l=o.pid===null?o.list:[o],d=o.pid===null?o:plugFilters$1,u=Object.assign({...d},{list:l});this.list=u,this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let r=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1,transkey:null,id:uuid$1(),pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),(a.type=="condition"||a.type=="parallel")&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},deltransKey(r){this.$emit("deltransKey",r)},async del(r){if(console.log(r),this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((o,l)=>l!=r);t[0].type="if",this.record.list=[...t];let a=await this.hasItem([data]).filter(o=>o.transkey),s=[];a.forEach(o=>{s.push(o.transkey)}),s.length!=0&&this.$emit("deltransKey",s)},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>((o.type=="if"||o.type=="elseif"||o.type=="parallelNode")&&(o.list=a(o.list)),(o.type=="condition"||o.type=="parallel")&&o.list.forEach(d=>{d.list=a(d.list)}),(o.type=="circulate"||o.type=="approver")&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},addType(r,t,a){let s=nodeData(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),(s.type=="condition"||s.type=="parallel")&&s.list.map(o=>(o.id=uuid$1(),o.pid=s.id,o)),this.record.list[t].list.splice(a+1,0,s)},async delChildItem(r,t,a){let s=this.record.list[t].list.filter((d,u)=>u!=r);this.record.list[t].list=[...s];let o=await this.hasItem([data]).filter(d=>d.transkey),l=[];o.forEach(d=>{l.push(d.transkey)}),l.length!=0&&this.$emit("deltransKey",l)},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},lookup(r){this.lookIndex=r,this.loadData.filter(t=>t.id==this.list[r].columnId)[0]},lookupSeled(r){this.handleLookupCancel(),this.list[this.lookIndex].effecttype=="fk"&&(this.list[this.lookIndex].fkData=[r],this.list[this.lookIndex].val=r.id),this.list[this.lookIndex].effecttype=="about"&&(this.list[this.lookIndex].fkData=[r.data],this.list[this.lookIndex].val=r.data.id)},handleLookupCancel(){this.lookupShow=!1},selColumn(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=this.loadData.filter(o=>o.id==r.id)[0],s=this.rulesList.filter(o=>o.remark.split(",").includes(r.effecttype));a.fieldformat&&(this.list[t].fieldformat=this.fieldFormat.filter(o=>o.code==a.fieldformat)[0].name),this.list[t].columnid=r.id,this.list[t].effecttype=a.effecttype,this.list[t].val="",this.list[t].ruleslist=[...s],this.list[t].rules=s.length>0?s[0].code:"",a.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkdata=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkdata=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnid)[0];return t==null?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2r=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[s.type=="else"?a("div",{staticClass:"condition-body"},[a("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute")))])])]):a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219"))+" ")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del(o)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"10"}},[l.type=="approver"?a("StageDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="circulate"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),l.type=="parallel"?a("ParallelDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{placement:"right",visible:t.visible,size:"50%","close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[a("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules"))+" ")]),a("div",{staticClass:"tips"},[t.listError?a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?a("div",{style:t.styleMode},[a("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2r=[],__component__$2r=normalizeComponent(_sfc_main$2r,_sfc_render$2r,_sfc_staticRenderFns$2r,!1,null,"dc9c3419",null,null);const ConditionDesigner=__component__$2r.exports,index=Object.freeze(Object.defineProperty({__proto__:null,default:ConditionDesigner},Symbol.toStringTag,{value:"Module"})),main_vue_vue_type_style_index_0_scoped_dc664785_lang="",_sfc_main$2q={name:"GdApprovalFlow",props:{value:{type:Array,default:()=>[]},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100},startCategory:{type:String,default:""}},data(){return{visible:!1,list:[],loadData:[],codeGenId:"",delTransKeyList:[],addTransKeyList:[]}},computed:{settingsData(){return this.list[0]?this.list[0]:{}},style(){let r=this.scaleVal/100;return`transform-origin: top;transform:scale(${r},${r});`},table(){return this.tableLists.filter(r=>r.id===this.codeGenId)[0]},...mapGetters(["screenHeight","tableLists"])},components:{StartDesigner,ConnectDesigner,EndDesigner,StepsDesigner,ConditionDesigner,StageDesigner,ParallelDesigner},methods:{init(r){this.delTransKeyList=[],this.addTransKeyList=[],this.codeGenId=r[0].data.tableId,this.list=[...r]},addType(r,t){let a=nodeData(r),s=uuid$1();a=Object.assign(a,{pid:0,id:s}),(a.type=="condition"||a.type=="parallel")&&a.list.map(o=>(o=Object.assign(o,{pid:a.id,id:uuid$1()}),o)),this.list.splice(t+1,0,a)},async delItem(r){let t=this.list.filter((o,l)=>l!=r);this.list=[...t];let a=await this.hasItem([data]).filter(o=>o.transkey),s=[];a.forEach(o=>{s.push(o.transkey)}),s.length!=0&&(this.delTransKeyList=this.delTransKeyList.concat(s))},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>((o.type=="condition"||o.type=="parallel")&&o.list.forEach(d=>{d.list=a(d.list)}),(o.type=="circulate"||o.type=="approver")&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},deltransKey(r){this.delTransKeyList=this.delTransKeyList.concat(r)},addTransKey(r){this.addTransKeyList=this.addTransKeyList.concat([r])}}};var _sfc_render$2q=function r(){var t=this,a=t._self._c;return a("div",[a("div",{staticClass:"flowsdesigner",style:t.style},[a("div",{staticClass:"flowsdesigners"},[a("div",{staticClass:"flowdesign"},[t._l(t.list,function(s,o){return[s.type=="start"?a("StartDesigner",{attrs:{record:s,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,startCategory:t.startCategory},on:{addType:t.addType}}):t._e(),s.type=="approver"?a("StageDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="circulate"?a("StepsDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="condition"?a("ConditionDesigner",{attrs:{loadData:t.loadData,record:s,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="parallel"?a("ParallelDesigner",{attrs:{loadData:t.loadData,record:s,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="end"?a("EndDesigner"):t._e()]})],2)])])])},_sfc_staticRenderFns$2q=[],__component__$2q=normalizeComponent(_sfc_main$2q,_sfc_render$2q,_sfc_staticRenderFns$2q,!1,null,"dc664785",null,null);const GDpackage$b=__component__$2q.exports;GDpackage$b.install=function(r){r.component(GDpackage$b.name,GDpackage$b)},FlowsFilter.install=function(r){r.component(FlowsFilter.name,FlowsFilter)};const mixins$j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.table.businessName",prop:"busName",label:"\u4E1A\u52A1\u540D",width:"240",type:"slot",slotType:"busName",align:"left",fixed:!0,renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.table.tableName",prop:"tablename",label:"\u8868\u540D\u79F0",width:"240",align:"left",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.table.virtualTable",prop:"isvirtualtable",label:"\u865A\u62DF\u8868",width:"140",type:"slot",slotType:"isvirtualtable",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictTypeCode:"yes_or_no"})},{transKey:"gd.table.isLocked",prop:"isLocked",label:"\u662F\u5426\u9501\u5B9A",width:"140",type:"slot",slotType:"isLocked",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u9501\u5B9A",code:1,transKey:"table.locked",prefix:"gd"},{name:"\u672A\u9501\u5B9A",code:0,transKey:"table.unlocked",prefix:"gd"}]})},{transKey:"gd.table.allowNewField",prop:"allowNewField",label:"\u5B57\u6BB5\u65B0\u589E",width:"140",type:"slot",slotType:"allowNewField",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u53EF\u65B0\u589E",code:1,transKey:"table.addedNewField",prefix:"gd"},{name:"\u4E0D\u53EF\u65B0\u589E",code:0,transKey:"table.notAddedNewField",prefix:"gd"}]})},{transKey:"gd.table.audit",prop:"isAudit",label:"\u542F\u7528\u5BA1\u8BA1",width:"140",type:"slot",slotType:"isAudit",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.plugIn",prop:"isPlugIn",label:"\u542F\u7528\u63D2\u4EF6",width:"140",type:"slot",slotType:"isPlugIn",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.proxy",prop:"isAgent",label:"\u542F\u7528\u4EE3\u7406",width:"140",type:"slot",slotType:"isAgent",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.share",prop:"isTeam",label:"\u542F\u7528\u5171\u4EAB",width:"140",type:"slot",slotType:"isTeam",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.approval",prop:"isApproval",label:"\u542F\u7528\u5BA1\u6279",width:"140",type:"slot",slotType:"isApproval",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.mslaveSubmit",prop:"isChildAgent",label:"\u4E3B\u4ECE\u63D0\u4EA4",width:"140",type:"slot",slotType:"isChildAgent",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u662F",code:1,transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:0,transKey:"placeholder.no",prefix:"gd"}]})},{transKey:"gd.org.authorName",prop:"authorname",width:"200",label:"\u4F5C\u8005\u59D3\u540D",align:"left"}],formColumns:[{transKey:"gd.table.tableName",effectType:"input",prop:"tablename",label:"\u8868\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{pattern:/^(?![0-9_])\w+$/,message:"\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934\u4E14\u5934\u5C3E\u6216\u4E2D\u95F4\u4E0D\u80FD\u6709\u7A7A\u683C\uFF01",transKey:"gd.table.tableNameRules"}]},{transKey:"gd.table.tableDescription",prop:"busname",effectType:"input",label:"\u8868\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,type:"slot",slotType:"busname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.table.virtualTable",prop:"isvirtualtable",effectType:"switch",label:"\u865A\u62DF\u8868",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"virtualTable"},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"none"},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"divider"},{transKey:"gd.table.plugIn",prop:"isplugin",effectType:"switch",label:"\u542F\u7528\u63D2\u4EF6",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.audit",prop:"isaudit",effectType:"switch",label:"\u542F\u7528\u5BA1\u6838",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.proxy",prop:"isagent",effectType:"switch",label:"\u542F\u7528\u4EE3\u7406",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.share",prop:"isteam",effectType:"switch",label:"\u542F\u7528\u5171\u4EAB",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.approval",prop:"isapproval",effectType:"switch",label:"\u542F\u7528\u5BA1\u6279",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.allowNewField",prop:"allownewfield",effectType:"switch",label:"\u5B57\u6BB5\u65B0\u589E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.enableAdvancedLookup",prop:"isquery",effectType:"switch",label:"\u542F\u7528\u67E5\u627E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.enableReview",prop:"ischeckduplicate",effectType:"switch",label:"\u542F\u7528\u67E5\u91CD",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.startBusinessProcess",prop:"isbusinessprocess",effectType:"switch",label:"\u5F00\u542F\u4E1A\u52A1\u6D41\u7A0B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.mslaveSubmit",prop:"ischildagent",effectType:"switch",label:"\u662F\u5426\u4E3B\u4ECE\u63D0\u4EA4",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.table.teamTemplates",prop:"sys_accessteamtemplateid",effectType:"input",label:"\u8BBF\u95EE\u56E2\u961F\u6A21\u677F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.table.connectionTable",prop:"connectiontable",effectType:"input",label:"\u8FDE\u63A5\u8868",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.table.dataSource",prop:"sysdatasource",effectType:"fk",label:"\u6570\u636E\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"datasource"},{transKey:"gd.table.virtualObjectType",prop:"virtualobjecttype",effectType:"select",label:"\u865A\u62DF\u5BF9\u8C61\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],dictTypeCode:"virtualobjecttype"},{transKey:"gd.table.virtualObject",effectType:"input",prop:"virtualobject",label:"\u865A\u62DF\u5BF9\u8C61",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"divider"},{transKey:"gd.table.viewWeb",prop:"viewweb",effectType:"select",label:"\u89C6\u56FEweb\u8D44\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"viewWeb"},{transKey:"gd.table.formWeb",prop:"formweb",effectType:"select",label:"\u8868\u5355web\u8D44\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"formWeb"},{transKey:"gd.table.customPageInterface",prop:"custompageinterface",effectType:"input",label:"\u81EA\u5B9A\u4E49[Page]\u63A5\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.table.authorName",prop:"authorname",effectType:"input",label:"\u4F5C\u8005\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableDefinition:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableDefinition:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableDefinition:delete"},{displayName:"\u53D1\u5E03",functionName:"createTable",show:!0,tip:"\u786E\u8BA4\u53D1\u5E03?",transKeyTip:"gd.https.releaseContent",transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",popconfirm:!0,name:"sysTableDefinition:develop"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.table.businessName",prop:"busName",label:"\u4E1A\u52A1\u540D",effectType:"input",rules:[]},{transKey:"gd.table.tableName",prop:"tableName",label:"\u8868\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.table.isLocked",prop:"isLocked",label:"\u662F\u5426\u9501\u5B9A",effectType:"radio",dictData:[{name:"\u5DF2\u9501\u5B9A",code:1,transKey:"table.locked",prefix:"gd"},{name:"\u672A\u9501\u5B9A",code:0,transKey:"table.unlocked",prefix:"gd"}],rules:[]},{transKey:"gd.table.allowNewField",prop:"allowNewField",label:"\u5B57\u6BB5\u65B0\u589E",effectType:"radio",dictData:[{name:"\u53EF\u65B0\u589E",code:1,transKey:"table.addedNewField",prefix:"gd"},{name:"\u4E0D\u53EF\u65B0\u589E",code:0,transKey:"table.notAddedNewField",prefix:"gd"}],rules:[]},{transKey:"gd.table.audit",prop:"isAudit",label:"\u542F\u7528\u5BA1\u8BA1",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.plugIn",prop:"isPlugIn",label:"\u542F\u7528\u63D2\u4EF6",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.plugIn",prop:"isAgent",label:"\u542F\u7528\u4EE3\u7406",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.share",prop:"isTeam",label:"\u542F\u7528\u5171\u4EAB",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.approval",prop:"isApproval",label:"\u542F\u7528\u5BA1\u6279",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.mslaveSubmit",prop:"isChildAgent",label:"\u4E3B\u4ECE\u63D0\u4EA4",effectType:"radio",dictData:[{name:"\u662F",code:1,transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:0,transKey:"placeholder.no",prefix:"gd"}],rules:[]}]}}},mixins$i={data(){return{tableColumns:[{transKey:"gd.field.handle",prop:"handle",label:"\u64CD\u4F5C",width:"70",type:"slot",slotType:"handle",align:"center",fixed:"left"},{transKey:"gd.field.describe",prop:"columnComment",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"columnComment",align:"left",fixed:"left",showTooltip:!1},{transKey:"gd.flow.process.mapFields",prop:"virtualcolumn",label:"\u6620\u5C04\u5B57\u6BB5",width:"200",type:"slot",slotType:"virtualcolumn",align:"left"},{transKey:"gd.field.field",prop:"columnName",label:"\u5B57\u6BB5",width:"200",type:"slot",slotType:"columnName",align:"left"},{transKey:"gd.field.effectType",prop:"effectType",label:"\u4F5C\u7528\u7C7B\u578B",width:"200",type:"slot",slotType:"effectType",align:"left",showTooltip:!1},{transKey:"gd.field.dictionaries",prop:"dictTypeCode",label:"\u5B57\u5178",width:"210",type:"slot",slotType:"dictTypeCode",align:"left"},{transKey:"gd.field.date",prop:"fieldFormat",label:"\u65E5\u671F",width:"210",type:"slot",slotType:"fieldFormat",align:"left"},{transKey:"gd.field.about",prop:"fkEntityName",label:"\u5916\u952E/\u5173\u4E8E",width:"210",type:"slot",slotType:"fkEntityName",align:"left"},{transKey:"gd.field.precision",prop:"filedSize",label:"\u5B57\u7B26\u957F\u5EA6/\u7CBE\u5EA6",width:"140",type:"slot",slotType:"filedSize",align:"left"},{transKey:"gd.field.defaultType",prop:"defaultType",label:"\u9ED8\u8BA4\u503C\u7C7B\u578B",width:"180",type:"slot",slotType:"defaultType",align:"left"},{transKey:"gd.field.numberingRules",prop:"sysNumberRulesId",label:"\u7F16\u53F7\u89C4\u5219",width:"180",type:"slot",slotType:"sysNumberRulesId",align:"left"},{transKey:"gd.field.audit",prop:"isAudit",label:"\u5BA1\u8BA1",width:"80",type:"slot",slotType:"isAudit",align:"center"},{transKey:"gd.field.safety",prop:"isSecurity",label:"\u5B89\u5168\u6027",width:"80",type:"slot",slotType:"isSecurity",align:"center",fixed:"right"},{transKey:"gd.field.primarykey",prop:"isprimarykey",label:"\u4E3B\u952E",width:"80",type:"slot",slotType:"isprimarykey",align:"center",fixed:"right"},{transKey:"gd.field.query",prop:"queryWhether",label:"\u67E5\u8BE2",width:"80",type:"slot",slotType:"queryWhether",align:"center",fixed:"right"}],tableButtons:[{displayName:"\u8FD4\u56DE",functionName:"back",show:!0,transKey:"gd.btn.back",icon:"el-icon-arrow-left"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableField:edit"},{displayName:"\u53D1\u5E03",functionName:"createTable",show:!0,tip:"\u786E\u8BA4\u53D1\u5E03?",transKeyTip:"gd.https.releaseContent",transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",popconfirm:!0,name:"sysTableField:develop"}],formButtons:[{displayName:"\u65B0\u589E",functionName:"handleAdd",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableField:add"},{displayName:"\u4FDD\u5B58",functionName:"handleSubmit",show:!0,tip:"\u662F\u5426\u786E\u8BA4\u4FDD\u5B58?",transKeyTip:"gd.https.saveContent",transKey:"gd.btn.save",icon:"el-icon-document-checked",popconfirm:!0,name:"sysTableField:edit"}]}}},mixins$h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.view.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.view.viewName",prop:"viewname",width:"220",label:"\u89C6\u56FE\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.view.type",prop:"type",width:"160",type:"slot",slotType:"type",label:"\u7C7B\u578B",align:"left"},{transKey:"gd.view.sort",prop:"order",width:"120",label:"\u5E8F\u53F7",align:"left"},{transKey:"gd.view.default",prop:"isDefault",width:"120",type:"slot",slotType:"isDefault",label:"\u9ED8\u8BA4",align:"center"},{transKey:"gd.view.explain",prop:"explain",minWidth:"200",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableView:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableView:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableView:delete"},{displayName:"\u590D\u5236",functionName:"copyed",show:!0,transKey:"gd.btn.copy",icon:"el-icon-document-copy",name:"sysTableView:add"},{displayName:"\u8BBE\u7F6E\u6309\u94AE",functionName:"relation",show:!0,transKey:"gd.btn.setButton",icon:"el-icon-setting",name:"sysTableBtn:set"}]}}},buttonRule_vue_vue_type_style_index_0_scoped_659d1f86_lang="",_sfc_main$2p={props:{table:{type:Object,default:()=>({})},loadData:{type:Array,default:()=>[]},type:{type:[String,Number],default:1},id:{type:[String,Number],default:""}},data(){return{width:"1100px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{name:"",using:!0,explain:"",id:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},list:[],btnData:[],tableFieldList:[],tableFieldAll:[],showAdd:!0}},components:{EffectTypeIcon},watch:{list:{handler(r){this.isSatisfy()},deep:!0,immediate:!0}},computed:{height(){let r=this.fullscreen?190:340;return this.screenHeight-r},rulesList(){return this.getDictionary("table_form_rules").filter(r=>(r.sysDictType=[],!0))},...mapGetters(["screenHeight","primaryColor"])},methods:{handleSubmit(){let r=[],t=[];if(this.list.forEach((a,s)=>{r=r.concat(a.condition.list),t=t.concat(a.operation.list)}),r.length==0)return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(!this.isCheckedAll(r,1))return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(t.length==0)return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;if(!this.isCheckedAll(t,2))return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;this.confirmLoading=!0,this.$refs.ruleForm.validate(a=>{a?(this.$emit("ok",Object.assign({...this.ruleFormData},{key:this.record?"2":"1",list:[...this.list]})),this.closed()):this.confirmLoading=!1})},remainingBtn(r,t){let a=[];return r.forEach((o,l)=>{l!==t&&(a=a.concat(o.columnComment))}),this.btnData.filter(o=>!a.includes(o.name))},conditionColumn(r,t,a){const s=this.tableFieldAll.filter(l=>l.value===r[r.length-1])[0],o=this.rulesList.filter(l=>l.remark.split(",").includes(s.effectType));Object.assign(t,{effectType:s.effectType,dictTypeCode:s.dictTypeCode,val:"",rulesList:o,rules:o.length>0?o[0].code:""})},addList(){let r=[...this.list];r.length>1&&(r[r.length-1].title="ELSE IF");let t={title:"Else",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]}};r.push(t),this.list=[...r]},del(r){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,s,o)=>{if(o(),a!=="confirm")return;let l=[...t.list];l.splice(r,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},delCondition(r,t){let a=[...this.list];a[r].condition.list.splice(t,1),a[r].condition.list.length>0&&(a[r].condition.list[0].type="0"),a[r].condition.list.length===0&&r!=a.length-1&&(a[r].operation.list=[]),this.list=[...a]},delOperation(r,t){let a=[...this.list];a[r].operation.list=[],this.list=[...a]},addCondition(r){let t=this.list[r].condition.list.length,s={type:t==0?"0":t>1?this.list[r].condition.list[t-1].type:"1",columnComment:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"select",fieldFormat:null,dictTypeCode:null,fkData:[],id:uuid$1(12)};this.list[r].condition.list.push(s),this.list[r].operation.list.length===0&&(this.addOperation(r,"1"),this.addOperation(r,"2"))},addOperation(r,t){let a={rules:"4",columnComment:[],val:t,type:1,effectType:"select",fkData:[],id:uuid$1(),fieldFormat:null};this.list[r].operation.list.push(a)},addOperationMore(r){this.list[r].operation.list.length===0&&(this.addOperation(r,"1"),this.addOperation(r,"2"))},getBtnList(){this.confirmLoading=!0,sysButtonList({type:this.type,SysCodeGenId:this.table.id}).then(r=>{r.code===200&&(this.btnData=r.data.filter(t=>this.type===1&&t.sysviewid==this.id?!0:this.type===2&&t.sysformidbyset==this.id)),this.confirmLoading=!1})},init(r){const t=JSON.parse(JSON.stringify(r));this.record=t,this.visible=!0,this.getBtnList(),this.getTableField(),this.ruleFormData={name:r?r.name:"",using:r?r.using:!0,explain:r?r.explain:"",id:r?r.id:uuid$1(12)},r?this.list=[...t.list]:this.list=[{title:"IF",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:uuid$1(12)}],this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})},openItem(r,t){if(r==1){this.list[t].open=!this.list[t].open;return}if(r==2){this.list[t].condition.open=!this.list[t].condition.open;return}if(r==3){this.list[t].operation.open=!this.list[t].operation.open;return}},getTableField(){let r=[],t=[];this.loadData.filter(s=>s.dicttypecode?!0:s.children&&s.children.length>0&&this.type==1?(s.children=s.children.filter(o=>o.dicttypecode),!0):!1).forEach(s=>{let o={value:s.columnname,label:this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),dictTypeCode:s.dicttypecode,transKey:s.transkey,id:s.id,fkEntityName:s.fkentityname,effectType:s.effecttype,fieldFormat:s.fieldformat,hasChildren:this.type==1,columnname:s.columnname};if(t.push(o),s.children&&s.children.length>0&&this.type==1){let l=[];s.children.forEach(d=>{const u={value:`${d.columnname}${s.fkentityname}${s.columnname}`,label:this.$i18nt(`Dynamics.${d.transkey}`,d.columncomment),columnname:s.columnname,dictTypeCode:d.dicttypecode,transKey:d.transkey,id:d.id,fkEntityName:d.fkentityname,effectType:d.effecttype,fieldFormat:s.fieldformat,hasChildren:!1};l.push(u),t.push(u)}),Object.assign(o,{children:l})}r.push(o)}),this.tableFieldList=r,this.tableFieldAll=t},isSatisfy(){if(this.list.length==0)return;let r=[...this.list],t=r[r.length-1];t.condition.list.length>0?this.showAdd=!this.isChecked(t.condition.list):this.showAdd=!1},isChecked(r){return r.every((t,a,s)=>{let o=t.rules==="5"||t.rules==="6"?t.columnComment:t.val;return!(t.columnComment!==void 0&&o)})},isCheckedAll(r,t){return r.every((a,s,o)=>{let l="";return t===1?l=a.rules==="5"||a.rules==="6"?a.columnComment:a.val:l=a.rules==="7"?a.columnComment:a.val,(t===1?a.columnComment!==void 0:!0)&&l!==""&&l!==void 0})},closed(){this.confirmLoading=!1,this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionaryd(r){let t=r.rules==="3"?"table_form_essential":r.rules==="4"?"table_form_so":"table_form_locking";return this.getDictionary(t)},getDictionary(r){return this.$options.filters.dictData(r)},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2p=function r(){var t=this,a=t._self._c;return a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[a("template",{slot:"title"},[a("gd-modal-title",{attrs:{title:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading},on:{changeEvent:t.doEvent}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[a("div",{staticClass:"view-config"},[a("div",{staticClass:"config-item"},[a("div",{staticClass:"rules"},[t._l(t.list,function(s,o){return a("div",{key:o,staticClass:"rules-if"},[a("div",{staticClass:"title"},[a("div",{staticClass:"l",on:{click:function(l){return t.openItem(1,o)}}},[a("i",{staticClass:"if-icon",class:s.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(s.title)+" ")]),o!=0?a("div",{staticClass:"r"},[a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",cursor:"pointer",color:"#ff4d4f"},on:{click:function(l){return t.del(o)}}})]):t._e()]),s.open?a("div",{staticClass:"rules-ifs"},[a("div",{staticClass:"condition"},[a("div",{staticClass:"title",on:{click:function(l){return t.openItem(2,o)}}},[a("i",{staticClass:"if-icon",class:s.condition.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.if","\u5982\u679C"))+" ")]),s.condition&&s.condition.open?a("div",{staticClass:"detail"},[t._l(s.condition.list,function(l,d){return a("div",{staticClass:"lists"},[a("div",{staticClass:"rg"},[l.type==0?a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),value:t.$i18nt("gd.basics.if","\u5982\u679C"),disabled:""}}):a("el-select",{staticStyle:{width:"100%"},model:{value:l.type,callback:function(u){t.$set(l,"type",u)},expression:"ite.type"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.filter.and","\u548C")}}),a("el-option",{attrs:{value:"2",label:t.$i18nt("gd.filter.or","\u6216")}})],1)],1),a("div",{staticClass:"zd"},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.tableFieldList},on:{change:function(u){return t.conditionColumn(u,l)}},scopedSlots:t._u([{key:"default",fn:function({node:u,data:f}){return[a("EffectTypeIcon",{attrs:{effectType:f.effectType}}),a("span",{staticStyle:{"margin-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${f.transKey}`,f.label))+" "),f.hasChildren?t._e():a("span",[t._v("("+t._s(f.columnname)+")")])])]}}],null,!0),model:{value:l.columnComment,callback:function(u){t.$set(l,"columnComment",u)},expression:"ite.columnComment"}})],1),a("div",{staticClass:"tj"},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!(l.columnComment!==""&&l.columnComment.length>0)},model:{value:l.rules,callback:function(u){t.$set(l,"rules",u)},expression:"ite.rules"}},[t._l(l.rulesList,function(u){return[a("el-option",{attrs:{value:u.code,label:t.$i18nt(`Dynamics.${u.transkey}`,u.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${u.transkey}`,u.name))+" ")])]})],2)],1),a("div",{staticClass:"jg"},[a("el-select",{staticStyle:{width:"100%"},model:{value:l.val,callback:function(u){t.$set(l,"val",u)},expression:"ite.val"}},[t._l(t.getDictionary(l.dictTypeCode),function(u){return[a("el-option",{attrs:{value:u.code,label:t.$i18nt(`Dynamics.${u.transkey}`,u.name)}})]})],2)],1),a("div",{staticClass:"sc"},[a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(u){return t.delCondition(o,d)}}})])])}),a("div",{staticClass:"add"},[a("span",{staticClass:"active-color",on:{click:function(l){return t.addCondition(o)}}},[a("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])])],2):t._e()]),a("div",{staticClass:"operation"},[a("div",{staticClass:"title",on:{click:function(l){return t.openItem(3,o)}}},[a("i",{class:s.operation.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.handle"))+" "),o===t.list.length-1&&s.operation.list.length>0&&s.condition.list.length===0?a("div",{staticClass:"title-sc"},[a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(l){return l.stopPropagation(),t.delOperation(o)}}})]):t._e()]),s.operation&&s.operation.open?a("div",{staticClass:"list"},[t._l(s.operation.list,function(l,d){return a("div",{staticClass:"lists"},[a("div",{staticClass:"tjs"},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:""},model:{value:l.val,callback:function(u){t.$set(l,"val",u)},expression:"ite.val"}},[t._l(t.getDictionaryd(l),function(u,f){return[a("el-option",{attrs:{value:u.code,label:t.$i18nt(`Dynamics.${u.transkey}`,u.name)}})]})],2)],1),a("div",{staticClass:"jg"},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",multiple:""},model:{value:l.columnComment,callback:function(u){t.$set(l,"columnComment",u)},expression:"ite.columnComment"}},[t._l(t.remainingBtn(s.operation.list,d),function(u){return[a("el-option",{attrs:{label:t.$i18nt(`Dynamics.${u.transkey}`,u.displayname),value:u.name}})]})],2)],1),a("div",{staticClass:"sc"})])}),t.list.length>1&&o===t.list.length-1&&s.operation.list.length===0?a("div",{staticClass:"add active-color"},[a("span",{on:{click:function(l){return t.addOperationMore(o)}}},[a("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addHandle","\u6DFB\u52A0\u64CD\u4F5C"))+" ")])]):t._e()],2):t._e()])]):t._e()])}),t.showAdd?a("div",{staticClass:"rules-el"},[a("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[a("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addElse","\u6DFB\u52A0 ELSE"))+" ")])]):t._e()],2)]),a("div",{staticClass:"config-item config-items"},[a("div",{staticClass:"b"},[a("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:4},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1),a("div",{staticClass:"using-flex"},[a("div",{staticClass:"using-flex-title"},[t._v(" "+t._s(t.$i18nt("gd.msg.temPlate.isEnabled","\u662F\u5426\u542F\u7528"))+" ")]),a("el-switch",{attrs:{"active-color":t.primaryColor},model:{value:t.ruleFormData.using,callback:function(s){t.$set(t.ruleFormData,"using",s)},expression:"ruleFormData.using"}})],1)],1)],1)])])])],2)},_sfc_staticRenderFns$2p=[],__component__$2p=normalizeComponent(_sfc_main$2p,_sfc_render$2p,_sfc_staticRenderFns$2p,!1,null,"659d1f86",null,null);const ButtonRule=__component__$2p.exports,viewTree_vue_vue_type_style_index_0_scoped_f5799332_lang="",disableList$1=[{code:1,name:"\u662F",transkey:"gd.state.yes"},{code:0,name:"\u5426",transkey:"gd.state.no"}],_sfc_main$2o={props:{table:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],labelTitle:"\u6761\u4EF6",confirmLoading:!1,visible:!1,width:"700px",fullscreen:!1,fetching:!1,spinning:!1,ruleFormData:{treeId:"",sysViewId:"",detailId:"",isDisable:0,ifSet:"",rulesValue:"1",operators:"1",conditional:"",parentId:"",parentPid:"",relevanceId:"",childrenId:""},rules:{treeId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],sysViewId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],detailId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],parentPid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],parentId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],relevanceId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],childrenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}]},loadData:[],viewList:[],detailList:[],disableList:disableList$1,ifSetList:[],rulesList:[],cascadeList:[],parentPidList:[],conditionList:[],parentList:[],relevanceList:[],childrenList:[],conditionalList:[],dictData:[],fildFk:null,selData:null}},computed:{styles(){return`color:${this.primaryColor}`},...mapGetters(["labelPosition","formMode","tableLists","primaryColor"])},created(){this.dictData=this.$options.filters.dictData("table_lookup_rules"),this.conditionList=this.dictData.filter(r=>r.code==1),this.rulesList=this.dictData.filter(r=>r.code<3)},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(r){this.visible=!0,this.selData=r,this.getList(),Object.keys(r).length!=0&&this.listData()},listData(r){this.ruleFormData.treeId=r?"":this.selData.treeId,this.loadData=r?"":this.selData.loadData,this.ruleFormData.sysViewId=r?"":this.selData.sysViewId,this.viewList=r?[]:this.selData.viewList,this.ruleFormData.detailId=r?"":this.selData.detailId,this.detailList=r?[]:this.selData.detailList,this.ruleFormData.parentId=r?"":this.selData.parentId,this.ruleFormData.parentPid=r?"":this.selData.parentPid,this.parentList=r?[]:this.selData.parentList,this.parentPidList=r?[]:this.selData.parentPidList,this.ruleFormData.relevanceId=r?"":this.selData.relevanceId,this.relevanceList=r?[]:this.selData.relevanceList,this.ruleFormData.childrenId=r?"":this.selData.childrenId,this.childrenList=r?[]:this.selData.childrenList,this.ruleFormData.isDisable=r?0:this.selData.isDisable,this.ruleFormData.ifSet=r?"":this.selData.ifSet,this.ifSetList=r?[]:this.selData.ifSetList,this.ruleFormData.conditional=r?"":this.selData.conditional,this.conditionalList=r?[]:this.selData.conditionalList,this.ruleFormData.rulesValue=r?"":this.selData.rulesValue,this.rulesList=r?[]:this.selData.rulesList,this.cascadeList=r?[]:this.selData.cascadeList,this.ruleFormData.treeId!=""&&(this.getTable(),this.getDetail(this.ruleFormData.sysViewId))},getList(){return this.spinning=!0,baseReference$1({tableId:this.table.id}).then(r=>{if(r.success){let t=r.data.filter(a=>a.item7=="parental");this.loadData=[...t],this.spinning=!1}else this.$message.error(r.message)})},getView(r){let t=this.tableLists.filter(a=>a.tableName==r)[0];sysViewList$1({SysCodeGenId:t.id}).then(a=>{a.success?this.viewList=a.data:this.$message.error(a.message)})},getTable(){onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(r=>{r.success?this.relevanceList=r.data:this.$message.error(r.message)})},getDetail(r){return sysViewDetails({id:r}).then(t=>{if(t.success){let a=[{fieldId:0,name:"id",joinFielName:"id",joinFieldId:"0"}],s=[],o=[],l=[],u=t.data.sysviewfields.filter(f=>f.field.columnname.toLowerCase()=="id")[0]==null?a.concat(t.data.sysviewfields):t.data.sysviewfields;this.parentList=u,this.parentPidList=u,this.childrenList=u,this.detailList=t.data.sysviewfields,t.data.sysviewfields.forEach(f=>{o.push({joinfieldid:f.joinfieldid}),s.push(f.field)}),l=s,l.map((f,p)=>{f.joinfieldid=o[p].joinfieldid}),this.ifSetList=l}else this.$message.error(t.message)})},conditionColumn(r){this.getView(r.item2),this.getTable(),this.ruleFormData.sysViewId="",this.ruleFormData.parentId="",this.ruleFormData.parentPid="",this.ruleFormData.childrenId="",this.ruleFormData.detailId="",this.ruleFormData.relevanceId="",this.ruleFormData.ifSet="",this.ruleFormData.rulesValue="",this.ruleFormData.conditional=""},viewClick(r){this.ruleFormData.sysViewId=r,this.ruleFormData.parentId="",this.ruleFormData.parentPid="",this.ruleFormData.childrenId="",this.ruleFormData.detailId="",this.ruleFormData.ifSet="",this.ruleFormData.rulesValue="",this.ruleFormData.conditional="",this.getDetail(r)},deatilClick(r){this.ruleFormData.detailId=r},ifClick(r){console.log(r),this.ruleFormData.conditional="",this.cascadeList=[r],this.rulesList=this.dictData.filter(t=>t.code<3),r.effecttype=="fk"||r.effecttype=="user"?(this.fildFk=r,this.searchData("")):this.conditionalList=[]},isSet(r){console.log(r,"Ee"),this.ruleFormData.rulesValue=r},showTime(r){return r.fieldFormat.length>10},inputRadio(r){this.rulesList=this.dictData.filter(t=>t.code<3),console.log(this.ruleFormData.ifSet)},searchData(r){this.fetching=!0,baseFkList({name:r,fkEntityName:this.fildFk.fkEntityName}).then(t=>{this.conditionalList=t.success?[...t.data]:[],this.fetching=!1})},handleSubmit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.viewList.map(h=>({id:h.id,name:h.name})),a=this.detailList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),s=this.parentList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),o=this.parentPidList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),l=this.relevanceList.map(h=>({columnName:h.columnname,columnComment:h.columncomment})),d=this.childrenList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),u;this.ruleFormData.isDisable==1?u=this.ifSetList.map(h=>({id:h.id,joinFieldId:h.joinfieldid,name:h.name,columnName:h.columnname,columnComment:h.columncomment,effectType:h.effecttype,dictTypeCode:h.dicttypecode})):u=[];let f=this.ruleFormData.isDisable==1?this.conditionalList.map(h=>({id:h.id,name:h.name})):[],p={treeId:this.ruleFormData.treeId,loadData:this.loadData.filter(h=>h.item2+"&"+h.item4==this.ruleFormData.treeId),sysViewId:this.ruleFormData.sysViewId,viewList:t.filter(h=>h.id==this.ruleFormData.sysViewId),detailId:this.ruleFormData.detailId,detailList:a.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.detailId),parentId:this.ruleFormData.parentId,parentPid:this.ruleFormData.parentPid,parentList:s.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.parentId),parentPidList:o.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.parentPid),relevanceId:this.ruleFormData.relevanceId,relevanceList:l.filter(h=>h.columnname==this.ruleFormData.relevanceId),childrenId:this.ruleFormData.childrenId,childrenList:d.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.childrenId),isDisable:this.ruleFormData.isDisable,ifSet:this.ruleFormData.isDisable==1?this.ruleFormData.ifSet:"",ifSetList:this.ruleFormData.isDisable==1?u.filter(h=>h.id+"&"+h.joinfieldid==this.ruleFormData.ifSet):[],conditional:this.ruleFormData.isDisable==1?this.ruleFormData.conditional:"",conditionalList:this.ruleFormData.isDisable==1?f.filter(h=>h.id==this.ruleFormData.conditional):[],rulesValue:this.ruleFormData.rulesValue,rulesList:this.ruleFormData.isDisable==1?this.rulesList.filter(h=>h.code==this.ruleFormData.rulesValue):[],cascadeList:this.cascadeList};console.log(p,"str"),this.$emit("ok",p),this.closed()}})},closed(){this.$refs.ruleForm.resetFields(),this.visible=!1},getDictionary(r){return r.columncomment==null?[]:r.dicttypecode==null?[]:this.$options.filters.dictData(r.dicttypecode)},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2o=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.view.configurationSwitch","\u89C6\u56FE\u6811\u8BBE\u7F6E")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.buttons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.toggleFullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"config_viewtree"},[a("el-form",{ref:"ruleForm",attrs:{model:t.ruleFormData,"label-width":"100px","label-position":"top",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.dataOrigin","\u89C6\u56FE\u6811\u672C\u8868\u6765\u6E90\u5B57\u6BB5"),prop:"treeId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.treeId,callback:function(s){t.$set(t.ruleFormData,"treeId",s)},expression:"ruleFormData.treeId"}},t._l(t.loadData,function(s){return a("el-option",{key:s.item2+"&"+s.item4,attrs:{value:s.item2+"&"+s.item4,label:t.$i18nt(`Dynamics.${s.transkey}`,s.item6)},nativeOn:{click:function(o){return t.conditionColumn(s)}}},[t._v(" "+t._s(s.item5)+" "),a("span",{style:t.styles},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.item6))+" ")]),t._v(" "+t._s(s.item2)+" ")])}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.view","\u89C6\u56FE\u6811\u6765\u6E90\u89C6\u56FE"),prop:"sysViewId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.view")},on:{change:t.viewClick},model:{value:t.ruleFormData.sysViewId,callback:function(s){t.$set(t.ruleFormData,"sysViewId",s)},expression:"ruleFormData.sysViewId"}},t._l(t.viewList,function(s){return a("el-option",{key:s.id,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.displayField","\u89C6\u56FE\u6811\u663E\u793A\u5B57\u6BB5"),prop:"detailId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field","\u5B57\u6BB5")},on:{change:t.deatilClick},model:{value:t.ruleFormData.detailId,callback:function(s){t.$set(t.ruleFormData,"detailId",s)},expression:"ruleFormData.detailId"}},t._l(t.detailList,function(s,o){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])])}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.disableMode","\u5F00\u542F\u7981\u7528\u6A21\u5F0F"),prop:"isDisable"}},[a("el-radio-group",{on:{input:t.inputRadio},model:{value:t.ruleFormData.isDisable,callback:function(s){t.$set(t.ruleFormData,"isDisable",s)},expression:"ruleFormData.isDisable"}},t._l(t.disableList,function(s,o){return a("el-radio",{key:o,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1)],1)],1),t.ruleFormData.isDisable==1?a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.ifSet","\u8BBE\u7F6E\u6761\u4EF6"),prop:"ifSet"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.ifSet,callback:function(s){t.$set(t.ruleFormData,"ifSet",s)},expression:"ruleFormData.ifSet"}},t._l(t.ifSetList,function(s){return a("el-option",{key:s.id+"&"+s.joinfieldid,attrs:{value:s.id+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)},nativeOn:{click:function(o){return t.ifClick(s)}}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.form.value1","\u6761\u4EF6"),prop:"rulesValue"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.isSet},model:{value:t.ruleFormData.rulesValue,callback:function(s){t.$set(t.ruleFormData,"rulesValue",s)},expression:"ruleFormData.rulesValue"}},t._l(t.rulesList,function(s){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t._l(t.cascadeList,function(s,o){return t.ruleFormData.ifSet!=""&&t.ruleFormData.ifSet!=null?a("el-col",{key:o,attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.form.value","\u503C"),prop:"conditional"}},[s.effecttype=="input"||s.effecttype=="textarea"||s.effecttype=="double"||s.effecttype=="currency"?a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}}):s.effecttype=="select"||s.effecttype=="radio"||s.effecttype=="checkbox"||s.effecttype=="switch"?a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}},t._l(t.getDictionary(s),function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}})}),1):s.effecttype=="datepicker"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(s),type:t.showTime?"datetime":"date","value-format":s.fieldformat,format:s.fieldformat},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}}):s.effecttype=="fk"||s.effecttype=="about"||s.effecttype=="user"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.fetching,clearable:"",remote:"","reserve-keyword":"",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD","remote-method":t.searchData},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}},t._l(t.conditionalList,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:l.name}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.name))+" ")])])}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(l){return t.lookup(t.ind,s.value)}}})],1):s.effecttype=="participants"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"remote-method":t.searchData,loading:t.fetching,clearable:"",filterable:"",remote:"","collapse-tags":"","reserve-keyword":""},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}},t._l(t.conditionalList,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:l.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(l){return t.lookup(o,s.value)}}})],1):t._e()],1)],1):t._e()})],2):t._e(),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.parentData","\u89C6\u56FE\u6811\u7236\u7EA7ID"),prop:"parentPid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.parentPid,callback:function(s){t.$set(t.ruleFormData,"parentPid",s)},expression:"ruleFormData.parentPid"}},t._l(t.parentPidList,function(s){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.labelTitle,prop:"operators"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:t.ruleFormData.operators,callback:function(s){t.$set(t.ruleFormData,"operators",s)},expression:"ruleFormData.operators"}},t._l(t.conditionList,function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.childrenData","\u89C6\u56FE\u6811\u7236\u7EA7\u5173\u7CFB\u5B57\u6BB5"),prop:"parentId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.parentId,callback:function(s){t.$set(t.ruleFormData,"parentId",s)},expression:"ruleFormData.parentId"}},t._l(t.parentList,function(s,o){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.association","\u89C6\u56FE\u6811\u5173\u7CFB\u672C\u8868\u5B57\u6BB5"),prop:"relevanceId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.relevanceId,callback:function(s){t.$set(t.ruleFormData,"relevanceId",s)},expression:"ruleFormData.relevanceId"}},t._l(t.relevanceList,function(s,o){return a("el-option",{key:s.columnname,attrs:{value:s.columnname,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" "+t._s(s.effecttype)+" ")])}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.labelTitle,prop:"operators"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:t.ruleFormData.operators,callback:function(s){t.$set(t.ruleFormData,"operators",s)},expression:"ruleFormData.operators"}},t._l(t.conditionList,function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.assChid","\u89C6\u56FE\u6811ID"),prop:"childrenId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.childrenId,callback:function(s){t.$set(t.ruleFormData,"childrenId",s)},expression:"ruleFormData.childrenId"}},t._l(t.childrenList,function(s,o){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1)],1)],1)],2)],1)},_sfc_staticRenderFns$2o=[],__component__$2o=normalizeComponent(_sfc_main$2o,_sfc_render$2o,_sfc_staticRenderFns$2o,!1,null,"f5799332",null,null);const ViewTree=__component__$2o.exports,edit_vue_vue_type_style_index_0_scoped_eb12b7c2_lang="",defaultList=[{code:1,name:"\u662F",transKey:"gd.state.yes"},{code:0,name:"\u5426",transKey:"gd.state.no"}],defaultSortList=[{code:"asc",name:"\u5347\u5E8F",transKey:"gd.view.asc"},{code:"desc",name:"\u964D\u5E8F",transKey:"gd.view.desc"}],_sfc_main$2n={props:{table:{type:Object,default:()=>({})}},data(){return{width:"1200px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{transKey:"",id:"",num:0,name:"",type:"1",explain:"",viewName:"",isDefault:0,isViewTree:0,order:100,sortOneField:"",sortOneOrder:"asc",sortTwoField:"",sortTwoOrder:"asc"},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],viewName:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"},{pattern:/^[a-zA-Z]([a-zA-Z0-9]+)?$/,message:this.$i18nt("gd.view.viewNameTip","\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")}],type:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],isDefault:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],order:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},isViewType:null,viewTree:{},defaultList,defaultSortList,list:[],tableFieldList:[],rulesList:[],queryList:[],filterList:{},buttonRule:[],lodaData:{}}},computed:{title(){return this.record?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E")},disabled(){return!!this.record},sortField(){return this.tableFieldList.filter(r=>r.effecttype=="about"&&r.columnname==(r.relations+"_abouttable").toLowerCase()?!1:!(r.effecttype=="user"||r.effecttype=="fk"||r.effecttype=="about"||r.effecttype=="participants"))},plugFilters(){return{referencefiled:"",referencetable:this.table.tablename,checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:this.table.tablename,type:"1",value:"",values:[],list:[]}},...mapGetters(["primaryColor"])},components:{ViewList,ViewQuery,FlowsFilter,ButtonRule,ViewTree,EffectTypeIcon},methods:{okFilter(r){this.filterList={...r}},init(){this.confirmLoading=!0,Promise.all([this.getTableList(),this.getDetail()]).then(r=>{let t=[],a=[];this.record&&this.tableFieldList.forEach(s=>{if(!this.isChecked(s.id,this.lodaData.sysviewfields)){let o=this.lodaData.sysviewfields.filter(l=>l.fieldid==s.id)[0];if(o&&o.type==1){let l=this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),d=this.$i18nt(`Dynamics.${o.transkey}`,o.name),u=o.align?o.align.split("&"):[];const f=Object.assign({...s},{order:o.order,num:o.width,aliastranskey:o.transkey?o.transkey:null,alias:l===d?"":d,orderconfig:o.orderconfig==1,gatherconfig:o.gatherconfig==1,columnname:o.field.columnname,codegenid:o.field.codegenid,maxtagcount:o.maxtagcount?o.maxtagcount:2,fkrelations:`${l} -- ${s.columnname}`,transkey:s.transkey,operate:"edit",aliasold:d,align:u[0]?u[0]:"left",visible:u[1]?u[1]==1:!0,displaymode:u[2]?u[2]:"none",displayprefix:u[3]?u[3]:"none",preview:u[4]?u[4]==="true":!0,download:u[5]?u[5]==="true":!0});t.push(f)}}if(s.children&&s.children.length>0&&s.children.forEach(o=>{if(!this.isChecked(o.id+"-"+s.id,this.lodaData.sysviewfields)){let l=this.lodaData.sysviewfields.filter(d=>(d.type==2?d.joinfieldid+"-"+d.fieldid:d.fieldid)==o.id+"-"+s.id)[0];if(l){let d=this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),u=this.$i18nt(`Dynamics.${o.transkey}`,o.columncomment),f=this.$i18nt(`Dynamics.${l.transkey}`,l.name),p=l.align?l.align.split("&"):[];const h=Object.assign({...o},{order:l.order,num:l.width,aliastranskey:l.transkey?l.transkey:null,alias:u===f?"":f,id:o.id+"-"+s.id,orderconfig:l.orderconfig==1,gatherconfig:l.gatherconfig==1,fkrelations:`${d} -- ${s.columnname}`,maxtagcount:l.maxtagcount?l.maxtagcount:2,transkey:o.transkey,operate:"edit",aliasold:f,align:p[0]?p[0]:"left",visible:p[1]?p[1]==1:!0,displaymode:p[2]?p[2]:"none",displayprefix:p[3]?p[3]:"none",preview:p[4]?p[4]==="true":!0,download:p[5]?p[5]==="true":!0});t.push(h)}}}),!this.isChecked(s.id,this.lodaData.sysviewqueries)){let o=this.lodaData.sysviewqueries.filter(d=>d.fieldid==s.id)[0];const l=Object.assign({...s},{order:o.order,displaystyle:o.displaystyle!==void 0?o.displaystyle:0,children:null,options:Object.assign({...o.options},{fieldFiltering:!0,columnName:s.columnname,effectType:s.effecttype})});a.push(l)}}),t=sort$3(t),a=sort$3(a),this.list=[...t],this.queryList=[...a],this.$refs.viewList.init(this.list),this.$refs.viewQuery.init(this.queryList),this.confirmLoading=!1})},getDetail(){return this.record?sysViewDetails({id:this.record}).then(r=>{if(r.code===200){this.rulesList=r.data.ruleconfig?JSON.parse(r.data.ruleconfig):[];let t=r.data.sysviewqueries?r.data.sysviewqueries:[];t.forEach((s,o)=>{s.options?t[o].options=typeof s.options=="string"?JSON.parse(s.options):s.options:t[o].options={effectType:"",displayStyle:0,defaultValue:"",defaultValueList:[],filter:[],hidden:!1,required:!1,defaultInterval:[{type:"interval",value:""},{type:"equal",value:""}]}}),this.lodaData=Object.assign(r.data,{sysviewqueries:[...t]}),this.filterList=r.data.filterconfig?JSON.parse(r.data.filterconfig):JSON.parse(JSON.stringify(this.plugFilters));const a=r.data.defaultsort?JSON.parse(r.data.defaultsort):[];this.buttonRule=r.data.buttonrule?JSON.parse(r.data.buttonrule):[],this.viewTree=r.data.viewtree?JSON.parse(r.data.viewtree):{},this.isViewType=r.data.type,this.ruleFormData={num:r.data.frozencolumn,transKey:r.data.transkey,id:r.data.id,name:r.data.name,type:String(r.data.type),explain:r.data.explain,viewName:r.data.viewname,isDefault:r.data.isdefault?r.data.isdefault:0,isViewTree:r.data.isviewtree,order:r.data.order,sortOneField:a[0]?a[0].sortField:"",sortOneOrder:a[0]?a[0].sortOrder:"asc",sortTwoField:a[1]?a[1].sortField:"",sortTwoOrder:a[1]?a[1].sortOrder:"asc"}}return r}):new Promise(r=>{r()})},getTableList(){return onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(r=>(r.code===200&&(this.tableFieldList=r.data),r))},selFilter(){this.$refs.flowsFilter.init(this.filterList)},okSelTable(r){this.list=[...r]},saveQuery(r){this.queryList=[...r]},saveQueryRules(r){this.rulesList=[...r]},selBtnRules(r){this.$refs.viewBtnRules.init(r)},delBtnRules(r){this.buttonRule=this.buttonRule.filter(t=>t.id!==r.id)},okBtnRules(r){let t=[...this.buttonRule];r.key==="1"?t=t.concat([Object.assign(r,{key:"2"})]):t.forEach((s,o)=>{s.id===r.id&&(t[o]=Object.assign(r,{key:"2"}))}),this.buttonRule=[...t]},changeType(r){this.isViewType=r==1?1:r==2?2:null},onChange(r){this.ruleFormData.isViewTree=r},configSidebar(){this.$refs.viewTrees.open(this.viewTree)},okTree(r){this.viewTree=r},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(r){this.record=r,this.list=[],this.lodaData={},this.queryList=[],this.buttonRule=[],this.visible=!0,this.viewTree={},this.ruleFormData={num:0,name:"",type:"1",explain:"",viewName:uuid$1(8,!1),isDefault:0,isViewTree:0,order:100,sortOneField:"",sortOneOrder:"asc",sortTwoField:"",sortTwoOrder:"asc",transKey:"",id:""},this.isViewType=this.ruleFormData.type==1?1:this.ruleFormData.type==2?2:null,this.$nextTick(()=>{this.filterList=JSON.parse(JSON.stringify(this.plugFilters)),this.init()})},isChecked(r,t){return t.every((a,s,o)=>(a.type==2?a.joinfieldid+"-"+a.fieldid:a.fieldid)!=r)},isCheckedFilters(r,t){return t.every((a,s,o)=>a.id!=r)},isCheckedSysViewFilters(r,t){return t.every((a,s,o)=>a.columnid!=r)},closed(){this.fullscreen=!1,this.visible=!1},add(){let r=[],t=[],a=[];this.list.forEach((u,f)=>{let p=String(u.id).split("-"),h=`${u.align}&${u.visible?1:0}&${u.displaymode}&${u.displayprefix}&${u.preview}&${u.download}`,v={name:u.alias==""?u.columncomment:u.alias,width:u.num,order:f,type:p.length>1?2:1,fieldid:p.length>1?u.joinfieldid:p[0],jointableid:u.codegenid,joinfieldid:p[0],orderconfig:u.orderconfig?1:0,gatherconfig:u.gatherconfig?1:0,maxtagcount:u.maxtagcount,align:h};r.push(v)}),this.queryList.forEach((u,f)=>{let p={querytype:u.effecttype=="fk"?2:1,name:u.columncomment,fieldid:u.id,jointableid:u.codegenid,joinfieldid:u.id,order:f,displaystyle:u.displaystyle,options:JSON.stringify(u.options)};t.push(p)}),this.ruleFormData.sortOneField!==""&&a.push({sortField:this.ruleFormData.sortOneField,sortOrder:this.ruleFormData.sortOneOrder}),this.ruleFormData.sortTwoField!==""&&a.push({sortField:this.ruleFormData.sortTwoField,sortOrder:this.ruleFormData.sortTwoOrder});let s=this.filterList.list[0],o=0;this.filterList.list.forEach(u=>{o+=u.list.length});let l=s&&this.filterList.list.length===1&&s.referencefiled===""&&s.referencetable===""&&s.list.length>0?Object.assign(s,{columnid:0}):this.filterList,d={syscodegenid:this.table.id,name:this.ruleFormData.name,type:this.ruleFormData.type,explain:this.ruleFormData.explain,frozencolumn:this.ruleFormData.num,isdefault:this.ruleFormData.isDefault,viewname:this.ruleFormData.viewName,order:this.ruleFormData.order,sysviewfields:r,filterconfig:JSON.stringify(l),sysviewqueries:t,defaultsort:JSON.stringify(a),viewtree:this.ruleFormData.isViewTree?JSON.stringify(this.viewTree):JSON.stringify({}),isviewtree:this.ruleFormData.isViewTree?1:0,ruleconfig:JSON.stringify(this.rulesList),buttonrule:JSON.stringify(this.buttonRule)};sysViewAdd(d).then(u=>{u.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25:")+u.message),this.confirmLoading=!1})},edit(r=1){let t=[],a=[],s=[];this.list.forEach((f,p)=>{let h=String(f.id).split("-"),v=`${f.align}&${f.visible?1:0}&${f.displaymode}&${f.displayprefix}&${f.preview}&${f.download}`;if(this.isChecked(f.id,this.lodaData.sysviewfields)){let g={id:0,name:f.alias==""?f.columncomment:f.alias,width:f.num,order:p,type:h.length>1?2:1,fieldid:h.length>1?f.joinfieldid:h[0],jointableid:f.codegenid,joinfieldid:h[0],orderconfig:f.orderconfig?1:0,gatherconfig:f.gatherconfig?1:0,maxtagcount:f.maxtagcount,align:v};t.push(g)}else{let g=this.lodaData.sysviewfields.filter(y=>f.id==(y.type==1?y.fieldid:y.joinfieldid+"-"+y.fieldid))[0];g.width=f.num,g.order=p,g.name=f.alias==""?f.columncomment:f.alias,g.orderconfig=f.orderconfig?1:0,g.gatherconfig=f.gatherconfig?1:0,g.maxtagcount=f.maxtagcount?f.maxtagcount:2,g.align=v,t.push(g)}}),this.lodaData.sysviewfields.forEach(f=>{let p=f.type==1?f.fieldid:f.joinfieldid+"-"+f.fieldid;this.isCheckedFilters(p,this.list)&&(f.statecodes=0,t.push(f))}),this.queryList.forEach((f,p)=>{if(this.isChecked(f.id,this.lodaData.sysviewqueries)){let h={id:0,querytype:f.effecttype=="fk"?2:1,name:f.columncomment,fieldid:f.id,jointableid:f.codegenid,joinfieldid:f.id,order:p,displaystyle:f.displaystyle,options:JSON.stringify(f.options)};a.push(h)}else{let h=this.lodaData.sysviewqueries.filter(v=>v.fieldid==f.id)[0];h.order=p,h.displaystyle=f.displaystyle,h.options=JSON.stringify(f.options),a.push(h)}}),this.lodaData.sysviewqueries.forEach(f=>{this.isCheckedFilters(f.fieldid,this.queryList)&&(f.statecodes=0,a.push(Object.assign({...f},{options:""})))}),this.ruleFormData.sortOneField!==""&&s.push({sortField:this.ruleFormData.sortOneField,sortOrder:this.ruleFormData.sortOneOrder}),this.ruleFormData.sortTwoField!==""&&s.push({sortField:this.ruleFormData.sortTwoField,sortOrder:this.ruleFormData.sortTwoOrder});let o=this.filterList.list[0],l=0;this.filterList.list.forEach(f=>{l+=f.list.length});let d=o&&this.filterList.list.length===1&&o.referencefiled===""&&o.referencetable===""&&o.list.length>0&&l===0?Object.assign(o,{columnid:0}):this.filterList;const u=Object.assign({...this.lodaData},{name:this.ruleFormData.name,type:this.ruleFormData.type,explain:this.ruleFormData.explain,frozencolumn:this.ruleFormData.num,isdefault:this.ruleFormData.isDefault,viewname:this.ruleFormData.viewName,order:this.ruleFormData.order,sysviewfields:[...t],sysviewqueries:[...a],filterconfig:JSON.stringify(d),defaultsort:JSON.stringify(s),viewtree:this.ruleFormData.isViewTree?JSON.stringify(this.viewTree):JSON.stringify({}),isviewtree:this.ruleFormData.isViewTree?1:0,ruleconfig:JSON.stringify(this.rulesList),buttonrule:JSON.stringify(this.buttonRule)});sysViewEdit(u).then(f=>{f.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),r==1?this.closed():setTimeout(()=>{this.init()},50)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25:")+f.message),this.confirmLoading=!1})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(r=>{if(r){if({...this.ruleFormData},this.list.length===0){this.$message.error(this.$i18nt("gd.view.addColumnTip","\u8BF7\u914D\u7F6E\u663E\u793A\u5217")),this.confirmLoading=!1;return}const t=this.table.isvirtualtable===1,a=this.tableFieldList.filter(l=>l.isprimarykey===1)[0];if(t&&!a){this.$message.error(this.$i18nt("gd.view.tablePrimaryKeyTip","\u8868\u672A\u8BBE\u7F6E\u4E3B\u952E\u5B57\u6BB5")),this.confirmLoading=!1;return}const s=this.list.filter(l=>{const d=a&&a.columnname?a.columnname:"";return l.columnname===d})[0];if(t&&!s){this.$message.error(this.$i18nt("gd.view.columnPrimaryKeyTip","\u663E\u793A\u5217\u672A\u914D\u7F6E\u4E3B\u952E\u5B57\u6BB5")),this.confirmLoading=!1;return}if(this.queryList.filter(l=>l.options&&!l.options.fieldFiltering).length>0){this.$message.error("\u8BF7\u8865\u5145\u67E5\u8BE2\u6761\u4EF6\u5B57\u6BB5\u6570\u636E\uFF01"),this.confirmLoading=!1;return}if(this.ruleFormData.isViewTree==!0&&Object.keys(this.viewTree).length==0){this.$message.error(this.$i18nt("gd.view.pleaseConfig","\u8BF7\u914D\u7F6E\u89C6\u56FE\u6811")),this.confirmLoading=!1;return}this.record?this.edit():this.add()}else this.confirmLoading=!1})},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()},getDictionary(r){return this.$options.filters.dictData(r)},getsortField(r){const t=this.ruleFormData[r];return this.sortField.filter(a=>a.columnName!==t)},lookupSeled(r){this.ruleFormData.name=r.defaulttext}}};var _sfc_render$2n=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.title))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.buttons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.toggleFullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[t.visible?a("div",{staticClass:"view-config"},[a("ViewList",{ref:"viewList",attrs:{tableFieldList:t.tableFieldList,table:t.table,ruleFormData:t.ruleFormData,fullscreen:t.fullscreen,list:t.list},on:{ok:t.okSelTable}}),a("ViewQuery",{ref:"viewQuery",attrs:{tableFieldList:t.tableFieldList,table:t.table,ruleFormData:t.ruleFormData,fullscreen:t.fullscreen,rulesList:t.rulesList},on:{okRules:t.saveQueryRules,ok:t.saveQuery}}),a("div",{staticClass:"config-item config-items"},[a("div",{staticClass:"t"},[a("div",{staticClass:"tls"},[t._v(t._s(t.$i18nt("gd.view.basicInformation","\u57FA\u7840\u4FE1\u606F")))]),a("el-button",{attrs:{type:"primary"},on:{click:t.selFilter}},[t._v(" "+t._s(t.$i18nt("gd.view.filterConditions","\u8FC7\u6EE4\u6761\u4EF6"))+" ")])],1),a("div",{staticClass:"b"},[a("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"left",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.record,expression:"!record"}],attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}}),t.record&&t.ruleFormData.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{keyI18n:"transKey",recordData:t.ruleFormData,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.viewName","\u89C6\u56FE\u540D\u79F0"),prop:"viewName"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.viewName,callback:function(s){t.$set(t.ruleFormData,"viewName",s)},expression:"ruleFormData.viewName"}})],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.type","\u7C7B\u578B"),prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.changeType},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},t._l(t.getDictionary("view_type"),function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transKey}`,s.name)}})}),1)],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.default","\u662F\u5426\u9ED8\u8BA4"),prop:"isDefault"}},[a("el-radio-group",{model:{value:t.ruleFormData.isDefault,callback:function(s){t.$set(t.ruleFormData,"isDefault",s)},expression:"ruleFormData.isDefault"}},t._l(t.defaultList,function(s){return a("el-radio",{key:s.code,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.name))+" ")])}),1)],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.sort","\u6392\u5E8F"),prop:"order"}},[a("el-input-number",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"controls-position":"right",min:0,step:1},model:{value:t.ruleFormData.order,callback:function(s){t.$set(t.ruleFormData,"order",s)},expression:"ruleFormData.order"}})],1),t.isViewType==1||t.isViewType==2?a("el-form-item",{attrs:{label:t.$i18nt("gd.view.switch","\u662F\u5426\u5F00\u542F\u89C6\u56FE\u6811"),prop:"isViewTree"}},[a("div",{staticClass:"tree_config"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.primaryColor},on:{change:t.onChange},model:{value:t.ruleFormData.isViewTree,callback:function(s){t.$set(t.ruleFormData,"isViewTree",s)},expression:"ruleFormData.isViewTree"}}),t.ruleFormData.isViewTree?a("a",{on:{click:t.configSidebar}},[t._v(" "+t._s(t.$i18nt("gd.view.configuration","\u914D\u7F6E"))+" ")]):t._e()],1)]):t._e(),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:2},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1),a("el-divider"),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.view.sortBy","\u6392\u5E8F\u4F9D\u636E")}},[a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortOneField"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:""},model:{value:t.ruleFormData.sortOneField,callback:function(s){t.$set(t.ruleFormData,"sortOneField",s)},expression:"ruleFormData.sortOneField"}},t._l(t.getsortField("sortTwoField"),function(s,o){return a("el-option",{key:s.columnname,attrs:{value:s.columnname,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" "+t._s(s.columnname)+" ")])],1)}),1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortOneOrder"}},[a("el-radio-group",{model:{value:t.ruleFormData.sortOneOrder,callback:function(s){t.$set(t.ruleFormData,"sortOneOrder",s)},expression:"ruleFormData.sortOneOrder"}},t._l(t.defaultSortList,function(s){return a("el-radio",{key:s.code,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.name))+" ")])}),1)],1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.view.secondBasis","\u7B2C\u4E8C\u4F9D\u636E")}},[a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortTwoField"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:""},model:{value:t.ruleFormData.sortTwoField,callback:function(s){t.$set(t.ruleFormData,"sortTwoField",s)},expression:"ruleFormData.sortTwoField"}},t._l(t.getsortField("sortOneField"),function(s,o){return a("el-option",{key:s.columnname,attrs:{value:s.columnname,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ("+t._s(s.columnname)+") ")])],1)}),1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortTwoOrder"}},[a("el-radio-group",{model:{value:t.ruleFormData.sortTwoOrder,callback:function(s){t.$set(t.ruleFormData,"sortTwoOrder",s)},expression:"ruleFormData.sortTwoOrder"}},t._l(t.defaultSortList,function(s){return a("el-radio",{key:s.code,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.name))+" ")])}),1)],1)],1),a("el-divider"),a("el-form-item",{staticStyle:{"margin-bottom":"6px !important"},attrs:{label:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219")}},[a("div",{staticClass:"btn-config"},[a("el-button",{attrs:{type:"primary"},on:{click:function(s){return t.selBtnRules(null)}}},[t._v(" "+t._s(t.$i18nt("gd.form.addBtnRuleConfig","\u65B0\u589E\u6309\u94AE\u89C4\u5219"))+" ")])],1)]),t.buttonRule.length>0?a("div",{staticClass:"btn-config-list"},[t._l(t.buttonRule,function(s){return[a("div",{staticClass:"item flex"},[a("div",{staticClass:"sku"},[a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{"open-delay":150,effect:"dark",content:t.$i18nt(`Dynamics.${s.transKey}`,s.name),placement:"top"}},[a("div",{staticClass:"line1"},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.name))+" ")])])],1),a("i",{staticClass:"el-icon-edit active-color",on:{click:function(o){return t.selBtnRules(s)}}}),a("i",{staticClass:"el-icon-delete rdelete",on:{click:function(o){return t.delBtnRules(s)}}})])]})],2):t._e()],1)],1)])],1):t._e()])],2),t.visible?a("FlowsFilter",{ref:"flowsFilter",attrs:{type:2,table:t.table},on:{ok:t.okFilter}}):t._e(),a("ButtonRule",{ref:"viewBtnRules",attrs:{table:t.table,loadData:t.tableFieldList,id:t.record?t.record:""},on:{ok:t.okBtnRules}}),a("ViewTree",{ref:"viewTrees",attrs:{table:t.table},on:{ok:t.okTree}})],1)},_sfc_staticRenderFns$2n=[],__component__$2n=normalizeComponent(_sfc_main$2n,_sfc_render$2n,_sfc_staticRenderFns$2n,!1,null,"eb12b7c2",null,null);const editViewConfig=__component__$2n.exports,copy_vue_vue_type_style_index_0_scoped_8d56044c_lang="",_sfc_main$2m={props:{type:{type:[String,Number],default:1}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,spinning:!1,loadData:[],viewData:[],formData:[],detail:null,record:null,fullscreen:!1,width:"600px",arrTransKey:[],allTableData:[],langsAll:[],httpNumbe:0,ruleFormData:{},pattern:"/^[a-zA-Z]+$/"}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"80px"}}},...mapGetters(["tableLists"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(r){this.httpNumbe=0,this.fullscreen=!1,this.record=r,this.visible=!0,this.spinning=!0,this.type==1?this.getViewDetail():this.getFormDetail()},getViewDetail(){return sysViewDetails({id:this.record}).then(r=>(r.success?(this.detail=Object.assign(r.data,{viewname:r.data.viewname+uuid$1(2,!1,!1)}),this.spinning=!1,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData={name:this.detail.viewname,displayName:this.detail.name,type:String(this.detail.type),explain:this.detail.explain}},0)})):this.$message.error(r.message),r.data))},getFormDetail(){return sysFormDetails({id:this.record}).then(r=>(r.success?(this.detail=Object.assign(r.data,{name:r.data.name+uuid$1(2,!1,!1)}),this.spinning=!1,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData={name:this.detail.name,displayName:this.detail.displayname,type:"4",explain:this.detail.explain}},0)})):this.$message.error(r.message),r.data))},handleSubmit(){this.$refs.ruleForm.validate(r=>{r&&(this.type==1?this.addView(this.ruleFormData):(this.spinning=!0,this.confirmLoading=!0,this.addForm(this.ruleFormData)))})},addView(r){let t=[],a=[];this.detail.sysviewfields.forEach((o,l)=>{let d={name:o.name,width:o.width,order:l,type:o.type,fieldId:o.fieldid,joinTableId:o.jointableid,joinFieldId:o.joinfieldid,orderConfig:o.orderconfig,gatherConfig:o.gatherconfig,maxTagCount:o.maxtagcount,align:o.align?o.align:"left&1&none&none"};t.push(d)}),this.detail.sysviewqueries.forEach((o,l)=>{if(o.field){let d={queryType:o.querytype,name:o.field.columncomment,fieldId:o.fieldid,joinTableId:o.jointableid,joinFieldId:o.joinfieldid,order:l,displayStyle:o.displaystyle,options:o.options};a.push(d)}});let s={syscodegenid:this.detail.syscodegenid,name:r.displayName,type:r.type,explain:r.explain,frozenColumn:this.detail.frozencolumn,isDefault:0,viewName:r.name,order:this.detail.order,sysViewFields:t,filterConfig:this.detail.filterconfig,sysViewQueries:a,defaultSort:this.detail.defaultsort,viewTree:this.detail.viewtree,isViewTree:this.detail.isviewtree,ruleConfig:this.detail.ruleconfig,buttonRule:this.detail.buttonrule};this.spinning=!0,this.confirmLoading=!0,sysViewAdd(s).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.spinning=!1,this.confirmLoading=!1})},async addForm(r){let t=JSON.parse(this.detail.formconfig);t.config=Object.assign({...t.config},{name:r.name,displayName:r.displayName,type:r.type,explain:r.explain,transKey:null});const a=o=>(o=o.filter((l,d)=>(l.langs!==void 0&&delete l.langs,l.options.columnName!==void 0&&l.options.transKey&&(l.options=Object.assign(l.options,{transKey:null})),["card","approval"].includes(l.type)&&l.options.transKey&&(l.options=Object.assign(l.options,{transKey:null})),["grid","tabs","collapse"].includes(l.type)&&l.columns.forEach(u=>{u.transKey=null,u.list=a(u.list)}),(l.type==="card"||l.type==="batch")&&(l.list=a(l.list)),l.type==="table"&&l.trs.forEach(u=>{u.tds.forEach(f=>{f.list=a(f.list)})}),!0)),o);t.list=await a(t.list);let s={name:r.name,displayName:r.displayName,type:r.type,explain:r.explain,sysCodeGenId:this.detail.syscodegenid,changeName:this.detail.changename,changeWeb:this.detail.changeweb,initName:this.detail.initname,initWeb:this.detail.initweb,width:this.detail.width,formConfig:JSON.stringify(Object.assign(t,{addTransKey:[],allTransKey:[]})),businessConfig:this.detail.businessconfig};this.spinning=!0,this.confirmLoading=!0,sysFormAdd(s).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.spinning=!1,this.confirmLoading=!1})},getAllTableData(){if(this.tableLists.length>0){this.allTableData=[...this.tableLists];return}codeGenerateInformationList({busName:""}).then(r=>{r.success&&(this.allTableData=[...r.data])})},addTranslation(r){return sysTranslationAdd(r).then(t=>t)},handleCancel(){this.visible=!1,this.$refs.ruleForm.resetFields()},getDictionary(r){return this.$options.filters.dictData(r)},doEvent(r){let t=r.item.functionName;this[t]()}},created(){this.getAllTableData()}};var _sfc_render$2m=function r(){var t=this,a=t._self._c;return a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.btn.copy")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[a("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[a("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"left",model:t.ruleFormData},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.displayName"),prop:"displayName",rules:[{required:!0,message:t.$i18nt("gd.placeholder.input")}]}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:""},model:{value:t.ruleFormData.displayName,callback:function(s){t.$set(t.ruleFormData,"displayName",s)},expression:"ruleFormData.displayName"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.type==1?t.$i18nt("gd.view.viewName"):t.$i18nt("gd.form.formName"),prop:"name",rules:[{required:!0,message:t.$i18nt("gd.placeholder.input")},{pattern:/^[a-zA-Z]+$/,message:t.$i18nt("gd.view.viewNameTip")}]}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:""},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),t.type==1?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.type"),prop:"type",rules:[{required:!0,message:t.$i18nt("gd.placeholder.select")}]}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),clearable:""},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},t._l(t.getDictionary("view_type"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:s.name}})}),1)],1)],1):t._e(),t.type==2?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.form.type"),prop:"type",rules:[{required:!0,message:t.$i18nt("gd.placeholder.select")}]}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),clearable:"",disabled:""},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},t._l(t.getDictionary("table_form_type"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:s.name}})}),1)],1)],1):t._e(),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.explain")}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1)],1)],1)],1)],1)])],2)},_sfc_staticRenderFns$2m=[],__component__$2m=normalizeComponent(_sfc_main$2m,_sfc_render$2m,_sfc_staticRenderFns$2m,!1,null,"8d56044c",null,null);const copy=__component__$2m.exports,btnRelation_vue_vue_type_style_index_0_scoped_4db017d9_lang="",_sfc_main$2l={props:{codeGenId:{type:[String,Number],default:""},type:{type:[String,Number],default:"1"}},data(){return{title:"\u89C6\u56FE\u6309\u94AE\u8BBE\u7F6E",fullscreen:!1,visible:!1,width:"900px",confirmLoading:!1,spinning:!1,closeList:[],loadData:[],allBtn:[],selectedKeys:[],btnList:[],checkAll:!1,indeterminate:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],activeIndex:"0",selId:"0",changeChecked:!1}},computed:{isIndeterminate(){return this.closeList.length>0&&this.closeList.length<this.allBtn.length}},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(r){this.fullScreen=!1,this.loadData=[...r],this.title=this.type==1?this.$i18nt("gd.btnConfig.viewBtnSettings","\u89C6\u56FE\u6309\u94AE\u8BBE\u7F6E"):this.$i18nt("gd.btnConfig.formBtnSettings","\u8868\u5355\u6309\u94AE\u8BBE\u7F6E"),this.visible=!0,this.spinning=!0,Promise.all([this.getBtnList()]).then(t=>{this.loadData.forEach(a=>{let s=this.getCloseBtn(a);return a.close=[...s],a.initial=[...s],a}),this.closeList=this.loadData.length>0?[...this.loadData[0].close]:[],this.checkedOptions=[...this.closeList],this.spinning=!1})},belonging(r){let t="--",a=this.type==1?r.sysviewid:r.sysformidbyset,s=this.loadData.filter(o=>o.id==a);return s.length>0&&(t=s.length>0?this.type==1?s[0].name:s[0].displayname:""),t},getBtnList(){return sysButtonList({type:this.type,SysCodeGenId:this.codeGenId}).then(r=>{let t=[];return r.data.forEach((a,s)=>{r.data[s].belonging=this.belonging(a),t.push(a.id)}),this.btnList=r.data.filter(a=>a.parentid==null),this.allBtn=[...t],r.data})},select(r,t){this.selId!=r&&(this.selId=r,this.selectedKeys=t,this.closeList=this.loadData[parseInt(r)].close)},onCheckAllChange(r){let t=this.closeList.length===0?[...this.allBtn]:this.allBtn.length===this.closeList.length?[]:[...this.allBtn];this.closeList=[...t],this.loadData[parseInt(this.selId)].close=[...t]},handleCheckedCitiesChange(r){this.loadData[parseInt(this.selId)].close=[...r],this.closeList=[...r]},getCloseBtn(r){let t=[];return this.btnList.forEach(a=>{this.type==1&&a.sysviewid==r.id&&t.push(a.id),this.type==2&&a.sysformidbyset==r.id&&t.push(a.id)}),t},handleSubmit(){this.confirmLoading=!0,this.spinning=!0;let r=[];this.loadData.forEach(t=>{let a=this.btnFilter(t,1),s=this.btnFilter(t,0),o=a.concat(s);if(o.length>0){let l={type:this.type,componentId:t.id,btnS:o};r.push(l)}}),sysButtonSet(r).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+t.message),this.confirmLoading=!1,this.spinning=!1})},btnFilter(r,t){let a=[],s=[];return t==1?a=r.close.filter(o=>!r.initial.includes(o)):a=r.initial.filter(o=>!r.close.includes(o)),a.forEach(o=>{s.push({type:t,btnId:o})}),s},handleCancel(){this.visible=!1},doEvent(r){let t=r.item.functionName;this[t]()}}};var _sfc_render$2l=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.btn.copy")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[a("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[a("div",{staticClass:"list"},[a("div",{staticClass:"l"},[a("div",{staticClass:"title"},[t._v(" "+t._s(t.type==1?t.$i18nt("gd.btnConfig.view"):t.$i18nt("gd.btnConfig.form"))+" ")]),a("div",{staticClass:"detail"},[a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.activeIndex},on:{select:t.select}},[t._l(t.loadData,function(s,o){return[a("el-menu-item",{attrs:{index:String(o)}},[a("div",{staticClass:"line1"},[t._v(t._s(t.type==1?s.name:s.displayname))])])]})],2)],1)]),a("div",{staticClass:"r"},[a("div",{staticClass:"title more"},[a("div",{staticClass:"btn"},[a("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.onCheckAllChange},model:{value:t.changeChecked,callback:function(s){t.changeChecked=s},expression:"changeChecked"}},[t._v(" "+t._s(t.$i18nt("gd.btnConfig.btn"))+" ")])],1),a("div",{staticClass:"suo"},[t._v(" "+t._s(t.type==1?t.$i18nt("gd.btnConfig.belongingView"):t.$i18nt("gd.btnConfig.belongingForm"))+" ")]),a("div",{staticClass:"explain"},[t._v(t._s(t.$i18nt("gd.btnConfig.explain")))])]),a("div",{staticClass:"detail"},t._l(t.btnList,function(s,o){return a("div",{key:o,staticClass:"more"},[a("div",{staticClass:"btn"},[a("el-checkbox-group",{on:{change:t.handleCheckedCitiesChange},model:{value:t.closeList,callback:function(l){t.closeList=l},expression:"closeList"}},[a("el-checkbox",{attrs:{label:s.id}},[a("div",[t._v(t._s(s.displayname))])])],1)],1),a("div",{staticClass:"suo line1"},[t._v(t._s(s.belonging))]),a("div",{staticClass:"explain line1"},[t._v(t._s(s.description))])])}),0)])])])])],2)],1)},_sfc_staticRenderFns$2l=[],__component__$2l=normalizeComponent(_sfc_main$2l,_sfc_render$2l,_sfc_staticRenderFns$2l,!1,null,"4db017d9",null,null);const btnRelation=__component__$2l.exports,main_vue_vue_type_style_index_0_scoped_bac693dd_lang="",_sfc_main$2k={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[tablesFilter,mixins$h],data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},data:[],loadData:r=>this.record.id===void 0?new Promise((t,a)=>{t({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):sysViewList$1({sysCodeGenId:this.record.id}).then(t=>(this.data=t.data,{pageNo:1,pageSize:40,totalRows:0,rows:t.data}))}},components:{editForm:editViewConfig,copy,btnRelation},computed:{...mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{relation(){this.$refs.btnRelation.open(this.data)},copyed(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.$refs.copy.open(this.selectedRowKeys[0])},add(){this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.$refs.editForm.open(this.selectedRowKeys[0])},refresh(){this.$refs.table.refresh()},editForm(r){this.$refs.editForm.open(r.id)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysViewDelete({ids:this.selectedRowKeys.join(",")}).then(s=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a(),s.success?(this.refresh(),this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+s.message)})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2k=function r(){var t=this,a=t._self._c;return a("div",[a("div",[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,"max-height":t.height,showPagination:!1,initialLoading:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:"",transKey:`Dynamics.${o.transkey}`},on:{click:t.editForm}})]}},{key:"type",fn:function(s){return[a("el-tag",{style:t._f("dictColor")("view_type",s.row.type),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("view_type",s.row.type))+" ")])]}},{key:"isDefault",fn:function(s){return[s.row.isdefault==1?a("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):a("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0}])})],1),a("editForm",{ref:"editForm",attrs:{table:t.record},on:{ok:t.refresh}}),a("btnRelation",{ref:"btnRelation",attrs:{codeGenId:this.record.id,type:1,loadData:t.data},on:{ok:t.refresh}}),a("copy",{ref:"copy",attrs:{type:1},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2k=[],__component__$2k=normalizeComponent(_sfc_main$2k,_sfc_render$2k,_sfc_staticRenderFns$2k,!1,null,"bac693dd",null,null);const viewConfig=__component__$2k.exports,mixins$g={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.displayName",prop:"displayName",label:"\u663E\u793A\u540D\u79F0",width:"260",type:"slot",slotType:"displayName",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.form.formName",prop:"name",width:"260",label:"\u8868\u5355\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.form.type",prop:"type",width:"200",type:"slot",slotType:"type",label:"\u8868\u5355\u7C7B\u578B",align:"left"},{transKey:"gd.form.explain",prop:"explain",minWidth:"200",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableForm:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableForm:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableForm:delete"},{displayName:"\u590D\u5236",functionName:"copyed",show:!0,transKey:"gd.btn.copy",icon:"el-icon-document-copy",name:"sysTableForm:add"},{displayName:"\u8BBE\u7F6E\u6309\u94AE",functionName:"relation",show:!0,transKey:"gd.btn.setButton",icon:"el-icon-setting",name:"sysTableBtn:set"}]}}},main_vue_vue_type_style_index_0_scoped_e3579586_lang="",_sfc_main$2j={props:{activeKey:{type:String,default:"page"},menus:{type:Array,default:()=>[]}},data(){return{}},methods:{selItem(r){r.key!==this.activeKey&&this.$emit("change",r.key)}}};var _sfc_render$2j=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"panel-menus"},[t._l(t.menus,function(s,o){return[a("div",{key:o,staticClass:"item",class:s.key===t.activeKey?"active-meuns":"",on:{click:function(l){return t.selItem(s)}}},[a("i",{staticClass:"gd-icons",class:[s.icon,s.key===t.activeKey?"active-color":""],on:{click:function(l){return t.selItem(s)}}}),a("div",{staticClass:"name",class:s.key===t.activeKey?"active-color":""},[t._v(t._s(t.$i18nt(`${s.transKey}`,s.name)))])])]})],2)},_sfc_staticRenderFns$2j=[],__component__$2j=normalizeComponent(_sfc_main$2j,_sfc_render$2j,_sfc_staticRenderFns$2j,!1,null,"e3579586",null,null);const operationMenus=__component__$2j.exports,abilityItems=[{type:"btnGroup",key:"",label:"\u6309\u94AE\u7EC4",icon:"gd-icon-anniu",transKey:"gd.functionalcomponents.btnGroup",options:{limit:20},columns:[],css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"textSearch",key:"",label:"\u6587\u672C\u641C\u7D22",icon:"gd-icon-yulanmoban",transKey:"gd.functionalcomponents.textSearch",options:{placeholderTip:"\u63D0\u793A\u4FE1\u606F"},css:{padding:[0,0,0,0],margin:[0,0,0,0]},defined:{pc:{},mobile:{}}},{type:"currentTime",key:"",label:"\u65E5\u671F\u65F6\u95F4",icon:"gd-icon-riqi",transKey:"gd.functionalcomponents.currentTime",options:{format:"YYYY-MM-DD"},css:{bjColor:"#fff",fontSize:12,color:"#333",align:"left",padding:[0,0,0,0],margin:[0,0,0,0]},defined:{pc:{},mobile:{}}},{type:"currentUser",key:"",label:"\u7528\u6237",icon:"gd-icon-user",transKey:"gd.functionalcomponents.currentUser",options:{},css:{width:40,radius:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0],labelUnit:"%"},defined:{pc:{},mobile:{}}}],basicsItems=[{type:"divider",key:"",label:"\u5206\u5272\u7EBF",icon:"gd-icon-fengexian",transKey:"gd.basiccomponents.divider",options:{title:"",direction:"horizontal",position:"center",transKey:null},css:{width:"100",height:"1",padding:[0,0,0,0],labelUnit:"%",bjColor:"transparent"},customCss:"",defined:{pc:{},mobile:{}}},{type:"textContent",key:"",label:"\u6587\u672C\u5185\u5BB9",icon:"gd-icon-wenbenneirong",transKey:"gd.basiccomponents.textContent",options:{title:"\u6587\u672C\u5185\u5BB9",transKey:null,flexWidth:100,flexUnit:"%",columnContextName:[]},css:{maxLineClamp:void 0,bjColor:"transparent",fontSize:12,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],fontWeight:"normal",radius:[0,0,0,0],align:"left",lineHeight:18,letterSpacing:0,fontStyle:"normal",textDecoration:"none"},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"title",key:"",label:"\u6807\u9898",icon:"gd-icon-ziti",transKey:"gd.basiccomponents.title",options:{title:"\u6807\u9898",transKey:null,subtransKey:null,subtitle:"\u526F\u6807\u9898",mode:"center",iconShow:!1,columnContextName:[],subtransContextName:[]},css:{bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"fonticon",key:"",label:"\u5B57\u4F53\u56FE\u6807",icon:"gd-icon-zititubiao",transKey:"gd.basiccomponents.fonticon",options:{icon:"gd-icon-group-line",flexWidth:100,flexUnit:"%",columnContextName:[]},css:{bjColor:"transparent",fontSize:16,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],fontWeight:"normal",align:"center",lineHeight:24},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"image",key:"",label:"\u56FE\u7247",icon:"gd-icon-tupian",transKey:"gd.basiccomponents.image",options:{filePath:"",url:"",columnContextName:[]},css:{width:"30",height:"30",padding:[0,0,0,0],margin:[0,0,0,0],labelUnit:"px",objectFit:"contain"},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"tag",key:"",label:"\u6807\u7B7E",icon:"gd-icon-dagang_biaoqianzu",transKey:"gd.basiccomponents.tag",options:{title:"\u6807\u7B7E",transKey:null,color:"",size:"small",effect:"light",columnContextName:[]},css:{padding:[0,0,0,0],margin:[0,0,0,0],align:"left"},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"link",key:"",label:"\u94FE\u63A5",icon:"gd-icon-lianjie",transKey:"gd.basiccomponents.link",options:{title:"\u94FE\u63A5",transKey:null,linkUrl:"",columnContextName:[]},css:{padding:[0,0,0,0],margin:[0,0,0,0],align:"left",fontSize:12,fontStyle:"normal",textDecoration:"none",bjColor:"transparent",color:"#1456f0",radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"QRcode",key:"",label:"\u4E8C\u7EF4\u7801",icon:"gd-icon-erweima",transKey:"gd.basiccomponents.QRcode",options:{urlQRcode:"https://www.baidu.com/",columnContextName:[]},css:{width:200,height:200,padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"banner",key:"",label:"\u8F6E\u64AD\u56FE",icon:"gd-icon-shouyelunbotu",transKey:"gd.basiccomponents.banner",options:{imgUrl:"",filePath:"",autoplay:!0,interval:5e3,loop:!0},css:{width:100,height:100,padding:[0,0,0,0],margin:[0,0,0,0],labelUnit:"px"},fieldContext:[],customCss:"",argument:!0,defined:{pc:{indicatorPosition:"inside",arrow:"hover",type:"none",direction:"horizontal",loop:!0,objectFit:"contain"},mobile:{indicatorDots:!0,indicatorColor:"rgba(0, 0, 0, .3)",indicatorActiveColor:"#000000",previousMargin:0,nextMargin:0,circular:!0}}}],datasheetItems=[{type:"table",key:"",label:"\u89C6\u56FE",icon:"gd-icon-biaodanzujian-biaoge",transKey:"gd.datadisplaycomponents.table",options:{table:{},view:{},btn:[],heightMode:"fill",height:300,maxBtnLength:12,formKey:"",form:{id:""},formMode:"",viewWeights:"2"},formList:[],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"dataList",key:"",label:"\u5217\u8868",icon:"gd-icon-mubanbianpai",transKey:"gd.datadisplaycomponents.list",options:{table:{},view:{},flexWidth:100,flexUnit:"%",pageSize:10,pageSizeMode:"customize",layoutType:"grid",layoutDirection:"column",columnsNumber:2,columnsWidth:100,spacing:0},list:[],css:{heightL:100,heiType:"auto",bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"descriptions",key:"",label:"\u8BE6\u60C5",icon:"gd-icon-miaoshu",transKey:"gd.datadisplaycomponents.descriptions",options:{table:{},view:{},field:[],column:3,directionList:"horizontal",colon:!0,border:1},css:{},defined:{pc:{},mobile:{}}},{type:"echarts",key:"",label:"\u56FE\u8868",icon:"gd-icon-zhuzhuangtu",transKey:"gd.datadisplaycomponents.echarts",options:{echartsId:"",table:{},view:{},echarts:{},heightMode:"fixed",fixedHeight:300,relativeHeight:100},fkData:[],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"statistic",key:"",label:"\u7EDF\u8BA1\u6570\u503C",icon:"gd-icon-baobiaotongji",transKey:"gd.datadisplaycomponents.statisticValue",options:{title:"\u7EDF\u8BA1",timeIndices:!1,titleValue:0,transKey:"gd.datadisplaycomponents.statistic"},css:{color:"#333",fontSize:"14"},customCss:"",defined:{pc:{},mobile:{}}}],dialogItems=[{type:"dialog",key:"",label:"\u5F39\u7A97",icon:"gd-icon-ZeekrVisualDialog",transKey:"gd.elasticlayercomponents.dialog",options:{visible:!0,title:"\u6807\u9898",transKey:"gd.elasticlayercomponents.title",width:"50%",fullscreen:!1,top:"80px"},list:[],btn:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"drawer",key:"",label:"\u4FA7\u62C9",icon:"gd-icon-chouti",transKey:"gd.elasticlayercomponents.drawer",options:{visible:!0,title:"\u6807\u9898",transKey:"gd.elasticlayercomponents.title",width:"60%",openDirection:"rtl"},list:[],btn:[{displayName:"\u53D6\u6D88",functionName:"closed",show:!0,transKey:"gd.btn.cancel",btnType:"info",icon:""},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:""}],css:{},customCss:"",defined:{pc:{openDirection:"rtl"},mobile:{type:"right"}}},{type:"popover",key:"",label:"\u6C14\u6CE1",icon:"gd-icon-24gl-bubbles6",transKey:"gd.elasticlayercomponents.popover",options:{title:"\u6807\u9898",transKey:"gd.elasticlayercomponents.title",content:"\u63D0\u793A\u4FE1\u606F",placement:"bottom"},css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0]},customCss:"",defined:{pc:{},mobile:{}}}],formItems=[{type:"input",key:"",label:"\u5355\u884C\u6587\u672C",icon:"gd-icon-danhangshurukuang",transKey:"gd.formcomponents.input",options:{maxLength:void 0,value:"",columnName:"",effectType:"input",type:"text",width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"textarea",key:"",label:"\u591A\u884C\u6587\u672C",icon:"gd-icon-duohangshuru",transKey:"gd.formcomponents.textarea",options:{value:"",maxLength:void 0,columnName:"",effectType:"textarea",minRows:4,maxRows:6,width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"editor",key:"",label:"\u5BCC\u6587\u672C",icon:"gd-icon-fuwenbenkuang",transKey:"gd.formcomponents.editor",options:{value:"",columnName:"",effectType:"editor",height:300,width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"inputNumber",key:"",label:"\u6570\u5B57\u8F93\u5165",icon:"gd-icon-shuzi",transKey:"gd.formcomponents.inputNumber",options:{value:void 0,columnName:"",effectType:"inputnumber",width:"100",widthUnit:"%",defaultValue:void 0,min:void 0,max:void 0,precision:0,step:1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,displayMode:"none",initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,type:"number",message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{controlsPosition:"right",controls:!0},mobile:{}}},{type:"switch",key:"",label:"\u5F00\u5173",icon:"gd-icon-anniu_kaiqi",transKey:"gd.formcomponents.switch",options:{value:"0",columnName:"",effectType:"switch",defaultValue:"0",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"radio",key:"",label:"\u5355\u9009\u6846",icon:"gd-icon-danxuan_xuanzhong",transKey:"gd.formcomponents.radio",options:{value:void 0,columnName:"",effectType:"radio",defaultValue:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},fkData:[],filterList:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"checkbox",key:"",label:"\u591A\u9009\u6846",icon:"gd-icon-xuanzhong",transKey:"gd.formcomponents.checkbox",options:{value:[],columnName:"",effectType:"checkbox",defaultValue:[],placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"select",key:"",label:"\u4E0B\u62C9\u6846",icon:"gd-icon-xiala",transKey:"gd.formcomponents.select",options:{value:"",columnName:"",effectType:"select",width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,filter:[],filterConfig:null,multiple:!1,dictTypeCode:"state_code",fkEntityName:null,disabledColumnName:!1,initialType:[],relations:"",disableDictCode:[],disableDictMode:1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"selectMultiple",key:"",label:"\u4E0B\u62C9\u6846\u591A\u9009",icon:"gd-icon-xiala",transKey:"gd.formcomponents.selectMultiple",options:{value:[],columnName:"",effectType:"checkbox",defaultValue:[],placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"uploadImg",key:"",label:"\u56FE\u7247\u4E0A\u4F20",icon:"gd-icon-tupian",transKey:"gd.formcomponents.uploadImg",options:{value:"",columnName:"",effectType:"image",width:"100",widthUnit:"%",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,fileName:"file",limit:1,action:"",headers:{},data:"{}",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"uploadFile",key:"",label:"\u6587\u4EF6\u4E0A\u4F20",icon:"gd-icon-mulu",transKey:"gd.formcomponents.uploadFile",options:{value:"",columnName:"",effectType:"file",width:"100",widthUnit:"%",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,download:!1,drag:!1,fileName:"file",limit:1,action:"",headers:{},data:"{}",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"datePicker",key:"",label:"\u65E5\u671F\u9009\u62E9",icon:"gd-icon-riqi",transKey:"gd.formcomponents.datePicker",options:{value:"",columnName:"",effectType:"datepicker",width:"100",widthUnit:"%",defaultValue:"",rangeDefaultValue:[],range:!1,showTime:!1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,format:"1",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"timePicker",key:"",label:"\u65F6\u95F4\u9009\u62E9",icon:"gd-icon-riqi",transKey:"gd.formcomponents.timePicker",options:{value:"",columnName:"",effectType:"datepicker",width:"100",widthUnit:"%",defaultValue:"",rangeDefaultValue:[],range:!1,showTime:!1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,format:"3",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}}],layoutItems=[{type:"containerPanel",key:"",label:"\u5BB9\u5668\u9762\u677F",icon:"gd-icon-rongqi",transKey:"gd.layoutContainer.containerPanel",options:{flexWidth:100,flexUnit:"%"},list:[],css:{heightL:100,heiType:"auto",bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",defined:{pc:{},mobile:{}}},{type:"grid",key:"",label:"\u6805\u683C\u5E03\u5C40",icon:"gd-icon-zhage",transKey:"gd.layoutContainer.gridLayout",options:{gutter:0},columns:[{type:"grid-item",span:12,list:[],key:"",label:"",icon:"gd-icon-ziyuansu"},{type:"grid-item",span:12,list:[],key:"",label:"",icon:"gd-icon-ziyuansu"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"collapse",key:"",label:"\u6298\u53E0\u9762\u677F",icon:"gd-icon-zhediemianban",transKey:"gd.layoutContainer.collapse",options:{accordion:!1,activeKey:[]},columns:[{type:"collapse-item",list:[],key:"",label:"\u9762\u677F1",transKey:null,disabled:!1,icon:"gd-icon-ziyuansu",hidden:!1},{type:"collapse-item",list:[],key:"",label:"\u9762\u677F2",transKey:null,disabled:!1,icon:"gd-icon-ziyuansu",hidden:!1}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"card",key:"",label:"\u5361\u7247\u5E03\u5C40",icon:"gd-icon-qiapian",transKey:"gd.layoutContainer.card",options:{header:"\u5361\u7247\u5E03\u5C40",shadow:"always",transKey:null},list:[],css:{},customCss:"",customCss:"",defined:{pc:{},mobile:{}}},{type:"tabs",key:"",label:"\u6807\u7B7E\u9875\u5E03\u5C40",icon:"gd-icon-tabs",transKey:"gd.layoutContainer.tabs",options:{type:"none",tabPosition:"top",activeKey:""},columns:[{type:"tabs-item",list:[],key:"",label:"\u6807\u7B7E1",transKey:null,icon:"gd-icon-ziyuansu",hidden:!1,forceRender:!0,isLoad:!1},{type:"tabs-item",list:[],key:"",label:"\u6807\u7B7E2",transKey:null,icon:"gd-icon-ziyuansu",hidden:!1,forceRender:!0,isLoad:!1}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"form",key:"",label:"\u8868\u5355\u5BB9\u5668",icon:"gd-icon-biaodanzujian-biaoge",transKey:"gd.layoutContainer.form",options:{tableName:"",model:"ruleForm",inline:!1,labelPosition:"right",labelWidth:100,labelUnit:"px",formModes:"dialog"},ruleForm:{},ruleFormKey:[],field:[],list:[],css:{},customCss:"",defined:{pc:{labelPosition:"right"},mobile:{labelPosition:"left",labelAlign:"left"}}},{type:"treePanel",key:"",label:"\u6811\u9009\u62E9\u5BB9\u5668",icon:"gd-icon-dagangshu",transKey:"gd.layoutContainer.treePanel",options:{id:0,table:{},detailId:"",view:{},heightMode:"fill",height:300},css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"flexLayout",key:"",label:"\u533A\u5757\u5E03\u5C40",icon:"gd-icon-flex-wrap",transKey:"gd.layoutContainer.flexLayout",options:{flexWidth:100,flexUnit:"%"},list:[],css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],flexDirection:"row",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",flexHeightShow:0,fixedHeight:100},customCss:"",defined:{pc:{},mobile:{}}}],pageItems=[{type:"GdTableDevelopment",key:"",label:"\u8868\u5B9A\u4E49",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.tableDefinition",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformDict",key:"",label:"\u5B57\u5178",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.dictionary",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D41\u7A0B\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.processManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u89E3\u51B3\u65B9\u6848",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.solution",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"web\u8D44\u6E90",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.webResources",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u63D2\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.plugin",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u7FFB\u8BD1",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.translation",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformOrg",key:"",label:"\u673A\u6784",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.institution",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformPos",key:"",label:"\u804C\u4F4D",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.position",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u65E5\u5FD7",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.log",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u670D\u52A1\u7CFB\u7EDF",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.serviceSystem",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdplatformConfig",key:"",label:"\u7CFB\u7EDF\u914D\u7F6E",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.systemConfiguration",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformUse",key:"",label:"\u7528\u6237\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.userManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u89D2\u8272\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.roleManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5B89\u5168\u5B57\u6BB5\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.securityFieldManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5728\u7EBF\u7528\u6237",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.onlineUser",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u4EFB\u52A1\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.taskManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u53D1\u9001\u90AE\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.sendEmail",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6A21\u7248\u5E93",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.templateLibrary",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u6A21\u7248",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageTemplate",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u63D0\u9192\u89C4\u5219",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageReminderRules",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u53D1\u9001\u8BB0\u5F55",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageSendingRecord",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5373\u65F6\u6D88\u606F",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.instantMessage",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u516C\u544A\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.announcementManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u7CFB\u7EDF\u6587\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.systemFile",options:{},css:{},defined:{pc:{},mobile:{}}}],seniorItems=[{type:"iframe",key:"",label:"Iframe",icon:"gd-icon-iframe",transKey:null,options:{linkUrl:"",heightMode:"fill",height:300},css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"customComponents",key:"",label:"\u81EA\u5B9A\u4E49\u7EC4\u4EF6",icon:"gd-icon-ai-code",transKey:"gd.advancedcomponents.customComponent",options:{emitFunction:"emitFunction",webPath:""},props:"record (Object);tableData (Object);id (Strng/Number);parameterData (Object)",css:{},customCss:"",webList:[],defined:{pc:{},mobile:{}}}],pluginItems=[{type:"customComponents",key:"",label:"\u81EA\u5B9A\u4E49\u7EC4\u4EF6",icon:"gd-icon-ai-code",transKey:"gd.advancedcomponents.customComponent",options:{emitFunction:"emitFunction",webPath:""},props:"record (Object);tableData (Object);parameterData (Object)",css:{},customCss:"",webList:[],defined:{pc:{},mobile:{}}},{type:"approval",key:"",label:"\u5BA1\u6279",icon:"gd-icon-jurassic_audit-something",transKey:"gd.advancedcomponents.approval",options:{hidden:!1,labelHidden:!1,refresh:!0,transKey:null,flexWidth:100,flexUnit:"%"},operationAttribute:!0,css:{heightL:400,heiType:"auto"},customCss:"",defined:{pc:{},mobile:{}}}],getComponentsTree$1=abilityItems.concat(basicsItems).concat(datasheetItems).concat(dialogItems).concat(layoutItems).concat(formItems).concat(pageItems).concat(seniorItems).concat(pluginItems),getType=r=>{switch(r){case"participants":return"select";case"double":return"inputNumber";case"currency":return"inputNumber";case"datepicker":return"datePicker";case"fk":return"select";case"about":return"select";case"image":return"uploadImg";case"file":return"uploadFile";case"user":return"select";default:return r}},collapseItem_vue_vue_type_style_index_0_scoped_d4c28f5b_lang="",_sfc_main$2i={name:"collapseItem",props:{list:{type:Array,default:[]},type:{type:[Number,String],default:1},disabled:{type:Boolean,default:!1},table:{type:Object,default:()=>({})},component:{type:String,default:""}},data(){return{}},computed:{getList(){return JSON.parse(JSON.stringify(this.list))}},components:{draggable},methods:{dragstart(r,t){this.$emit("generateKey",r,t)},handleStart(r,t){this.$emit("start",t[r.oldIndex].type)},handleEnd(r,t){this.$emit("end",t[r.oldIndex])}}};var _sfc_render$2i=function r(){var t=this,a=t._self._c;return a("draggable",t._b({staticClass:"designer-template-ul",attrs:{tag:"ul",value:t.getList,disabled:t.disabled},on:{start:function(s){return t.handleStart(s,t.list)},end:function(s){return t.handleEnd(s,t.list)}}},"draggable",{group:{name:"gd-draggable",pull:"clone",put:!1},sort:!1,animation:180,ghostClass:"moving"},!1),t._l(t.getList,function(s,o){return a("li",{key:o,staticClass:"designer-template-li line1",on:{dragstart:function(l){return t.dragstart(t.list,o)},click:function(l){return t.$emit("handleListPush",s)}}},[t.component===""?a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt(`${s.transKey}`,s.label),placement:"top","open-delay":150}},[a("el-button",{staticClass:"line1 designer-btn",staticStyle:{width:"100%"},attrs:{size:"mini"}},[a("i",{staticClass:"gd-icons",class:s.icon}),t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.label))+" ")])],1):t._e(),t.component==="field"?a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt(`Dynamics.${s.transKey}`,s.label),placement:"top","open-delay":150}},[a("el-button",{staticClass:"line1 designer-btn",staticStyle:{width:"100%"},attrs:{size:"mini"}},[a("i",{staticClass:"gd-icons",class:s.icon}),t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.label))+" ")])],1):t._e()],1)}),0)},_sfc_staticRenderFns$2i=[],__component__$2i=normalizeComponent(_sfc_main$2i,_sfc_render$2i,_sfc_staticRenderFns$2i,!1,null,"d4c28f5b",null,null);const collapseItem=__component__$2i.exports,main_vue_vue_type_style_index_0_scoped_872f9cac_lang="",_sfc_main$2h={props:{table:{type:Object,default:()=>({})},usedComponent:{type:Array,default:()=>[]}},data(){return{activeNames:["layout","basics","form","senior"],basicsItems,layoutItems,formItems,pluginItems,loadData:[]}},computed:{fieldList(){const r=this.loadData.filter(t=>!this.usedComponent.includes(t.columnname));return this.getSelectedField(r)},layoutItemsList(){return this.layoutItems.filter(r=>!["form","treePanel"].includes(r.type))}},components:{collapseItem},methods:{init(){Promise.all([this.getLoadData()]).then(r=>{this.$emit("loadData",this.loadData)})},getLoadData(){return onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(r=>{let t=r.data.filter(a=>{const s=this.getType(a);return a.required=!1,a.title=a.columncomment,a.inputComponent=s.val,a.inputComponentList=s.data,a.effecttype=="about"&&a.columnname==(a.relations+"_AboutTable").toLowerCase()?!1:!(a.effecttype=="currency"&&a.columnname==(a.relations+"_Currency_Base").toLowerCase())});return this.loadData=t,r.data})},getSelectedField(r){let t=[];return r.forEach(a=>{const s=a.inputComponentList.filter(f=>f.type===a.inputComponent)[0],o=s.rules.filter((f,p)=>(p===0&&(f.required=a.required),!0)),l=s.type+"_"+uuid$1(8);let d=[];a.inputComponentList.forEach(f=>{d.push(f.type)});let u={type:a.inputComponent,key:l,label:a.columncomment,transKey:a.transkey,options:Object.assign({...s.options},{columnName:a.columnname,effectType:a.effecttype,disabledColumnName:!0,initialType:d,transKey:null}),rules:[...o]};a.dicttypecode&&Object.assign(u,{options:Object.assign({...u.options},{dictTypeCode:a.dicttypecode})}),a.fkentityname&&Object.assign(u,{options:Object.assign({...u.options},{fkEntityName:a.fkentityname,dictTypeCode:""})}),a.fkentityname&&["fk","user"].includes(a.effecttype)&&Object.assign(u,{options:Object.assign({...u.options},{viewdeId:"",formdeId:"",fieldFiltering:!0,searchWid:"90",searchUnit:"%"})}),["about"].includes(a.effecttype)&&Object.assign(u,{options:Object.assign({...u.options},{relations:a.relations,searchWid:"90",searchUnit:"%"})}),["participants"].includes(a.effecttype)&&Object.assign(u,{options:Object.assign({...u.options},{multiple:!0,multipleLimit:0,searchWid:"90",searchUnit:"%"})}),a.fieldformat&&Object.assign(u,{showTime:a.fieldformat!==2,options:Object.assign({...u.options},{format:String(a.fieldformat)})}),t.push(Object.assign({...s},u))}),t},getType(r){let t={val:"input",arr:["input","textarea"],data:[]};["input","textarea"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["input","textarea"]}):["radio"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["radio","select"]}):["switch"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["switch"]}):["inputnumber","currency","double"].includes(r.effecttype)?Object.assign(t,{val:"inputNumber",arr:["inputNumber"]}):["checkbox"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["checkbox","selectMultiple"]}):["select"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["radio","select"]}):["fk","user","participants","about"].includes(r.effecttype)?Object.assign(t,{val:"select",arr:["select"]}):["editor"].includes(r.effecttype)?Object.assign(t,{val:"editor",arr:["editor"]}):["file"].includes(r.effecttype)?Object.assign(t,{val:"uploadFile",arr:["uploadFile"]}):["image"].includes(r.effecttype)?Object.assign(t,{val:"uploadImg",arr:["uploadImg"]}):["datepicker"].includes(r.effecttype)&&Object.assign(t,{val:"datePicker",arr:["datePicker"]});const a=formItems.filter(o=>t.arr.includes(o.type));let s=JSON.parse(JSON.stringify(a));return s.forEach((o,l)=>{let d=JSON.parse(JSON.stringify(o.options));["currency","double"].includes(r.effecttype)&&Object.assign(d,{precision:r.filedsize,currencyType:"symbol"}),r.effecttype==="currency"&&Object.assign(d,{currency:"0",convertField:"0",currencyType:"symbol"}),s[l].options={...d}}),Object.assign(t,{data:s})},handleEnd(r){this.$emit("end",r)},handleStart(r){this.$emit("start",r)},handleListPush(r){this.$emit("handleListPush",r)},generateKey(r,t){this.$emit("generateKey",r,t)}},created(){this.init()}};var _sfc_render$2h=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"designer-template"},[a("el-collapse",{model:{value:t.activeNames,callback:function(s){t.activeNames=s},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.layoutContainerAssembly","\u5E03\u5C40\u5BB9\u5668\u7EC4\u4EF6"),name:"layout"}},[a("collapseItem",{attrs:{list:t.layoutItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.baseComponent","\u57FA\u7840\u7EC4\u4EF6"),name:"basics"}},[a("collapseItem",{attrs:{list:t.basicsItems},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.fieldComponent","\u5B57\u6BB5\u7EC4\u4EF6"),name:"form"}},[a("collapseItem",{attrs:{list:t.fieldList,component:"field"},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.plugIn","\u63D2\u4EF6"),name:"senior"}},[a("collapseItem",{attrs:{list:t.pluginItems},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1)],1)],1)},_sfc_staticRenderFns$2h=[],__component__$2h=normalizeComponent(_sfc_main$2h,_sfc_render$2h,_sfc_staticRenderFns$2h,!1,null,"872f9cac",null,null);const componentsTree$1=__component__$2h.exports,main_vue_vue_type_style_index_0_scoped_0cd3b3c8_lang="",_sfc_main$2g={props:{table:{type:Object,default:()=>({})},usedComponent:{type:Array,default:()=>[]}},data(){return{activeNames:["view","form"],formData:[],viewData:[]}},components:{collapseItem},computed:{viewItemsList(){return this.viewData.filter(r=>!this.usedComponent.includes(r.componentItem))},formItemsList(){return this.formData.filter(r=>!this.usedComponent.includes(r.formId))},...mapGetters(["tableLists"])},methods:{init(){Promise.all([this.getCodeGenerateForm(),this.getCodeGenerateView()]).then(r=>{this.$emit("init",{viewData:this.viewData,formData:this.formData})})},getCodeGenerateForm(){return codeGenerateForm({tableId:this.table.id}).then(r=>{if(r.code===200){let t=[];r.data.forEach(a=>{const s=this.tableLists.filter(d=>d.tablename===a.syscodegen.tablename)[0],o=this.$i18nt(`Dynamics.${a.transkey}`,a.displayname),l={type:"displayform",name:`${a.syscodegen.tablename}/${a.syscodegenconfig.columnname}/${o}`,label:`${a.syscodegen.tablename}/${a.syscodegenconfig.columnname}/${o}`,transKey:null,icon:"gd-icon-dingbudaohang",formId:a.syscodegenconfig.columnname+","+a.id,key:"",operationAttribute:!0,options:{hidden:!1,relevanceColumnName:a.syscodegenconfig.columnname,table:s},ntransKey:a.transkey?a.transkey:null,nlabel:o};t.push(l)}),this.formData=t}return r.data})},getCodeGenerateView(){return codeGenerateView({tableId:this.table.id}).then(r=>{if(r.code===200){let t=[];r.data.forEach(a=>{const s=this.$i18nt(`Dynamics.${a.transkey}`,a.sysview.name),o=this.tableLists.filter(d=>d.tablename===a.contacttable.tablename)[0],l={type:"viewtable",loadData:[],delData:[],sourceData:[],icon:"gd-icon-biaodanzujian-biaoge",key:"",label:`${a.contacttable.tablename}/${a.columnname}/${s}`,options:{hidden:!1,foreign:a.columnname,table:o,viewdeId:a.sysview.id,formdeId:"",saved:!0,refreshHost:!0,refreshMode:1,refreshFields:[]},operationAttribute:!0,componentItem:a.contacttable.tablename.replace("_","")+a.sysview.viewname,componentName:a.contacttable.tablename+a.columnname,fkEntityName:a.contacttable.tablename,sourceEntityName:a.fkentityname,ntransKey:a.sysview.transkey?a.sysview.transkey:null,transKey:null};t.push(l)}),this.viewData=t}return r.data})},handleEnd(r){this.$emit("end",r)},handleStart(r){this.$emit("start",r)},handleListPush(r){this.$emit("handleListPush",r)},generateKey(r,t){this.$emit("generateKey",r,t)}},created(){this.init()}};var _sfc_render$2g=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"designer-template"},[a("el-collapse",{model:{value:t.activeNames,callback:function(s){t.activeNames=s},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:t.$i18nt("gd.relevanceTree.associatedView","\u5173\u8054\u89C6\u56FE"),name:"view"}},[a("collapseItem",{attrs:{list:t.viewItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.relevanceTree.associationForm","\u5173\u8054\u8868\u5355"),name:"form"}},[a("collapseItem",{attrs:{list:t.formItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1)],1)],1)},_sfc_staticRenderFns$2g=[],__component__$2g=normalizeComponent(_sfc_main$2g,_sfc_render$2g,_sfc_staticRenderFns$2g,!1,null,"0cd3b3c8",null,null);const relevanceTree=__component__$2g.exports,mixins$f={methods:{async traverse(r){let t=[];const a=(s,o)=>(s=s.filter((l,d)=>{t.push(Object.assign({...l},{pid:o})),["grid","tabs","collapse"].includes(l.type)?l.columns.forEach(u=>{t.push(Object.assign({...u},{pid:l.key})),a(u.list,u.key)}):["card","drawer","dialog","batch","form","flexLayout","containerPanel"].includes(l.type)&&a(l.list,l.key)}),s);return await a(r,0),t},generatorDynamicRouter(r){return new Promise((t,a)=>{const s=r,o=[];this.listToTree(s,o,0),t(o)}).catch(t=>Promise.reject(t))},listToTree(r,t,a){r&&r.forEach(s=>{if(s.pid==a){const o={...s,children:[]};this.listToTree(r,o.children,s.key),o.children.length<=0&&delete o.children,t.push(o)}})},findParent(r,t,a){for(let s of r)if(s.key===t.pid||s.children&&s.children.length>0&&this.findParent(s.children,t,a))return a.unshift(s),!0;return!1},async traverseKey(r,t){let a={};const s=(o,l)=>(o=o.filter((d,u)=>{d.key===t.key&&(a={...d}),d.children&&d.children.length>0&&s(d.children)}),o);return await s(r),a}}},main_vue_vue_type_style_index_0_scoped_7ac06061_lang="",_sfc_main$2f={props:{data:{type:Object,required:!0}},mixins:[mixins$f],data(){return{dialogTree:[],pageTree:[],defaultProps:{children:"children",label:"key",value:"key"},defaultExpandedKeys:"",state:!1}},watch:{data:{handler(r){this.$nextTick(()=>{setTimeout(()=>{this.state||this.init(r)},0)})},deep:!0,immediate:!0}},methods:{handleNodeClick(r,t){let a=[];this.findParent(this[t],r,a),this.$emit("handleSelectItem",r,a)},async init(r){this.state=!0,this.ruleFormFiter(r),r.list.filter(o=>["dialog","drawer"].includes(o.type)),r.list.filter(o=>!["dialog","drawer"].includes(o.type));let t=[],a=[],s=[];r.list.forEach(async o=>{let l=await this.traverse(JSON.parse(JSON.stringify([o]))),d=this.generatorDynamicRouter(l).then(u=>(u.length>0&&["dialog","drawer"].includes(o.type)?t.push(u[0]):u.length>0&&!["dialog","drawer"].includes(o.type)&&a.push(u[0]),u));s.push(d)}),Promise.all(s).then(o=>{this.dialogTree=t,this.pageTree=a}),this.$emit("outlineTree",{dialogTree:this.dialogTree,pageTree:this.pageTree})},async ruleFormFiter(r){let t=[],a=!1,s=[],o=[];const l=(d,u)=>(d=d.filter((f,p)=>{["grid","tabs","collapse"].includes(f.type)?f.columns.forEach(h=>{l(h.list,u)}):["card","drawer","dialog","batch","form","flexLayout","containerPanel"].includes(f.type)&&(f.type==="form"&&t.push(f),l(f.list,u)),f.type==="tabs"&&(o=f.columns.filter((h,v)=>h.key==f.options.activeKey),f.options.activeKey=o.length==0?f.columns[0].key:f.options.activeKey),a&&["input","textarea","editor","inputNumber","switch","radio","checkbox","select","uploadImg","uploadFile","datePicker","timePicker","selectMultiple"].includes(f.type)&&s[u].children.push({options:f.options,type:f.type,key:f.key})}),d);await l(r.list,0),a=!0,t.forEach((d,u)=>{s.push({item:d,children:[]}),l(d.list,u);let f=this.getRuleFormData(s[u]);const p=d.options.tableName;t[u].ruleForm=p===""?f.data:Object.assign(f.data,{tableName:p}),t[u].ruleFormKey=p===""?[]:f.field}),this.$nextTick(()=>{setTimeout(()=>{this.state=!1},10)})},getRuleFormData(r){let t=new Map,a=[];return r.children.forEach(s=>{s.options.initialType&&s.options.initialType.length>0&&a.push({key:s.key,columnName:s.options.columnName}),["inputNumber","select"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:void 0):["switch"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:0):["checkbox","selectMultiple"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:[]):["select"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:s.options.multiple?[]:void 0):t.set(s.options.columnName,(s.options.defaultValue!==void 0,s.options.defaultValue))}),{data:Object.fromEntries(t),field:a}}}};var _sfc_render$2f=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"outline-tree"},[t.dialogTree.length>0?a("div",{staticClass:"dialog-tree"},[a("div",{staticClass:"name"},[t._v(t._s(t.$i18nt("gd.outlineTree.modalBox","\u6A21\u6001\u6846")))]),a("div",{staticClass:"list"},[a("el-tree",{ref:"dialogTree",attrs:{data:t.dialogTree,props:t.defaultProps,"node-key":"key","current-node-key":t.defaultExpandedKeys,"default-expand-all":"","expand-on-click-node":!1},on:{"node-click":function(s){return t.handleNodeClick(s,"dialogTree")}},scopedSlots:t._u([{key:"default",fn:function({node:s,data:o}){return a("span",{staticClass:"custom-tree-node",attrs:{title:o.key}},[a("span",{staticClass:"gd-icons",class:o.icon}),a("span",{staticClass:"line1 titles"},[t._v(" "+t._s(o.key)+" ")])])}}],null,!1,3331784856)})],1)]):t._e(),t.dialogTree.length>0?a("el-divider"):t._e(),a("div",{staticClass:"page-tree"},[a("div",{staticClass:"name"},[t._v(t._s(t.$i18nt("gd.outlineTree.mainView","\u4E3B\u89C6\u56FE")))]),a("div",{staticClass:"list"},[a("el-tree",{ref:"tree",attrs:{data:t.pageTree,props:t.defaultProps,"node-key":"key","current-node-key":t.defaultExpandedKeys,"default-expand-all":"","expand-on-click-node":!1},on:{"node-click":function(s){return t.handleNodeClick(s,"pageTree")}},scopedSlots:t._u([{key:"default",fn:function({node:s,data:o}){return a("span",{staticClass:"custom-tree-node",attrs:{title:o.key}},[a("span",{staticClass:"gd-icons",class:o.icon}),a("span",{staticClass:"line1 titles"},[t._v(" "+t._s(o.key)+" ")])])}}])})],1)])],1)},_sfc_staticRenderFns$2f=[],__component__$2f=normalizeComponent(_sfc_main$2f,_sfc_render$2f,_sfc_staticRenderFns$2f,!1,null,"7ac06061",null,null);const outlineTree=__component__$2f.exports,main_vue_vue_type_style_index_0_scoped_a94cc98e_lang="",_sfc_main$2e={data(){return{}},methods:{}};var _sfc_render$2e=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"empty-control"},[a("i",{staticClass:"el-icon-receiving"}),a("div",{staticClass:"empty-title"},[t._v(t._s(t.$i18nt("gd.form.controlSelectedNo","\u672A\u9009\u62E9\u63A7\u4EF6")))])])},_sfc_staticRenderFns$2e=[],__component__$2e=normalizeComponent(_sfc_main$2e,_sfc_render$2e,_sfc_staticRenderFns$2e,!1,null,"a94cc98e",null,null);const emptyControl=__component__$2e.exports,sideHeader_vue_vue_type_style_index_0_scoped_38bf144c_lang="",_sfc_main$2d={props:{navParameters:{type:Object,default:()=>({})},collapsed:{type:Boolean,default:!0}},data(){return{photoUrl:""}},computed:{menus(){return this.navParameters.menus},getUserImg(){let r="/"+this.userInfo.filePath+"/"+this.userInfo.fileObjectName;return`${this.$getImageUrl(r)}`},...mapGetters(["userInfo"])},methods:{}};var _sfc_render$2d=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"side-header"},[a("div",{staticClass:"triggers",on:{click:function(s){return t.$emit("toggle")}}},[a("i",{staticClass:"gd-icons",class:t.collapsed?"gd-icon-shousuo":"gd-icon-shousuo1"})]),a("div",{staticClass:"multi"}),a("div",{staticClass:"user-wrapper"},[t._l(t.menus,function(s){return[s.statu?[s.key==="user"?a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:t.userInfo.nickName,placement:"bottom","open-delay":150}},[a("span",{staticClass:"user-dropdown-menu user-dropdown-user"},[t.userInfo.avatar?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"user-img"}):t.userInfo.filePath&&t.userInfo.photoUrl==""?a("img",{staticClass:"user-img",attrs:{src:t.getUserImg}}):a("img",{staticClass:"user-img",attrs:{src:"data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACMYGh4aFiMeHB4nJSMpNFc4NDAwNGpMUD9Xfm+EgnxveneLnMipi5S9lnd6ru2wvc7V4OLgh6f1//PZ/8jb4Nf/2wBDASUnJzQuNGY4OGbXj3qP19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f/wgARCADhAOEDAREAAhEBAxEB/8QAGgABAAIDAQAAAAAAAAAAAAAAAAECAwQFBv/EABgBAQEBAQEAAAAAAAAAAAAAAAABAgME/9oADAMBAAIQAxAAAADuAAAAGFOfLzqwWY6qZozG9L0kwS6pat6NmgAAAAANc5xxtS+s7abkZKRQ07daMc1FzlsrnW5nfZTZAAAAEDCed019Y2qyICkAKKJiMa7XPffjLQAAAAGI81ZTeboAAAAAIiud+ll2AAAAAY04Mul0xksKAAAACAVlyZ36KM6FAAAHOPP6mTWQAACGiAAggrnXazesoAAAHl619YhF0EEItRNiIrPy1PWYEhpMlyZ36iMoAABgPLVGs0JRV5utxKWatcxGNdrh37HHXM640/RxkxrElc69Tm7lAAAco8/qXuZFSl1mMdzM3EZ8denzbeNXXDM8zs1evHXsiWq9vN6xlABhOGuvm2l1OmZSpbNmsmNbEbeW1nexcyTLERbjmtdjndpqdc5ebLE6noLnKoHINFvq8LzuitnQ46ulrcqWiVXM2oAjNiqy45a51p9OWr1dflrmdJfpy7wIjzR1PL2tOnP688uZu51a29lmZqdSIkUERLEVMbUZusaffPT4bjfPi+nPqZiwjy/S9Xy9cvLeDfPHW3z6W0vc2ZmrJGgADKlsZUm4Ndmu5s8t03OP7uPp+UsI89bHLp0+W76563Rn8/W212ZS1k2KACoyrLEtJqsuvvlsaJrR1nW649KgGE8zrW3x1t8tLdjGrVe5lJsknUgkgQirVZazVZnBqVzdX040ek9DjnvKoDEcY1KpnXc83TJN21myTZKFWKSogiWCk1S54vrwzjOdpNhQAAB56Vz6dPFul5ZRqTDQIZsaRLWWtaMxp+jHpLLAAAACMJ5Xeu35t7UtwIsjUKEkLWWq67PJ9c7eOW9aAAAAAOccR17PKbMt8hNiozpYgldzWzeP2nTY69hQAAAAMRxDQ1NvPTf8zY6by3E5StiIpqYsXBtodZqXnty9uNigAAABzo4em3rO6lbHO5eXVmznVtZhqNSucqp6ecXMtakaeb2ZemSAAAcs49dfWbJKwY5N5Wbgm+ZO1G+q8u30xjNPS6FRCcua3c3tEgAGhHE07lzFWUCEiXJHK5erWz6kZ+nk7XThjuMdl2gKpQ5Wb05eoADEeaO5ZkokgKTDUxj49ebPWs29eXc6corJEgEFbbZeal9SZgDlmid+yKAASRak0cejkcvYmup08vR6+Qk2gIVUmTlTUHbAPNnUTeFVJi1QSCmXKz6NDPrZm7vj2evjgkAggkkwy+fPUAHlj0EbNQYNS8ZJZBAjk8/TpZ61us14d7p5psKBSzFWzlC4TzR6osDyZBIrGWS0oAkxzdViLVkuCACtUMsASepLA8kagAAABMgi0ASsIABJAMx7Asf/xAA/EAACAgADBQQIAwcBCQAAAAABAgADBBJRBREhMXEQEzNSFSAwQlNUYbFzgZMyNHKCkaLBQWJjobLC0dLh8P/aAAgBAQABPwD2Nt1VSFrXRI+2qU8NI+18U8N97877X6u0KWuSWR2+p3mCq5eIRhEtxKcUvdOjNE2riklG2/jJKr6bULpajpLdqYamenE+BE21R8KUYyjE+E8HtXcIC/8A2AAGpMv2wnhUfqR7brnLu7u8pwzvqx0WUYHzhE+ryrBUrzufokTB0e+H/UMOEwnkf9Qx8FhmBKXOn0eXYHyOjy7CvVqn0aEW0lgAy6lSQCJVQxALMVBiLUASVDakkmXFOKqi8/8AJ4CYLZlt5FruUT++U0lOoULnfizbtT7S25KUd7XCosxmOuxX4cSk8Hb6ELEROTgBeG5ViXIEyABANABBe/ngvccnnftBe/nnfvxGed+fPDeHQo4DahgDHqRszJuU+U8RHrKkgAgiWs6Jk5F+B6CbHoF7u7xEVECqAFAAA5AAQezttSqp3cgIgJMxeKfFX6IhIRJUiVKHIDOfzCxGCg8iYLW4zvWnetO9M70zvTO9M70zvTO9aFwwIMNS2oRydRvDf4Mw174Vw46OvnWYa+q+kXJB7IlUBJIAA3n6ATamJN7mlPDT+55UgRc7cWI4DQQNM0zTMRM0zTNM0zQNM0zTNMxIMYB0JAAKjeDqNDNnYs4W/VHIDxHR+KaBhoQeIPstpX9xhCic7d6JKlLuXYkgHeTqYGmaZpmmaZpmmaZpmmYiZpmmY7jM03mWoFIZQADwI+s2LeXoNUHsdq3m/FP5E4JAAOpAJP1MzGBpmmaZpmgYwMTAWMCkAkkACFhxAlNTu7onuAlzyUAQIVH/AMCCDxBB0hVlmYwMYQCG0I3CYG40X1W+4GAaVsLEV+asAw6EewvtFNNr+RGaO5uzOeLn7kkmBgIGgLcYCxi5jEVzvG4xKnPJTEped0igkusNqLvVFJPLQQ2s32AlODe8h34JKaURAFAVQBNo4Z0JvT+eVWhRkcZlP5kQquUurg/cdRCxG8GZowKknoRNm299hEf2G1cVQKHpR0LvKuDE6CI4XmoMS1BzQRLUHNIltY5pBcg5IJ36AHKkN/lQQ3P5so0G4QM7nmXcncAN5JMqwV9vNCg1eUYCqn+OJSF0UAbgoAAAhUAR0VtG56EEHXfL8A/F6erpGDp/U6ggjmCDxhtYghpm5xyCBNi3olL0PEIcAqQQQCCOII9UuEzM7gKAToABzJmN2obnNVHhyjAX3jP4aed5i8KKCgDly8BJ1O6AmAsSQAT0ERHbgqMToFJgot+E7dFMTB3fBeVbKvfm6JE2TSniO7xMMieHSiRKf9XMVVUcFhEIhHOEc5fhqbv/ADl+AuTwyH/541T1c0mEoF7lHcoApeX7Luq8Ii1Jg9o3YVwjkukR0sAKcmUMNCD6m2bzVSKUmzaA7m5/cjutXBNB0UDgABNqOXoSbOqR0cunNwkSmjyL+mIlNPwkHRBEoReCBF6Io+wiVquigaAAREEStBEVVBIWDtIhEI5wjnGHOMCQZtRA9PR5snxbn0SVXMxAebRwyeOn882HiudD+ptMl8c/UJKECUIg8gmUsSTNpITV/A82V4HV4kQRIgiwCDeQYB6hhHOEc4RwMYbgZjPAtTRJshPFeBSI6Bg6efep6EESomq9D5HH9A0UggHUDtxgKY5/xJR4SdE/4CBCZi0L0WpomebL8Do8QRIkQxYvr6wjnGHZi/At/DmzailQfq8yHjCwTe/JEBJ6DeTF3vikOr/d4vAAaADt2zQUcXTZ14dDU78U4pKLVICOcpndo5ZSQU+4IIIlNRFr/ViU6NKzEiCJF7BugHaT2HsYRt4BmJQuAvxWRX+iAkxERE5pwQIOgEe1EDIhDMZjLUSop782PQbsUH8kHbiaUxVL0vLabsNaQ4KSjH+5b+pExdPnlV6WuERy8qIIiRDEMQwdikATeO3WEjsaMQEMuvqTg/B/zIAEOLo88fHIgKVAu3neIll9uRAWd5gcKlFATm7gF/VupqvqKWoHSX7E+A89FYz4Eq31OpcFSjgPEdH/AJ0DA9YkSIQIhinnBFPMTeOMJhMJ5wnn2GO6hNAoJOgAl7l3fqEibKxnwZVsS5/EeUYSihN1Sex2zQUu76YC7Ohqf3OKSlgwGo3CLEMWIeYMB5wHcDN/Ob4TCefa7BVLGY+4VVFOTvNk0d9f/BueKABuAAA4D2d9CXUvU/J4UfDXFOTo0w1yOgcaAPK3VlDLEBgg5nsU+qRzjEKCxltyIGcuAqD8yeO4CO5xL5+blwqJMDhBhaAnN34vB7TaWBGKTOnipKHNDlvyZJReloDp/OsqdHAKEGBWijmIAdxigzLCCB2ZSN8dlVCztul16IC/uJL73v8AoicESbJwRpAueD2lt1VCF7XVEl+2H5UREvxLu+5387Smm2khwxR5ReLk8jgyq8EAOAYjo4JRwYq74FmWERmVeLuoj3oN6oATL7wgLsS5Xkkam23/AKPLHpuoOfyEEOso2vcniyjFUXpvqeD2WN2jVhQUTxY9t2NJLl3f+1BKMCiAO5Dv/bERPJ9AFAAA6CNSCjCYZEFr1OgIfinURKHTfkcnRWiixd4cMv1BJgudPNuEN7oAXIXQt/7IiXu/BH+x+xhvfkS0Jd+Khyfz+5hodwQ7lRonA7vqZiakREpRAC5BfUgSmnKnQCFF/wAEEAgj6g8JdgUuBKAI8IvodSHdNHBIBAmB2ol+6q/xYpBG8EEH2G09oigGirxZRhr8W7vyTm7ylKkDhE0XN7zfUmCoTup3QIMdGQh05owPUA/YiVBLUDoQVcAid0NBMS6VJzQKgPUnQCPez9ASFUEgAQWupzr0ZSSQw0ModLgHq0AdYKoQihmcgBQSToBON7u5BKgkINADEqAEFU7obiJbSltIR0DqD+YB0Mvwr0b7aiXT+5JsraXKi6Ag8QQQfW2lihRR/vX4JMJRbi7nLlynN3mRAgQIERAAiymoKjasSf6Tup3U7qPSrIwIBlDlS9T/AFKH7iO6U9ACdCToNTMYbntCP1RYqsJlMwbul/8AjVBKHW1A46HUGYn4SftvwY6LKKAqTuucWqd1HqBqcaAEfkYiL9w+hB4EETaODehxanhvNj4vv6TQ/iJB6j2rUHL8lUsdABL77cbeXT33CIkw1KUIE6F287mPXzlVYCBYK53fOd2IawQQRHoboVIII1BgD+/yUAZfuT9TL0D1M7FAV4o0BpKe+rDoR9xCaQrEZzoCAJgkAqdw/wBH1QRMwcuoJB4Mv+hE7p3td34kn8gIlQUTuxFrE7sRqwUYagiU1ZZbSltTpzR0MItwWK/26nlDpbUtqEFHUepti/uKPxZsSjPeboVLb4UB3wIACAIFmQTIJ3cNSneCIiKu8ATafhInnft2QfGSGpTwKxKlEyCZeYAgQTKNxhTerDUSuoCVLNt0cr5sK/nT6m3HL4sJ5EmyUFOBTVwXhXnMu8mcAWWKu8GZZkmWZYFmOfw0hUjNNxE2R4zp50mSBTMpgWBZlIBJhyghSRFUCKsxNQuotq86TZLmnGpo5KeptEm7HXfiBJhECUIuip2BY9wS50J0lNqssUAjtCwLMcCb0TyJHpI9yPUwmA/ek0eBQYFgWBRCAAY9qqDDepKIG4lwOwKBHrWwMr6EHQgjcZ4OP/Dt+zxeKg6gdu0f32/8SekcZ8y89J4z5l56TxnzLw4zEu5c3OWgx2L+O89I4z5l56TxnzLz0njPmXnpPGfMvPSOK+K8N9trlnd3nf3ed5393naJbchDK7jRp6TxfzLz0ljPmXnpPGfMvPSeM+ZeekcZ8y8OOxXzLwYzE/HeekcZ8y89J4z5l56RxnzLyly+LV3991Y9SwJifsL0HbtH9+v/ABPZCDkfbUeKn8aRP2F6Ds//xAAoEQEAAwACAQUAAgICAwAAAAABAAIRITEDECAwQVESYUBxMlCBkaH/2gAIAQIBAT8A+I2AwFmP5MZj3kyYTM9DZn+CVWFQ5ZodEXOiawWFkm72TCfxZWs/iEU+U9A2VrAwmb3MyZAmTJkz0yOh6HyhsqTo+RNiZD5AlTOfQfQfUfcMHIm8x+SpD/AT4wlT02b8GcaTT7cgmaOzI+mTPiIEzIMyA/kKv5Ciwr+z+IG7GwcBN+3qXuUEHWNrWVWeG+ALz9StsMTSYJxMmxh8NYMLEEYWJ/KpP5kb7GzF/WPloaDrG93QcGFVds8xrER2rzKXTC7x+zhNHj1z4Mj5K14GUtu/1NDuGHG9zQ6Zods/nUOyN6HbG4dGx8tnSsbXt2wovNoAcBMmRImSl70cHiU8o4JjBOhGXs1NGUvVce4fp17vM4IPP3G+Cjqzw7dR+iea6ICnEpe73Z4/uF7va/8AuFrJysBe1la72ytTrIAHUJrMM37mRiRiaORMOZ4VL5vDPMoVx7ZTy689zxX1yz317D7nQsvdWyvcBVZ4ULp+k8qt5TjSVlSVJWEIPrkTNjEjEzQnicuf7nldA/OYD0cMpdEV50jzUf09SHT/AGMuJew/sK/ZPEZctPNzd/MlWVJSErD3Poxn7PEbc/3PM7fvQjT7Ic3Kn7EQqPYHqenloi3Dh7lLmYyoCIy70jrgMpKSkrCEPcvcWMXsniQdXqIWVXuKVMHWeEb31ODmdce0TETRl/D2jx+PcfDc0Bj4r0NRyUVJVlYSrKsJs302b6LGLgyniveih1DxX6Rni8K83QP/ALMEAMCapD3H+5/zE/TiA0ujxjByHUIdQhN9Ni8TYxZ+r1HVA+2f8AExeX134Rnloj/MOHuUSxr9SvfHUIQYex9GJFweeJ4qN76nB8mzI4iJoxpel0ThlEeSBAhD2PpkUCA3QDtmAAf+X9fnSt6I9/TGl/EonH7+yiJw8yo9dQEIP9euTNmJ0RQFWA3QBRhQob2vbBdfnCKIib/f2S/ivRU5IXwxMYIgjCv2OzJkTO5oHKRsGhzKeK93XQg0pTg1/fuY5GBnxkDZUgZDjqJn1oy5S+pgxpeitXSBenQ5Bv8AYwXoGY3MBNlKX7spKFA1RZQA6wnXoh2T9+MgZ7AM/Zv9TdMdimKm/wC4orwZBB6JRM0Ah1AhNh658ISpnrs2HPU+oG8EupwvE5YcymvB19wMlT2j8RxBm+w9BAcjUaqwReYgG/coGKdzJWbN9T4z3C5H9IuAbkPQcE30F/wD3jwzy84T9mcSvCnof4BAme0e471+EzmBjKaOQ9oQMI/Ee/hMYlV1n8KHRMrADo59pBm/9J//xAAlEQEAAwACAQUAAwEBAQAAAAABAAIRITEQAyAwQVESQGGRBEL/2gAIAQMBAT8A+E1mHjQ+4WH7mkEeNhnjYTD+koRs9E5e2FR+5h+zKzD9hpCyQsPTG0/kvErua/0G30eAyb46mzfIZ4p8/wBRd8nxVUYInzLvEPjyZM4lHIfIuHwHuJmQlHRPkYHsyBM8aTYQHHDYjz/krY68BAyHx4nb4EJpOD7I2Dtjc/Y3Dp2fzXiowovbCuQG2KYQAACXrjocRoPNe5WycJBEgZDr4nqYsaPOMa3+mNL/ALGl/tYUXtYel+sKUOe5UDgIUX/CFQ5ecmgYdQdgmY9RDFP+TjkTmFc5ICQ+AB7hRZYzDqFeVOZjy5zCr+Qqv1ClnohSz9QovcKhysClY2DipNXthCEGNBHTmNLGo7ETsSUorGqfUxHH3FFyz1Cmn4S9AoJKAipsaHOBGh+EwPqKHARUjZir2+SEIQlchEGih1KAqMtQBQl6YKewlPx/ZQyoQQMJc2m/k9MysfuMYsfcQhKysrLm0ZQzWbpEEePqJyn4+SVed/2UT+A/5NyX5ElOK5GMYxj7TwSsIS/FGBw/6wtHAVn/AN2T99g4ZKImPcvROTmK9JKCD+bssRjGPjPJAgQIQhL1UQgoADKFnFMIpQQeUnevtqo6OMpcALQaJqkL0XB5liMYkfYECBCBCEr3kUogvcWhzpFAQHY3VVe50/BRy47B2ojGJGZ7AgQgQIQhgK9RdV3Q6hCZ8JKuiLySxi/k/Y+M8hAhCEICuEUoYds73fkJRRElLlzvmNUUY+8hCVN4IpUVjdVf+Q+UlFHR4+5VLmjzLVa7s0688TYJBg73AVwNiAKuMvdVDqHEPm6JS6cjx+Sl63MY0HmrLFq7pF/SDNgwF6GFF5s5G9aCHc1VVw/PqCfPrFhxB3keZT+dOHklLl+Exg0d1IFU2rsSgawKA6nEb0BDGXbu5wRW3K7BczwOcQd+TYedDolV7SCGocsKL+8/k9GgAKq97L+iXohw/wCS9Gl0V46/JmszDvfGeauQfi33VdMZwE9GlGmgL9wA6i71PVpRoqG/UU3CJhA9mQh8WTJnjJXiIso3L4Gj2RL7p1Kl9162XVuUxA6mOzZkyZMmeD5jwOcT0gbqm4QdDJrPXOmDM94f0Psn/m6s/wCpBwIPb/k9c2g+D3nxnu9DCi/ayt+O5W5i7PWy1Lfpkwh7j5Az2nGn7KNqVSjhD1bhmw9a/wCy972qi6TYf3T5P//Z"}})])]):a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:s.name,placement:"bottom","open-delay":150}},[a("span",{staticClass:"user-dropdown-menu user-dropdown-user"},[s.key==="universalImport"?a("i",{staticClass:"gd-icons gd-icon-mulu"}):s.key==="advancedFind"?a("i",{staticClass:"gd-icons el-icon-search"}):s.key==="theme"?a("i",{staticClass:"gd-icons gd-icon-xitongshezhi"}):s.key==="fullScreen"?a("i",{staticClass:"gd-icons gd-icon-fangda"}):t._e()])])]:t._e()]})],2)])},_sfc_staticRenderFns$2d=[],__component__$2d=normalizeComponent(_sfc_main$2d,_sfc_render$2d,_sfc_staticRenderFns$2d,!1,null,"38bf144c",null,null);const sideHeader=__component__$2d.exports,sideMenus_vue_vue_type_style_index_0_scoped_8804c2be_lang="",_sfc_main$2c={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:!0}},data(){return{}},computed:{options(){return this.navParameters.logo||{}},list(){return this.treeData[0]?this.treeData[0].children:[]},tstyle(){return`font-size:${this.options.titleFont}px`},ystyle(){return`font-size:${this.options.subtitleFont}px`}},methods:{}};var _sfc_render$2c=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"side-menus"},[t.navParameters.logoOpen?[a("div",{directives:[{name:"show",rawName:"v-show",value:t.options.mode==="imageWithText",expression:"options.mode === 'imageWithText'"}],staticClass:"logo"},[a("div",{staticClass:"picture"},[t.options.smallPicture?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.smallPicture,expression:"options.smallPicture"}],staticStyle:{width:"42px",height:"42px"},attrs:{"data-url":t.options.smallPicture}}):t._e()]),t.collapsed?a("div",{staticClass:"company"},[a("div",{staticClass:"title line1",style:t.tstyle},[t._v(t._s(t.options.title))]),a("div",{staticClass:"ytitle line1",style:t.ystyle},[t._v(t._s(t.options.subtitle))])]):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.options.mode!=="imageWithText",expression:"options.mode !== 'imageWithText'"}],staticClass:"logo"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsed,expression:"!collapsed"}],staticClass:"picture"},[t.options.smallPicture?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.smallPicture,expression:"options.smallPicture"}],staticStyle:{width:"42px",height:"42px"},attrs:{"data-url":t.options.smallPicture}}):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.collapsed,expression:"collapsed"}],staticClass:"bpicture"},[t.options.bigPicture?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.bigPicture,expression:"options.bigPicture"}],staticStyle:{width:"100%",height:"44px"},attrs:{"data-url":t.options.bigPicture}}):t._e()])])]:t._e(),a("div",{staticClass:"list"},t._l(t.list,function(s,o){return a("div",{key:o,staticClass:"item",class:t.collapsed?"":"item-open"},[a("i",{staticClass:"gd-icons",class:s.icon}),t.collapsed?a("div",{staticClass:"name"},[t._v(t._s(s.name))]):t._e()])}),0)],2)},_sfc_staticRenderFns$2c=[],__component__$2c=normalizeComponent(_sfc_main$2c,_sfc_render$2c,_sfc_staticRenderFns$2c,!1,null,"8804c2be",null,null);const sideMenus=__component__$2c.exports,sideNav_vue_vue_type_style_index_0_scoped_c3035179_lang="",_sfc_main$2b={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]}},data(){return{collapsed:!0}},computed:{style(){return this.navParameters.isNavigation===0?"":this.collapsed?"padding-left: 172px;":"padding-left: 68px;"},stylew(){return this.collapsed?"width: 172px;":"width: 68px;"}},components:{sideHeader,sideMenus},methods:{toggle(){this.collapsed=!this.collapsed}}};var _sfc_render$2b=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-layout-nav",style:t.style},[t.navParameters.isNavigation===1?a("div",{staticClass:"nav-menu",style:t.stylew},[a("sideMenus",{attrs:{treeData:t.treeData,navParameters:t.navParameters,collapsed:t.collapsed}})],1):t._e(),a("div",{staticClass:"nav-main"},[t.navParameters.isNavigation===1?a("div",{staticClass:"nav-head"},[a("sideHeader",{attrs:{navParameters:t.navParameters,collapsed:t.collapsed},on:{toggle:t.toggle}})],1):t._e(),a("div",{staticClass:"nav-content",attrs:{id:"nav-content"}},[a("div",{staticClass:"nav-content-solt"},[t._t("default")],2)])])])},_sfc_staticRenderFns$2b=[],__component__$2b=normalizeComponent(_sfc_main$2b,_sfc_render$2b,_sfc_staticRenderFns$2b,!1,null,"c3035179",null,null);const sideNav=__component__$2b.exports,topNav_vue_vue_type_style_index_0_scoped_2a0862d5_lang="",_sfc_main$2a={data(){return{}},methods:{}};var _sfc_render$2a=function r(){var t=this,a=t._self._c;return a("div")},_sfc_staticRenderFns$2a=[],__component__$2a=normalizeComponent(_sfc_main$2a,_sfc_render$2a,_sfc_staticRenderFns$2a,!1,null,"2a0862d5",null,null);const topNav=__component__$2a.exports,main_vue_vue_type_style_index_0_scoped_c9295208_lang="",_sfc_main$29={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]}},data(){return{}},computed:{componentmenu(){return{sidemenu:sideNav,topmenu:topNav}[this.navParameters.layout]}},methods:{}};var _sfc_render$29=function r(){var t=this,a=t._self._c;return a(t.componentmenu,{tag:"component",attrs:{navParameters:t.navParameters,treeData:t.treeData}},[t._t("default")],2)},_sfc_staticRenderFns$29=[],__component__$29=normalizeComponent(_sfc_main$29,_sfc_render$29,_sfc_staticRenderFns$29,!1,null,"c9295208",null,null);const navBuild=__component__$29.exports,tableView_vue_vue_type_style_index_0_scoped_1b064941_lang="",_sfc_main$28={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},height:{type:Number,default:100}},data(){return{}},components:{ViewTable},computed:{componentItemed(){const r=this.$importViewFiles();let a=`../views/main/${this.options.table.tableName||this.options.table.tablename}/index.vue`,s=r[a];return s?s.default:ViewTable},show(){const r=!!this.options.table.id,t=!!this.options.view.id;return!(r&&t)},options(){return this.record.options}},methods:{}};var _sfc_render$28=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"view-table"},[t.show?a("div",{staticClass:"emport"},[t._v("~"+t._s(t.$i18nt("gd.module.pleaseClickOnFormGenerator","\u8BF7\u70B9\u51FB\u8868\u683C\u751F\u6210\u5668"))+"~")]):a(t.componentItemed,{tag:"component",attrs:{record:t.record,height:t.height,develop:t.develop},on:{changeData:s=>t.$emit("changeData",s),onSelectChange:(s,o)=>t.$emit("onSelectChange",s,o),fieldData:s=>t.$emit("fieldData",s)}})],1)},_sfc_staticRenderFns$28=[],__component__$28=normalizeComponent(_sfc_main$28,_sfc_render$28,_sfc_staticRenderFns$28,!1,null,"1b064941",null,null);const tableView=__component__$28.exports,editor_vue_vue_type_style_index_0_scoped_a667c585_lang="",_sfc_main$27={props:{record:{type:Object,default:()=>({})},model:{type:Object,default:()=>({})}},components:{quillEditor:vueQuillEditor.exports.quillEditor},data(){return{}},computed:{options(){return this.record.options},editorOption(){return{placeholder:this.options.placeholder!==void 0?this.options.placeholder===""?this.options.placeholder:this.$i18nt(`Dynamics.${this.options.placeholderTransKey}`,this.options.placeholder):this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}},style(){return{height:`${this.options.height|300}px`,width:`${this.options.width}${this.options.widthUnit}`}},disabled(){return this.options.disabled===void 0?!1:this.options.disabled}},methods:{onEditorBlur(){},onEditorFocus(){},onEditorChange(r){this.$emit("change",r.html)}},mounted(){this.$refs.vueQuillEditor.quill.enable(!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.vueQuillEditor.quill.blur(),this.$refs.vueQuillEditor.quill.enable(!0)},1e3)})}};var _sfc_render$27=function r(){var t=this,a=t._self._c;return a("quillEditor",{ref:"vueQuillEditor",staticClass:"ql-editor-class",class:{chinesization:!0},style:t.style,attrs:{options:t.editorOption,disabled:t.disabled},on:{blur:function(s){return t.onEditorBlur(s)},focus:function(s){return t.onEditorFocus(s)},change:function(s){return t.onEditorChange(s)}},model:{value:t.model[t.options.columnName],callback:function(s){t.$set(t.model,t.options.columnName,s)},expression:"model[options.columnName]"}})},_sfc_staticRenderFns$27=[],__component__$27=normalizeComponent(_sfc_main$27,_sfc_render$27,_sfc_staticRenderFns$27,!1,null,"a667c585",null,null);const editor=__component__$27.exports,divider_vue_vue_type_style_index_0_scoped_f3eaa07d_lang="",_sfc_main$26={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},style(){let r=this.record.css,t=[];r.padding&&r.padding.forEach(s=>{t.push(s+"px")}),r.margin&&r.margin.forEach(s=>{});let a=`padding:${t.join(" ")}`;return`background:${r.bjColor};${a};height:${r.height}px;width:${r.width}${r.labelUnit};`}},methods:{}};var _sfc_render$26=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"flex-div",style:t.style},[a("div",{staticStyle:{width:"100%"}},[a("el-divider",{attrs:{direction:t.options.direction,"content-position":t.options.position}},[t.options.title?[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]:t._e()],2)],1)])},_sfc_staticRenderFns$26=[],__component__$26=normalizeComponent(_sfc_main$26,_sfc_render$26,_sfc_staticRenderFns$26,!1,null,"f3eaa07d",null,null);const divider=__component__$26.exports;function getCss(r){let t="";for(let a in r)t+=getProperti(r,a);return t}function paddingData(r){let t=[];return(r.padding?r.padding:[]).forEach(s=>{t.push(s?`${s}px`:0)}),t.length===0?"":`padding:${t.join(" ")};`}function marginData(r){let t=[];return(r.margin?r.margin:[]).forEach(s=>{t.push(s?`${s}px`:0)}),t.length===0?"":`margin:${t.join(" ")};`}function backgroundData(r){const t=r.bjColor?r.bjColor:"";return t===""?"":`background-color:${t};`}function radiusData(r){let t=[];return(r.radius?r.radius:[]).forEach(s=>{t.push(s?`${s}px`:0)}),t.length===0?"":`border-radius:${t.join(" ")};`}function textAlign(r){const t=r.align?r.align:"";return t===""?"":`text-align:${t};`}function lineHeight(r){const t=r.lineHeight?r.lineHeight:"";return t===""?"":`line-height:${t}px;`}function letterSpacing(r){const t=r.letterSpacing?r.letterSpacing:"";return t===""?"":`letter-spacing:${t}px;`}function colorData(r){const t=r.color?r.color:"";return t===""?"":`color:${t};`}function fontSize(r){const t=r.fontSize?r.fontSize:"";return t===""?"":`font-size:${t}px;`}function fontWeight(r){const t=r.fontWeight?r.fontWeight:"";return t===""?"":`font-weight:${t};`}function textDecoration(r){const t=r.textDecoration?r.textDecoration:"";return t===""?"":`text-decoration:${t};`}function fontStyle(r){const t=r.fontStyle?r.fontStyle:"";return t===""?"":`font-style:${t};`}function maxLineClamp(r){const t=r.maxLineClamp?r.maxLineClamp:"";return t===""?"":`overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: ${t};-webkit-box-orient: vertical;`}function widthData(r){const t=r.flexWidth?r.flexWidth:"100",a=r.flexUnit?r.flexUnit:"%";return`width:${a==="%"?t>100?100:t:a==="auto"?"":t}${a};`}function flexDirection(r){const t=r.flexDirection?r.flexDirection:"";return t===""?"":`flex-direction:${t};`}function justifyContent(r){const t=r.justifyContent?r.justifyContent:"";return t===""?"":`justify-content:${t};`}function alignItems(r){const t=r.alignItems?r.alignItems:"";return t===""?"":`align-items:${t};`}function flexWrap(r){const t=r.flexWrap?r.flexWrap:"";return t===""?"":`flex-wrap:${t};`}function getProperti(r,t){switch(t){case"padding":return paddingData(r);case"margin":return marginData(r);case"bjColor":return backgroundData(r);case"radius":return radiusData(r);case"align":return textAlign(r);case"lineHeight":return lineHeight(r);case"letterSpacing":return letterSpacing(r);case"color":return colorData(r);case"fontSize":return fontSize(r);case"fontWeight":return fontWeight(r);case"textDecoration":return textDecoration(r);case"fontStyle":return fontStyle(r);case"maxLineClamp":return maxLineClamp(r);case"flexWidth":return widthData(r);case"flexDirection":return flexDirection(r);case"justifyContent":return justifyContent(r);case"alignItems":return alignItems(r);case"flexWrap":return flexWrap(r);default:return""}}const textContent_vue_vue_type_style_index_0_scoped_b07fe66c_lang="",_sfc_main$25={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]}},data(){return{}},watch:{fieldContext:{handler(r){this.record.fieldContext=this.fieldContext},deep:!0,immediate:!0}},computed:{columnName(){const r=this.options.columnContextName?this.options.columnContextName:[];return r[r.length-1]},options(){return this.record.options},style(){const r=this.record.customCss?this.record.customCss:"";return`${getCss(this.record.css)}${r}`},wstyle(){return`overflow: hidden;${this.develop==1?"":`${getCss(this.options)}max-width:100%;`}`}},methods:{},mounted(){}};var _sfc_render$25=function r(){var t=this,a=t._self._c;return a("div",{style:t.wstyle},[t.develop==1?a("div",{style:t.style},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]):[t.columnName?a("div",{style:t.style},[t._v(t._s(t.itemData[t.columnName]))]):a("div",{style:t.style},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))])]],2)},_sfc_staticRenderFns$25=[],__component__$25=normalizeComponent(_sfc_main$25,_sfc_render$25,_sfc_staticRenderFns$25,!1,null,"b07fe66c",null,null);const textContent=__component__$25.exports,title_vue_vue_type_style_index_0_scoped_eca0bb1b_lang="",_sfc_main$24={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},fstyle(){let r=this.record.css;return`color:${r.color};font-size:${r.fontSize}px;font-weight:${r.fontWeight};`},style(){let r=this.record.css,t=[],a=[];r.padding&&r.padding.forEach(l=>{t.push(l+"px")}),r.margin&&r.margin.forEach(l=>{a.push(l+"px")});let s=`padding:${t.join(" ")}`,o=`margin:${a.join(" ")}`;return`background:${r.bjColor};border-radius:${r.radius}px;${s};${o};`}},methods:{}};var _sfc_render$24=function r(){var t=this,a=t._self._c;return a("div",{style:t.style},[a("div",{staticClass:"subtitle",class:t.options.mode==="center"?"subtitlec":"subtitlel",style:t.fstyle},[a("div",{staticClass:"title",style:t.fstyle},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]),t.options.subtitle!==""?a("div",{staticClass:"titles",style:t.fstyle},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.subtransKey}`,t.options.subtitle))+" ")]):t._e(),t.options.iconShow&&t.options.mode==="left"?a("div",{staticClass:"jiant"},[a("i",{staticClass:"el-icon-arrow-right"})]):t._e()])])},_sfc_staticRenderFns$24=[],__component__$24=normalizeComponent(_sfc_main$24,_sfc_render$24,_sfc_staticRenderFns$24,!1,null,"eca0bb1b",null,null);const titleVlaue=__component__$24.exports,fonticon_vue_vue_type_style_index_0_scoped_12a9467b_lang="",_sfc_main$23={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]}},data(){return{}},watch:{fieldContext:{handler(r){this.record.fieldContext=this.fieldContext},deep:!0,immediate:!0}},computed:{options(){return this.record.options},style(){const r=this.record.customCss?this.record.customCss:"";return`${getCss(this.record.css)}cursor: pointer;${r}`},wstyle(){return`overflow: hidden;${this.develop==1?"":`${getCss(this.options)}max-width:100%;`}`}},methods:{change(){const r=this.options.columnContextName?this.options.columnContextName:[],t=r[r.length-1];console.log(t,this.itemData[t])}}};var _sfc_render$23=function r(){var t=this,a=t._self._c;return a("div",{style:t.wstyle},[a("div",{staticClass:"gd-icons",class:t.options.icon,style:t.style,on:{click:t.change}})])},_sfc_staticRenderFns$23=[],__component__$23=normalizeComponent(_sfc_main$23,_sfc_render$23,_sfc_staticRenderFns$23,!1,null,"12a9467b",null,null);const fonticon=__component__$23.exports,tag_vue_vue_type_style_index_0_scoped_f9f124d2_lang="",_sfc_main$22={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},style(){let r=this.record.css,t=[],a=[];r.padding&&r.padding.forEach(l=>{t.push(l+"px")}),r.margin&&r.margin.forEach(l=>{a.push(l+"px")});let s=`padding:${t.join(" ")}`,o=`margin:${a.join(" ")}`;return`${s};${o};text-align:${r.align};`}},methods:{}};var _sfc_render$22=function r(){var t=this,a=t._self._c;return a("div",{style:t.style},[a("div",[a("el-tag",{attrs:{effect:t.options.effect,color:t.options.color,size:t.options.size}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title))+" ")])],1)])},_sfc_staticRenderFns$22=[],__component__$22=normalizeComponent(_sfc_main$22,_sfc_render$22,_sfc_staticRenderFns$22,!1,null,"f9f124d2",null,null);const tagValue=__component__$22.exports,image_vue_vue_type_style_index_0_scoped_8ab5eb50_lang="",_sfc_main$21={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1}},data(){return{url:""}},watch:{imageUrl(r,t){r===""?this.url="":this.init()}},computed:{imageUrl(){return this.options.filePath},options(){return this.record.options},stylel(){let r=this.record.css;return`width:${r.width}${r.labelUnit};height:${r.height}px;object-fit:${r.objectFit};margin: 0 auto;`},style(){let r=this.record.css,t=[],a=[];r.padding&&r.padding.forEach(l=>{t.push(l+"px")}),r.margin&&r.margin.forEach(l=>{a.push(l+"px")});let s=`padding:${t.join(" ")}`,o=`margin:${a.join(" ")}`;return`${s};${o};`}},methods:{init(){if(!this.imageUrl)return;if(console.log(this.imageUrl),this.imageUrl.includes("http")){this.url=this.imageUrl;return}sysFileInfoPreview({id:this.imageUrl}).then(t=>{this.url=window.URL.createObjectURL(new Blob([t]))})}},mounted(){this.init()}};var _sfc_render$21=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"logo",style:t.style},[t.imageUrl?[a("img",{staticClass:"logs",style:t.stylel,attrs:{src:t.url}})]:t._e(),t.develop==1&&!t.imageUrl?a("div",{staticClass:"nlogo"},[a("div",{staticClass:"nlogos"},[t._m(0),a("div",{staticClass:"tip"},[t._v("~"+t._s(t.$i18nt("gd.module.pleaseUploadPicturesOnTheRight","\u8BF7\u5728\u53F3\u8FB9\u4E0A\u4F20\u56FE\u7247"))+"~")])])]):t._e()],2)},_sfc_staticRenderFns$21=[function(){var r=this,t=r._self._c;return t("div",{staticClass:"icons"},[t("div",{staticClass:"iconfont icon-image"})])}],__component__$21=normalizeComponent(_sfc_main$21,_sfc_render$21,_sfc_staticRenderFns$21,!1,null,"8ab5eb50",null,null);const imageFile=__component__$21.exports,linkItem_vue_vue_type_style_index_0_scoped_213aa6f5_lang="",_sfc_main$20={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},cstyle(){let r=this.record.css;return`color:${r.color};font-size:${r.fontSize}px;text-decoration:${r.textDecoration};
|
|
416
|
+
*/(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(r){return typeof r=="object"&&r.buffer&&r.buffer.constructor===ArrayBuffer});var createOutputMethod=function(r){return function(t){return new Md5(!0).update(t)[r]()}},createMethod=function(){var r=createOutputMethod("hex");NODE_JS&&(r=nodeWrap(r)),r.create=function(){return new Md5},r.update=function(s){return r.create().update(s)};for(var t=0;t<OUTPUT_TYPES.length;++t){var a=OUTPUT_TYPES[t];r[a]=createOutputMethod(a)}return r},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(r){if(typeof r=="string")return crypto.createHash("md5").update(r,"utf8").digest("hex");if(r==null)throw ERROR;return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),Array.isArray(r)||ArrayBuffer.isView(r)||r.constructor===Buffer?crypto.createHash("md5").update(new Buffer(r)).digest("hex"):method(r)};return nodeMethod};function Md5(r){if(r)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(r){if(!this.finalized){var t,a=typeof r;if(a!=="string"){if(a==="object"){if(r===null)throw ERROR;if(ARRAY_BUFFER&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!Array.isArray(r)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(r)))throw ERROR}else throw ERROR;t=!0}for(var s,o=0,l,d=r.length,u=this.blocks,f=this.buffer8;o<d;){if(this.hashed&&(this.hashed=!1,u[0]=u[16],u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),t)if(ARRAY_BUFFER)for(l=this.start;o<d&&l<64;++o)f[l++]=r[o];else for(l=this.start;o<d&&l<64;++o)u[l>>2]|=r[o]<<SHIFT[l++&3];else if(ARRAY_BUFFER)for(l=this.start;o<d&&l<64;++o)s=r.charCodeAt(o),s<128?f[l++]=s:s<2048?(f[l++]=192|s>>6,f[l++]=128|s&63):s<55296||s>=57344?(f[l++]=224|s>>12,f[l++]=128|s>>6&63,f[l++]=128|s&63):(s=65536+((s&1023)<<10|r.charCodeAt(++o)&1023),f[l++]=240|s>>18,f[l++]=128|s>>12&63,f[l++]=128|s>>6&63,f[l++]=128|s&63);else for(l=this.start;o<d&&l<64;++o)s=r.charCodeAt(o),s<128?u[l>>2]|=s<<SHIFT[l++&3]:s<2048?(u[l>>2]|=(192|s>>6)<<SHIFT[l++&3],u[l>>2]|=(128|s&63)<<SHIFT[l++&3]):s<55296||s>=57344?(u[l>>2]|=(224|s>>12)<<SHIFT[l++&3],u[l>>2]|=(128|s>>6&63)<<SHIFT[l++&3],u[l>>2]|=(128|s&63)<<SHIFT[l++&3]):(s=65536+((s&1023)<<10|r.charCodeAt(++o)&1023),u[l>>2]|=(240|s>>18)<<SHIFT[l++&3],u[l>>2]|=(128|s>>12&63)<<SHIFT[l++&3],u[l>>2]|=(128|s>>6&63)<<SHIFT[l++&3],u[l>>2]|=(128|s&63)<<SHIFT[l++&3]);this.lastByteIndex=l,this.bytes+=l-this.start,l>=64?(this.start=l-64,this.hash(),this.hashed=!0):this.start=l}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var r=this.blocks,t=this.lastByteIndex;r[t>>2]|=EXTRA[t&3],t>=56&&(this.hashed||this.hash(),r[0]=r[16],r[16]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=0),r[14]=this.bytes<<3,r[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var r,t,a,s,o,l,d=this.blocks;this.first?(r=d[0]-680876937,r=(r<<7|r>>>25)-271733879<<0,s=(-1732584194^r&2004318071)+d[1]-117830708,s=(s<<12|s>>>20)+r<<0,a=(-271733879^s&(r^-271733879))+d[2]-1126478375,a=(a<<17|a>>>15)+s<<0,t=(r^a&(s^r))+d[3]-1316259209,t=(t<<22|t>>>10)+a<<0):(r=this.h0,t=this.h1,a=this.h2,s=this.h3,r+=(s^t&(a^s))+d[0]-680876936,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[1]-389564586,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[2]+606105819,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[3]-1044525330,t=(t<<22|t>>>10)+a<<0),r+=(s^t&(a^s))+d[4]-176418897,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[5]+1200080426,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[6]-1473231341,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[7]-45705983,t=(t<<22|t>>>10)+a<<0,r+=(s^t&(a^s))+d[8]+1770035416,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[9]-1958414417,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[10]-42063,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[11]-1990404162,t=(t<<22|t>>>10)+a<<0,r+=(s^t&(a^s))+d[12]+1804603682,r=(r<<7|r>>>25)+t<<0,s+=(a^r&(t^a))+d[13]-40341101,s=(s<<12|s>>>20)+r<<0,a+=(t^s&(r^t))+d[14]-1502002290,a=(a<<17|a>>>15)+s<<0,t+=(r^a&(s^r))+d[15]+1236535329,t=(t<<22|t>>>10)+a<<0,r+=(a^s&(t^a))+d[1]-165796510,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[6]-1069501632,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[11]+643717713,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[0]-373897302,t=(t<<20|t>>>12)+a<<0,r+=(a^s&(t^a))+d[5]-701558691,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[10]+38016083,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[15]-660478335,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[4]-405537848,t=(t<<20|t>>>12)+a<<0,r+=(a^s&(t^a))+d[9]+568446438,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[14]-1019803690,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[3]-187363961,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[8]+1163531501,t=(t<<20|t>>>12)+a<<0,r+=(a^s&(t^a))+d[13]-1444681467,r=(r<<5|r>>>27)+t<<0,s+=(t^a&(r^t))+d[2]-51403784,s=(s<<9|s>>>23)+r<<0,a+=(r^t&(s^r))+d[7]+1735328473,a=(a<<14|a>>>18)+s<<0,t+=(s^r&(a^s))+d[12]-1926607734,t=(t<<20|t>>>12)+a<<0,o=t^a,r+=(o^s)+d[5]-378558,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[8]-2022574463,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[11]+1839030562,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[14]-35309556,t=(t<<23|t>>>9)+a<<0,o=t^a,r+=(o^s)+d[1]-1530992060,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[4]+1272893353,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[7]-155497632,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[10]-1094730640,t=(t<<23|t>>>9)+a<<0,o=t^a,r+=(o^s)+d[13]+681279174,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[0]-358537222,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[3]-722521979,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[6]+76029189,t=(t<<23|t>>>9)+a<<0,o=t^a,r+=(o^s)+d[9]-640364487,r=(r<<4|r>>>28)+t<<0,s+=(o^r)+d[12]-421815835,s=(s<<11|s>>>21)+r<<0,l=s^r,a+=(l^t)+d[15]+530742520,a=(a<<16|a>>>16)+s<<0,t+=(l^a)+d[2]-995338651,t=(t<<23|t>>>9)+a<<0,r+=(a^(t|~s))+d[0]-198630844,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[7]+1126891415,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[14]-1416354905,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[5]-57434055,t=(t<<21|t>>>11)+a<<0,r+=(a^(t|~s))+d[12]+1700485571,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[3]-1894986606,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[10]-1051523,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[1]-2054922799,t=(t<<21|t>>>11)+a<<0,r+=(a^(t|~s))+d[8]+1873313359,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[15]-30611744,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[6]-1560198380,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[13]+1309151649,t=(t<<21|t>>>11)+a<<0,r+=(a^(t|~s))+d[4]-145523070,r=(r<<6|r>>>26)+t<<0,s+=(t^(r|~a))+d[11]-1120210379,s=(s<<10|s>>>22)+r<<0,a+=(r^(s|~t))+d[2]+718787259,a=(a<<15|a>>>17)+s<<0,t+=(s^(a|~r))+d[9]-343485551,t=(t<<21|t>>>11)+a<<0,this.first?(this.h0=r+1732584193<<0,this.h1=t-271733879<<0,this.h2=a-1732584194<<0,this.h3=s+271733878<<0,this.first=!1):(this.h0=this.h0+r<<0,this.h1=this.h1+t<<0,this.h2=this.h2+a<<0,this.h3=this.h3+s<<0)},Md5.prototype.hex=function(){this.finalize();var r=this.h0,t=this.h1,a=this.h2,s=this.h3;return HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[a&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var r=this.h0,t=this.h1,a=this.h2,s=this.h3;return[r&255,r>>8&255,r>>16&255,r>>24&255,t&255,t>>8&255,t>>16&255,t>>24&255,a&255,a>>8&255,a>>16&255,a>>24&255,s&255,s>>8&255,s>>16&255,s>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var r=new ArrayBuffer(16),t=new Uint32Array(r);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,r},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var r,t,a,s="",o=this.array(),l=0;l<15;)r=o[l++],t=o[l++],a=o[l++],s+=BASE64_ENCODE_CHAR[r>>>2]+BASE64_ENCODE_CHAR[(r<<4|t>>>4)&63]+BASE64_ENCODE_CHAR[(t<<2|a>>>6)&63]+BASE64_ENCODE_CHAR[a&63];return r=o[l],s+=BASE64_ENCODE_CHAR[r>>>2]+BASE64_ENCODE_CHAR[r<<4&63]+"==",s};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5);const main_vue_vue_type_style_index_0_scoped_29082992_lang="",_sfc_main$2T={name:"GdUserPermissions",props:{height:{type:Number,default:100}},data(){return{searcLoading:!1,loading:!1,userId:"",userList:[],fkEntityName:"sys_user"}},computed:{styled(){return`height:${this.height+76}px`}},methods:{query(){},searchData(r){this.searcLoading=!0,baseFkList({name:r,fkEntityName:this.fkEntityName}).then(t=>{t.code===200&&(this.userList=t.data),this.searcLoading=!1})},change(r){r!==""&&this.getUseRole()},getUseRole(){this.loading=!0,sysUserOwnRole({id:this.userId}).then(r=>{this.loading=!1,r.code===200&&(this.userList=r.data)})}},created(){this.searchData("")}};var _sfc_render$2T=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view",staticStyle:{display:"flex",background:"rgb(245, 245, 245)"}},[a("div",{staticClass:"page-view-trees",style:t.styled},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"trees-operatorl"},[a("el-select",{staticClass:"treesr-input",attrs:{placeholder:t.$i18nt("gd.teamSharing.name","\u89D2\u8272\u540D"),clearable:"",filterable:"",loading:t.searcLoading,"remote-method":t.searchData,clearable:"",remote:""},on:{change:t.change},model:{value:t.userId,callback:function(s){t.userId=s},expression:"userId"}},t._l(t.userList,function(s){return a("el-option",{key:s.id,attrs:{label:s.name,value:s.id}})}),1),a("div",{staticClass:"treesr-search",on:{click:t.query}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"trees-list"})]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"page-view-list"})])},_sfc_staticRenderFns$2T=[],__component__$2T=normalizeComponent(_sfc_main$2T,_sfc_render$2T,_sfc_staticRenderFns$2T,!1,null,"29082992",null,null);const GDpackage$g=__component__$2T.exports;GDpackage$g.install=function(r){r.component(GDpackage$g.name,GDpackage$g)};function sysDataSourcePage(r){return window.axios({url:"/sysDataSource/page",method:"get",params:r})}function sysDataSourceAdd(r){return window.axios({url:"/sysDataSource/add",method:"post",data:r})}function sysDataSourceDel(r){return window.axios({url:"/sysDataSource/delete",method:"post",data:r})}function sysDataSourceEdit(r){return window.axios({url:"/sysDataSource/edit",method:"post",data:r})}function sysDataSourceConnection(r){return window.axios({url:"/sysDataSource/testConnection",method:"post",data:r})}function sysDataSourceDetail(r){return window.axios({url:"/sysDataSource/detail",method:"get",params:r})}function sysDataSourceColumns(r){return window.axios({url:"/sysDataSource/getTableColumns",method:"post",data:r})}const mixins$n={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{type:"selection-radio",width:"60",fixed:!0},{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"input"})},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",width:"180",type:"slot",slotType:"datasourcetype",align:"left",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"selectMultiple",dictTypeCode:"datasourcetype"})},{transKey:"gd.dataSource.host",prop:"host",width:"200",label:"\u4E3B\u673A",align:"left"},{transKey:"gd.dataSource.port",prop:"port",width:"120",label:"\u7AEF\u53E3",align:"left"},{transKey:"gd.dataSource.database",prop:"database",width:"180",label:"\u6570\u636E\u5E93",align:"left"},{transKey:"gd.user.status",prop:"statecodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left"},{transKey:"gd.dataSource.connectionString",prop:"connectstring",width:"260",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",align:"left"},{transKey:"gd.fieldSecurity.createdTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.task.description",prop:"description",width:"260",label:"\u63CF\u8FF0",align:"left"}],formColumns:[{transKey:"gd.dataSource.name",effectType:"input",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",effectType:"select",label:"\u6570\u636E\u6E90\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"datasourcetype",rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.dataSource.host",effectType:"input",prop:"host",label:"\u4E3B\u673A",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.port",effectType:"input",prop:"port",label:"\u7AEF\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.database",effectType:"input",prop:"database",label:"\u6570\u636E\u5E93",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.dataSource.userName",effectType:"input",prop:"userid",label:"\u7528\u6237\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.user.paw",effectType:"input",prop:"password",label:"\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}],type:"slot",slotType:"password"},{transKey:"gd.dataSource.extend",effectType:"input",prop:"extraparm",label:"\u6269\u5C55",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.dataSource.connectionString",effectType:"textarea",prop:"connectstring",label:"\u8FDE\u63A5\u5B57\u7B26\u4E32",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}},{transKey:"gd.task.description",effectType:"textarea",prop:"description",label:"\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[],autosize:{minRows:4,maxRows:6}}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysDataSource:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysDataSource:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysDataSource:delete"}],formButtons:[{displayName:"\u6D4B\u8BD5\u8FDE\u63A5",functionName:"handleConnection",show:!0,transKey:"gd.dataSource.testConnection",icon:"el-icon-connection",validate:!0},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.dataSource.name",prop:"name",label:"\u8FDE\u63A5\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.dataSource.dataSourceType",prop:"datasourcetype",label:"\u6570\u636E\u6E90\u7C7B\u578B",effectType:"selectMultiple",dictTypeCode:"datasourcetype",rules:[]}]}}},main_vue_vue_type_style_index_0_scoped_f319dc31_lang="",_sfc_main$2S={name:"GdDataSource",props:{height:{type:Number,default:100},openMode:{type:[String,Number],default:1},record:{type:Object,default:()=>({})}},mixins:[tablesFilter,mixins$n],data(){return{transKey:"gd.btn.add",formLoading:!1,loading:!0,selectedRowKeys:[],selectedRows:[],queryParam:{},type:"password",loadData:r=>sysDataSourcePage(Object.assign(r,this.queryParam)).then(t=>(t.success&&this.openMode==2&&this.$emit("changeData",t.data.rows),t.data))}},computed:{getTableColumns(){return this.tableColumns.filter(r=>r.type==="selection"?this.openMode==1:r.type==="selection-radio"?this.openMode!=1:!0)},getHeight(){const r=this.openMode==2?80:0;return this.height-r},...mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{swichType(){this.type=this.type==="password"?"text":"password"},saveQueries(r){this.queryParam={...r},this.refresh()},refresh(){this.$refs.table.refresh()},editForm(r){this.transKey="gd.btn.edit",this.formLoading=!0,this.$refs.editForm.open(r).then(t=>{const a=sysDataSourceDetail({id:r.id});t.done(a),this.formLoading=!1})},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[];this.selectedRows.forEach(o=>{let l=sysDataSourceDel(o).then(d=>d);s.push(l)}),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(o=>{a();const l=o.filter(d=>!d.success);l.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+l[0].message),this.handleOk(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0})},add(){this.transKey="gd.btn.add",this.$refs.editForm.open(null)},async edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},sbumit({data:r,record:t,btn:a},s,o){let l=a.item.functionName;this[l]&&this[l]({data:r,record:t,btn:a},s,o)},handleSubmit({data:r,record:t,btn:a},s,o){this.formLoading=!0,(t?sysDataSourceEdit:sysDataSourceAdd)(r).then(d=>{d.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),o(),this.handleOk()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+d.message),this.formLoading=!1})},handleConnection({data:r,record:t,btn:a},s,o){this.formLoading=!0,sysDataSourceConnection(r).then(l=>{l.code===400?this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+l.message):this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.formLoading=!1})},handleOk(){this.$refs.table.refresh()},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a!=null&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}},mounted(){if(this.openMode==2&&this.record.options.val!==void 0){const r=typeof this.record.options.val;let t=r==="string"||r==="number"?[this.record.options.val]:[...this.record.options.val];this.selectedRowKeys=t.filter(a=>a!=="")}}};var _sfc_render$2S=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.getTableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""},on:{click:t.editForm}})]}},{key:"datasourcetype",fn:function({column:s,row:o}){return[t.dictSwitch(o.datasourcetype,"datasourcetype")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(o.datasourcetype,"datasourcetype")}},[t._v(" "+t._s(t._f("dictType")("datasourcetype",o.datasourcetype))+" ")]):a("span",[t._v(t._s(t._f("dictType")("datasourcetype",o.datasourcetype)))])]}},{key:"statecodes",fn:function({column:s,row:o}){return[t.dictSwitch(o.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(o.statecodes,"state_code")}},[t._v(" "+t._s(t._f("dictType")("state_code",o.statecodes))+" ")]):a("span",[t._v(t._s(t._f("dictType")("state_code",o.statecodes)))])]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.dataSource.name","\u8FDE\u63A5\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:t.refresh.apply(null,arguments)}},model:{value:t.queryParam.name,callback:function(s){t.$set(t.queryParam,"name",s)},expression:"queryParam.name"}}),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("gd-edit-form",{ref:"editForm",attrs:{formItemWidth:"90%",loading:t.formLoading,transKey:t.transKey,buttons:t.formButtons,columns:t.formColumns,labelPosition:t.labelPosition,formMode:t.formMode,needLoad:!0},on:{sbumit:t.sbumit},scopedSlots:t._u([{key:"password",fn:function({data:s,column:o}){return[a("el-input",{attrs:{type:t.type,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:s[o.prop],callback:function(l){t.$set(s,o.prop,l)},expression:"data[column.prop]"}},[a("i",{staticClass:"el-input__icon gd-icons",class:t.type==="password"?"gd-icon-icon-test2":"gd-icon-icon-test1",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:t.swichType},slot:"suffix"})])]}}])})],1)},_sfc_staticRenderFns$2S=[],__component__$2S=normalizeComponent(_sfc_main$2S,_sfc_render$2S,_sfc_staticRenderFns$2S,!1,null,"f319dc31",null,null);const GDpackage$f=__component__$2S.exports;GDpackage$f.install=function(r){r.component(GDpackage$f.name,GDpackage$f)};const mixins$m={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0(\u70B9\u51FB\u53EF\u6392\u5E8F)",type:"slot",slotType:"sysCodeGenId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.flow.explain",prop:"description",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowProcess:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowProcess:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowProcess:delete"},{displayName:"\u6392\u5E8F",functionName:"sortSel",show:!0,transKey:"gd.btn.sort",icon:"el-icon-rank",name:"sysFlowProcess:sort"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},processFlow_vue_vue_type_style_index_0_scoped_7e620e71_lang="",_sfc_main$2R={props:{height:{type:Number,default:0}},mixins:[tablesFilter,mixins$m],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:r=>onlineBizProcessPage(Object.assign(r,this.queryParam)).then(t=>(this.upStatuList=null,t.data)),detail:{}}},computed:{getHeight(){return this.height-55},styled(){return this.$hasPerm("sysFlowProcess:edit")?`color:${this.primaryColor};cursor: pointer;`:""},...mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign:flowDesign$2,FlowsSort},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[],o=onlineBizProcessDel({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(o),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(l=>{a(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0;const d=l.filter(u=>!u.success);d.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+d[0].message),this.refresh()})},enabling(r){let t=Object.assign({...r},{statecodes:r.statecodes==1?0:1}),a=r.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(a,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r.statecodes==1?this.$i18nt("gd.state.disable"):this.$i18nt("gd.state.enable"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,o,l)=>{this.enabHand(s,o,l,t)}})},enabHand(r,t,a,s){if(r!=="confirm"){a();return}let o=[],l=onlineBizProcessEdit(s).then(d=>d);o.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(o).then(d=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const u=d.filter(f=>!f.success);u.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+u[0].message),this.refresh()})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},saveQueries(r){this.queryParam={...r},this.refresh()},editForm(r){this.$refs.flowDesign.open(r.id)},sortList(r){!this.$hasPerm("sysFlowProcess:sort")||(this.detail=r,this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsSort.open()},0)}))},sortSel(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.detail=this.selectedRows[0],this.$nextTick(()=>{setTimeout(()=>{this.$refs.flowsSort.open()},0)})},refresh(){this.$refs.table.refresh()},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a!=null&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2R=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,filtering:!0,initialLoading:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.table.tableNameTip","\u8BF7\u8F93\u5165\u8868\u540D\u79F0"),"reserve-keyword":"",clearable:"","collapse-tags":!0},model:{value:t.queryParam.tableId,callback:function(s){t.$set(t.queryParam,"tableId",s)},expression:"queryParam.tableId"}},t._l(t.tableLists,function(s){return a("el-option",{key:s.id,attrs:{label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+t._s(s.tablename)+" ")])}),1),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:s,row:o}){return[a("div",{staticClass:"active-color line1",staticStyle:{cursor:"pointer"},on:{click:function(l){return t.editForm(o)}}},[t._v(t._s(o.name))])]}},{key:"sysCodeGenId",fn:function({column:s,row:o}){return[o.syscodegen?a("span",{style:t.styled,on:{click:function(l){return t.sortList(o)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${o.syscodegen.transkey}`,o.syscodegen.busname))+" ")]):t._e()]}},{key:"stateCodes",fn:function(s){return[t.dictSwitch(s.row.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(s.row.statecodes,"state_code")},on:{click:function(o){return t.enabling(s.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",s.row.statecodes))+" ")]):a("span",{on:{click:function(o){return t.enabling(s.row)}}},[t._v(t._s(t._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}}),a("FlowsSort",{ref:"flowsSort",attrs:{record:t.detail},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2R=[],__component__$2R=normalizeComponent(_sfc_main$2R,_sfc_render$2R,_sfc_staticRenderFns$2R,!1,null,"7e620e71",null,null);const processFlow=__component__$2R.exports,mixins$l={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.processName",prop:"name",label:"\u6D41\u7A0B\u540D\u79F0",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.process.tableSort",prop:"sysCodeGenId",label:"\u8868\u540D\u79F0",type:"slot",slotType:"sysCodeGenId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowWork:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowWork:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowWork:delete"}],tableQueries:[{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]}]}}},workFlow_vue_vue_type_style_index_0_scoped_2cdbda5e_lang="",_sfc_main$2Q={props:{height:{type:Number,default:0}},mixins:[tablesFilter,mixins$l],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:r=>onlineWorkflowPage(Object.assign(r,this.queryParam)).then(t=>(this.upStatuList=null,t.data)),confirmLoading:!1,upStatuList:null}},computed:{getHeight(){return this.height-55},...mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign:flowDesign$1},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[],o=onlineWorkflowDel({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(o),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(l=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const d=l.filter(u=>!u.success);d.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+d[0].message),this.refresh(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0})},getDetail(r){this.confirmLoading=!0,onlineWorkflowDetails({id:r}).then(t=>{t.success&&(this.upStatuList=t.data)})},enabling(r){if(!this.$hasPerm("sysFlowWork:edit"))return;this.getDetail(r.id);let t=r.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(t,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r.statecodes==1?this.$i18nt("gd.state.disable","\u7981\u7528"):this.$i18nt("gd.state.enable","\u542F\u7528"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,s,o)=>{this.upStatuList.data.statecodes=r.statecodes==1?0:1,this.enabHand(a,s,o,this.upStatuList)}})},enabHand(r,t,a,s){if(r!=="confirm"){a();return}let o=[],l=onlineWorkflowEdit(s).then(d=>d);o.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(o).then(d=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const u=d.filter(f=>!f.success);u.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+u[0].message),this.refresh()})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},saveQueries(r){this.queryParam={...r},this.refresh()},editForm(r){this.$refs.flowDesign.open(r.id)},refresh(){this.upStatuList=null,this.$refs.table.refresh()},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a!=null&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2Q=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,initialLoading:!1,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.table.tableNameTip","\u8BF7\u8F93\u5165\u8868\u540D\u79F0"),"reserve-keyword":"",clearable:"","collapse-tags":!0},model:{value:t.queryParam.tableId,callback:function(s){t.$set(t.queryParam,"tableId",s)},expression:"queryParam.tableId"}},t._l(t.tableLists,function(s){return a("el-option",{key:s.id,attrs:{label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname),value:s.id}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname))+" "+t._s(s.tablename)+" ")])}),1),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""},on:{click:t.editForm}})]}},{key:"sysCodeGenId",fn:function({column:s,row:o}){return[o.syscodegen?a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${o.syscodegen.transkey}`,o.syscodegen.busname))+" ")]):t._e()]}},{key:"stateCodes",fn:function(s){return[t.dictSwitch(s.row.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(s.row.statecodes,"state_code")},on:{click:function(o){return t.enabling(s.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",s.row.statecodes))+" ")]):a("span",{on:{click:function(o){return t.enabling(s.row)}}},[t._v(t._s(t._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2Q=[],__component__$2Q=normalizeComponent(_sfc_main$2Q,_sfc_render$2Q,_sfc_staticRenderFns$2Q,!1,null,"2cdbda5e",null,null);const workFlow=__component__$2Q.exports,mixins$k={data(){return{tableColumns:[{type:"selection",width:"60"},{transKey:"gd.flow.approval.name",prop:"name",label:"\u540D\u79F0",width:"220",type:"slot",slotType:"name",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.approval.table",prop:"tableId",label:"\u5173\u8054\u8868",width:"160",type:"slot",slotType:"tableId",align:"left",showOverflowTooltip:!0},{transKey:"gd.flow.approval.classify",prop:"category",width:"160",label:"\u5206\u7C7B",type:"slot",slotType:"category",align:"left"},{transKey:"gd.flow.approval.code",prop:"encode",width:"160",label:"\u7F16\u7801",align:"left"},{transKey:"gd.flow.state",prop:"stateCodes",width:"120",label:"\u72B6\u6001",type:"slot",slotType:"stateCodes",align:"left"},{transKey:"gd.flow.creationTime",prop:"createdtime",width:"160",label:"\u521B\u5EFA\u65F6\u95F4",align:"center"},{transKey:"gd.flow.explain",prop:"description",width:"160",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysFlowApproval:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysFlowApproval:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysFlowApproval:delete"}],tableQueries:[{transKey:"gd.flow.approval.name",prop:"keyword",label:"\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.process.tableSor",prop:"tableId",label:"\u8868\u540D\u79F0",effectType:"selectTable",rules:[]},{transKey:"gd.flow.state",prop:"stateCodes",label:"\u72B6\u6001",effectType:"select",dictTypeCode:"state_code",rules:[]},{transKey:"gd.flow.state",prop:"category",label:"\u5206\u7C7B",effectType:"select",dictTypeCode:"table_flows_type",rules:[]}]}}},approvalFlow_vue_vue_type_style_index_0_scoped_858b2eef_lang="",_sfc_main$2P={props:{height:{type:Number,default:0}},mixins:[tablesFilter,mixins$k],data(){return{selectedRows:[],selectedRowKeys:[],queryParam:{},loadData:r=>{let t={...this.queryParam};return t.stateCodes!=null&&(t=Object.assign({...t},{stateCodes:t.stateCodes})),approvalProcess(Object.assign(r,t)).then(a=>{if(a.code===200){const s=a.data.rows.map(o=>{const l=this.tableLists.filter(d=>d.id===o.tableid)[0];return Object.assign(o,l?{tableData:l}:{})});Object.assign(a.data,{rows:s})}return a.data})}}},computed:{getHeight(){return this.height-55},...mapGetters(["tableLists","tablePageSize","tableSize","screenHeight","labelPosition","formMode","primaryColor"])},components:{flowDesign},methods:{add(){this.transKey="gd.btn.add",this.visible=!0,this.$refs.flowDesign.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}let s=[],o=approvalProcessDel({ids:this.selectedRowKeys.join(",")}).then(l=>l);s.push(o),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(s).then(l=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a();const d=l.filter(u=>!u.success);d.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+d[0].message),this.refresh()})},enabling(r){let t=Object.assign({...r},{statecodes:r.statecodes==1?0:1}),a=r.statecodes==1?"\u662F\u5426\u7981\u7528?":"\u662F\u5426\u542F\u7528?";this.$confirm(a,this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:r.statecodes==1?this.$i18nt("gd.state.disable"):this.$i18nt("gd.state.enable"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,o,l)=>{this.enabHand(s,o,l,t)}})},enabHand(r,t,a,s){if(r!=="confirm"){a();return}let o=[],l=approvalProcessEdit(s).then(d=>d);o.push(l),t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,Promise.all(o).then(d=>{a(),t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0;const u=d.filter(f=>!f.success);u.length===0?this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+u[0].message),this.refresh()})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},saveQueries(r){this.queryParam={...r},this.refresh()},editForm(r){this.$refs.flowDesign.open(r.id)},refresh(){this.$refs.table.refresh()},dictSwitch(r,t){let a=this.$options.filters.dictData(t).filter(s=>s.code==r)[0];return a&&a.colour?a.colour:null},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2P=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-page-view"},[a("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,height:t.getHeight,initialLoading:!1,filtering:!0},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorl"},[a("el-input",{staticClass:"table-operator-input",attrs:{placeholder:t.$i18nt("gd.flow.approval.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(s){return!s.type.indexOf("key")&&t._k(s.keyCode,"enter",13,s.key,"Enter")?null:t.refresh.apply(null,arguments)}},model:{value:t.queryParam.keyword,callback:function(s){t.$set(t.queryParam,"keyword",s)},expression:"queryParam.keyword"}}),a("div",{staticClass:"table-operator-search",on:{click:t.refresh}},[a("i",{staticClass:"el-input__icon el-icon-search"})])],1),a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0},{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:""},on:{click:t.editForm}})]}},{key:"tableId",fn:function({column:s,row:o}){return[o.tableData?a("span",[t._v(t._s(t.$i18nt(`Dynamics.${o.tableData.transkey}`,o.tableData.busname)))]):t._e()]}},{key:"stateCodes",fn:function(s){return[t.dictSwitch(s.row.statecodes,"state_code")?a("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",color:t.dictSwitch(s.row.statecodes,"state_code")},on:{click:function(o){return t.enabling(s.row)}}},[t._v(" "+t._s(t._f("dictType")("state_code",s.row.statecodes))+" ")]):a("span",{on:{click:function(o){return t.enabling(s.row)}}},[t._v(t._s(t._f("dictType")("state_code",s.row.statecodes)))])]}},{key:"category",fn:function(s){return[a("span",[t._v(t._s(t._f("dictType")("table_flows_type",s.row.category)))])]}},{key:"filtering",fn:function({colse:s,visible:o}){return[a("gd-table-queries-field",{attrs:{columns:t.tableQueries,height:t.getHeight,queryParam:t.queryParam,colse:s,visible:o},on:{save:t.saveQueries}})]}}])})],1),a("flowDesign",{ref:"flowDesign",on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2P=[],__component__$2P=normalizeComponent(_sfc_main$2P,_sfc_render$2P,_sfc_staticRenderFns$2P,!1,null,"858b2eef",null,null);const approvalFlow=__component__$2P.exports,main_vue_vue_type_style_index_0_scoped_5b2819f1_lang="",_sfc_main$2O={props:{height:{type:Number,default:0}},name:"GdFlowList",data(){return{type:"process"}},computed:{getHeight(){return this.height}},components:{processFlow,workFlow,approvalFlow},mounted(){this.$hasPerm("sysFlowProcess:page")?this.type="process":this.$hasPerm("sysFlowWork:page")?this.type="work":this.$hasPerm("sysFlowApproval:page")&&(this.type="approval")},methods:{tabChange(r){this.$nextTick(()=>{setTimeout(()=>{this.$refs[this.type+"Flow"].refresh()},0)})}}};var _sfc_render$2O=function r(){var t=this,a=t._self._c;return a("div",[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.tabChange},model:{value:t.type,callback:function(s){t.type=s},expression:"type"}},[a("el-tab-pane",{attrs:{name:"process",label:t.$i18nt("gd.flow.process.title","\u4E1A\u52A1\u6D41\u7A0B")}},[t.$hasPerm("sysFlowProcess:page")&&t.type=="process"?a("processFlow",{ref:"processFlow",attrs:{height:t.getHeight}}):t._e()],1),a("el-tab-pane",{attrs:{name:"work",label:t.$i18nt("gd.flow.work.title","\u5DE5\u4F5C\u6D41\u7A0B")}},[t.$hasPerm("sysFlowWork:page")&&t.type=="work"?a("workFlow",{ref:"workFlow",attrs:{height:t.getHeight}}):t._e()],1),a("el-tab-pane",{attrs:{name:"approval",label:t.$i18nt("gd.flow.approval.title","\u5BA1\u6279\u6D41\u7A0B")}},[t.$hasPerm("sysFlowApproval:page")&&t.type=="approval"?a("approvalFlow",{ref:"approvalFlow",attrs:{height:t.getHeight}}):t._e()],1)],1)],1)},_sfc_staticRenderFns$2O=[],__component__$2O=normalizeComponent(_sfc_main$2O,_sfc_render$2O,_sfc_staticRenderFns$2O,!1,null,"5b2819f1",null,null);const GDpackage$e=__component__$2O.exports;GDpackage$e.install=function(r){r.component(GDpackage$e.name,GDpackage$e)};const index_vue_vue_type_style_index_0_scoped_68d86fd3_lang="",_sfc_main$2N={props:{placement:{type:String,default:"top"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(r){this.visible=!1,!this.disabled&&this.$emit("selType",r)}}};var _sfc_render$2N=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"lian"},[a("div",{ref:"lianBtn",staticClass:"lian-btn"},[a("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[a("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),a("div",{staticClass:"connect-solid"},[a("el-divider")],1),a("div",{staticClass:"contents"},[a("div",{staticClass:"item term",on:{click:function(s){return t.selType("condition")}}},[a("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])]),a("div",{staticClass:"item move",on:{click:function(s){return t.selType("step")}}},[a("i",{staticClass:"gd-icons gd-icon-Interaction anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))])])]),a("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$2N=[],__component__$2N=normalizeComponent(_sfc_main$2N,_sfc_render$2N,_sfc_staticRenderFns$2N,!1,null,"68d86fd3",null,null);const ConnectDesigner$2=__component__$2N.exports,index_vue_vue_type_style_index_0_scoped_f73071ec_lang="",_sfc_main$2M={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,fetching:!1,show:!1,ruleFormData:{name:"",sysCodeGenId:"",code:"",span:"",description:"",stateCodes:"",transKey:null,langs:"[]"},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],span:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},confirmLoading:!1}},components:{ConnectDesigner:ConnectDesigner$2},computed:{getTableLists(){return this.tableLists.filter(r=>(r.isbusinessprocess===void 0?1:r.isbusinessprocess)===1)},getName(){let r=this.record.data.name;if(this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(a=>a.code==this.language)[0];r=t==null?r:t.val}else this.record.data.transKey&&(r=this.$i18nt(`Dynamics.${this.record.data.transKey}`,r));return r},disabled(){return!this.permissionsBnt||this.stateCodes==1?!0:this.record.data.code!==""},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","primaryColor","tableLists"])},methods:{lookupSeled(r){let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleFormData=Object.assign(this.ruleFormData,{name:r.defaulttext,langs:JSON.stringify(t)}),this.record.data.langs=t,this.record.data.name=r.defaulttext},sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)}),this.onClose(1))})},see(){this.show=this.record.data.stateCodes!==void 0,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let r={span:this.record.data.span,name:this.record.data.name,sysCodeGenId:Number(this.record.data.sysCodeGenId),description:this.record.data.description,code:this.record.data.code,transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.record.data.stateCodes!==void 0&&(r=Object.assign(r,{stateCodes:this.record.data.stateCodes})),console.log(this.record.data.stateCodes,"str"),this.ruleFormData=Object.assign({...r}),this.$refs.gdTranslation},0)})},afterVisibleChange(){if(this.visible)return;let r=this.form.getFieldsValue();this.record.data=r},handleChange(r){this.record.data.title=r},onClose(r){if(r!=null&&r==1){this.visible=!1;return}if(this.record.data.transKey){let t=this.ruleFormData,a=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:a,name:t.name})}this.visible=!1},selType(r){this.$emit("addType",r,this.index)},getDictionary(r){return this.$options.filters.dictData(r)}}};var _sfc_render$2M=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"start"},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(s){t.$set(t.ruleFormData,"transKey",s)},expression:"ruleFormData.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(s){t.$set(t.ruleFormData,"langs",s)},expression:"ruleFormData.langs"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.name"),prop:"name"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:t.visible&&!t.record.data.transKey,expression:"visible && !record.data.transKey"}],staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}}),t.visible&&t.record.data.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.record.data,keyI18n:"transKey",type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.table"),prop:"sysCodeGenId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),disabled:!0,filterable:"",remote:"","reserve-keyword":"",loading:t.fetching},model:{value:t.ruleFormData.sysCodeGenId,callback:function(s){t.$set(t.ruleFormData,"sysCodeGenId",s)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.getTableLists,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname)}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname)))]),a("span",[t._v(t._s(s.tablename))])])}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.input")},model:{value:t.ruleFormData.code,callback:function(s){t.$set(t.ruleFormData,"code",s)},expression:"ruleFormData.code"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.display","\u663E\u793A"),prop:"span"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.span,callback:function(s){t.$set(t.ruleFormData,"span",s)},expression:"ruleFormData.span"}},[a("el-option",{attrs:{value:"24",label:t.$i18nt("gd.flow.process.oneColumn","\u4E00\u884C\u4E00\u5217")}}),a("el-option",{attrs:{value:"12",label:t.$i18nt("gd.flow.process.twoColumn","\u4E00\u884C\u4E24\u5217")}}),a("el-option",{attrs:{value:"8",label:t.$i18nt("gd.flow.process.threeColumn","\u4E00\u884C\u4E09\u5217")}}),a("el-option",{attrs:{value:"6",label:t.$i18nt("gd.flow.process.fourColumn","\u4E00\u884C\u56DB\u5217")}})],1)],1)],1),t.show?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state"),prop:"stateCodes"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(s){t.$set(t.ruleFormData,"stateCodes",s)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1):t._e(),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.process.describe","\u63CF\u8FF0"),prop:"description"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(s){t.$set(t.ruleFormData,"description",s)},expression:"ruleFormData.description"}})],1)],1)],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply"))+" ")])],1)],2)],1)},_sfc_staticRenderFns$2M=[],__component__$2M=normalizeComponent(_sfc_main$2M,_sfc_render$2M,_sfc_staticRenderFns$2M,!1,null,"f73071ec",null,null);const StartDesigner$2=__component__$2M.exports,index_vue_vue_type_style_index_0_scoped_e68d8cd2_lang="",_sfc_main$2L={data(){return{}}};var _sfc_render$2L=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"end"},[a("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$2L=[],__component__$2L=normalizeComponent(_sfc_main$2L,_sfc_render$2L,_sfc_staticRenderFns$2L,!1,null,"e68d8cd2",null,null);const EndDesigner$2=__component__$2L.exports,index_vue_vue_type_style_index_0_scoped_47296bbe_lang="",_sfc_main$2K={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:""},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,list:[],fieldsList:[],ruleForm:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},components:{ConnectDesigner:ConnectDesigner$2,draggable},computed:{dictList(){return this.loadData.filter(r=>r.dicttypecode)},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getName(){let r=this.record.name;if(this.record.langs&&this.record.langs.length>0){let t=this.record.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.transKey&&(r=this.$i18nt(`Dynamics.${this.record.transKey}`,r));return r},languageMessages(){return this.$i18n.messages},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},stylede(){return`padding-left:4px;color:${this.primaryColor};`},...mapGetters(["language","tableLists","primaryColor"])},methods:{delFieldsList(r){this.fieldsList=this.fieldsList.filter((t,a)=>a!==r)},seleFields(r,t){const a=this.dictList.filter(s=>s.columnname===r)[0];this.fieldsList[t].dictTypeCode=a.dicttypecode},addFieldsList(){let r=[...this.fieldsList];r.push({columnName:"",val:"",dictTypeCode:""}),this.fieldsList=[...r]},getDictList(r){let t=[];return this.fieldsList.forEach(s=>{s.columnName&&s.columnName!==r.columnName&&t.push(s.columnName)}),this.dictList.filter(s=>!t.includes(s.columnname))},getTransKey(r,t){let a=this.tableLists.filter(d=>d.id==this.codeGenId)[0],s=a===void 0?"":`_${a.tablename}`,o=`SFO_N${s}_${uuid$1(8)}`;t==1&&(o=`SFO_N${s}_field_${uuid$1(8)}`);let l=[];for(let d in this.languageMessages)l.push({name:transKeyCodeName(d),val:r.name,code:d});return JSON.stringify({name:o,langs:l})},lookupSeled(r){this.record.transKey||this.$emit("addTransKey",r.name);let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleForm=Object.assign({...this.ruleForm},{name:r.defaulttext,langsd:JSON.stringify(t),langs:t,transKey:r.name}),this.record.transKey=r.name,this.record.langs=t},lookupSeleds(r,t){let a=[...this.list];a[t].transKey||this.$emit("addTransKey",r.name);let s=[];r.langs.forEach(o=>{s.push({name:o.languagename,val:o.description,code:o.languagecode})}),a[t].name=r.defaulttext,a[t].transKey=r.name,a[t].langs=r.langs,this.list=[...a]},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.list.length==0){this.$message.error(this.$i18nt("gd.flow.process.stepNameTip","\u8BF7\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4\uFF01"));return}if(!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.process.addStepTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F\uFF01"));return}if(this.ruleForm.updateOpen&&this.fieldsList.length===0){this.$message.error(this.$i18nt("gd.flow.process.addFieldsTip","\u8BF7\u8865\u5145\u66F4\u65B0\u5B57\u6BB5\u4FE1\u606F\uFF01"));return}if(this.ruleForm.updateOpen&&!this.isCheckedFields()){this.$message.error(this.$i18nt("gd.flow.process.addFieldsTip","\u8BF7\u8865\u5145\u66F4\u65B0\u5B57\u6BB5\u4FE1\u606F\uFF01"));return}this.record.err=!1,this.record.name=this.ruleForm.name,this.record.transKey=this.ruleForm.transKey,this.record.langs=this.ruleForm.transKey?[]:this.ruleForm.langs,this.record.list=[...this.list],this.record.updateOpen=this.ruleForm.updateOpen,this.record.fieldsList=[...this.fieldsList],this.onClose(1)}})},isChecked(r){return this.list.every((t,a,s)=>t.columnName!=null&&t.columnName!=""&&t.name!="")},isCheckedFields(){return this.fieldsList.every((r,t,a)=>r.columnName!=""&&r.val!="")},selColumn(r,t){const a=this.loadData.filter(s=>s.columnname===r)[0];this.list[t].columnId=a?a.id:"",this.list[t].name=this.list[t].name==""?a?a.columncomment:this.list[t].name:this.list[t].name,this.list[t].fieldTransKey=a?a.transkey:this.list[t].fieldTransKey},addList(){let r={id:uuid$1(),name:"",columnName:"",columnId:"",disabled:!1,rules:[{required:!1,message:"\u5FC5\u586B\u9879"}],fieldTransKey:null,transKey:null};this.list=this.list.concat(r)},delList(r){let t=this.list[r];this.list=this.list.filter((a,s)=>s!=r),t.transKey&&this.$emit("deltransKey",t.transKey)},see(){this.visible=!0;let r=this.record.langs?this.record.langs:[];this.list=[...this.record.list],this.fieldsList=this.record.fieldsList!==void 0?this.record.fieldsList:[],this.record.langs=[],this.$nextTick(()=>{setTimeout(()=>{this.ruleForm=Object.assign({name:this.record.name,transKey:this.record.transKey?this.record.transKey:null,langsd:JSON.stringify(r),langs:this.record.transKey?[]:r,updateOpen:this.record.updateOpen!==void 0?this.record.updateOpen:!1}),this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(r){if(r!==void 0&&r==1){this.visible=!1;return}this.record.transKey&&(this.record.name=this.ruleForm.name,this.record.langs=this.ruleForm.langs),this.visible=!1},getDictionary(r){return this.$options.filters.dictData(r)}}};var _sfc_render$2K=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})]),t.record.isDelete?a("i",{staticClass:"el-icon-close",attrs:{id:"close"},on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}}):t._e()])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleForm.transKey,callback:function(s){t.$set(t.ruleForm,"transKey",s)},expression:"ruleForm.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langsd"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleForm.langsd,callback:function(s){t.$set(t.ruleForm,"langsd",s)},expression:"ruleForm.langsd"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{staticStyle:{display:"none"},attrs:{disabled:t.disabled},model:{value:t.ruleForm.name,callback:function(s){t.$set(t.ruleForm,"name",s)},expression:"ruleForm.name"}}),t.visible&&!t.ruleForm.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleForm,transKey:t.getTransKey(t.ruleForm,1),type:3,keyI18n:"transKey"},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.record.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleForm,transKey:t.getTransKey(t.ruleForm,1),type:2,keyI18n:"transKey"},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.process.dataSteps","\u6570\u636E\u6B65\u9AA4")))]),a("div",[t.list.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.stepName","\u6B65\u9AA4\u540D\u79F0")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5")))]),a("el-col",{attrs:{span:2}},[t._v(t._s(t.$i18nt("gd.flow.process.required","\u5FC5\u586B")))]),a("el-col",{attrs:{span:2}},[t._v(t._s(t.$i18nt("gd.flow.process.disable","\u7981\u7528")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e()],1),a("div",[a("draggable",t._b({model:{value:t.list,callback:function(s){t.list=s},expression:"list"}},"draggable",{animation:300,handle:"#drag-btn"},!1),t._l(t.list,function(s,o){return a("el-row",{key:s.id,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[t.visible&&!s.transKey?a("gd-translation",{ref:"gdTranslationd",refInFor:!0,attrs:{recordData:s,transKey:t.getTransKey(s,2),type:3,keyI18n:"transKey"},on:{lookupSeled:l=>t.lookupSeleds(l,o)}}):t._e(),t.visible&&s.transKey?a("gd-translation",{ref:"gdTranslationd",refInFor:!0,attrs:{recordData:s,transKey:t.getTransKey(s,2),type:2,keyI18n:"transKey"},on:{lookupSeled:l=>t.lookupSeleds(l,o)}}):t._e()],1),a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},on:{change:function(l){return t.selColumn(l,o)}},model:{value:s.columnName,callback:function(l){t.$set(s,"columnName",l)},expression:"item.columnName"}},t._l(t.loadData,function(l,d){return a("el-option",{key:l.columnname,attrs:{label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),value:l.columnname}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnname))])])}),1)],1),a("el-col",{attrs:{span:2}},[a("el-checkbox",{staticStyle:{"margin-top":"6px"},attrs:{disabled:t.disabled},model:{value:s.rules[0].required,callback:function(l){t.$set(s.rules[0],"required",l)},expression:"item.rules[0].required"}})],1),a("el-col",{attrs:{span:2}},[a("el-checkbox",{staticStyle:{"margin-top":"6px"},attrs:{disabled:t.disabled},model:{value:s.disabled,callback:function(l){t.$set(s,"disabled",l)},expression:"item.disabled"}})],1),a("el-col",{attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-rank",attrs:{id:"drag-btn"}}),t.disabled?t._e():a("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(l){return t.delList(o)}}})])],1)}),1)],1),t.disabled?t._e():a("div",{staticClass:"add"},[a("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.addStep","\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4"))+" ")])]),a("div",{staticClass:"title"},[t._v(" "+t._s(t.$i18nt("gd.flow.process.mapping","\u6620\u5C04"))+" "),a("el-switch",{staticStyle:{float:"right"},attrs:{"active-color":t.primaryColor,disabled:t.disabled},model:{value:t.ruleForm.updateOpen,callback:function(s){t.$set(t.ruleForm,"updateOpen",s)},expression:"ruleForm.updateOpen"}})],1),a("div",[t.fieldsList.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.process.mapFields","\u6620\u5C04\u5B57\u6BB5")))]),a("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.process.mapValue","\u6620\u5C04\u503C")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e()],1),a("div",t._l(t.fieldsList,function(s,o){return a("el-row",{key:s.columnName,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},on:{change:function(l){return t.seleFields(l,o)}},model:{value:s.columnName,callback:function(l){t.$set(s,"columnName",l)},expression:"item.columnName"}},[t._l(t.getDictList(s),function(l,d){return[a("el-option",{attrs:{label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment),value:l.columnname}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnname))])])]})],2)],1),a("el-col",{attrs:{span:10}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5"),filterable:"",clearable:"",disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}},t._l(t.getDictionary(s.dictTypeCode),function(l,d){return a("el-option",{key:l.code,attrs:{label:t.$i18nt(`Dynamics.${l.transkey}`,l.name),value:l.code}})}),1)],1),a("el-col",{attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(l){return t.delFieldsList(o)}}})])],1)}),1),!t.disabled&&t.ruleForm.updateOpen?a("div",{staticClass:"add"},[a("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addFieldsList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addField","\u6DFB\u52A0\u5B57\u6BB5"))+" ")])]):t._e()],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1)],1)},_sfc_staticRenderFns$2K=[],__component__$2K=normalizeComponent(_sfc_main$2K,_sfc_render$2K,_sfc_staticRenderFns$2K,!1,null,"47296bbe",null,null);const StepsDesigner$2=__component__$2K.exports;function nodeData$2(r){switch(r){case"step":return{type:"step",name:"\u65B0\u5EFA\u9636\u6BB5/\u6B65\u9AA4",list:[],err:!1,isDelete:!0,transKey:null,langs:[],updateOpen:!1,fieldsList:[]};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",rule:[],list:[],err:!1,transKey:null,langs:[]},{type:"else",name:"ELSE",rule:[],list:[],err:!1}],isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_14235c7b_lang="",_sfc_main$2J={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:""},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{detail:{},visible:!1,list:[],rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,confirmLoading:!1,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],span:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}}},components:{ConnectDesigner:ConnectDesigner$2,StepsDesigner:StepsDesigner$2},methods:{addTransKey(r){this.$emit("addTransKey",r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.list.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u89C4\u5219\uFF01");return}if(!this.isChecked()){this.$message.error("\u8BF7\u8865\u5145\u89C4\u5219\u4FE1\u606F\uFF01");return}this.record.list[this.seeIndex].name=this.ruleFormData.name,this.list.map(t=>(t.type=this.ruleFormData.type,t)),this.record.list[this.seeIndex].rule=[...this.list],this.record.list[this.seeIndex].err=!1,this.onClose()}})},isChecked(r){return this.list.every((t,a,s)=>{let o=t.rules!=5&&t.rules!=6?t.val:t.columnName;return t.columnName!=null&&t.columnName!=""&&o!=""})},addList(){let r={type:1,id:uuid$1(),columnName:"",columnId:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"input",fieldFormat:null,fkData:[]};this.list=this.list.concat(r)},delList(r){this.list=this.list.filter((t,a)=>a!=r)},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r,this.list=[...t.rule],this.ruleFormData={name:t.name,type:t.rule.length>0?t.rule[0].type:"1"}},0)})},addCondition(){let r=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",rule:[],list:[],err:!1,id:uuid$1(),sourceId:this.record.sourceId,pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData$2(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1(),sourceId:this.record.sourceId}),a.type=="condition"&&a.list.map(s=>(s=Object.assign(s,{pid:a.id,id:uuid$1(),sourceId:this.record.sourceId}),s)),this.record.list[t].list.splice(0,0,a)},deltransKey(r){this.$emit("deltransKey",r)},async del(r){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list[r],a=this.record.list.filter((l,d)=>d!=r);a[0].type="if",this.record.list=[...a];let s=await this.hasItem([t]).filter(l=>l.transKey),o=[];s.forEach(l=>{o.push(l.transKey)}),o.length!=0&&this.$emit("deltransKey",o)},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>(o.type=="if"&&(o.list=a(o.list)),o.type=="condition"&&o.list.forEach(d=>{d.list=a(d.list)}),o.type=="step"&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},addType(r,t,a){let s=nodeData$2(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1(),sourceId:this.record.sourceId}),s.type=="condition"&&s.list.map(o=>(o=Object.assign(o,{pid:s.id,id:uuid$1(),sourceId:this.record.sourceId}),o)),this.record.list[t].list.splice(a+1,0,s)},async delChildItem(r,t,a){let s=this.record.list[t].list[r],o=this.record.list[t].list.filter((u,f)=>f!=r);this.record.list[t].list=[...o];let l=await this.hasItem([s]).filter(u=>u.transKey),d=[];l.forEach(u=>{d.push(u.transKey)}),d.length!=0&&this.$emit("deltransKey",d)},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},lookup(r,t){this.lookIndex=r;let a=this.loadData.filter(s=>s.id==this.list[r].columnId)[0];this.$refs.viewSearch.open(Object.assign({...a},{val:t}))},lookupSeled(r){this.handleLookupCancel(),["fk","about","user"].includes(this.list[this.lookIndex].effectType)&&(this.list[this.lookIndex].fkData=r.fkData,this.list[this.lookIndex].val=r.data[0])},handleLookupCancel(){this.lookupShow=!1},selColumn(r,t){console.log(r,t),this.$nextTick(()=>{setTimeout(()=>{let a=this.loadData.filter(o=>o.id==r.id)[0],s=this.rulesList.filter(o=>o.remark.split(",").includes(r.effecttype));a.fieldformat&&(this.list[t].fieldFormat=this.fieldFormat.filter(o=>o.code==a.fieldformat)[0].name),this.list[t].columnId=r.id,this.list[t].effectType=a.effecttype,this.list[t].val="",this.list[t].rulesList=[...s],this.list[t].rules=s.length>0?s[0].code:"",a.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnId)[0];this.fetching=!0,this.list[t].fkData=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkData=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnId)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldFormat.length>10}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2J=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[s.type=="else"?a("div",{staticClass:"condition-body"},[a("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute","\u4E0D\u6EE1\u8DB3\u65F6\u6267\u884C")))])])]):a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("div",{staticClass:"condition-bodyt line1"},[t._v(t._s(s.name))]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.process.set","\u5DF2\u8BBE\u7F6E"))+" "+t._s(s.rule.length)+" "+t._s(t.$i18nt("gd.flow.process.rules","\u6761\u89C4\u5219"))+" ")]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{flex:"0 0 20px","text-align":"right"}})]),a("i",{staticClass:"el-icon-close",attrs:{id:"close"},on:{click:function(l){return l.stopPropagation(),t.del(o)}}}),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.process.supplementRules","\u8BF7\u8865\u5145\u89C4\u5219\u4FE1\u606F")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"1"}},[l.type=="step"?a("StepsDesigner",{attrs:{loadData:t.loadData,codeGenId:t.codeGenId,record:l,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,index:d},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,codeGenId:t.codeGenId,loadData:t.loadData,index:d,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{visible:t.visible,"append-to-body":!0,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{directives:[{name:"show",rawName:"v-show",value:t.list.length>1,expression:"list.length > 1"}],attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"12px","margin-top":"-12px"},attrs:{label:t.$i18nt("gd.flow.process.ruleLogic","\u89C4\u5219\u903B\u8F91")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.develop.filter.and","\u548C")}}),a("el-option",{attrs:{value:"2",label:t.$i18nt("gd.develop.filter.or","\u6216")}})],1)],1)],1)],1),a("el-divider"),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.rule","\u89C4\u5219"))+":")]),a("div",[a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:7}},[t._v(t._s(t.$i18nt("gd.flow.process.tableFields","\u8868\u5B57\u6BB5")))]),a("el-col",{attrs:{span:6}},[t._v(t._s(t.$i18nt("gd.flow.process.operator","\u64CD\u4F5C\u7B26")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.process.value","\u503C")))]),a("el-col",{attrs:{span:3}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1),t._l(t.list,function(s,o){return a("el-row",{key:s.id,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:7}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),filterable:"",clearable:"",disabled:t.disabled},model:{value:s.columnName,callback:function(l){t.$set(s,"columnName",l)},expression:"item.columnName"}},t._l(t.loadData,function(l,d){return a("el-option",{key:l.id,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment)},nativeOn:{click:function(u){return t.selColumn(l,o)}}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnname)+" ")])}),1)],1),a("el-col",{attrs:{span:6}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:s.rules,callback:function(l){t.$set(s,"rules",l)},expression:"item.rules"}},t._l(s.rulesList,function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:l.name}})}),1)],1),a("el-col",{attrs:{span:8}},[s.rules!=5&&s.rules!=6?a("div",{staticStyle:{width:"100%"}},[s.effectType=="select"||s.effectType=="radio"||s.effectType=="checkbox"||s.effectType=="switch"?a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}},t._l(t.getDictionary(s),function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.name))+" ")])}),1):s.effectType=="inputnumber"?a("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),step:1,disabled:t.disabled},model:{value:t.ite.val,callback:function(l){t.$set(t.ite,"val",l)},expression:"ite.val"}}):s.effectType=="datepicker"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(s),valueFormat:s.fieldformat,disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}}):s.effectType=="fk"||s.effectType=="about"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select"),clearable:"",disabled:t.disabled?!0:s.effectType=="about"},on:{change:function(l){return t.searchData(l,o)}},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}},[t.fetching?a("el-spin",{attrs:{slot:"notFoundContent",size:"small"},slot:"notFoundContent"}):t._e(),t._l(s.fkData,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}})})],2),t.disabled?t._e():a("i",{staticClass:"el-input__icon el-icon-search",attrs:{id:"cao_setting"},on:{click:function(l){return t.lookup(o,s.val)}}})],1):a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:s.val,callback:function(l){t.$set(s,"val",l)},expression:"item.val"}})],1):t._e()]),a("el-col",{attrs:{span:3}},[t.disabled?t._e():a("i",{staticClass:"el-icon-close",attrs:{id:"del-btn"},on:{click:function(l){return t.delList(o)}}})])],1)})],2),t.disabled?t._e():a("div",{staticClass:"add"},[a("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.flow.addRule","\u6DFB\u52A0\u89C4\u5219")))])])],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("gd-search",{ref:"viewSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$2J=[],__component__$2J=normalizeComponent(_sfc_main$2J,_sfc_render$2J,_sfc_staticRenderFns$2J,!1,null,"14235c7b",null,null);const ConditionDesigner$2=__component__$2J.exports,main_vue_vue_type_style_index_0_scoped_04f792d8_lang="",_sfc_main$2I={name:"GdProcessFlow",props:{value:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100}},data(){return{visible:!1,list:[],loadData:[],codeGenId:"",delTransKeyList:[],addTransKeyList:[]}},computed:{style(){let r=this.scaleVal/100;return`transform-origin: top;transform:scale(${r},${r});`}},components:{StartDesigner:StartDesigner$2,ConnectDesigner:ConnectDesigner$2,EndDesigner:EndDesigner$2,StepsDesigner:StepsDesigner$2,ConditionDesigner:ConditionDesigner$2},methods:{addTransKey(r){this.addTransKeyList=this.addTransKeyList.concat([r])},init(r){this.delTransKeyList=[],this.addTransKeyList=[],this.codeGenId=r[0].data.sysCodeGenId,this.list=[...r],this.getLoadData()},addType(r,t){let a=nodeData$2(r),s=uuid$1();a=Object.assign(a,{pid:0,id:s,sourceId:s}),a.type=="condition"&&a.list.map(o=>(o=Object.assign(o,{pid:a.id,id:uuid$1(),sourceId:a.id}),o)),this.list.splice(t+1,0,a)},deltransKey(r){this.delTransKeyList=this.delTransKeyList.concat(r)},async delItem(r){let t=this.list[r],a=this.list.filter((l,d)=>d!=r);this.list=[...a];let s=await this.hasItem([t]).filter(l=>l.transKey),o=[];s.forEach(l=>{o.push(l.transKey)}),o.length!=0&&(this.delTransKeyList=this.delTransKeyList.concat(o))},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>(o.type=="condition"&&o.list.forEach(d=>{d.list=a(d.list)}),o.type=="step"&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},getLoadData(){onlineFormGetCodeGenerateList({codeGenId:this.codeGenId}).then(r=>{r.data&&(this.loadData=r.data.filter(t=>t.effecttype=="about"&&t.columnname==(t.relations+"_AboutTable").toLowerCase()?!1:!(t.effecttype=="currency"&&t.columnname==(t.relations+"_Currency_Base").toLowerCase())))})}}};var _sfc_render$2I=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"flowsdesigner",style:t.style},[a("div",{staticClass:"flowsdesigners"},[a("div",{staticClass:"flowdesign"},[t._l(t.list,function(s,o){return[s.type=="start"?a("StartDesigner",{attrs:{record:s,loadData:t.loadData,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType}}):t._e(),s.type=="step"?a("StepsDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="condition"?a("ConditionDesigner",{attrs:{loadData:t.loadData,record:s,index:o,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="end"?a("EndDesigner"):t._e()]})],2)])])},_sfc_staticRenderFns$2I=[],__component__$2I=normalizeComponent(_sfc_main$2I,_sfc_render$2I,_sfc_staticRenderFns$2I,!1,null,"04f792d8",null,null);const GDpackage$d=__component__$2I.exports;GDpackage$d.install=function(r){r.component(GDpackage$d.name,GDpackage$d)};const index_vue_vue_type_style_index_0_scoped_36b86bb0_lang="",_sfc_main$2H={props:{placement:{type:String,default:"top"},type:{type:String,default:"other"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(r){this.visible=!1,!this.disabled&&this.$emit("selType",r)}}};var _sfc_render$2H=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"lian"},[a("div",{ref:"lianBtn",staticClass:"lian-btn"},[a("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[a("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),a("div",{staticClass:"connect-solid"},[a("el-divider")],1),t.type=="start"?a("div",[a("div",{staticClass:"contents"},[a("div",{staticClass:"item stage",on:{click:function(s){return t.selType("stage")}}},[a("i",{staticClass:"el-icon-document-copy anticon",staticStyle:{height:"40px",padding:"9px"}}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.stage","\u9636\u6BB5")))])])])]):a("div",[a("div",{staticClass:"contents"},[t.type!="condition"?a("div",{staticClass:"item term",on:{click:function(s){return t.selType("condition")}}},[a("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])]):t._e(),a("div",{staticClass:"item move",on:{click:function(s){return t.selType("step")}}},[a("i",{staticClass:"gd-icons gd-icon-Interaction anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.step","\u6B65\u9AA4")))])])])]),a("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$2H=[],__component__$2H=normalizeComponent(_sfc_main$2H,_sfc_render$2H,_sfc_staticRenderFns$2H,!1,null,"36b86bb0",null,null);const ConnectDesigner$1=__component__$2H.exports,index_vue_vue_type_style_index_0_scoped_182541d4_lang="",_sfc_main$2G={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,tableNameData:[],fetching:!1,disabled:!1,fieldList:[],codeGenId:"",userList:[],show:!1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],sysCodeGenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],code:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],ranges:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],firing:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],isBackgroud:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},ruleFormData:{name:"",transKey:null,langs:"[]",isBackgroud:[],firing:[]},confirmLoading:!1}},components:{ConnectDesigner:ConnectDesigner$1,FlowsDesignerGenName},computed:{getName(){let r=this.record.data.name;if(this.getBootTrans&&this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(a=>a.code==this.language)[0];r=t==null?r:t.val}else this.getBootTrans&&this.record.data.transKey&&(r=this.$i18nt(`Dynamics.${this.record.data.transKey}`,0,r));return r},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},disableds(){return this.permissionsBnt?this.stateCodes==1:!0},disabledd(){return!this.permissionsBnt||this.stateCodes==1?!0:this.record.data.code!==""},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","labelPosition"])},methods:{lookupSeled(r){let t=[];r.langs.forEach(a=>{t.push({name:a.languageName,val:a.description,code:a.languageCode})}),this.ruleFormData={name:r.defaultText,langs:JSON.stringify(t)},this.record.data.langs=t},selGenName(){this.fieldList=this.record.data.updateFields,this.$refs.codeGenName.open(this.fieldList)},sbumitGenName(r){this.fieldList=r,this.record.data.updateFields=r},sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)}),this.onClose(1))})},searchTable(r){this.fetching=!0,this.tableNameData=[],codeGenerateInformationList({busName:r}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},see(){this.show=this.record.data.stateCodes!=null,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{this.codeGenId=this.record.data.sysCodeGenId;let r={name:this.record.data.name,sysCodeGenId:this.record.data.sysCodeGenId,ranges:this.record.data.ranges,isBackgroud:this.record.data.isBackgroud,firing:this.record.data.firing,code:this.record.data.code,transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.record.data.stateCodes!=null&&(r=Object.assign(r,{stateCodes:this.record.data.stateCodes}),this.calculation(r),this.codeGenId=this.record.data.sysCodeGenId),this.ruleFormData=r,this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},onClose(r){if(r!=null&&r==1){this.visible=!1;return}if(this.getBootTrans&&this.record.data.transKey){let t=this.form.getFieldsValue(),a=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:a,name:t.name})}this.visible=!1},selType(r){this.$emit("addType",r,this.index)},firingChange(r){let t=this.form.getFieldsValue();t.firing=r,this.calculation(t)},selTable(r){let t=this.form.getFieldsValue();t.sysCodeGenId=r.id,this.codeGenId=r.id,this.calculation(t)},calculation(r){let t=r.firing!=null?r.firing:[],a=r.sysCodeGenId!=null&&r.sysCodeGenId!="";this.disabled=!(a&&t.includes("2"))},getDictionary(r){return this.$options.filters.dictData(r)}},mounted(){this.searchTable("");let r=this.$options.filters.dictData("data_scope_type");this.userList=r.filter(t=>t.code!=5)}};var _sfc_render$2G=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"start"},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),a("ConnectDesigner",{attrs:{type:"start",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(s){t.$set(t.ruleFormData,"transKey",s)},expression:"ruleFormData.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(s){t.$set(t.ruleFormData,"langs",s)},expression:"ruleFormData.langs"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.name","\u540D\u79F0"),prop:"name"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:t.record.data&&!t.record.data.transKey,expression:"record.data && !record.data.transKey"}],attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.table","\u8868"),prop:"sysCodeGenId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0,filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.sysCodeGenId,callback:function(s){t.$set(t.ruleFormData,"sysCodeGenId",s)},expression:"ruleFormData.sysCodeGenId"}},t._l(t.tableNameData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.busName},nativeOn:{click:function(l){return t.selTable(s)}}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.busName))+" "+t._s(s.tableName))])])}),1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.range","\u8303\u56F4"),prop:"ranges"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",disabled:t.disableds},model:{value:t.ruleFormData.ranges,callback:function(s){t.$set(t.ruleFormData,"ranges",s)},expression:"ruleFormData.ranges"}},t._l(t.userList,function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:s.name}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.name)))])])}),1)],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.run","\u8FD0\u884C"),prop:"isBackgroud"}},[a("el-checkbox-group",{attrs:{disabled:t.disableds},model:{value:t.ruleFormData.isBackgroud,callback:function(s){t.$set(t.ruleFormData,"isBackgroud",s)},expression:"ruleFormData.isBackgroud"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.backgrounder","\u5728\u540E\u53F0\u8FD0\u884C\u6B64\u5DE5\u4F5C\u6D41"))+" ")])],1)],1)],1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"code"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disabledd,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.code,callback:function(s){t.$set(t.ruleFormData,"code",s)},expression:"ruleFormData.code"}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.work.startTime","\u542F\u52A8\u65F6\u95F4"),prop:"firing"}},[a("el-checkbox-group",{attrs:{disabled:t.disableds},on:{change:t.firingChange},model:{value:t.ruleFormData.firing,callback:function(s){t.$set(t.ruleFormData,"firing",s)},expression:"ruleFormData.firing"}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"1"}},[t._v(t._s(t.$i18nt("gd.flow.work.afterCreation","\u521B\u5EFA\u8BB0\u5F55\u540E")))])],1),a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"2",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterChange","\u8BB0\u5F55\u5B57\u6BB5\u66F4\u6539\u540E"))+" "),a("el-button",{staticClass:"sel",attrs:{type:"primary",size:"mini",disabled:t.disableds?!0:t.disabled},on:{click:t.selGenName}},[t._v(" "+t._s(t.$i18nt("gd.btn.choice","\u9009\u62E9"))+" ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-checkbox",{attrs:{label:"3",disabled:t.disableds}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.afterDeletion","\u5220\u9664\u8BB0\u5F55\u540E"))+" ")])],1)],1)],1)],1)],1),t.show?a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(s){t.$set(t.ruleFormData,"stateCodes",s)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,0,s.name)}})}),1)],1)],1):t._e()],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("FlowsDesignerGenName",{ref:"codeGenName",attrs:{codeGenId:t.codeGenId},on:{ok:t.sbumitGenName}})],1)},_sfc_staticRenderFns$2G=[],__component__$2G=normalizeComponent(_sfc_main$2G,_sfc_render$2G,_sfc_staticRenderFns$2G,!1,null,"182541d4",null,null);const StartDesigner$1=__component__$2G.exports,index_vue_vue_type_style_index_0_scoped_4d4241b3_lang="",_sfc_main$2F={data(){return{}}};var _sfc_render$2F=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"end"},[a("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$2F=[],__component__$2F=normalizeComponent(_sfc_main$2F,_sfc_render$2F,_sfc_staticRenderFns$2F,!1,null,"4d4241b3",null,null);const EndDesigner$1=__component__$2F.exports,moreOptions_vue_vue_type_style_index_0_scoped_447b505f_lang="",_sfc_main$2E={props:{codeList:{type:Array,default:()=>[]},record:{type:Object,default:()=>({})},codeGenId:{type:[Number,String],default:0},tableNameData:{type:Array,default:()=>[]}},computed:{style(){return{"--background-color-hover":this.primaryColor}},styles(){return`color:${this.primaryColor}`},...mapGetters(["primaryColor"])},data(){return{labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:18}},spinning:!1,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,showField:!1,selItem:{},tableList:[],fieldContent:{},tableFieldData:[],fetching:!1,fkfileId:"",fkfileId2:"",splitList:[],selIndex:0,oldselItem:{},fullscreen:!1,width:"600px"}},components:{EffectTypeIcon},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},delItem(r){let t=this.splitList.filter((f,p)=>p!=r),a=0,s=[],o={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,wid:"4px",selindex:0},l=1,d="",u=!1;t.forEach((f,p)=>{f.type==1&&(u=!1,d+=f.fieldvalue),f.type==2&&(s.push(Object.assign({...o},{fieldvalue:d,wid:this.styled(d),selindex:a})),s.push(Object.assign({...f},{varnumber:l})),u=!0,d="",l+=1,a+=1)}),this.selItem.effecttype=="input"||this.selItem.effecttype=="textarea"||this.selItem.effecttype=="double"||this.selItem.effecttype=="currency"||this.selItem.effecttype=="image"||this.selItem.effecttype=="editor"?s=u?s:s.concat([Object.assign({...o},{fieldvalue:d,wid:this.styled(d),selindex:a})]):s=u?s:[],this.splitList=[...s],this.selItem.fieldinfos=s.filter(f=>!(f.type==1&&f.fieldvalue=="")),this.selIndex=a},selData(r){this.selIndex=r.selindex},changeInput(r,t,a){this.selItem.fieldinfos.map(s=>(s.type==1&&s.selindex==a.selindex&&(s.fieldvalue=r),s)),a.wid=this.styled(r)},styled(r){return`${String(r).length*11+4}px`},seeDetail(r){this.splitList.filter(a=>a.type==2).length!=0&&(this.showField=!0)},open(r){this.fullscreen=!1,this.splitList=[],this.oldselItem={...r},this.selItem={...r},this.analysis(r),this.confirmLoading=!0,this.visible=!0,this.onlineFormGetFieldList().then(t=>{if(t.success){let a=t.data.filter(s=>(s.children=null,s.effecttype=="about"&&s.columnName===(s.relations+"_AboutTable").toLowerCase()?!1:!(s.effecttype=="currency"&&s.columnName===(s.relations+"_Currency_Base").toLowerCase())));this.tableList=a}this.confirmLoading=!1})},analysis(r){console.log(r);let t={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,wid:"4px",selindex:0,transkey:null,transkey2:null,transkeytable:null},a=[],s=0;if(r.effecttype=="input"||r.effecttype=="textarea"||r.effecttype=="double"||r.effecttype=="currency"||r.effecttype=="image"||r.effecttype=="editor"){let o=1,l="",d=!1;r.fieldinfos.length==0&&(l=r.value),r.fieldinfos.forEach((u,f)=>{u.type==1&&(d=!1,l=u.fieldvalue),u.type==2&&(a=d?a:a.concat([Object.assign({...t},{fieldvalue:l,wid:this.styled(l),selindex:s})]),a.push(Object.assign({...u},{varnumber:o})),d=!0,o+=1,s+=1)}),a=a.concat([Object.assign({...t},{fieldvalue:d?"":l,wid:d?"4px":this.styled(l),selindex:s})]),this.splitList=[...a],this.selIndex=s;return}r.fieldinfos.forEach((o,l)=>{a.push(Object.assign({...o},{varnumber:1}))}),this.splitList=[...a],this.selIndex=s},isChecked(r,t){return r?r.every((a,s,o)=>a!=`[${t}]`):!0},onlineFormGetFieldList(){let r={fieldId:this.selItem.fieldid,tableId:this.codeGenId};return this.fkfileId!==void 0&&this.fkfileId!==""&&(r=Object.assign(r,{fkfileId:this.fkfileId})),onlineFormGetFieldList(r).then(t=>t)},addField(){if(this.fkfileId===""){this.$message.warning(this.$i18nt("gd.flow.work.tableFieldsTip"));return}if(this.tableFieldData.length>0&&this.fkfileId2===""){this.$message.warning(this.$i18nt("gd.flow.work.tableFieldsTwoTip"));return}let r=this.tableList.filter(o=>o.id==this.fkfileId)[0],t=this.tableNameData.filter(o=>o.id==this.codeGenId)[0];this.selItem.fieldinfos.length;let a={title:r.columncomment,fieldvalue:r.columnname,tabletitle:t.tablename,tablevalue:t.busname,tablevalue2:r.fkentityname,varnumber:1,type:2,transkey:r.transkey?r.transkey:null,transkey2:null,transkeytable:t.transkey?t.transkey:null},s={title:"",fieldvalue:"",tabletitle:"",tablevalue:"",tablevalue2:"",varnumber:0,type:1,transkey:null,transkey2:null,transkeytable:null};if(this.fkfileId2!==""){let o=this.tableFieldData.filter(l=>l.id==this.fkfileId2)[0];a=Object.assign(a,{title:o.columncomment,fieldvalue2:o.columnname,transkey2:o.transkey?o.transkey:null})}if(this.selItem.effecttype=="input"||this.selItem.effecttype=="textarea"||this.selItem.effecttype=="double"||this.selItem.effecttype=="currency"||this.selItem.effecttype=="image"||this.selItem.effecttype=="editor"){let o=this.splitList.filter(h=>h.selindex==this.selIndex)[0].fieldvalue,l=document.querySelectorAll(".splicing-l>.el-input>.el-input__inner")[this.selIndex].selectionStart,d=o.slice(0,l),u=o.slice(l),f=[],p=1;this.splitList.forEach((h,v)=>{h.selindex==this.selIndex&&h.type==1?(f.push(Object.assign({...s},{fieldvalue:d})),f.push(Object.assign({...a},{varnumber:p})),f.push(Object.assign({...s},{fieldvalue:u})),p+=1):h.type==2?(f.push(Object.assign({...h},{varnumber:p})),p+=1):f.push(h)}),this.selItem.fieldinfos=[...f]}else this.selItem.fieldinfos=[a];this.fkfileId="",this.fkfileId2="",this.tableFieldData=[],this.analysis(this.selItem)},changeField(r){let t=this.tableList.filter(a=>a.id==this.fkfileId)[0];if(t.effecttype!=="fk"&&t.effecttype!=="about"&&t.effecttype!=="user"){this.tableFieldData=[],this.fkfileId2="";return}this.onlineFormGetFieldList().then(a=>{if(a.success){let s=a.data.filter(o=>(o.children=null,o.effecttype=="about"&&o.columnname===(o.relations+"_AboutTable").toLowerCase()?!1:!(o.effecttype=="currency"&&o.columnname===(o.relations+"_Currency_Base").toLowerCase())));this.tableFieldData=s}})},handleSubmit(){let r={...this.selItem};r.fieldinfos=[...this.splitList],this.$emit("ok",{...r}),this.cancel()},cancel(){this.visible=!1,this.selItem={},this.selIndex=0,this.tableFieldData=[],this.fkfileId="",this.fkfileId2=""},getDictionary(r){let t=this.codeList.filter(a=>a.id==r.fieldid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldFormat.length>10},doEvent(r){this.handleSubmit()}}};var _sfc_render$2E=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.cancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.work.fieldConfiguration","\u5B57\u6BB5\u914D\u7F6E")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[a("el-form",{ref:"ruleForm",staticStyle:{"min-height":"600px"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:24,sm:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.selectedFields","\u5DF2\u9009\u5B57\u6BB5")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u8868\u5B57\u6BB5")},model:{value:t.selItem.fieldid,callback:function(s){t.$set(t.selItem,"fieldid",s)},expression:"selItem.fieldid"}},t._l(t.codeList,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[t._v(" "+t._s(s.columnName)+" "),a("span",{style:t.styles},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ")]),t._v(" "+t._s(s.effectType)+" ")])}),1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:24,sm:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.tableFields","\u8868\u5B57\u6BB5")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u8868\u5B57\u6BB5"),filterable:""},on:{change:t.changeField},model:{value:t.fkfileId,callback:function(s){t.fkfileId=s},expression:"fkfileId"}},t._l(t.tableList,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ("+t._s(s.columnname)+") ")])],1)}),1)],1)],1)],1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{md:24,sm:24}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:t.tableFieldData.length>0,expression:"tableFieldData.length > 0"}],staticStyle:{"margin-bottom":"12px"},attrs:{label:t.$i18nt("gd.flow.work.tableFieldsTwo","\u8868\u5B57\u6BB52"),disabled:!(t.tableFieldData.length>0)}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.tableFieldsTip","\u8BF7\u9009\u62E9\u5173\u4E8E\u7684\u8868\u548C\u5B57\u6BB5"),filterable:"",clearable:""},model:{value:t.fkfileId2,callback:function(s){t.fkfileId2=s},expression:"fkfileId2"}},t._l(t.tableFieldData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ("+t._s(s.columnname)+") ")])],1)}),1)],1)],1)],1),a("div",{staticClass:"splicing pa",style:t.style},[t._l(t.splitList,function(s,o){return[s.type==1?a("div",{staticClass:"splicing-l pa",on:{click:function(l){return t.selData(s)}}},[a("div",{staticClass:"splicing-zhan line1"},[t._v(t._s(s.fieldvalue))]),a("el-input",{on:{change:function(l){return t.changeInput(l,o,s)}},model:{value:s.fieldvalue,callback:function(l){t.$set(s,"fieldvalue",l)},expression:"item.fieldvalue"}})],1):t._e(),s.type==2?[a("div",{staticClass:"splicing-l pa"},[a("div",{staticClass:"splicing-d"},[a("span",{staticClass:"splicing-tilte"},[t._v(" ["+t._s(s.varnumber)+"-"+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.title))+"] ")]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return t.delItem(o)}}})])])]:t._e()]})],2),a("div",{staticClass:"inputbox"},[a("div",{staticClass:"flex-between"},[a("div",{staticClass:"left-btn"}),a("div",{staticClass:"right-btn"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:t.addField}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addField","\u6DFB\u52A0\u5B57\u6BB5"))+" ")])],1)])]),a("div",{staticClass:"line3",staticStyle:{cursor:"pointer","padding-top":"10px"},on:{click:t.seeDetail}},[t._l(t.splitList,function(s){return[s.type==1?a("span",[t._v(t._s(s.fieldvalue))]):a("a",[t._v("["+t._s(s.varnumber)+"-"+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.title))+"]")])]})],2)],1)],1)],2),a("el-drawer",{attrs:{title:t.$i18nt("gd.btn.view"),size:500,visible:t.showField,"append-to-body":!0,"custom-class":"gd-drawer-form"},on:{close:function(s){t.showField=!1}}},[a("el-collapse",{attrs:{accordion:""}},t._l(t.splitList,function(s,o){return s.type==2?a("el-collapse-item",{key:o,staticClass:"showdoc",attrs:{title:`${s.varnumber}-${t.$i18nt(`Dynamics.${s.transkey}`,s.title)}`}},[a("p",[t._v(" "+t._s(t.$i18nt("gd.flow.work.entityTable","\u5B9E\u4F53\u8868"))+"\uFF1A"+t._s(s.tablevalue)+" "+t._s(t.$i18nt(`Dynamics.${s.transkeytable}`,s.tabletitle))+" ")]),a("p",[t._v(" "+t._s(t.$i18nt("gd.flow.work.tableFields","\u8868\u5B57\u6BB5"))+"\uFF1A"+t._s(s.fieldvalue)+" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.title))+" ")]),a("p",{directives:[{name:"show",rawName:"v-show",value:s.fieldvalue2,expression:"item.fieldvalue2"}]},[t._v(" "+t._s(t.$i18nt("gd.flow.work.tableFieldsTwo","\u8868\u5B57\u6BB52"))+"\uFF1A"+t._s(s.fieldvalue2)+" "+t._s(t.$i18nt(`Dynamics.${s.transkey2}`,s.title))+" ")]),a("div",{staticClass:"flex-between"})]):t._e()}),1)],1)],1)},_sfc_staticRenderFns$2E=[],__component__$2E=normalizeComponent(_sfc_main$2E,_sfc_render$2E,_sfc_staticRenderFns$2E,!1,null,"447b505f",null,null);const moreOptions=__component__$2E.exports,index_vue_vue_type_style_index_0_scoped_2cfd8ada_lang="",_sfc_main$2D={props:{tableNameData:{type:Array,default:()=>[]},relevantData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleOk",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,spinning:!1,record:{},fieldList:[],codeList:[],fetching:!1,fieldFormat:[],lookIndex:0,tableId:"",title:"",fullscreen:!1,width:"900px",searList:{}}},computed:{style(){return`color:${this.primaryColor}`},lineHeight(){return this.tableSize=="small"?"line-height: 32px":this.tableSize=="medium"?"line-height: 36px":"line-height: 26px"},...mapGetters(["primaryColor","tableSize"])},components:{moreOptions,EffectTypeIcon},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},moreSbumit(r){let t=[...this.fieldList],a={...r},s="",o=a.fieldinfos.filter(d=>!(d.type==1&&d.fieldvalue==""));o.forEach(d=>{d.type==1?s+=d.fieldvalue:s+=`[${d.varnumber}-${d.title}]`});let l=o.filter(d=>d.type==2);a.fieldinfos=l.length>0?o:[],a.value=o.length>0?s:a.value,t[this.lookIndex]={...a},this.fieldList=[...t]},more(r){this.lookIndex=r,this.$refs.moreOptions.open(this.fieldList[r])},searchData(r){let a=this.codeList.filter(s=>s.id==this.searList.fieldid)[0].fkentityname.split(",")[0];this.fetching=!0,this.searList.fkdata=[],baseFkList({name:r,fkEntityName:a}).then(s=>{s.success&&(this.searList.fkdata=[...s.data]),this.fetching=!1})},selectData(r){let t=this.fieldList.filter(a=>a.value===r);console.log(r,this.fieldList,t)},lookupSeled(r){["fk","about","user"].includes(this.fieldList[this.lookIndex].effecttype)?(this.fieldList[this.lookIndex].value=r.data[0],this.fieldList[this.lookIndex].fkdata=r.fkdata):(this.fieldList[this.lookIndex].value=r.data,this.fieldList[this.lookIndex].fkdata=r.fkdata)},lookup(r,t){let a=this.codeList.filter(s=>s.id==this.fieldList[r].fieldid)[0];this.lookIndex=r,this.$refs.engineSearch.open(Object.assign({...a},{val:t}))},addList(){if(this.fieldList.length<this.codeList.length){let r=[...this.fieldList],t=this.filteredOptions({fieldid:""}),a={fieldid:"",fieldname:"",codelist:this.codeList.filter(s=>!t.includes(s.id)),value:"",fkdata:[],effecttype:"input",fieldformat:null,fieldinfos:[],html:"",disabled:!0};r.push(a),this.fieldList=[...r],console.log(this.fieldList)}},delList(r){let t=[...this.fieldList];t.splice(r,1),this.fieldList=[...t],this.$nextTick(()=>{setTimeout(()=>{t.forEach((a,s)=>{let o=this.filteredOptions(a),l=this.codeList.filter(d=>!o.includes(d.id));t[s].codelist=l}),this.fieldList=[...t]},0)})},changeCode(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=[...this.fieldList];a.forEach((o,l)=>{let d=this.filteredOptions(o),u=this.codeList.filter(f=>!d.includes(f.id));a[l].codelist=u}),this.fieldList=[...a];let s=this.codeList.filter(o=>o.id==r)[0];s.fieldformat&&(this.fieldList[t].fieldFormat=this.fieldFormat.filter(o=>o.code==s.fieldformat)[0].name),this.fieldList[t].effecttype=s.effecttype,this.fieldList[t].value="",this.fieldList[t].fieldinfos=[],this.fieldList[t].fkdata=[],["fk","about","user","participants"].includes(s.effecttype)&&(this.searList=this.fieldList[t],this.searchData(""))},0)})},changeFieldId(r,t){this.changeCode(r,t),this.$nextTick(()=>{setTimeout(()=>{this.fieldList[t].disabled=r==null},0)})},open(r){console.log(r),this.fullscreen=!1,this.fieldList=[];let t=String(r.tableid).split(",")[0];this.tableId=t,this.fieldFormat=this.$options.filters.dictData("time_longshort");let a=r.tableNameData.filter(o=>o.id==t)[0],s=this.$i18nt(`Dynamics.${a.transkey}`,a.busname);this.title=`${r.operationtype==1?this.$i18nt("gd.flow.work.create"):this.$i18nt("gd.flow.work.update")} ${s}`,this.list=r.fieldrelations,this.record=r,this.visible=!0,this.spinning=!0,Promise.all([this.onlineGenerateList()]).then(o=>{let l=r.fieldrelations;l.forEach((d,u)=>{let f=this.filteredOptions(d),p=this.codeList.filter(h=>!f.includes(h.id));l[u].codelist=p,l[u].fieldid=Number(d.fieldid),l[u].fkdata=typeof d.fkdata=="string"?JSON.parse(d.fkdata):d.fkdata,l[u].value=(d.effecttype=="fk"||d.effecttype=="about"||d.effecttype=="user"||d.effecttype=="participants")&&d.fieldinfos.length==0?Number(d.value):d.value}),this.fieldList=l,this.spinning=!1})},onlineGenerateList(){return onlineFormGetCodeGenerateList({codeGenId:this.tableId}).then(r=>{if(r.success){let t=r.data.filter(a=>(a.children=null,a.effecttype=="about"&&a.columnname===(a.relations+"_AboutTable").toLowerCase()?!1:!(a.effecttype=="currency"&&a.columnname===(a.relations+"_Currency_Base").toLowerCase())));this.codeList=t}return r})},filteredOptions(r){let t=[];if(this.fieldList.forEach((a,s)=>{a.fieldid!==void 0&&t.push(a.fieldid)}),t.includes(r.fieldid)){let a=t.indexOf(r.fieldid);t.splice(a,1)}return t},getDictionary(r){let t=this.codeList.filter(a=>a.id==r.fieldid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldFormat.length>10},doEvent(r){this.handleOk()},handleOk(){if(this.fieldList.forEach((r,t)=>{}),this.fieldList.map(r=>{if(r.effecttype=="fk"||r.effecttype=="about"){let t=r.fkdata.filter(a=>a.id==r.value);r.fkdata=t}return r.fkdata=JSON.stringify(r.fkdata),r.fieldname=r.codelist.filter(t=>t.id==r.fieldid)[0].columnname,r}),!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.approval.replenishData"));return}this.$emit("ok",this.fieldList),this.handleCancel()},handleCancel(){this.visible=!1},isChecked(){return this.fieldList.every((r,t,a)=>r.value!==""&&r.value!==""&&r.fieldid!=="")}}};var _sfc_render$2D=function r(){var t=this,a=t._self._c;return a("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.title))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[a("div",{staticStyle:{"min-height":"600px"}},[t.fieldList.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[t._v(t._s(t.$i18nt("gd.flow.work.selField","\u5B57\u6BB5")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.value","\u503C")))]),a("el-col",{attrs:{span:2}})],1):t._e(),t._l(t.fieldList,function(s,o){return a("el-row",{key:o,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:10}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",filterable:""},on:{change:function(l){return t.changeFieldId(l,o)}},model:{value:s.fieldid,callback:function(l){t.$set(s,"fieldid",l)},expression:"item.fieldid"}},t._l(s.codelist,function(l,d){return a("el-option",{key:l.id,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:l.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" ("+t._s(l.columnname)+") ")])],1)}),1)],1),s.fieldinfos.length==0?a("el-col",{attrs:{span:8}},[s.effecttype=="select"||s.effecttype=="radio"||s.effecttype=="checkbox"||s.effecttype=="switch"?a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}},t._l(t.getDictionary(s),function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}})}),1):s.effecttype=="inputnumber"?a("el-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),step:1},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}}):s.effecttype=="datepicker"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(s),type:t.showTime?"datetime":"date","value-format":s.fieldformat,format:s.fieldformat},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}}):s.effecttype=="fk"||s.effecttype=="about"||s.effecttype=="user"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",size:t.tableSize,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.fetching,clearable:"",remote:"","reserve-keyword":"","remote-method":t.searchData},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}},t._l(s.fkdata,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.name))+" ")])])}),1),a("i",{staticClass:"el-icon-search cao_setting",style:t.lineHeight,on:{click:function(l){return t.lookup(o,s.value)}}})],1):s.effecttype=="participants"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{size:t.tableSize,placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"remote-method":t.searchData,loading:t.fetching,clearable:"",filterable:"",remote:"","collapse-tags":"","reserve-keyword":""},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}},[t._l(s.fkdata,function(l,d){return[a("el-option",{key:l.id,attrs:{value:l.id,label:l.name}})]})],2),a("i",{staticClass:"el-icon-search cao_setting",style:t.lineHeight,on:{click:function(l){return t.lookup(o,s.value)}}})],1):a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}})],1):a("el-col",{attrs:{span:8}},[a("el-tooltip",{staticStyle:{width:"100%"},attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(s.value))])]),a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"\u8BF7\u8F93\u5165",disabled:!0},model:{value:s.value,callback:function(l){t.$set(s,"value",l)},expression:"item.value"}})],1)],1),a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{type:"primary",disabled:s.disabled},on:{click:function(l){return t.more(o)}}},[t._v(" "+t._s(t.$i18nt("gd.btn.more"))+" ")]),a("i",{staticClass:"el-icon-delete del-btn",on:{click:function(l){return t.delList(o)}}})],1)],1)}),a("div",{staticClass:"add"},[a("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0")))])])],2)]),a("moreOptions",{ref:"moreOptions",attrs:{codeList:t.codeList,record:t.record,tableNameData:t.tableNameData,codeGenId:t.codeGenId},on:{ok:t.moreSbumit}}),a("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],2)},_sfc_staticRenderFns$2D=[],__component__$2D=normalizeComponent(_sfc_main$2D,_sfc_render$2D,_sfc_staticRenderFns$2D,!1,null,"2cfd8ada",null,null);const AttributesDesigner=__component__$2D.exports,index_vue_vue_type_style_index_0_scoped_978a794c_lang="",_sfc_main$2C={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1,list:[],tableNameData:[],relevantData:[],fetching:!1,subIndex:0,confirmLoading:!1,rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner:ConnectDesigner$1,AttributesDesigner,draggable},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getBootTrans(){return this.$bootTrans==null?!1:this.$bootTrans},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}}},methods:{okAttributes(r){this.list[this.subIndex].fieldrelations=r},setAttributes(r){this.subIndex=r,this.$refs.attributes.open(this.list[r])},selectType(r,t){t.tableid="",t.fieldrelations=[],t.tableNameData=r==1?this.tableNameData:this.relevantData,this.selectTable(t.tableid,t)},selectTable(r,t){t.disabled=!(t.operationtype!=""&&t.tableid!=""),t.fieldrelations=[],console.log(r,t)},async init(){this.confirmLoading=!0;let r=await this.codeGenerateList(""),t=await this.onlineFkTableList();this.tableNameData=[...r.data];const a=t.data.filter(s=>s.updatafiled).map(s=>(s.busid=s.id+","+s.updatafiled.columnname,s));this.relevantData=[...a],this.confirmLoading=!1},async searchTable(r,t){this.fetching=!0,t.tableNameData=[];let a=await this.codeGenerateList(r);t.tableNameData=[...a.data],this.fetching=!1},codeGenerateList(r){return codeGenerateInformationList({busName:r}).then(t=>t)},onlineFkTableList(){return onlineFormGetFkTableList({tableId:this.codeGenId}).then(r=>r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.list.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u6B65\u9AA4\u64CD\u4F5C\uFF01");return}if(!this.isChecked()){this.$message.error("\u8BF7\u8865\u5145\u6B65\u9AA4\u64CD\u4F5C\u6570\u636E\uFF01");return}this.list.map(t=>{let a={};t.operationtype==1?a=t.tableNameData.filter(o=>o.id==t.tableid)[0]:a=t.tableNameData.filter(o=>o.busid==t.tableid)[0],a.tablename&&(t.tablename=a.tablename);let s=String(t.tableid).split(",");return t.tableid=s[0],t.updatafiled=t.operationtype==2?s[1]:null,t}),this.record.err=!1,this.record.name=this.ruleFormData.name,this.record.list=[...this.list],this.onClose()}})},isChecked(r){return this.list.every((t,a,s)=>t.operationtype!=""&&t.tableid!=""&&t.fieldrelations.length>0)},selColumn(r,t){this.list[t].columnid=r.id,this.list[t].name=this.list[t].name==""?r.columncomment:this.list[t].name},addList(){let r={id:uuid$1(),operationtype:"",tableid:"",tablename:"",tableNameData:[],fieldrelations:[],disabled:!0,updatafiled:null};this.list=this.list.concat(r)},delList(r){this.list=this.list.filter((t,a)=>a!=r)},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}this.$nextTick(()=>{setTimeout(()=>{let r=[];this.record.list.forEach(t=>{let a=t.operationtype==1?this.tableNameData:this.relevantData,s=t.operationtype==1?Number(t.tableid):String(t.tableid).split(",")[0]+","+t.updatafiled;t.tableNameData===void 0&&(t.tableNameData=a),t.tableNameData!==void 0&&t.tableNameData.length==0&&(t.tableNameData=a),r.push(Object.assign({...t},{tableid:s,operationtype:String(t.operationtype)}))}),console.log(r),this.list=[...r],this.ruleFormData={name:this.record.name}},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1}},created(){this.init()}};var _sfc_render$2C=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.record.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.stageOrStep","\u9636\u6BB5/\u6B65\u9AA4")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.record.name))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})]),a("i",{staticClass:"el-icon-close close",on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip","\u8BF7\u8865\u5145\u6570\u636E\u6B65\u9AA4\u4FE1\u606F")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.stepName","\u6B65\u9AA4\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1)],1),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.work.stepOperation","\u6B65\u9AA4\u64CD\u4F5C")))]),a("div",[t.list.length>0?a("el-row",{staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.type","\u64CD\u4F5C\u7C7B\u578B")))]),a("el-col",{attrs:{span:8}},[t._v(t._s(t.$i18nt("gd.flow.work.table","\u9009\u62E9\u8868")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.work.attribute","\u8BBE\u7F6E\u5C5E\u6027")))]),a("el-col",{attrs:{span:4}},[t._v(t._s(t.$i18nt("gd.flow.handle","\u64CD\u4F5C")))])],1):t._e(),a("div",[a("draggable",t._b({model:{value:t.list,callback:function(s){t.list=s},expression:"list"}},"draggable",{animation:300,handle:".drag-btn"},!1),t._l(t.list,function(s,o){return a("el-row",{key:s.id,staticClass:"more",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disabled},on:{change:function(l){return t.selectType(l,s)}},model:{value:s.operationtype,callback:function(l){t.$set(s,"operationtype",l)},expression:"item.operationtype"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.flow.work.createRecords","\u521B\u5EFA\u8BB0\u5F55")}}),a("el-option",{attrs:{value:"2",label:t.$i18nt("gd.flow.work.updateRecords","\u66F4\u65B0\u8BB0\u5F55")}})],1)],1),a("el-col",{attrs:{span:8}},[s.operationtype==1?a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:t.$i18nt("gd.flow.work.table"),disabled:t.disabled},on:{change:function(l){return t.selectTable(l,s)}},model:{value:s.tableid,callback:function(l){t.$set(s,"tableid",l)},expression:"item.tableid"}},t._l(s.tableNameData,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.busname)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.busname))+" "+t._s(l.tablename)+" ")])}),1):s.operationtype==2?a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",clearable:"",placeholder:t.$i18nt("gd.flow.work.table"),disabled:t.disabled},on:{change:function(l){return t.selectTable(l,s)}},model:{value:s.tableid,callback:function(l){t.$set(s,"tableid",l)},expression:"item.tableid"}},t._l(s.tableNameData,function(l,d){return a("el-option",{key:d,attrs:{value:l.busid,label:t.$i18nt(`Dynamics.${l.transkey}`,l.busname)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.busname))+" "+t._s(l.tablename)+" "+t._s(l.updatafiled.columncomment)+" ")])])}),1):a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.flow.work.table"),disabled:""},model:{value:s.tableid,callback:function(l){t.$set(s,"tableid",l)},expression:"item.tableid"}},t._l(s.tableNameData,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:t.$i18nt(`Dynamics.${l.transkey}`,l.busname)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.busname))+" "+t._s(l.tablename)+" ")])}),1)],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{type:s.fieldrelations.length==0?"danger":"primary",disabled:t.disabled?!0:s.disabled},on:{click:function(l){return t.setAttributes(o)}}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.attribute","\u8BBE\u7F6E\u5C5E\u6027"))+" ")])],1),a("el-col",{staticStyle:{"padding-top":"2px"},attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-rank drag-btn"}),t.disabled?t._e():a("i",{staticClass:"el-icon-close del-btn",on:{click:function(l){return t.delList(o)}}})])],1)}),1)],1)],1),t.disabled?t._e():a("div",{staticClass:"add"},[a("a",{on:{click:t.addList}},[t._v(t._s(t.$i18nt("gd.flow.addStep","\u6DFB\u52A0\u6570\u636E\u6B65\u9AA4")))])])],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd-.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd-.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("AttributesDesigner",{ref:"attributes",attrs:{tableNameData:t.tableNameData,codeGenId:t.codeGenId,relevantData:t.relevantData},on:{ok:t.okAttributes}})],1)},_sfc_staticRenderFns$2C=[],__component__$2C=normalizeComponent(_sfc_main$2C,_sfc_render$2C,_sfc_staticRenderFns$2C,!1,null,"978a794c",null,null);const StepsDesigner$1=__component__$2C.exports;function nodeData$1(r){switch(r){case"step":return{type:"step",name:"\u65B0\u5EFA\u6B65\u9AA4",list:[],err:!1,isDelete:!0};case"stage":return{type:"stage",name:"\u65B0\u5EFA\u9636\u6BB5",list:[],err:!1,isDelete:!0};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1},{type:"else",name:"ELSE",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1}],isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_4143fbc5_lang="",plugFilters$3={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2B={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner:ConnectDesigner$1,StepsDesigner:StepsDesigner$1,FlowsFilter},methods:{sbumit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.list.list[0],a=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].fieldwheres={...a},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(r){this.list={...r}},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r;let a=t.fieldwheres,o=Object.prototype.toString.call(a)==="[object Array]"?Object.assign({...plugFilters$3},{list:a}):{...a},l=o.pid===null?o.list:[o],d=o.pid===null?o:plugFilters$3;this.list=Object.assign({...d},{list:l}),this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let r=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",fieldwheres:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},list:[],err:!1,id:uuid$1(),pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData$1(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),a.type=="condition"&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},del(r){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((a,s)=>s!=r);t[0].type="if",this.record.list=[...t]},addType(r,t,a){let s=nodeData$1(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),s.type=="condition"&&s.list.map(o=>(o.id=uuid$1(),o.pid=s.id,o)),this.record.list[t].list.splice(a+1,0,s)},delChildItem(r,t,a){let s=this.record.list[t].list.filter((o,l)=>l!=r);this.record.list[t].list=[...s]},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkData=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkdata=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnid)[0];return t===void 0?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2B=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[s.type=="else"?a("div",{staticClass:"condition-body"},[a("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute","\u4E0D\u6EE1\u8DB3\u65F6\u6267\u884C")))])])]):a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219"))+" ")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del.apply(null,arguments)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{key:d,staticStyle:{position:"relative","z-index":"10"}},[l.type=="step"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,index:d,type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,table:t.table,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{placement:"right",visible:t.visible,size:600,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[a("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules","\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219"))+" ")]),a("div",{staticClass:"tips"},[t.listError?a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?a("div",{style:t.styleMode},[a("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2B=[],__component__$2B=normalizeComponent(_sfc_main$2B,_sfc_render$2B,_sfc_staticRenderFns$2B,!1,null,"4143fbc5",null,null);const ConditionDesigner$1=__component__$2B.exports,index_vue_vue_type_style_index_0_scoped_6c060a35_lang="",_sfc_main$2A={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{detail:{},visible:!1,list:[],rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleForm:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{disableds(){return this.permissionsBnt?this.stateCodes==1:!0},styled(){return{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},table(){return this.tableLists.filter(r=>r.id===this.codeGenId)[0]},...mapGetters(["screenHeight","tableLists"])},components:{ConnectDesigner:ConnectDesigner$1,StepsDesigner:StepsDesigner$1,ConditionDesigner:ConditionDesigner$1},methods:{sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.list[this.seeIndex].name=this.ruleForm.name,this.onClose())})},addList(){let r={type:1,id:uuid$1(),columnname:"",columnid:"",rules:"1",val:"",ruleslist:[...this.rulesList],effecttype:"input",fieldformat:null,fkdata:[]};this.list=this.list.concat(r)},delList(r){this.list=this.list.filter((t,a)=>a!=r)},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r,this.ruleForm={name:t.name}},0)})},selTyped(r,t){let a=nodeData$1(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),a.type=="condition"&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},del(r){if(this.record.list.length==1){this.$emit("delItem",this.index);return}let t=this.record.list.filter((a,s)=>s!=r);this.record.list=[...t]},addType(r,t,a){let s=nodeData$1(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),this.record.list[t].list.splice(a+1,0,s)},delChildItem(r,t,a){let s=this.record.list[t].list.filter((o,l)=>l!=r);this.record.list[t].list=[...s]},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},lookup(r){this.lookIndex=r;let t=this.loadData.filter(a=>a.id==this.list[r].columnid)[0];this.$refs.engineSearch.open(t)},lookupSeled(r){this.handleLookupCancel(),this.list[this.lookIndex].effecttype=="fk"&&(this.list[this.lookIndex].fkdata=[r],this.list[this.lookIndex].val=r.id),this.list[this.lookIndex].effecttype=="about"&&(this.list[this.lookIndex].fkdata=[r.data],this.list[this.lookIndex].val=r.data.id)},handleLookupCancel(){this.lookupShow=!1},selColumn(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=this.loadData.filter(o=>o.id==r.id)[0],s=this.rulesList.filter(o=>o.remark.split(",").includes(r.effecttype));a&&a.fieldformat&&(this.list[t].fieldformat=this.fieldFormat.filter(o=>o.code==a.fieldformat)[0].name),this.list[t].columnid=r.id,this.list[t].effecttype=a.effecttype,this.list[t].val="",this.list[t].ruleslist=[...s],this.list[t].rules=s.length>0?s[0].code:"",a.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkdata=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkdata=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnid)[0];return t==null?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)},showTime(r){return r.fieldformat.length>10}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2A=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt"},[t._v(t._s(t.$i18nt("gd.flow.stage")))]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del(o)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.stageTip")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"10"}},[l.type=="step"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,index:d,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,codeGenId:t.codeGenId,table:t.table,index:d,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d)}}):t._e()],1)})],2)}),0),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.stageName"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleForm.name,callback:function(s){t.$set(t.ruleForm,"name",s)},expression:"ruleForm.name"}})],1)],1)],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply"))+" ")])],1)],1)],1)},_sfc_staticRenderFns$2A=[],__component__$2A=normalizeComponent(_sfc_main$2A,_sfc_render$2A,_sfc_staticRenderFns$2A,!1,null,"6c060a35",null,null);const StageDesigner$1=__component__$2A.exports,main_vue_vue_type_style_index_0_scoped_0bb44168_lang="",_sfc_main$2z={name:"GdWorkFlow",props:{value:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100}},data(){return{visible:!1,list:[],loadData:[],codeGenId:""}},computed:{style(){let r=this.scaleVal/100;return`transform-origin: top;transform:scale(${r},${r});`}},components:{StartDesigner:StartDesigner$1,ConnectDesigner:ConnectDesigner$1,EndDesigner:EndDesigner$1,StepsDesigner:StepsDesigner$1,ConditionDesigner:ConditionDesigner$1,StageDesigner:StageDesigner$1},methods:{init(r){this.codeGenId=r[0].data.sysCodeGenId,this.list=[...r],this.getLoadData()},addType(r,t){let a=nodeData$1(r);if(a=Object.assign(a,{pid:0,id:uuid$1()}),this.list.length==2){let s={list:[],name:"\u9876\u70B9",type:"stage",id:0};s.list.push(a),this.list.splice(t+1,0,s)}else{let s=this.list[t+1];s.list.push(a),this.list[t+1]=s}},delItem(r){let t=this.list.filter((a,s)=>s!=r);this.list=[...t]},getLoadData(){onlineFormGetCodeGenerateList({codeGenId:this.codeGenId}).then(r=>{if(r.data){let t=r.data.filter(a=>a.effecttype=="about"&&a.columnname==(a.relations+"_AboutTable").toLowerCase()?!1:!(a.effecttype=="currency"&&a.columnname==(a.relations+"_Currency_Base").toLowerCase()));this.loadData=t}})}}};var _sfc_render$2z=function r(){var t=this,a=t._self._c;return a("div",[a("div",{staticClass:"flowsdesigner",style:t.style},[a("div",{staticClass:"flowsdesigners"},[a("div",{staticClass:"flowdesign"},[t._l(t.list,function(s,o){return[s.type=="start"?a("StartDesigner",{attrs:{record:s,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType}}):t._e(),s.type=="stage"?a("StageDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{addType:t.addType,delItem:t.delItem}}):t._e(),s.type=="end"?a("EndDesigner"):t._e()]})],2)])])])},_sfc_staticRenderFns$2z=[],__component__$2z=normalizeComponent(_sfc_main$2z,_sfc_render$2z,_sfc_staticRenderFns$2z,!1,null,"0bb44168",null,null);const GDpackage$c=__component__$2z.exports;GDpackage$c.install=function(r){r.component(GDpackage$c.name,GDpackage$c)};const index_vue_vue_type_style_index_0_scoped_ce4807fb_lang="",_sfc_main$2y={props:{placement:{type:String,default:"top"},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{visible:!1}},computed:{disabled(){return this.permissionsBnt?this.stateCodes==1:!0}},methods:{selType(r){this.visible=!1,!this.disabled&&this.$emit("selType",r)}}};var _sfc_render$2y=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"lian"},[a("div",{ref:"lianBtn",staticClass:"lian-btn"},[a("el-popover",{attrs:{placement:t.placement},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[a("div",{staticClass:"overlayd"},[t._v(t._s(t.$i18nt("gd.flow.addNode","\u6DFB\u52A0\u6D41\u7A0B\u8282\u70B9")))]),a("div",{staticClass:"connect-solid"},[a("el-divider")],1),a("div",{staticClass:"contents"},[a("div",{staticClass:"item auto",on:{click:function(s){return t.selType("approver")}}},[a("i",{staticClass:"gd-icons gd-icon-audit anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.approval.reviewedBy","\u5BA1\u6838\u4EBA")))])]),a("div",{staticClass:"item stage",on:{click:function(s){return t.selType("circulate")}}},[a("i",{staticClass:"el-icon-s-promotion anticon",staticStyle:{height:"40px","font-size":"25px"}}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.approval.CcBy","\u6284\u9001\u4EBA")))])]),a("div",{staticClass:"item term",on:{click:function(s){return t.selType("condition")}}},[a("i",{staticClass:"gd-icons gd-icon-liucheng anticon"}),a("div",{staticClass:"title"},[t._v(t._s(t.$i18nt("gd.flow.condition","\u6761\u4EF6")))])])]),a("el-button",{attrs:{slot:"reference",type:t.disabled?"info":"primary",icon:"el-icon-plus",size:"mini",circle:"",disabled:t.disabled},slot:"reference"})],1)],1)])},_sfc_staticRenderFns$2y=[],__component__$2y=normalizeComponent(_sfc_main$2y,_sfc_render$2y,_sfc_staticRenderFns$2y,!1,null,"ce4807fb",null,null);const ConnectDesigner=__component__$2y.exports,index_vue_vue_type_style_index_0_scoped_9ce801dd_lang="",_sfc_main$2x={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},startCategory:{type:String,default:""}},data(){return{visible:!1,tableNameData:[],fetching:!1,show:!1,msgList:[],msgListCC:[],msgListPress:[],msgListBack:[],msgListRject:[],msgListEnd:[],msgListTrans:[],msgListReturn:[],msgListApproval:[],msgListAutomatic:[],fkEntityName:"Msg_MessagetemPlate",type:1,datail:null,showHistory:!1,textReturn:!1,textSgin:!1,isReturnMsg:!1,isRejectMsg:!1,ruleFormData:{name:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],tableId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],category:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],autoApprovalType:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],enCode:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],stateCodes:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]}}},components:{ConnectDesigner},computed:{categoryDisableds(){let r=this.getDictionary("table_flows_type").filter(t=>t.code==this.startCategory)[0];return r===void 0||r.statecodes==1?"":r.code},dictList(){return this.getDictionary("table_flows_type").filter(t=>t.statecodes==1||t.code==this.categoryDisableds)},disableds(){return this.stateCodes==1},getName(){let r=this.record.data.name;if(this.record.data.langs&&this.record.data.langs.length>0){let t=this.record.data.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.data.transKey&&(r=this.$i18nt(`Dynamics.${this.record.data.transKey}`,0,r));return r},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language"])},methods:{onChange(r){this.isReturnMsg=r.target.checked},onChange1(r){this.isRejectMsg=r.target.checked},lookupSeleds(r){let t=[];r.langs.forEach(a=>{t.push({name:a.languageName,val:a.description,code:a.languageCode})}),this.form.setFieldsValue({name:r.defaulttext,langs:JSON.stringify(t)}),this.record.data.langs=t},lookupSeled(r){this.type==1?(this.msgList=r.fkData,this.ruleFormData.msg_MessagetemPlateId=r.data[0]):this.type==2?(this.msgListCC=r.fkData,this.ruleFormData.msg_MessagetemPlateId_CC=r.data[0]):this.type==3?(this.msgListPress=r.fkData,this.ruleFormData.msg_MessagetemPlateId_UP=r.data[0]):this.type==4?(this.msgListBack=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RV=r.data[0]):this.type==5?(this.msgListRject=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RJ=r.data[0]):this.type==6?(this.msgListTrans=r.fkData,this.ruleFormData.msg_MessagetemPlateId_TR=r.data[0]):this.type==7?(this.msgListEnd=r.fkData,this.ruleFormData.msg_MessagetemPlateId_AS=r.data[0]):this.type==8?(this.msgListReturn=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RT=r.data[0]):this.type==9?(this.msgListApproval=r.fkData,this.ruleFormData.msg_MessagetemPlateId_RTA=r.data[0]):this.type==10&&(this.msgListAutomatic=r.fkData,this.ruleFormData.msg_MessagetemPlateId_AA=r.data[0])},async lookup(r,t){this.type=r;let a=t,s={fkEntityName:this.fkEntityName,effectType:"fk",options:{},val:a};this.$refs.engineSearch.open(s)},sbumit(){this.$refs.ruleForm.validate(r=>{r&&(this.record.data=Object.assign({...this.ruleFormData},{langs:JSON.parse(this.ruleFormData.langs)},{isReturnMsg:this.isReturnMsg},{isRejectMsg:this.isRejectMsg}),this.onClose(1))})},searchTable(r){this.fetching=!0,this.tableNameData=[],codeGenerateApprovalList({busName:r}).then(t=>{this.tableNameData=[...t.data],this.fetching=!1})},changeMsg(r){this.msgType=r,this.searchMsgData("")},searchMsgData(r){let t={fkEntityName:this.fkEntityName,name:r};this.fetching=!0,this.msgList=this.msgType==1?[]:this.msgList,this.msgListCC=this.msgType==2?[]:this.msgListCC,this.msgListPress=this.msgType==3?[]:this.msgListPress,this.msgListBack=this.msgType==4?[]:this.msgListBack,this.msgListRject=this.msgType==5?[]:this.msgListRject,this.msgListTrans=this.msgType==6?[]:this.msgListTrans,this.msgListEnd=this.msgType==7?[]:this.msgListEnd,this.msgListReturn=this.msgType==8?[]:this.msgListReturn,this.msgListApproval=this.msgType==9?[]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[]:this.msgListAutomatic,baseFkList(t).then(a=>{this.fetching=!1,a.success&&(this.msgList=this.msgType==1?[...a.data]:this.msgList,this.msgListCC=this.msgType==2?[...a.data]:this.msgListCC,this.msgListPress=this.msgType==3?[...a.data]:this.msgListPress,this.msgListBack=this.msgType==4?[...a.data]:this.msgListBack,this.msgListRject=this.msgType==5?[...a.data]:this.msgListRject,this.msgListTrans=this.msgType==6?[...a.data]:this.msgListTrans,this.msgListEnd=this.msgType==7?[...a.data]:this.msgListEnd,this.msgListReturn=this.msgType==8?[...a.data]:this.msgListReturn,this.msgListApproval=this.msgType==9?[...a.data]:this.msgListApproval,this.msgListAutomatic=this.msgType==10?[...a.data]:this.msgListAutomatic)})},searchMsgDataId(r,t){let a={fkEntityName:this.fkEntityName,id:r};this.fetching=!0,this.msgList=t==1?[]:this.msgList,this.msgListCC=t==2?[]:this.msgListCC,this.msgListPress=t==3?[]:this.msgListPress,this.msgListBack=t==4?[]:this.msgListBack,this.msgListRject=t==5?[]:this.msgListRject,this.msgListTrans=t==6?[]:this.msgListTrans,this.msgListEnd=t==7?[]:this.msgListEnd,this.msgListReturn=t==8?[]:this.msgListReturn,this.msgListApproval=t==9?[]:this.msgListApproval,this.msgListAutomatic=t==10?[]:this.msgListAutomatic,baseFkList(a).then(s=>{s.code==200&&(this.msgList=t==1?[...s.data]:this.msgList,this.msgListCC=t==2?[...s.data]:this.msgListCC,this.msgListPress=t==3?[...s.data]:this.msgListPress,this.msgListBack=t==4?[...s.data]:this.msgListBack,this.msgListRject=t==5?[...s.data]:this.msgListRject,this.msgListTrans=t==6?[...s.data]:this.msgListTrans,this.msgListEnd=t==7?[...s.data]:this.msgListEnd,this.msgListReturn=t==8?[...s.data]:this.msgListReturn,this.msgListApproval=t==9?[...s.data]:this.msgListApproval,this.msgListAutomatic=t==10?[...s.data]:this.msgListAutomatic),this.fetching=!1})},see(){console.log(this.record),this.show=this.record.data.stateCodes!=null,this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let r={name:this.record.data.name,tableId:this.record.data.tableId,category:this.record.data.category,description:this.record.data.description,enCode:this.record.data.enCode,msg_MessagetemPlateId:this.record.data.msg_MessagetemPlateId,msg_MessagetemPlateId_CC:this.record.data.msg_MessagetemPlateId_CC,msg_MessagetemPlateId_UP:this.record.data.msg_MessagetemPlateId_UP,msg_MessagetemPlateId_RV:this.record.data.msg_MessagetemPlateId_RV,msg_MessagetemPlateId_RJ:this.record.data.msg_MessagetemPlateId_RJ,msg_MessagetemPlateId_TR:this.record.data.msg_MessagetemPlateId_TR,msg_MessagetemPlateId_AS:this.record.data.msg_MessagetemPlateId_AS,msg_MessagetemPlateId_RT:this.record.data.msg_MessagetemPlateId_RT,msg_MessagetemPlateId_RTA:this.record.data.msg_MessagetemPlateId_RTA,msg_MessagetemPlateId_AA:this.record.data.msg_MessagetemPlateId_AA,autoApprovalType:String(this.record.data.autoApprovalType),transKey:this.record.data.transKey,langs:JSON.stringify(this.record.data.langs)};this.isReturnMsg=this.record.data.isReturnMsg,this.isRejectMsg=this.record.data.isRejectMsg,this.record.data.stateCodes!=null&&(r=Object.assign(r,{stateCodes:this.record.data.stateCodes})),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId,1),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_CC,2),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_UP,3),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RV,4),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RJ,5),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_TR,6),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_AS,7),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RT,8),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_RTA,9),this.searchMsgDataId(this.record.data.msg_MessagetemPlateId_AA,10),this.ruleFormData=r,this.$refs.gdTranslation&&this.$refs.gdTranslation.init()},0)})},handleChange(r){this.record.data.title=r},onClose(r){if(r!=null&&r==1){this.visible=!1;return}if(this.record.data.transKey){let t=this.form.getFieldsValue(),a=JSON.parse(t.langs);this.record.data=Object.assign({...this.record.data},{langs:a,name:t.name})}this.visible=!1},selType(r){this.$emit("addType",r,this.index)},getDictionary(r){return this.$options.filters.dictData(r)},toggleHistory(){this.showHistory=!this.showHistory}},mounted(){this.searchTable("")}};var _sfc_render$2x=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"start"},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getName}},[a("div",{staticClass:"starts",attrs:{slot:"reference"},on:{click:t.see},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.$i18nt("gd.flow.processStart","\u6D41\u7A0B\u5F00\u59CB")))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getName))]),a("i",{staticClass:"el-icon-arrow-right",staticStyle:{"text-align":"right"}})])])]),a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.ProcessInformation","\u6D41\u7A0B\u4FE1\u606F")))])])]),a("el-form",{ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{display:"none"},attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"transKey"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.transKey,callback:function(s){t.$set(t.ruleFormData,"transKey",s)},expression:"ruleFormData.transKey"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"langs"}},[a("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165"},model:{value:t.ruleFormData.langs,callback:function(s){t.$set(t.ruleFormData,"langs",s)},expression:"ruleFormData.langs"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.name","\u540D\u79F0"),prop:"name"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{disabled:t.disableds,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.table","\u5173\u8054\u8868"),prop:"tableId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0,clearable:"",remote:"","reserve-keyword":"","remote-method":t.searchTable,loading:t.fetching},model:{value:t.ruleFormData.tableId,callback:function(s){t.$set(t.ruleFormData,"tableId",s)},expression:"ruleFormData.tableId"}},t._l(t.tableNameData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.busname)}},[a("span",[t._v(t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.busname)))]),a("span",[t._v(t._s(s.tablename))])])}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.classify"),prop:"category"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.category,callback:function(s){t.$set(t.ruleFormData,"category",s)},expression:"ruleFormData.category"}},t._l(t.dictList,function(s,o){return a("el-option",{key:o,class:s.code===t.categoryDisableds?"category-dels":"",attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.autoApproval")}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.autoApprovalType,callback:function(s){t.$set(t.ruleFormData,"autoApprovalType",s)},expression:"ruleFormData.autoApprovalType"}},t._l(t.getDictionary("table_flows_autoApproval"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{"margin-top":"10px"}},[a("span",[t._v(" "+t._s(t.$i18nt("gd.flow.approval.configTemplate","\u6A21\u7248\u914D\u7F6E"))+" "),t.showHistory==!1?a("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.down","\u5C55\u5F00"))+" "),a("i",{staticClass:"el-icon-arrow-down"})]):a("a",{on:{click:t.toggleHistory}},[t._v(" "+t._s(t.$i18nt("gd.btn.up","\u6536\u8D77"))+" "),a("i",{staticClass:"el-icon-arrow-up"})])])])]),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplate","\u5BA1\u6279\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(1)}},model:{value:t.ruleFormData.msg_MessagetemPlateId,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId",s)},expression:"ruleFormData.msg_MessagetemPlateId"}},t._l(t.msgList,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(1,t.ruleFormData.msg_MessagetemPlateId)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplatecc","\u6284\u9001\u6D88\u606F\u6A21\u677F"),prop:"msg_MessagetemPlateId_CC"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(2)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_CC,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_CC",s)},expression:"ruleFormData.msg_MessagetemPlateId_CC"}},t._l(t.msgListCC,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(2)}}})],1)])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showHistory,expression:"showHistory"}]},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplatePress","\u50AC\u529E\u6A21\u677F"),prop:"msg_MessagetemPlateId_UP"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(3)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_UP,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_UP",s)},expression:"ruleFormData.msg_MessagetemPlateId_UP"}},t._l(t.msgListPress,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(3)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateRecall"),prop:"msg_MessagetemPlateId_RV"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(4)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RV,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RV",s)},expression:"ruleFormData.msg_MessagetemPlateId_RV"}},t._l(t.msgListBack,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(4)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurn"),prop:"msg_MessagetemPlateId_RJ"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(5)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RJ,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RJ",s)},expression:"ruleFormData.msg_MessagetemPlateId_RJ"}},t._l(t.msgListRject,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(5)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurn","\u9A73\u56DE\u6A21\u677F"),prop:"isRejectMsg"}},[a("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange1},model:{value:t.isRejectMsg,callback:function(s){t.isRejectMsg=s},expression:"isRejectMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textReturn","\u662F\u5426\u5F00\u542F\u9A73\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateTurret","\u8F6C\u5BA1\u6A21\u677F"),prop:"msg_MessagetemPlateId_TR"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(6)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_TR,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_TR",s)},expression:"ruleFormData.msg_MessagetemPlateId_TR"}},t._l(t.msgListTrans,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(6)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateEnd","\u52A0\u7B7E\u6A21\u677F"),prop:"msg_MessagetemPlateId_AS"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(7)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_AS,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_AS",s)},expression:"ruleFormData.msg_MessagetemPlateId_AS"}},t._l(t.msgListEnd,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(7)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.megTemplateSign","\u9000\u56DE\u6A21\u677F"),prop:"msg_MessagetemPlateId_RT"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(8)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RT,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RT",s)},expression:"ruleFormData.msg_MessagetemPlateId_RT"}},t._l(t.msgListReturn,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(8)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:"",prop:"isReturnMsg"}},[a("el-checkbox",{attrs:{disabled:t.disableds},on:{click:t.onChange},model:{value:t.isReturnMsg,callback:function(s){t.isReturnMsg=s},expression:"isReturnMsg"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.textSgin","\u662F\u5426\u5F00\u542F\u9000\u56DE\u4E2D\u95F4\u8282\u70B9\u6D88\u606F\u901A\u77E5"))+" ")])],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.returnApproval","\u9000\u56DE\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_RTA"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(9)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_RTA,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_RTA",s)},expression:"ruleFormData.msg_MessagetemPlateId_RTA"}},t._l(t.msgListApproval,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(9)}}})],1)])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.automatic","\u81EA\u52A8\u5BA1\u6279\u6A21\u677F"),prop:"msg_MessagetemPlateId_AA"}},[a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",remote:"","reserve-keyword":"","remote-method":t.searchMsgData,loading:t.fetching,clearable:"",disabled:t.disableds},on:{focus:function(s){return t.changeMsg(10)}},model:{value:t.ruleFormData.msg_MessagetemPlateId_AA,callback:function(s){t.$set(t.ruleFormData,"msg_MessagetemPlateId_AA",s)},expression:"ruleFormData.msg_MessagetemPlateId_AA"}},t._l(t.msgListAutomatic,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:s.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(s){return t.lookup(10)}}})],1)])],1)],1),t.show?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.state","\u72B6\u6001"),prop:"stateCodes"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:t.disableds},model:{value:t.ruleFormData.stateCodes,callback:function(s){t.$set(t.ruleFormData,"stateCodes",s)},expression:"ruleFormData.stateCodes"}},t._l(t.getDictionary("state_code"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1):t._e(),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.code","\u7F16\u7801"),prop:"enCode"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.enCode,callback:function(s){t.$set(t.ruleFormData,"enCode",s)},expression:"ruleFormData.enCode"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.explain","\u63CF\u8FF0"),prop:"description"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:4,placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disableds},model:{value:t.ruleFormData.description,callback:function(s){t.$set(t.ruleFormData,"description",s)},expression:"ruleFormData.description"}})],1)],1)],1)],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disableds?"info":"primary",disabled:t.disableds},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("gd-search",{ref:"engineSearch",attrs:{appendToBody:!0},on:{lookupSeled:t.lookupSeled}})],1)},_sfc_staticRenderFns$2x=[],__component__$2x=normalizeComponent(_sfc_main$2x,_sfc_render$2x,_sfc_staticRenderFns$2x,!1,null,"9ce801dd",null,null);const StartDesigner=__component__$2x.exports,index_vue_vue_type_style_index_0_scoped_9a02d003_lang="",_sfc_main$2w={data(){return{}}};var _sfc_render$2w=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"end"},[a("div",{staticClass:"ends"},[t._v(t._s(t.$i18nt("gd.flow.processEnd","\u6D41\u7A0B\u7ED3\u675F")))])])},_sfc_staticRenderFns$2w=[],__component__$2w=normalizeComponent(_sfc_main$2w,_sfc_render$2w,_sfc_staticRenderFns$2w,!1,null,"9a02d003",null,null);const EndDesigner=__component__$2w.exports,index_vue_vue_type_style_index_0_scoped_95ecfaf5_lang="",_sfc_main$2v={props:{menberList:{type:Array,default:()=>[]}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],qVisible:!1,qConfirmLoading:!1,qSpinning:!1,selData:[],list:[],checkedKeys:[],id:"",menberList1:[],fullscreen:!1,width:"80%",defaultExpandedKeys:[],defaultProps:{children:"children",label:"name",value:"id"},currentNodeKey:null,selectedKey:null}},components:{draggable},watch:{language(r,t){this.changeLanguage()}},computed:{style(){let r=this.screenHeight-272;return`height:${this.fullscreen?r+190:r}px;`},...mapGetters(["language","tableSize","screenHeight"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},onCheck(r,t){this.getSelData(t.checkedKeys)},handleClickChange(r,t){if(!t){this.getSelData([]);return}this.$refs.tree.setCheckedNodes([r]),this.getSelData([r.id])},init(r,t){this.fullscreen=!1,this.id=t,console.log(r,this.id,"e....");let a=[],s=[];r.forEach(o=>{a.push(o.id?o.id:o)}),this.list=a,this.selData=[...r],this.qVisible=!0,t==5||t==6?(s=r.length==0?[]:[r[0].id],this.getMenber(s)):(this.checkedKeys=r.length>0?[...a]:[],this.checkedKeys.length==0&&this.$nextTick(()=>{setTimeout(()=>{this.$refs.treeList.setCheckedNodes([])},0)}))},getSelData(r){let t=[],a=[];const s=o=>(o=o.filter((l,d)=>(l.children&&l.children.length>0&&(l.children=s(l.children)),l.type==2&&r.includes(l.id)&&t.push(l),l.type==1&&r.includes(l.id)&&a.push(l),!0)),o);this.id==5?(s(this.menberList1),this.selData=[...a]):(s(this.menberList),this.selData=[...t])},handleSubmit(){this.$emit("ok",this.selData,this.id),this.handleCancel()},handleCancel(){this.mockData=[],this.qVisible=!1},doEvent(r){let t=r.item.functionName;this[t]()},getMenber(r){if(this.type==3){let t=localStorage.getItem("transName");t=JSON.parse(t)}getBUEmployeeTree().then(t=>{if(t.code==200){const a=s=>(s=s.filter((o,l)=>o.type!=2?(o.key=o.id,o.title=o.name,o.children&&o.children.length>0&&(o.children=a(o.children)),!0):!1),s);a(t.data),this.menberList1=t.data,this.defaultExpandedKeys=r,this.$nextTick(()=>{setTimeout(()=>{this.defaultExpandedKeys.length==0&&this.$refs.tree.setCheckedNodes([])},0)})}})}}};var _sfc_render$2v=function r(){var t=this,a=t._self._c;return a("el-dialog",{ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.qVisible,width:t.width,center:!0,"close-on-click-modal":!1,"modal-append-to-body":!1,"append-to-body":!0,top:"80px"},on:{"update:visible":function(s){t.qVisible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.specifyMembers","\u6307\u5B9A\u6210\u5458")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.qConfirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.qSpinning,expression:"qSpinning"}],class:t.fullscreen?"modal-bodyq":"modal-body"},[a("div",{staticClass:"view_query"},[t.id==5?a("div",{staticClass:"l",style:t.style},[a("el-tree",{ref:"tree",staticClass:"treeRadio",attrs:{data:t.menberList1,props:t.defaultProps,"default-expand-all":"","default-checked-keys":t.defaultExpandedKeys,"show-checkbox":"","check-strictly":"","node-key":"id"},on:{"check-change":t.handleClickChange,check:t.onCheck}})],1):t.id==6?a("div",{staticClass:"l",style:t.style},[a("el-tree",{ref:"tree",staticClass:"treeRadio",attrs:{data:t.menberList,props:t.defaultProps,"default-expand-all":"","default-checked-keys":t.defaultExpandedKeys,"show-checkbox":"","check-strictly":"","node-key":"id"},on:{"check-change":t.handleClickChange,check:t.onCheck}})],1):a("div",{staticClass:"l",style:t.style},[t.menberList.length?a("el-tree",{ref:"treeList",attrs:{data:t.menberList,props:t.defaultProps,"node-key":"id","show-checkbox":"","default-expand-all":"","expand-on-click-node":!1,"default-checked-keys":t.checkedKeys},on:{check:t.onCheck}}):t._e()],1),a("div",{staticClass:"c"},[a("a",[a("i",{staticClass:"el-icon-d-arrow-right",staticStyle:{"font-size":"20px"}})])]),t.qVisible&&t.id==5?a("div",{staticClass:"l",style:t.style},[a("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selDepartment"))+" ")]),t._l(t.selData,function(s,o){return a("div",{key:o,staticClass:"line1",staticStyle:{margin:"10px"}},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(s.name)+" ")])})],2):t._e(),t.qVisible&&t.id==6?a("div",{staticClass:"l",style:t.style},[a("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selDepartment"))+" ")]),t._l(t.selData,function(s,o){return a("div",{key:o,staticClass:"line1",staticStyle:{margin:"10px"}},[a("i",{staticClass:"el-icon-rank",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(s.name)+" ")])})],2):t._e(),t.qVisible&&t.id!=5&&t.id!=6?a("div",{staticClass:"l",style:t.style},[a("div",{staticClass:"specify_members"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.selMembers","\u5DF2\u9009\u6210\u5458"))+" ")]),a("draggable",t._b({model:{value:t.selData,callback:function(s){t.selData=s},expression:"selData"}},"draggable",{animation:300,handle:".drag-move"},!1),t._l(t.selData,function(s,o){return a("div",{key:o,staticClass:"line1",staticStyle:{margin:"10px"}},[a("i",{staticClass:"el-icon-rank drag-move",staticStyle:{"font-size":"16px","padding-right":"8px",color:"#f00"}}),t._v(" "+t._s(s.name)+" ")])}),0)],1):t._e()])])],2)},_sfc_staticRenderFns$2v=[],__component__$2v=normalizeComponent(_sfc_main$2v,_sfc_render$2v,_sfc_staticRenderFns$2v,!1,null,"95ecfaf5",null,null);const Menbers=__component__$2v.exports,__$_require_e8adeb72__="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAQlBMVEUAAAD////////////////////////////////////////////////////////////////////g7P3////1+f/r9P7kNebLAAAAEnRSTlMA889POxugZK7jxb1vEFuFLuUrCRQXAAADa0lEQVRo3ryZ626DMAyFcYBw7yXHfv9XndjYLHUtinHg+w36emzHqURlZmm6e5zCQAQQDWGK965ZqnNp5n7AW4Z+bqpzaLuesMIsIukPEWHGCvVdW9q6dNPmTB/Y7FO3lKxwJAAq/SwHQLFUzesRas1yj3UJbVi1ycCqDl51E17CZscOnoK3UbV2dTw84jMBkg4iAM3H4o4AJwcMjAdC3zSuJ/TN6o0a1xc62socNK43dDCU+/EEUiGA5yN7ZxA4FYNBdaYX6i1jRpb5pt5y5psnrz+z31ve/CD1ljXT7my3g3pLm4e98xzUW94cdvdkOg0g7hykdCIfD1VLpv0sK7a9Te/bPIINHfuFxfDS+M47A4b/NYrh4AOzp9CMf4ij2H3uD4diDs3oX70NkHuze8xAc3B1AC6zvK6R2uE19ZlRvwSWg3OlGCJbAwv24AORR0NgZ7EFo32ksQ+bBzsaKu3uMusttRAMK8s92KBlE3e2s+Qfr24TT5ArxYJpux5M29Lf5AS0WunrxFrrHnKtWLY7Smf63B4roJ/twVeL+XuHzOXEki2etcUZcIkWa5MHw/M+sYKhqhbD885KK8Cis+WPnLJhNLo+cvAH1hVyt7wgrrOkCO5VVLHPnAwIol5NebDTqxdUQDLBDq+CoMfYU21ORvDUK8IRWpIVkIoNCB/WqhgqtrlZv0PZAb66N5fchmEYiDaG67hFsgiGvP9VC68EBPBLZIq1lLnAA2VDn+EQwGEx+HIO+HIe+HEO+PE1nQOecMtkk8vsqaFbt2UuleANqCeZeS14qToW3bQv87pj8SoLUBHOF4FZVkll+btXn7tUeyDFy5bucL0FbPRFoR+40AM2inatL58wpoPyl0+YmcA6Lud/i5+pisjwmYofWTE5fGK0Ikw5ZNMVzRdXWGC+gN2kuBzsprLWCWDbWWm0FF0NBJZiMVH/CWxawDZOBEszGOWNwAZGeWkNJFXM3ZBJngLmZkgpOR9cCi4lZ4Cx4PJj54OlGZqaeWDTCm3cBDD2zG9S9l4t3d5p1XtrrukXwgkZKgvdVxwjP4DSX+QmOWTUY6xqN0g2aIRt4/YbFsyJR/YdCG0fge0/9Ns05jxKsLtVlH2k8P5W9BoZV1i/xxvQiIykjDuEc2TsaPxBqyOjZR8wTNd4fPAPFfElFmMfdj8AAAAASUVORK5CYII=",index_vue_vue_type_style_index_0_scoped_04283b74_lang="",_sfc_main$2u={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0}},data(){return{radioStyle:{display:"block",height:"30px",lineHeight:"30px"},visible:!1,list:[],confirmLoading:!1,assigneeType:"",seeList:[],rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner,Menbers},computed:{languageMessages(){return this.$i18n.messages},getTransKey(){let r=this.tableLists.filter(o=>o.id==this.codeGenId)[0],a=`SFOA_N${r===void 0?"":`_${r.tablename}`}_${uuid$1(8)}`,s=[];for(let o in this.languageMessages)s.push({name:transKeyCodeName(o),val:this.ruleFormData.name,code:o});return JSON.stringify({name:a,langs:s})},getName(){let r=this.record.name;if(this.record.properties.langs&&this.record.properties.langs.length>0){let t=this.record.properties.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.properties.transkey&&(r=this.$i18nt(`Dynamics.${this.record.properties.transkey}`,r));return r},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getAuditorType(){let t=this.getDictionary("table_flows_ccmode").filter(s=>s.code==this.record.properties.assigneeType)[0];return t?this.$i18nt(t.transkey,t.name):this.$i18nt("gd.flow.approval.CcByTip","\u8BF7\u9009\u62E9\u6284\u9001\u4EBA")},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","tableLists"])},methods:{lookupSeled(r){this.record.properties.transkey||this.$emit("addTransKey",r.name);let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleFormData=Object.assign({...this.ruleFormData},{name:r.defaulttext,langs:t,transkey:r.name}),this.record.properties.transkey=r.name,this.record.properties.langs=t},delMwnber(r){let t=this.seeList.filter(a=>a!=r);this.seeList=[...t]},selMenbers(r){this.seeList=[...r]},addMember(){this.$refs.menbers.init(this.seeList)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(this.assigneeType==""){this.$message.error("\u8BF7\u9009\u62E9\u6284\u9001\u65B9\u5F0F");return}if(this.assigneeType==1&&this.seeList.length==0){this.$message.error("\u8BF7\u6DFB\u52A0\u6210\u5458\uFF01");return}let t=[];this.seeList.forEach(s=>{t.push(s.id)});let a={assigneeType:this.assigneeType,approvers:this.assigneeType==1?[...t]:[],transkey:this.ruleFormData.transkey,langs:this.ruleFormData.langs};this.record.err=!1,this.record.name=this.ruleFormData.name,this.record.properties={...a},this.onClose()}})},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}let r={...this.record.properties},t=[],a=[];const s=o=>(o=o.filter((l,d)=>(l.children&&l.children.length>0&&(l.children=s(l.children)),l.type==2&&r.approvers.includes(l.id)&&a.push(l),!0)),o);s(this.menberList),r.approvers.forEach(o=>{a.forEach(l=>{l.id==o&&t.push(l)})}),this.$nextTick(()=>{setTimeout(()=>{this.seeList=[...t],this.assigneeType=r.assigneeType;let o=r.langs?r.langs:[];this.ruleFormData={name:this.record.name,transkey:r.transkey?r.transkey:null,langs:r.transkey?[]:o}},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1},getDictionary(r){return this.$options.filters.dictData(r)}},created(){}};var _sfc_render$2u=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getAuditorType}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.getName))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getAuditorType))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.ccInformation","\u6284\u9001\u4EBA\u4FE1\u606F")))])])]),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName"),prop:"name"}},[t.visible&&!t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:3},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),a("el-divider"),a("div",{staticStyle:{margin:"12px 0"}},[a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.assigneeType,callback:function(s){t.assigneeType=s},expression:"assigneeType"}},t._l(t.getDictionary("table_flows_ccmode"),function(s,o){return a("el-radio",{key:s.code,style:t.radioStyle,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1),a("el-divider"),t.assigneeType==1?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.addMembers","\u6DFB\u52A0\u6210\u5458"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458")))])]),a("div",{staticClass:"b"},[t._l(t.seeList,function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[t.disabled?t._e():a("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(l){return t.delMwnber(s)}}}),a("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),a("div",{staticClass:"name line1"},[t._v(t._s(s.name))])]):t._e()]}),t.disabled?t._e():a("div",{staticClass:"item fl"},[a("div",{staticClass:"jia",on:{click:t.addMember}},[a("i",{staticClass:"el-icon-plus icon"})])])],2)]):t._e()],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("Menbers",{ref:"menbers",attrs:{menberList:t.menberList},on:{ok:t.selMenbers}})],1)},_sfc_staticRenderFns$2u=[],__component__$2u=normalizeComponent(_sfc_main$2u,_sfc_render$2u,_sfc_staticRenderFns$2u,!1,null,"04283b74",null,null);const StepsDesigner=__component__$2u.exports,index_vue_vue_type_style_index_0_scoped_6992cda7_lang="",_sfc_main$2t={props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},type:{type:String,default:"step"},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}}},data(){return{defaultValue:"1",radioStyle:{display:"block",height:"30px",lineHeight:"30px"},visible:!1,list:[],tableNameData:[],relevantData:[],fetching:!1,subIndex:0,confirmLoading:!1,fieldList:[],codeList:[],managerLevel:"1",counterSign:"1",tableName:"",seeList:[],seeList1:[],assigneeType:"",tableRelationData:[],autoApprvalType:"0",optionSign:"1",atureSign:"1",optionallowCC:"1",optionShow:!1,atureShow:!1,allowccShow:!1,checkedValues:[],options:[{label:"\u5141\u8BB8\u9000\u56DE",value:"1"},{label:"\u81EA\u52A8\u6284\u9001",value:"2"},{label:"\u8F6C\u5BA1\u8303\u56F4",value:"3"},{label:"\u52A0\u5BA1\u8303\u56F4",value:"4"}],allowAddSignature:!0,allowCC:!0,allowReturn:!0,allowTransfer:!0,sendModel:!0,showEditTrans:!1,showEdit:!1,showEditSign:!1,rejectModel:!0,maskList:[],turretList:[],endorseList:[],id:"1",rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},ruleFormData:{}}},components:{ConnectDesigner,AttributesDesigner,Menbers},computed:{languageMessages(){return this.$i18n.messages},getTransKey(){let r=this.tableLists.filter(o=>o.id==this.codeGenId)[0],a=`SFOA_N${r===void 0?"":`_${r.tablename}`}_${uuid$1(8)}`,s=[];for(let o in this.languageMessages)s.push({name:transKeyCodeName(o),val:this.ruleFormData.name,code:o});return JSON.stringify({name:a,langs:s})},getName(){let r=this.record.name;if(this.record.properties.langs&&this.record.properties.langs.length>0){let t=this.record.properties.langs.filter(a=>a.code==this.language)[0];r=t===void 0?r:t.val}else this.record.properties.transkey&&(r=this.$i18nt(`Dynamics.${this.record.properties.transkey}`,r));return r},apprvalTypeErr(){return this.tasksAutoApprovalList.filter(t=>t.disabled).filter(t=>t.code==this.autoApprvalType)[0]!==void 0},tasksAutoApprovalList(){let r=this.getDictionary("table_Tasks_autoApproval"),t=this.getDictionary("table_flows_autoApproval");if(!this.settingsData.data)return r;let a=this.settingsData.data.autoApprovalType,s=t.filter(d=>d.code==String(a))[0];if(s===void 0)return r;let o=s.remark?s.remark.split("#"):[],l=s.remark?o[o.length-1].split(","):[];return r.map(d=>(d.disabled=!l.includes(d.code),d))},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},getAuditorType(){let t=this.getDictionary("table_flows_mode").filter(s=>s.code==this.record.properties.assigneeType)[0];return t?this.$i18nt(t.transkey,t.name):this.$i18nt("gd.flow.approval.approverInformationTip","\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA")},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},...mapGetters(["language","tableLists"])},methods:{lookupSeled(r){this.record.properties.transkey||this.$emit("addTransKey",r.name);let t=[];r.langs.forEach(a=>{t.push({name:a.languagename,val:a.description,code:a.languagecode})}),this.ruleFormData=Object.assign({...this.ruleFormData},{name:r.defaulttext,langs:t,transkey:r.name}),console.log(r),this.record.properties.transkey=r.name,this.record.properties.langs=t},returnClick(r){this.sendModel=r},rejectClick(r){this.rejectModel=r},onChange(r){r==!0?(this.allowccShow=!0,this.optionallowCC="1"):r==!1&&(this.allowccShow=!1,this.optionallowCC=""),this.maskList=[],this.showEdit=!1,this.allowCC=r},onChange1(r){r==!0?(this.atureShow=!0,this.atureSign="1"):(this.atureShow=!1,this.atureSign=""),this.turretList=[],this.showEditTrans=!1,this.allowTransfer=r},onChange2(r){r==!0?(this.optionShow=!0,this.optionSign="1"):(this.optionShow=!1,this.optionSign=""),this.endorseList=[],this.showEditSign=!1,this.allowAddSignature=r},edit(){this.id=2,this.$refs.menbers.init(this.maskList,this.id)},editSign(){this.id=3,this.$refs.menbers.init(this.turretList,this.id)},editCC(){this.id=4,this.$refs.menbers.init(this.endorseList,this.id)},radioCC(r){r==2?this.showEdit=!0:(this.showEdit=!1,this.maskList=[]),this.optionallowCC=r},radioTrans(r){r=="2"?this.showEditTrans=!0:(this.showEditTrans=!1,this.turretList=[]),this.atureSign=r},radioSign(r){r=="2"?this.showEditSign=!0:(this.showEditSign=!1,this.endorseList=[]),this.optionSign=r},delField(r){let t=[...this.fieldList];t.splice(r,1),this.fieldList=[...t],this.$nextTick(()=>{setTimeout(()=>{t.forEach((a,s)=>{let o=this.filteredOptions(a),l=this.codeList.filter(d=>!o.includes(d.columnname));t[s].codelist=l}),this.fieldList=[...t]},0)})},changeCode(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=[...this.fieldList];a.forEach((s,o)=>{let l=this.filteredOptions(s),d=this.codeList.filter(u=>!l.includes(u.columnname));a[o].codelist=d}),this.fieldList=[...a]},0)})},addField(){if(this.fieldList.length<this.codeList.length){let r=[...this.fieldList],t=this.filteredOptions({columnname:""}),a={columnname:"",codeList:this.codeList.filter(s=>!t.includes(s.columnname))};r.push(a),this.fieldList=[...r]}},filteredOptions(r){let t=[];if(this.fieldList.forEach((a,s)=>{a.columnname!==""&&t.push(a.columnname)}),t.includes(r.columnname)){let a=t.indexOf(r.columnname);t.splice(a,1)}return t},delMwnber(r){let t=this.seeList.filter(a=>a!=r);this.seeList=[...t]},delMask(r,t){if(t==1){let a=this.maskList.filter(s=>s!=r);this.maskList=[...a]}else if(t==2){let a=this.turretList.filter(s=>s!=r);this.turretList=[...a]}else if(t==3){let a=this.endorseList.filter(s=>s!=r);this.endorseList=[...a]}},selMenbers(r,t){t==1?this.seeList=[...r]:t==2?this.maskList=[...r]:t==3?this.turretList=[...r]:t==4?this.endorseList=[...r]:t==5&&(this.seeList1=[...r])},addMember(){this.id=1,this.$refs.menbers.init(this.seeList,this.id)},delMwnber1(r){let t=this.seeList1.filter(a=>a!=r);this.seeList1=[...t]},addMember1(){this.id=5,this.$refs.menbers.init(this.seeList1,this.id)},changeMode(r){this.managerLevel="1",this.counterSign="1",this.tableName="",this.seeList=[],this.fieldList=[],this.maskList=[],this.endorseList=[],this.turretList=[],this.seeList1=[]},selectTable(r){this.codeList=[],this.fieldList=[],this.getFiledList(r)},async init(){this.confirmLoading=!0;let r=await this.codeGenerateList(""),t=await this.codeGeneratefkList();this.tableNameData=[...r.data],t.data.map(a=>{let s=r.data.filter(o=>o.tablename==a.fkentityname)[0];return a.busname=s===void 0?"--":s.busname,a.tablebame=a.fkentityname,a.transkeytable=s===void 0?null:s.transkey?s.transkey:null,a.currenttableId=s===void 0?"--":s.id,a}),this.tableRelationData=[...t.data],this.confirmLoading=!1},async searchTable(r){this.fetching=!0,this.tableNameData=[];let t=await this.codeGenerateList(r);this.tableNameData=[...t.data],this.fetching=!1},codeGeneratefkList(){return codeGeneratefkList({tableId:this.codeGenId}).then(r=>r)},codeGenerateList(r){return codeGenerateInformationList({busName:r}).then(t=>t)},onlineFkTableList(){return onlineFormGetFkTableList({tableId:this.codeGenId}).then(r=>r)},getFiledList(r){let t=this.tableRelationData.filter(a=>a.id==r)[0].currentTableId;onlineFormGetCodeGenerateList({codeGenId:t}).then(a=>{a.data.map(o=>(o.children=null,o));let s=a.data.filter(o=>!(o.effecttype=="about"&&o.columnname===(o.relations+"_AboutTable").toLowerCase()));this.codeList=[...s]})},getFiledFilter(){let r=this.tableNameData.filter(t=>t.tablename==this.record.properties.tableName)[0];r!=null&&(this.confirmLoading=!0,onlineFormGetCodeGenerateList({codeGenId:r.id}).then(t=>{t.data.map(o=>(o.children=null,o));let a=t.data.filter(o=>!(o.effectType=="about"&&o.columnname===(o.relations+"_AboutTable").toLowerCase()));this.codeList=[...a];let s=[];this.record.properties.tableFields.forEach(o=>{let l=this.record.properties.tableFields.filter(f=>f!=o),d=a.filter(f=>!l.includes(o)),u={columnname:o,codelist:d};s.push(u)}),this.fieldList=[...s],this.confirmLoading=!1}))},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){if(console.log(this.assigneeType),this.assigneeType==""){this.$message.error(this.$i18nt("gd.flow.approval.approvalMethodTip","\u8BF7\u9009\u62E9\u5BA1\u6279\u65B9\u5F0F"));return}if(this.assigneeType==1&&this.seeList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.assigneeType==6&&this.seeList1.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersHead","\u8BF7\u6DFB\u52A0\u90E8\u95E8"));return}if(this.assigneeType==5&&this.fieldList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addFieldTip","\u8BF7\u6DFB\u52A0\u8868\u5B57\u6BB5\u6570\u636E"));return}if(this.assigneeType==5&&!this.isChecked()){this.$message.error(this.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E"));return}if((this.assigneeType==3||this.assigneeType==4)&&this.apprvalTypeErr){this.$message.error(this.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"));return}if(this.optionallowCC==2&&this.maskList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.atureSign==2&&this.turretList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}if(this.optionSign==2&&this.endorseList.length==0){this.$message.error(this.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458"));return}let t=[];this.fieldList.filter(h=>{t.push(h.columnName)});let a=[];this.seeList.forEach(h=>{a.push(h.id)});let s=[];this.maskList.forEach(h=>{s.push(h.id)});let o=[];this.turretList.forEach(h=>{o.push(h.id)});let l=[];this.endorseList.forEach(h=>{l.push(h.id)});let d=[];this.seeList1.forEach(h=>{d.push(h.id)}),this.record.err=!1;let u=this.tableRelationData.filter(h=>h.id==this.tableName)[0],f=this.tableNameData.filter(h=>h.id==this.codeGenId)[0],p={assigneeType:this.assigneeType,managerLevel:this.managerLevel,counterSign:this.counterSign,tableName:u===void 0?"":u.fkentityname,approvers:a,currentTableName:f.tablename,currentFieldName:u===void 0?"":u.columnname,tableFields:t,autoApprvalType:this.autoApprvalType,businessUnitId:d.join(),allowReturn:this.sendModel,allowTransfer:this.allowTransfer,allowAddSignature:this.allowAddSignature,allowCC:this.allowCC,showreject:this.rejectModel,allowccShow:this.allowccShow,optionallowCC:this.optionallowCC,CCApprovers:s,transferApprovers:o,atureShow:this.atureShow,atureSign:this.atureSign,addSignatureApprovers:l,optionShow:this.optionShow,optionSign:this.optionSign,transkey:this.ruleFormData.transkey,langs:this.ruleFormData.langs};this.record.name=this.ruleFormData.name,this.record.properties={...p},console.log(p,"properties"),this.onClose()}})},isChecked(r){return this.fieldList.every((t,a,s)=>!(t.columnname==null||t.columnname==""))},see(){if(this.visible=!0,this.confirmLoading){setTimeout(()=>{this.see()},200);return}let r={...this.record.properties};console.log(this.record,"this.record");let t=[],a=[],s=[],o=[],l=[],d=[],u=[],f=[],p=[];const h=v=>(v=v.filter((g,y)=>(g.children&&g.children.length>0&&(g.children=h(g.children)),g.type==2&&r.approvers.includes(g.id)&&a.push(g),r.CCApprovers!==void 0&&g.type==2&&r.CCApprovers.includes(g.id)&&s.push(g),r.transferApprovers!==void 0&&g.type==2&&r.transferApprovers.includes(g.id)&&l.push(g),r.addSignatureApprovers!==void 0&&g.type==2&&r.addSignatureApprovers.includes(g.id)&&u.push(g),r.businessUnitId!==void 0&&g.type==1&&r.businessUnitId==g.id&&p.push(g),!0)),v);h(this.menberList),r.approvers.forEach(v=>{a.forEach(g=>{g.id==v&&t.push(g)})}),r.CCApprovers&&r.CCApprovers.forEach(v=>{s.forEach(g=>{g.id==v&&o.push(g)})}),r.transferApprovers&&r.transferApprovers.forEach(v=>{l.forEach(g=>{g.id==v&&d.push(g)})}),r.addSignatureApprovers&&r.addSignatureApprovers.forEach(v=>{u.forEach(g=>{g.id==v&&f.push(g)})}),this.$nextTick(()=>{setTimeout(()=>{let v=r.autoApprvalType===void 0?"0":r.autoApprvalType;this.tasksAutoApprovalList.filter(_=>!_.disabled).filter(_=>_.code==v)[0];let y=this.tableRelationData.filter(_=>_.columnname==r.currentFieldName)[0];this.assigneeType=r.assigneeType,this.managerLevel=r.managerLevel,this.autoApprvalType=v,this.counterSign=r.counterSign,this.tableName=y==null?"":y.id,this.seeList=[...t],this.seeList1=[...p],this.sendModel=r.allowReturn,this.allowTransfer=r.allowTransfer,this.allowAddSignature=r.allowAddSignature,this.allowCC=r.allowCC,this.rejectModel=r.showreject,this.maskList=[...o],this.allowccShow=r.allowccShow,this.optionallowCC=r.optionallowCC,this.turretList=[...d],this.atureShow=r.atureShow,this.atureSign=r.atureSign,this.endorseList=[...f],this.optionShow=r.optionShow,this.optionSign=r.optionSign,this.atureSign=="2"?this.showEditTrans=!0:this.showEditTrans=!1,this.optionallowCC=="2"?this.showEdit=!0:this.showEdit=!1,this.optionSign=="2"?this.showEditSign=!0:this.showEditSign=!1;let b=r.langs?r.langs:[];this.ruleFormData={name:this.record.name,transkey:r.transkey?r.transkey:null,langs:r.transkey?[]:b},this.$refs.gdTranslation&&this.$refs.gdTranslation.init(),r.tableName&&this.codeList.length==0&&this.getFiledFilter()},0)})},selType(r){this.$emit("addType",r,this.index)},del(){this.$emit("delItem",this.index)},onClose(){this.visible=!1},getDictionary(r){return this.$options.filters.dictData(r)},doEvent(r){let t=r.item.functionName;this[t]()}},created(){this.init()}};var _sfc_render$2t=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"steps"},[a("div",{staticClass:"start",class:t.record.err?"start-err":"",on:{click:t.see}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:t.getAuditorType}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"start-t line1"},[t._v(t._s(t.getName))]),a("div",{staticClass:"start-b"},[a("div",{staticClass:"title line1"},[t._v(t._s(t.getAuditorType))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(s){return s.stopPropagation(),t.del.apply(null,arguments)}}})])]),t.record.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.replenishData","\u8BF7\u8865\u5145\u6570\u636E")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:t.type,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:t.selType}}),a("el-drawer",{attrs:{visible:t.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:"50%","custom-class":"gd-drawer-form"},on:{close:t.onClose,"update:visible":function(s){t.visible=s}}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head gd-dialog-heads"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.flow.approval.approverInformation","\u5BA1\u6279\u4EBA\u4FE1\u606F")))])])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}]},[a("el-form",{ref:"ruleForm",staticClass:"setting-form",attrs:{"label-width":"100px","label-position":"top",model:t.ruleFormData,rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[t.visible&&!t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:3},on:{lookupSeled:t.lookupSeled}}):t.visible&&t.ruleFormData.transkey?a("gd-translation",{ref:"gdTranslation",attrs:{recordData:t.ruleFormData,transKey:t.getTransKey,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1)],1)],1),a("div",{staticStyle:{"margin-bottom":"12px"}},[a("el-radio-group",{attrs:{disabled:t.disabled},on:{change:t.changeMode},model:{value:t.assigneeType,callback:function(s){t.assigneeType=s},expression:"assigneeType"}},t._l(t.getDictionary("table_flows_mode"),function(s,o){return a("el-radio",{key:s.code,style:t.radioStyle,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1),a("el-divider"),t.assigneeType==1?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.addMembers","\u6DFB\u52A0\u6210\u5458"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersTip","\u8BF7\u6DFB\u52A0\u6210\u5458")))])]),a("div",{staticClass:"b"},[t._l(t.seeList,function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[t.disabled?t._e():a("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(l){return t.delMwnber(s)}}}),a("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),a("div",{staticClass:"name line1"},[t._v(t._s(s.name))])]):t._e()]}),t.disabled?t._e():a("div",{staticClass:"item fl"},[a("div",{staticClass:"jia",on:{click:t.addMember}},[a("i",{staticClass:"el-icon-plus icon"})])])],2),t.seeList.length>1?a("div",[a("el-divider",{staticStyle:{margin:"12px 0"}}),a("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.personsApproval","\u591A\u4EBA\u5BA1\u6279\u65B9\u5F0F")))]),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.counterSign,callback:function(s){t.counterSign=s},expression:"counterSign"}},[a("el-radio",{style:t.radioStyle,attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.orSignature","\u6216\u7B7E\uFF08 \u4E00\u540D\u6210\u5458\u540C\u610F\u5373\u53EF \uFF09"))+" ")]),a("el-radio",{style:t.radioStyle,attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.jointlySign","\u4F1A\u7B7E\uFF08 \u987B\u6240\u6709\u6210\u5458\u540C\u610F \uFF09"))+" ")])],1)],1):t._e()]):t.assigneeType==2||t.assigneeType==3?[t.assigneeType==3?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.autoApproval","\u81EA\u52A8\u5BA1\u6279"))+" "),t.apprvalTypeErr?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")))])]),a("i",{staticClass:"el-icon-warning-outline",staticStyle:{color:"#f56c6c","font-size":"18px"}})]):t._e()],1),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.autoApprvalType,callback:function(s){t.autoApprvalType=s},expression:"autoApprvalType"}},t._l(t.tasksAutoApprovalList,function(s,o){return a("el-radio",{key:o,style:t.radioStyle,attrs:{label:s.code,disabled:s.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1):t._e(),a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.assigneeType==2?t.$i18nt("gd.flow.approval.designatedLevel","\u6307\u5B9A\u5C42\u7EA7"):t.$i18nt("gd.flow.approval.endPoint","\u6307\u5B9A\u7EC8\u70B9"))+" ")]),a("el-row",{staticStyle:{margin:"12px 0"},attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.defaultValue,callback:function(s){t.defaultValue=s},expression:"defaultValue"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.flow.approval.bottomUp","\u4ECE\u4E0B\u81F3\u4E0A")}})],1)],1),a("el-col",{attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:t.managerLevel,callback:function(s){t.managerLevel=s},expression:"managerLevel"}},t._l(t.getDictionary("table_flows_pid"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("div",{staticClass:"tip"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.bottomUpTip","\u4ECE\u4E0B\u81F3\u4E0A\u6307\u4EE5\u7533\u8BF7\u4EBA\u7684\u76F4\u5C5E\u4E0A\u7EA7\u4E3A\u7B2C\u4E00\u7EA7\uFF0C\u5411\u66F4\u9AD8\u5C42\u7EA7\u9012\u589E"))+" ")])],1)]:t.assigneeType==4?[a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.autoApproval","\u81EA\u52A8\u5BA1\u6279"))+" "),t.apprvalTypeErr?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("template",{slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.autoApprvalErr","\u9009\u9879\u5DF2\u7981\u7528\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")))])]),a("i",{staticClass:"el-icon-warning-outline",staticStyle:{color:"#f56c6c","font-size":"18px"}})],2):t._e()],1),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.autoApprvalType,callback:function(s){t.autoApprvalType=s},expression:"autoApprvalType"}},t._l(t.tasksAutoApprovalList,function(s,o){return a("el-radio",{key:o,style:t.radioStyle,attrs:{label:s.code,disabled:s.disabled}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1),a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.endPoint","\u6307\u5B9A\u7EC8\u70B9")))]),a("el-row",{staticStyle:{margin:"12px 0"},attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:t.defaultValue,callback:function(s){t.defaultValue=s},expression:"defaultValue"}},[a("el-option",{attrs:{value:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.bottomUp","\u4ECE\u4E0B\u81F3\u4E0A"))+" ")])],1)],1),a("el-col",{attrs:{span:12}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled},model:{value:t.managerLevel,callback:function(s){t.managerLevel=s},expression:"managerLevel"}},t._l(t.getDictionary("table_flows_director"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1)]:t.assigneeType==5?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(t._s(t.$i18nt("gd.flow.approval.associatedMembers","\u5173\u8054\u6210\u5458\u63A7\u4EF6")))]),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.flow.approval.businessTable","\u4E1A\u52A1\u5DE5\u5355\u5173\u8054\u8868"),required:!0}},[a("el-select",{staticStyle:{width:"90%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",disabled:t.disabled},on:{change:t.selectTable},model:{value:t.tableName,callback:function(s){t.tableName=s},expression:"tableName"}},t._l(t.tableRelationData,function(s,o){return a("el-option",{key:o,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkeytable}`,s.busame)}},[a("span",[a("span",{staticClass:"active-color"},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkeytable}`,s.busname))+" ")]),t._v(" "+t._s(s.tablename)+" "),a("span",{staticClass:"active-color",staticStyle:{padding:"0 4px 0 4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ")]),t._v(" "+t._s(s.columnName)+" ")])])}),1)],1)],1),t.fieldList.length>0?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.develop.table.field","\u5B57\u6BB5"),required:!0}},t._l(t.fieldList,function(s,o){return a("el-row",{key:o,attrs:{gutter:24}},[a("el-col",{attrs:{span:20}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:"",filterable:"",disabled:t.disabled},on:{change:function(l){return t.changeCode(l,o)}},model:{value:s.columnname,callback:function(l){t.$set(s,"columnname",l)},expression:"item.columnname"}},t._l(s.codelist,function(l,d){return a("el-option",{key:d,attrs:{value:l.columnname,label:t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.columncomment))+" "+t._s(l.columnName)+" ")])])}),1)],1),a("el-col",{attrs:{span:4}},[t.disabled?t._e():a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"16px",color:"#ff4d4f",cursor:"pointer"},on:{click:function(l){return t.delField(o)}}})])],1)}),1)],1):t._e(),t.tableName!=null?a("el-col",{attrs:{span:24}},[t.disabled?t._e():a("div",{staticClass:"add"},[a("a",{on:{click:t.addField}},[t._v(t._s(t.$i18nt("gd.btn.addTo","\u6DFB\u52A0")))])])]):t._e()],1),a("el-divider",{staticStyle:{margin:"12px 0"}}),t.fieldList.length>1?a("div",[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.personsApproval","\u591A\u4EBA\u5BA1\u6279\u65B9\u5F0F"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.associatedMembersTip","\u8BE5\u6210\u5458\u63A7\u4EF6\u4E3A\u591A\u9009")))])]),a("el-radio-group",{attrs:{disabled:t.disabled},model:{value:t.counterSign,callback:function(s){t.counterSign=s},expression:"counterSign"}},[a("el-radio",{style:t.radioStyle,attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.orSignature","\u6216\u7B7E\uFF08 \u4E00\u540D\u6210\u5458\u540C\u610F\u5373\u53EF \uFF09"))+" ")]),a("el-radio",{style:t.radioStyle,attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.jointlySign","\u4F1A\u7B7E\uFF08 \u987B\u6240\u6709\u6210\u5458\u540C\u610F \uFF09"))+" ")])],1)],1):t._e()],1):t.assigneeType==6?a("div",{staticClass:"member"},[a("div",{staticClass:"t"},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.departmentHead","\u6DFB\u52A0\u90E8\u95E8"))+" "),a("span",[t._v(t._s(t.$i18nt("gd.flow.approval.addMembersHead","\u8BF7\u6DFB\u52A0\u90E8\u95E8")))])]),a("div",{staticClass:"b"},[t._l(t.seeList1,function(s,o){return[s.type==1?a("div",{staticClass:"item fl"},[t.disabled?t._e():a("i",{staticClass:"el-icon-circle-close cuo",on:{click:function(l){return t.delMwnber1(s)}}}),a("img",{staticClass:"imgs",attrs:{src:__$_require_e8adeb72__}}),a("div",{staticClass:"name line1"},[t._v(t._s(s.name))])]):t._e()]}),t.disabled?t._e():a("div",{staticClass:"item fl"},[a("div",{staticClass:"jia",on:{click:t.addMember1}},[a("i",{staticClass:"el-icon-plus icon"})])])],2)]):t._e()],2),t.fieldList.length>1?a("el-divider"):t._e(),a("div",{staticStyle:{"line-height":"30px"}},[a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.returnClick(s)}},model:{value:t.sendModel,callback:function(s){t.sendModel=s},expression:"sendModel"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowReturn","\u9000\u56DE"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentReturn","\u662F\u5426\u5141\u8BB8\u8282\u70B9\u5BA1\u6279\u4EBA\u5C06\u6D41\u7A0B\u9000\u56DE\u5230\u5386\u53F2\u8282\u70B9")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})])],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.rejectClick(s)}},model:{value:t.rejectModel,callback:function(s){t.rejectModel=s},expression:"rejectModel"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowRreject","\u9A73\u56DE"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.showReject","\u662F\u5426\u5141\u8BB8\u8282\u70B9\u5BA1\u6279\u4EBA\u5C06\u6D41\u7A0B\u9A73\u56DE\u5230\u63D0\u4EA4\u4EBA(\u6D41\u7A0B\u4F5C\u5E9F)")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})])],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.onChange(s)}},model:{value:t.allowCC,callback:function(s){t.allowCC=s},expression:"allowCC"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowCC"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentCC","\u662F\u5426\u5141\u8BB8\u5C06\u5F53\u524D\u5BA1\u6279\u7ED3\u679C\u53D1\u9001\u7ED9\u6307\u5B9A\u4EBA\u5458")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),a("div",{staticClass:"rectangle"},[a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.allowccShow,expression:"allowccShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioCC},model:{value:t.optionallowCC,callback:function(s){t.optionallowCC=s},expression:"optionallowCC"}},[a("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),a("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),a("a",{directives:[{name:"show",rawName:"v-show",value:t.showEdit,expression:"showEdit"}],staticClass:"question",on:{click:t.edit}},[t._v(t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539")))]),a("div",{staticClass:"b"},[t._l(t.maskList.slice(0,5),function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[a("div",{staticClass:"name line1"},[a("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),a("span",[t._v(t._s(s.name))]),t.disabled?t._e():a("i",{staticClass:"el-icon-close cuo",on:{click:function(l){return t.delMask(s,1)}}})])]):t._e()]}),t.maskList.length>=3?a("div",{staticClass:"item fl"},[a("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.onChange1(s)}},model:{value:t.allowTransfer,callback:function(s){t.allowTransfer=s},expression:"allowTransfer"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowTransfer","\u8F6C\u5BA1"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentTrans","\u662F\u5426\u5141\u8BB8\u5BA1\u6279\u4EBA\u5C06\u5BA1\u6279\u4EFB\u52A1\u8F6C\u7ED9\u6307\u5B9A\u4EBA\u5458")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),a("div",{staticClass:"rectangle"},[a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.atureShow,expression:"atureShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioTrans},model:{value:t.atureSign,callback:function(s){t.atureSign=s},expression:"atureSign"}},[a("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),a("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),a("a",{directives:[{name:"show",rawName:"v-show",value:t.showEditTrans,expression:"showEditTrans"}],staticClass:"question",on:{click:t.editSign}},[t._v(" "+t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539"))+" ")]),a("div",{staticClass:"b"},[t._l(t.turretList.slice(0,5),function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[a("div",{staticClass:"name line1"},[a("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),a("span",[t._v(t._s(s.name))]),t.disabled?t._e():a("i",{staticClass:"el-icon-close cuo",on:{click:function(l){return t.delMask(s,2)}}})])]):t._e()]}),t.turretList.length>=3?a("div",{staticClass:"item fl"},[a("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1),a("div",{staticClass:"div-checkboox"},[a("el-checkbox",{attrs:{disabled:t.disabled},on:{change:function(s){return t.onChange2(s)}},model:{value:t.allowAddSignature,callback:function(s){t.allowAddSignature=s},expression:"allowAddSignature"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.allowAddSignature","\u52A0\u7B7E"))+" ")]),a("el-popover",{attrs:{placement:"right",trigger:"hover",content:t.$i18nt("gd.flow.approval.contentSign","\u662F\u5426\u5141\u8BB8\u5F53\u524D\u5BA1\u6279\u4EBA\u6DFB\u52A0\u6307\u5B9A\u4EBA\u5458\u8FDB\u884C\u5BA1\u6279")}},[a("i",{staticClass:"gd-icons gd-icon-question-line question",attrs:{slot:"reference"},slot:"reference"})]),a("div",{staticClass:"rectangle"},[a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:t.optionShow,expression:"optionShow"}],attrs:{name:"radioGroup",disabled:t.disabled},on:{change:t.radioSign},model:{value:t.optionSign,callback:function(s){t.optionSign=s},expression:"optionSign"}},[a("el-radio",{attrs:{label:"1"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionalCC","\u4E0D\u9650\u8303\u56F4"))+" ")]),a("el-radio",{attrs:{label:"2"}},[t._v(" "+t._s(t.$i18nt("gd.flow.approval.optionaAssign","\u6307\u5B9A\u8303\u56F4"))+" ")])],1),a("a",{directives:[{name:"show",rawName:"v-show",value:t.showEditSign,expression:"showEditSign"}],staticClass:"question",on:{click:t.editCC}},[t._v(" "+t._s(t.$i18nt("gd.develop.teamSharing.edit","\u4FEE\u6539"))+" ")]),a("div",{staticClass:"b"},[t._l(t.endorseList.slice(0,5),function(s,o){return[s.type==2?a("div",{staticClass:"item fl"},[a("div",{staticClass:"name line1"},[a("i",{staticClass:"iconfont icon-renwu-ren",attrs:{slot:"dot"},slot:"dot"}),a("span",[t._v(t._s(s.name))]),t.disabled?t._e():a("i",{staticClass:"el-icon-close cuo",on:{click:function(l){return t.delMask(s,3)}}})])]):t._e()]}),t.endorseList.length>=3?a("div",{staticClass:"item fl"},[a("i",{staticClass:"el-icon-more shlh"})]):t._e()],2)],1)],1)])],1),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],2),a("Menbers",{ref:"menbers",attrs:{menberList:t.menberList},on:{ok:t.selMenbers}})],1)},_sfc_staticRenderFns$2t=[],__component__$2t=normalizeComponent(_sfc_main$2t,_sfc_render$2t,_sfc_staticRenderFns$2t,!1,null,"6992cda7",null,null);const StageDesigner=__component__$2t.exports;function nodeData(r){switch(r){case"circulate":return{type:"circulate",name:"\u6284\u9001\u4EBA",list:[],err:!1,isDelete:!0,properties:{assigneeType:"",approvers:[],transkey:null}};case"approver":return{type:"approver",name:"\u5BA1\u6279\u4EBA",list:[],err:!1,isDelete:!0,properties:{assigneeType:"",approveType:"1",approvers:[],tableName:"",currentTableName:"",currentFieldName:"",tableFields:[],managerLevel:"1",counterSign:"1",allowAddSignature:!0,allowCC:!0,allowTransfer:!0,allowReturn:!0,optionShow:!0,atureShow:!0,allowccShow:!0,optionSign:"1",atureSign:"1",optionallowCC:"1",showreject:!0,transkey:null}};case"condition":return{type:"condition",list:[{type:"if",name:"\u65B0\u5EFA\u6761\u4EF6",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1},{type:"else",name:"ELSE",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1}],isDelete:!0};case"parallel":return{type:"parallel",name:"\u5E76\u884C",list:[{type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",list:[],properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},err:!1},{type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",list:[],properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},err:!1}],err:!1,isDelete:!0}}}const index_vue_vue_type_style_index_0_scoped_0500274e_lang="",plugFilters$2={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2s={name:"ParallelDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner,StepsDesigner,StageDesigner,FlowsFilter,ConditionDesigner:()=>Promise.resolve().then(()=>index)},methods:{addTransKey(r){this.$emit("addTransKey",r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.list.list[0],a=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].properties.conditions={...a},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(r){this.list={...r}},see(r){console.log(r),this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r;let a=t.properties.conditions,o=Object.prototype.toString.call(a)==="[object Array]"?Object.assign({...plugFilters$2},{list:a}):{...a},l=o.pid===null?o.list:[o],d=o.pid===null?o:plugFilters$2,u=Object.assign({...d},{list:l});this.list=u,this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let r=this.record.list.length,t={type:"parallelNode",name:"\u65B0\u5EFA\u5E76\u884C",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1,transkey:null,id:uuid$1(),pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),(a.type=="condition"||a.type=="parallel")&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},deltransKey(r){this.$emit("deltransKey",r)},async del(r){if(this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((o,l)=>l!=r);this.record.list=[...t];let a=await this.hasItem([data]).filter(o=>o.transkey),s=[];a.forEach(o=>{s.push(o.transkey)}),s.length!=0&&this.$emit("deltransKey",s)},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>((o.type=="if"||o.type=="elseif"||o.type=="parallelNode")&&(o.list=a(o.list)),(o.type=="condition"||o.type=="parallel")&&o.list.forEach(d=>{d.list=a(d.list)}),(o.type=="circulate"||o.type=="approver")&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},addType(r,t,a){let s=nodeData(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),(s.type=="condition"||s.type=="parallel")&&s.list.map(o=>(o.id=uuid$1(),o.pid=s.id,o)),this.record.list[t].list.splice(a+1,0,s)},async delChildItem(r,t,a){let s=this.record.list[t].list.filter((d,u)=>u!=r);this.record.list[t].list=[...s];let o=await this.hasItem([data]).filter(d=>d.transkey),l=[];o.forEach(d=>{l.push(d.transkey)}),l.length!=0&&this.$emit("deltransKey",l)},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1}}};var _sfc_render$2s=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addParallel","\u6DFB\u52A0\u5E76\u884C"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.task.parallel","\u5E76\u884C"))+" ")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del(o)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"10"}},[l.type=="approver"?a("StageDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="circulate"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),l.type=="parallel"?a("ParallelDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{placement:"right",visible:t.visible,size:"50%","close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[a("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules"))+" ")]),a("div",{staticClass:"tips"},[t.listError?a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?a("div",{style:t.styleMode},[a("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2s=[],__component__$2s=normalizeComponent(_sfc_main$2s,_sfc_render$2s,_sfc_staticRenderFns$2s,!1,null,"0500274e",null,null);const ParallelDesigner=__component__$2s.exports,index_vue_vue_type_style_index_0_scoped_dc9c3419_lang="",plugFilters$1={referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]},_sfc_main$2r={name:"ConditionDesigner",props:{record:{type:Object,required:!0},index:{type:[Number,String],default:0},loadData:{type:Array,default:()=>[]},codeGenId:{type:[Number,String],default:0},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},settingsData:{type:Object,default:()=>{}},table:{type:Object,default:()=>({})}},data(){return{detail:{},visible:!1,list:{},rulesList:[],fieldFormat:[],fetching:!1,lookIndex:0,seeIndex:0,ruleFormData:{},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]}}},computed:{listError(){return(this.list.list||[]).length===0},disabled(){return this.permissionsBnt?this.stateCodes==1:!0},maskStyle(){return{background:"transparent"}},styled(){return{position:"fixed",right:0,bottom:0,width:"50%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},styleMode(){return`transform-origin: top left;transform:scale(${.72},${.8});`}},components:{ConnectDesigner,StepsDesigner,StageDesigner,ParallelDesigner,FlowsFilter},methods:{addTransKey(r){this.$emit("addTransKey",r)},sbumit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.list.list[0],a=t&&this.list.list.length===1&&t.referencefiled===""&&t.referencetable===""&&t.list.length>0?Object.assign(t,{columnid:0}):this.list;this.record.list[this.seeIndex].name=this.ruleFormData.name,this.record.list[this.seeIndex].properties.conditions={...a},this.record.list[this.seeIndex].err=!1,this.onClose()}})},addList(){this.$refs.findFilters.init(this.list)},okFilter(r){this.list={...r}},see(r){this.visible=!0,this.$nextTick(()=>{setTimeout(()=>{let t=this.record.list[r];this.detail=t,this.seeIndex=r;let a=t.properties.conditions,o=Object.prototype.toString.call(a)==="[object Array]"?Object.assign({...plugFilters$1},{list:a}):{...a},l=o.pid===null?o.list:[o],d=o.pid===null?o:plugFilters$1,u=Object.assign({...d},{list:l});this.list=u,this.ruleFormData={name:t.name},this.disabled&&this.flowsFilterInit()},0)})},flowsFilterInit(){this.$nextTick(()=>{this.$refs.showMode.initComponents(this.list)})},addCondition(){let r=this.record.list.length,t={type:"elsif",name:"\u65B0\u5EFA\u6761\u4EF6",properties:{conditions:{referencefiled:"",referencetable:"",checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:"",type:"1",value:"",values:[],list:[]}},list:[],err:!1,transkey:null,id:uuid$1(),pid:this.record.id};this.record.list.splice(r-1,0,t)},selTyped(r,t){let a=nodeData(r);a=Object.assign(a,{pid:this.record.list[t].id,id:uuid$1()}),(a.type=="condition"||a.type=="parallel")&&a.list.map(s=>(s.id=uuid$1(),s.pid=a.id,s)),this.record.list[t].list.splice(0,0,a)},deltransKey(r){this.$emit("deltransKey",r)},async del(r){if(console.log(r),this.record.list.length==2){this.$emit("delItem",this.index);return}let t=this.record.list.filter((o,l)=>l!=r);t[0].type="if",this.record.list=[...t];let a=await this.hasItem([data]).filter(o=>o.transkey),s=[];a.forEach(o=>{s.push(o.transkey)}),s.length!=0&&this.$emit("deltransKey",s)},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>((o.type=="if"||o.type=="elseif"||o.type=="parallelNode")&&(o.list=a(o.list)),(o.type=="condition"||o.type=="parallel")&&o.list.forEach(d=>{d.list=a(d.list)}),(o.type=="circulate"||o.type=="approver")&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},addType(r,t,a){let s=nodeData(r);s=Object.assign(s,{pid:this.record.list[t].id,id:uuid$1()}),(s.type=="condition"||s.type=="parallel")&&s.list.map(o=>(o.id=uuid$1(),o.pid=s.id,o)),this.record.list[t].list.splice(a+1,0,s)},async delChildItem(r,t,a){let s=this.record.list[t].list.filter((d,u)=>u!=r);this.record.list[t].list=[...s];let o=await this.hasItem([data]).filter(d=>d.transkey),l=[];o.forEach(d=>{l.push(d.transkey)}),l.length!=0&&this.$emit("deltransKey",l)},selType(r){this.$emit("addType",r,this.index)},onClose(){this.visible=!1},lookup(r){this.lookIndex=r,this.loadData.filter(t=>t.id==this.list[r].columnId)[0]},lookupSeled(r){this.handleLookupCancel(),this.list[this.lookIndex].effecttype=="fk"&&(this.list[this.lookIndex].fkData=[r],this.list[this.lookIndex].val=r.id),this.list[this.lookIndex].effecttype=="about"&&(this.list[this.lookIndex].fkData=[r.data],this.list[this.lookIndex].val=r.data.id)},handleLookupCancel(){this.lookupShow=!1},selColumn(r,t){this.$nextTick(()=>{setTimeout(()=>{let a=this.loadData.filter(o=>o.id==r.id)[0],s=this.rulesList.filter(o=>o.remark.split(",").includes(r.effecttype));a.fieldformat&&(this.list[t].fieldformat=this.fieldFormat.filter(o=>o.code==a.fieldformat)[0].name),this.list[t].columnid=r.id,this.list[t].effecttype=a.effecttype,this.list[t].val="",this.list[t].ruleslist=[...s],this.list[t].rules=s.length>0?s[0].code:"",a.effecttype=="fk"&&this.searchData("",t)},0)})},searchData(r,t){let a=this.loadData.filter(s=>s.id==this.list[t].columnid)[0];this.fetching=!0,this.list[t].fkdata=[],baseFkList({name:r,fkEntityName:a.fkentityname}).then(s=>{this.list[t].fkdata=s.success?[...s.data]:[],this.fetching=!1})},getDictionary(r){let t=this.loadData.filter(a=>a.id==r.columnid)[0];return t==null?[]:t.dicttypecode==null?[]:this.$options.filters.dictData(t.dicttypecode)}},created(){this.rulesList=this.$options.filters.dictData("table_form_rules"),this.fieldFormat=this.$options.filters.dictData("time_longshort")}};var _sfc_render$2r=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"condition"},[a("div",{staticClass:"condition-t"},[a("div",{staticClass:"condition-add"},[a("el-button",{attrs:{disabled:t.disabled},on:{click:t.addCondition}},[t._v(" "+t._s(t.$i18nt("gd.flow.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])],1),t._l(t.record.list,function(s,o){return a("div",{key:o,staticClass:"condition-item"},[o==0?a("div",{staticClass:"condition-bot-left"}):t._e(),o==0?a("div",{staticClass:"condition-top-left"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-bot-right"}):t._e(),o==t.record.list.length-1?a("div",{staticClass:"condition-top-right"}):t._e(),a("div",{staticClass:"condition-node"},[s.type=="else"?a("div",{staticClass:"condition-body"},[a("div",{staticClass:"condition-bodyt err-bg"},[t._v("ELSE")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title err-color"},[t._v(t._s(t.$i18nt("gd.flow.work.discontentExecute")))])])]):a("div",{staticClass:"condition-body",class:s.err?"condition-err":"",on:{click:function(l){return t.see(o)}}},[a("el-popover",{attrs:{placement:"top",trigger:"hover",content:s.name}},[a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"condition-bodyt line1"},[t._v(" "+t._s(t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219"))+" ")]),a("div",{staticClass:"condition-bodyb"},[a("div",{staticClass:"title line1"},[t._v(t._s(s.name))]),a("i",{staticClass:"el-icon-arrow-right icon"})]),a("i",{staticClass:"el-icon-close close",on:{click:function(l){return l.stopPropagation(),t.del(o)}}})])]),s.err?a("el-tooltip",{staticClass:"tooltip",attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[a("span",[t._v(t._s(t.$i18nt("gd.flow.work.supplementConditionsRules","\u8BF7\u8865\u5145\u6761\u4EF6/\u89C4\u5219\uFF01")))])]),a("i",{staticClass:"el-icon-warning-outline"})]):t._e()],1),a("ConnectDesigner",{attrs:{type:"condition",stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt},on:{selType:l=>t.selTyped(l,o)}})],1),t._l(s.list,function(l,d){return a("div",{staticStyle:{position:"relative","z-index":"10"}},[l.type=="approver"?a("StageDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="circulate"?a("StepsDesigner",{attrs:{loadData:t.loadData,record:l,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,index:d,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),addTransKey:t.addTransKey}}):t._e(),l.type=="condition"?a("ConditionDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),l.type=="parallel"?a("ParallelDesigner",{attrs:{record:l,loadData:t.loadData,index:d,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table,type:"condition"},on:{addType:u=>t.addType(u,o,d),delItem:u=>t.delChildItem(u,o,d),deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e()],1)})],2)})],2),a("div",{staticClass:"condition-b"},[a("ConnectDesigner",{attrs:{stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{selType:t.selType}})],1),a("el-drawer",{attrs:{placement:"right",visible:t.visible,size:"50%","close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,"custom-class":"gd-drawer-form"},on:{close:t.onClose}},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleFormData,rules:t.rules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.process.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.flow.work.conditionsRules","\u6761\u4EF6/\u89C4\u5219")}},[a("el-button",{attrs:{type:"primary",disabled:t.disabled},on:{click:t.addList}},[t._v(" "+t._s(t.$i18nt("gd.flow.work.addConditionsRules"))+" ")]),a("div",{staticClass:"tips"},[t.listError?a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.conditionsRulesTip","\u8BF7\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"error","show-icon":"",closable:!1}}):a("el-alert",{attrs:{title:t.$i18nt("gd.flow.work.addedConditionsRules","\u5DF2\u6DFB\u52A0\u6761\u4EF6/\u89C4\u5219!"),type:"success","show-icon":"",closable:!1}})],1)],1)],1)],1)],1),t.visible?a("div",{style:t.styleMode},[a("FlowsFilter",{ref:"showMode",attrs:{table:t.table,type:1,mode:"div",choiceDisabled:!0}})],1):t._e(),a("div",{style:t.styled},[a("el-button",{style:{marginRight:"8px"},on:{click:t.onClose}},[t._v(" "+t._s(t.$i18nt("gd.btn.cancel","\u53D6\u6D88"))+" ")]),a("el-button",{attrs:{type:t.disabled?"info":"primary",disabled:t.disabled},on:{click:t.sbumit}},[t._v(" "+t._s(t.$i18nt("gd.btn.apply","\u5E94\u7528"))+" ")])],1)],1),a("FlowsFilter",{ref:"findFilters",attrs:{table:t.table,type:1,mode:"dialog"},on:{ok:t.okFilter}})],1)},_sfc_staticRenderFns$2r=[],__component__$2r=normalizeComponent(_sfc_main$2r,_sfc_render$2r,_sfc_staticRenderFns$2r,!1,null,"dc9c3419",null,null);const ConditionDesigner=__component__$2r.exports,index=Object.freeze(Object.defineProperty({__proto__:null,default:ConditionDesigner},Symbol.toStringTag,{value:"Module"})),main_vue_vue_type_style_index_0_scoped_dc664785_lang="",_sfc_main$2q={name:"GdApprovalFlow",props:{value:{type:Array,default:()=>[]},menberList:{type:Array,default:()=>[]},stateCodes:{type:[String,Number],default:0},permissionsBnt:{type:Boolean,default:!0},scaleVal:{type:Number,default:100},startCategory:{type:String,default:""}},data(){return{visible:!1,list:[],loadData:[],codeGenId:"",delTransKeyList:[],addTransKeyList:[]}},computed:{settingsData(){return this.list[0]?this.list[0]:{}},style(){let r=this.scaleVal/100;return`transform-origin: top;transform:scale(${r},${r});`},table(){return this.tableLists.filter(r=>r.id===this.codeGenId)[0]},...mapGetters(["screenHeight","tableLists"])},components:{StartDesigner,ConnectDesigner,EndDesigner,StepsDesigner,ConditionDesigner,StageDesigner,ParallelDesigner},methods:{init(r){this.delTransKeyList=[],this.addTransKeyList=[],this.codeGenId=r[0].data.tableId,this.list=[...r]},addType(r,t){let a=nodeData(r),s=uuid$1();a=Object.assign(a,{pid:0,id:s}),(a.type=="condition"||a.type=="parallel")&&a.list.map(o=>(o=Object.assign(o,{pid:a.id,id:uuid$1()}),o)),this.list.splice(t+1,0,a)},async delItem(r){let t=this.list.filter((o,l)=>l!=r);this.list=[...t];let a=await this.hasItem([data]).filter(o=>o.transkey),s=[];a.forEach(o=>{s.push(o.transkey)}),s.length!=0&&(this.delTransKeyList=this.delTransKeyList.concat(s))},hasItem(r){let t=[];const a=s=>(s=s.filter((o,l)=>((o.type=="condition"||o.type=="parallel")&&o.list.forEach(d=>{d.list=a(d.list)}),(o.type=="circulate"||o.type=="approver")&&(t=t.concat([o]),o.list.length>0&&(t=t.concat(o.list))),!0)),s);return a(r),t},deltransKey(r){this.delTransKeyList=this.delTransKeyList.concat(r)},addTransKey(r){this.addTransKeyList=this.addTransKeyList.concat([r])}}};var _sfc_render$2q=function r(){var t=this,a=t._self._c;return a("div",[a("div",{staticClass:"flowsdesigner",style:t.style},[a("div",{staticClass:"flowsdesigners"},[a("div",{staticClass:"flowdesign"},[t._l(t.list,function(s,o){return[s.type=="start"?a("StartDesigner",{attrs:{record:s,index:o,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,startCategory:t.startCategory},on:{addType:t.addType}}):t._e(),s.type=="approver"?a("StageDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="circulate"?a("StepsDesigner",{attrs:{record:s,loadData:t.loadData,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="condition"?a("ConditionDesigner",{attrs:{loadData:t.loadData,record:s,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="parallel"?a("ParallelDesigner",{attrs:{loadData:t.loadData,record:s,index:o,codeGenId:t.codeGenId,menberList:t.menberList,stateCodes:t.stateCodes,permissionsBnt:t.permissionsBnt,settingsData:t.settingsData,table:t.table},on:{addType:t.addType,delItem:t.delItem,deltransKey:t.deltransKey,addTransKey:t.addTransKey}}):t._e(),s.type=="end"?a("EndDesigner"):t._e()]})],2)])])])},_sfc_staticRenderFns$2q=[],__component__$2q=normalizeComponent(_sfc_main$2q,_sfc_render$2q,_sfc_staticRenderFns$2q,!1,null,"dc664785",null,null);const GDpackage$b=__component__$2q.exports;GDpackage$b.install=function(r){r.component(GDpackage$b.name,GDpackage$b)},FlowsFilter.install=function(r){r.component(FlowsFilter.name,FlowsFilter)};const mixins$j={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.table.businessName",prop:"busName",label:"\u4E1A\u52A1\u540D",width:"240",type:"slot",slotType:"busName",align:"left",fixed:!0,renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.table.tableName",prop:"tablename",label:"\u8868\u540D\u79F0",width:"240",align:"left",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.table.virtualTable",prop:"isvirtualtable",label:"\u865A\u62DF\u8868",width:"140",type:"slot",slotType:"isvirtualtable",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictTypeCode:"yes_or_no"})},{transKey:"gd.table.isLocked",prop:"isLocked",label:"\u662F\u5426\u9501\u5B9A",width:"140",type:"slot",slotType:"isLocked",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u9501\u5B9A",code:1,transKey:"table.locked",prefix:"gd"},{name:"\u672A\u9501\u5B9A",code:0,transKey:"table.unlocked",prefix:"gd"}]})},{transKey:"gd.table.allowNewField",prop:"allowNewField",label:"\u5B57\u6BB5\u65B0\u589E",width:"140",type:"slot",slotType:"allowNewField",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u53EF\u65B0\u589E",code:1,transKey:"table.addedNewField",prefix:"gd"},{name:"\u4E0D\u53EF\u65B0\u589E",code:0,transKey:"table.notAddedNewField",prefix:"gd"}]})},{transKey:"gd.table.audit",prop:"isAudit",label:"\u542F\u7528\u5BA1\u8BA1",width:"140",type:"slot",slotType:"isAudit",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.plugIn",prop:"isPlugIn",label:"\u542F\u7528\u63D2\u4EF6",width:"140",type:"slot",slotType:"isPlugIn",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.proxy",prop:"isAgent",label:"\u542F\u7528\u4EE3\u7406",width:"140",type:"slot",slotType:"isAgent",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.share",prop:"isTeam",label:"\u542F\u7528\u5171\u4EAB",width:"140",type:"slot",slotType:"isTeam",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.approval",prop:"isApproval",label:"\u542F\u7528\u5BA1\u6279",width:"140",type:"slot",slotType:"isApproval",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}]})},{transKey:"gd.table.mslaveSubmit",prop:"isChildAgent",label:"\u4E3B\u4ECE\u63D0\u4EA4",width:"140",type:"slot",slotType:"isChildAgent",align:"center",renderHeader:(r,...t)=>this.renderHeader(r,...t,{effectType:"radio",dictData:[{name:"\u662F",code:1,transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:0,transKey:"placeholder.no",prefix:"gd"}]})},{transKey:"gd.org.authorName",prop:"authorname",width:"200",label:"\u4F5C\u8005\u59D3\u540D",align:"left"}],formColumns:[{transKey:"gd.table.tableName",effectType:"input",prop:"tablename",label:"\u8868\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"},{pattern:/^(?![0-9_])\w+$/,message:"\u4E0D\u80FD\u4EE5\u6570\u5B57\u5F00\u5934\u4E14\u5934\u5C3E\u6216\u4E2D\u95F4\u4E0D\u80FD\u6709\u7A7A\u683C\uFF01",transKey:"gd.table.tableNameRules"}]},{transKey:"gd.table.tableDescription",prop:"busname",effectType:"input",label:"\u8868\u63CF\u8FF0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,type:"slot",slotType:"busname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:"gd.table.virtualTable",prop:"isvirtualtable",effectType:"switch",label:"\u865A\u62DF\u8868",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"virtualTable"},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"none"},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"divider"},{transKey:"gd.table.plugIn",prop:"isplugin",effectType:"switch",label:"\u542F\u7528\u63D2\u4EF6",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.audit",prop:"isaudit",effectType:"switch",label:"\u542F\u7528\u5BA1\u6838",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.proxy",prop:"isagent",effectType:"switch",label:"\u542F\u7528\u4EE3\u7406",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.share",prop:"isteam",effectType:"switch",label:"\u542F\u7528\u5171\u4EAB",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.approval",prop:"isapproval",effectType:"switch",label:"\u542F\u7528\u5BA1\u6279",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[]},{transKey:"gd.table.allowNewField",prop:"allownewfield",effectType:"switch",label:"\u5B57\u6BB5\u65B0\u589E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.enableAdvancedLookup",prop:"isquery",effectType:"switch",label:"\u542F\u7528\u67E5\u627E",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.enableReview",prop:"ischeckduplicate",effectType:"switch",label:"\u542F\u7528\u67E5\u91CD",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.startBusinessProcess",prop:"isbusinessprocess",effectType:"switch",label:"\u5F00\u542F\u4E1A\u52A1\u6D41\u7A0B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[]},{transKey:"gd.table.mslaveSubmit",prop:"ischildagent",effectType:"switch",label:"\u662F\u5426\u4E3B\u4ECE\u63D0\u4EA4",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",rules:[]},{transKey:"gd.table.teamTemplates",prop:"sys_accessteamtemplateid",effectType:"input",label:"\u8BBF\u95EE\u56E2\u961F\u6A21\u677F",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.table.connectionTable",prop:"connectiontable",effectType:"input",label:"\u8FDE\u63A5\u8868",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!0,rules:[]},{transKey:"gd.table.dataSource",prop:"sysdatasource",effectType:"fk",label:"\u6570\u636E\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],type:"slot",slotType:"datasource"},{transKey:"gd.table.virtualObjectType",prop:"virtualobjecttype",effectType:"select",label:"\u865A\u62DF\u5BF9\u8C61\u7C7B\u578B",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}],dictTypeCode:"virtualobjecttype"},{transKey:"gd.table.virtualObject",effectType:"input",prop:"virtualobject",label:"\u865A\u62DF\u5BF9\u8C61",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]},{transKey:null,prop:null,effectType:"",label:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"divider"},{transKey:"gd.table.viewWeb",prop:"viewweb",effectType:"select",label:"\u89C6\u56FEweb\u8D44\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"viewWeb"},{transKey:"gd.table.formWeb",prop:"formweb",effectType:"select",label:"\u8868\u5355web\u8D44\u6E90",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.select",disabled:!1,rules:[],type:"slot",slotType:"formWeb"},{transKey:"gd.table.customPageInterface",prop:"custompageinterface",effectType:"input",label:"\u81EA\u5B9A\u4E49[Page]\u63A5\u53E3",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]},{transKey:"gd.table.authorName",prop:"authorname",effectType:"input",label:"\u4F5C\u8005\u59D3\u540D",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",disabled:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165",transKey:"gd.placeholder.input",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableDefinition:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableDefinition:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableDefinition:delete"},{displayName:"\u53D1\u5E03",functionName:"createTable",show:!0,tip:"\u786E\u8BA4\u53D1\u5E03?",transKeyTip:"gd.https.releaseContent",transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",popconfirm:!0,name:"sysTableDefinition:develop"}],formButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked",validate:!0}],tableQueries:[{transKey:"gd.table.businessName",prop:"busName",label:"\u4E1A\u52A1\u540D",effectType:"input",rules:[]},{transKey:"gd.table.tableName",prop:"tableName",label:"\u8868\u540D\u79F0",effectType:"input",rules:[]},{transKey:"gd.table.isLocked",prop:"isLocked",label:"\u662F\u5426\u9501\u5B9A",effectType:"radio",dictData:[{name:"\u5DF2\u9501\u5B9A",code:1,transKey:"table.locked",prefix:"gd"},{name:"\u672A\u9501\u5B9A",code:0,transKey:"table.unlocked",prefix:"gd"}],rules:[]},{transKey:"gd.table.allowNewField",prop:"allowNewField",label:"\u5B57\u6BB5\u65B0\u589E",effectType:"radio",dictData:[{name:"\u53EF\u65B0\u589E",code:1,transKey:"table.addedNewField",prefix:"gd"},{name:"\u4E0D\u53EF\u65B0\u589E",code:0,transKey:"table.notAddedNewField",prefix:"gd"}],rules:[]},{transKey:"gd.table.audit",prop:"isAudit",label:"\u542F\u7528\u5BA1\u8BA1",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.plugIn",prop:"isPlugIn",label:"\u542F\u7528\u63D2\u4EF6",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.plugIn",prop:"isAgent",label:"\u542F\u7528\u4EE3\u7406",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.share",prop:"isTeam",label:"\u542F\u7528\u5171\u4EAB",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.approval",prop:"isApproval",label:"\u542F\u7528\u5BA1\u6279",effectType:"radio",dictData:[{name:"\u5DF2\u542F\u7528",code:1,transKey:"table.enable",prefix:"gd"},{name:"\u672A\u542F\u7528",code:0,transKey:"table.notEnabled",prefix:"gd"}],rules:[]},{transKey:"gd.table.mslaveSubmit",prop:"isChildAgent",label:"\u4E3B\u4ECE\u63D0\u4EA4",effectType:"radio",dictData:[{name:"\u662F",code:1,transKey:"placeholder.yes",prefix:"gd"},{name:"\u5426",code:0,transKey:"placeholder.no",prefix:"gd"}],rules:[]}]}}},mixins$i={data(){return{tableColumns:[{transKey:"gd.field.handle",prop:"handle",label:"\u64CD\u4F5C",width:"70",type:"slot",slotType:"handle",align:"center",fixed:"left"},{transKey:"gd.field.describe",prop:"columnComment",label:"\u63CF\u8FF0",width:"200",type:"slot",slotType:"columnComment",align:"left",fixed:"left",showTooltip:!1},{transKey:"gd.flow.process.mapFields",prop:"virtualcolumn",label:"\u6620\u5C04\u5B57\u6BB5",width:"200",type:"slot",slotType:"virtualcolumn",align:"left"},{transKey:"gd.field.field",prop:"columnName",label:"\u5B57\u6BB5",width:"200",type:"slot",slotType:"columnName",align:"left"},{transKey:"gd.field.effectType",prop:"effectType",label:"\u4F5C\u7528\u7C7B\u578B",width:"200",type:"slot",slotType:"effectType",align:"left",showTooltip:!1},{transKey:"gd.field.dictionaries",prop:"dictTypeCode",label:"\u5B57\u5178",width:"210",type:"slot",slotType:"dictTypeCode",align:"left"},{transKey:"gd.field.date",prop:"fieldFormat",label:"\u65E5\u671F",width:"210",type:"slot",slotType:"fieldFormat",align:"left"},{transKey:"gd.field.about",prop:"fkEntityName",label:"\u5916\u952E/\u5173\u4E8E",width:"210",type:"slot",slotType:"fkEntityName",align:"left"},{transKey:"gd.field.precision",prop:"filedSize",label:"\u5B57\u7B26\u957F\u5EA6/\u7CBE\u5EA6",width:"140",type:"slot",slotType:"filedSize",align:"left"},{transKey:"gd.field.defaultType",prop:"defaultType",label:"\u9ED8\u8BA4\u503C\u7C7B\u578B",width:"180",type:"slot",slotType:"defaultType",align:"left"},{transKey:"gd.field.numberingRules",prop:"sysNumberRulesId",label:"\u7F16\u53F7\u89C4\u5219",width:"180",type:"slot",slotType:"sysNumberRulesId",align:"left"},{transKey:"gd.field.audit",prop:"isAudit",label:"\u5BA1\u8BA1",width:"80",type:"slot",slotType:"isAudit",align:"center"},{transKey:"gd.field.safety",prop:"isSecurity",label:"\u5B89\u5168\u6027",width:"80",type:"slot",slotType:"isSecurity",align:"center",fixed:"right"},{transKey:"gd.field.primarykey",prop:"isprimarykey",label:"\u4E3B\u952E",width:"80",type:"slot",slotType:"isprimarykey",align:"center",fixed:"right"},{transKey:"gd.field.query",prop:"queryWhether",label:"\u67E5\u8BE2",width:"80",type:"slot",slotType:"queryWhether",align:"center",fixed:"right"}],tableButtons:[{displayName:"\u8FD4\u56DE",functionName:"back",show:!0,transKey:"gd.btn.back",icon:"el-icon-arrow-left"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableField:edit"},{displayName:"\u53D1\u5E03",functionName:"createTable",show:!0,tip:"\u786E\u8BA4\u53D1\u5E03?",transKeyTip:"gd.https.releaseContent",transKey:"gd.btn.release",icon:"gd-icon-fabu1",btnType:"danger",popconfirm:!0,name:"sysTableField:develop"}],formButtons:[{displayName:"\u65B0\u589E",functionName:"handleAdd",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableField:add"},{displayName:"\u4FDD\u5B58",functionName:"handleSubmit",show:!0,tip:"\u662F\u5426\u786E\u8BA4\u4FDD\u5B58?",transKeyTip:"gd.https.saveContent",transKey:"gd.btn.save",icon:"el-icon-document-checked",popconfirm:!0,name:"sysTableField:edit"}]}}},mixins$h={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.view.displayName",prop:"name",label:"\u663E\u793A\u540D\u79F0",width:"260",type:"slot",slotType:"name",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.view.viewName",prop:"viewname",width:"220",label:"\u89C6\u56FE\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.view.type",prop:"type",width:"160",type:"slot",slotType:"type",label:"\u7C7B\u578B",align:"left"},{transKey:"gd.view.sort",prop:"order",width:"120",label:"\u5E8F\u53F7",align:"left"},{transKey:"gd.view.default",prop:"isDefault",width:"120",type:"slot",slotType:"isDefault",label:"\u9ED8\u8BA4",align:"center"},{transKey:"gd.view.explain",prop:"explain",minWidth:"200",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableView:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableView:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableView:delete"},{displayName:"\u590D\u5236",functionName:"copyed",show:!0,transKey:"gd.btn.copy",icon:"el-icon-document-copy",name:"sysTableView:add"},{displayName:"\u8BBE\u7F6E\u6309\u94AE",functionName:"relation",show:!0,transKey:"gd.btn.setButton",icon:"el-icon-setting",name:"sysTableBtn:set"}]}}},buttonRule_vue_vue_type_style_index_0_scoped_659d1f86_lang="",_sfc_main$2p={props:{table:{type:Object,default:()=>({})},loadData:{type:Array,default:()=>[]},type:{type:[String,Number],default:1},id:{type:[String,Number],default:""}},data(){return{width:"1100px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{name:"",using:!0,explain:"",id:""},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},list:[],btnData:[],tableFieldList:[],tableFieldAll:[],showAdd:!0}},components:{EffectTypeIcon},watch:{list:{handler(r){this.isSatisfy()},deep:!0,immediate:!0}},computed:{height(){let r=this.fullscreen?190:340;return this.screenHeight-r},rulesList(){return this.getDictionary("table_form_rules").filter(r=>(r.sysDictType=[],!0))},...mapGetters(["screenHeight","primaryColor"])},methods:{handleSubmit(){let r=[],t=[];if(this.list.forEach((a,s)=>{r=r.concat(a.condition.list),t=t.concat(a.operation.list)}),r.length==0)return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(!this.isCheckedAll(r,1))return this.$message.warning(this.$i18nt("gd.basics.businessRulesConditionTip","\u8BF7\u8865\u5145\u6761\u4EF6\u6570\u636E!")),!1;if(t.length==0)return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;if(!this.isCheckedAll(t,2))return this.$message.warning(this.$i18nt("gd.basics..businessRulesHandleTip","\u8BF7\u8865\u5145\u64CD\u4F5C\u6570\u636E!")),!1;this.confirmLoading=!0,this.$refs.ruleForm.validate(a=>{a?(this.$emit("ok",Object.assign({...this.ruleFormData},{key:this.record?"2":"1",list:[...this.list]})),this.closed()):this.confirmLoading=!1})},remainingBtn(r,t){let a=[];return r.forEach((o,l)=>{l!==t&&(a=a.concat(o.columnComment))}),this.btnData.filter(o=>!a.includes(o.name))},conditionColumn(r,t,a){const s=this.tableFieldAll.filter(l=>l.value===r[r.length-1])[0],o=this.rulesList.filter(l=>l.remark.split(",").includes(s.effectType));Object.assign(t,{effectType:s.effectType,dictTypeCode:s.dictTypeCode,val:"",rulesList:o,rules:o.length>0?o[0].code:""})},addList(){let r=[...this.list];r.length>1&&(r[r.length-1].title="ELSE IF");let t={title:"Else",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]}};r.push(t),this.list=[...r]},del(r){let t=this;this.$confirm(this.$i18nt("gd.https.delExpression","\u662F\u5426\u5220\u9664\u6B64\u8868\u8FBE\u5F0F?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(a,s,o)=>{if(o(),a!=="confirm")return;let l=[...t.list];l.splice(r,1),l.length>1&&(l[l.length-1].title="Else"),t.list=[...l]}})},delCondition(r,t){let a=[...this.list];a[r].condition.list.splice(t,1),a[r].condition.list.length>0&&(a[r].condition.list[0].type="0"),a[r].condition.list.length===0&&r!=a.length-1&&(a[r].operation.list=[]),this.list=[...a]},delOperation(r,t){let a=[...this.list];a[r].operation.list=[],this.list=[...a]},addCondition(r){let t=this.list[r].condition.list.length,s={type:t==0?"0":t>1?this.list[r].condition.list[t-1].type:"1",columnComment:"",rules:"1",val:"",rulesList:[...this.rulesList],effectType:"select",fieldFormat:null,dictTypeCode:null,fkData:[],id:uuid$1(12)};this.list[r].condition.list.push(s),this.list[r].operation.list.length===0&&(this.addOperation(r,"1"),this.addOperation(r,"2"))},addOperation(r,t){let a={rules:"4",columnComment:[],val:t,type:1,effectType:"select",fkData:[],id:uuid$1(),fieldFormat:null};this.list[r].operation.list.push(a)},addOperationMore(r){this.list[r].operation.list.length===0&&(this.addOperation(r,"1"),this.addOperation(r,"2"))},getBtnList(){this.confirmLoading=!0,sysButtonList({type:this.type,SysCodeGenId:this.table.id}).then(r=>{r.code===200&&(this.btnData=r.data.filter(t=>this.type===1&&t.sysviewid==this.id?!0:this.type===2&&t.sysformidbyset==this.id)),this.confirmLoading=!1})},init(r){const t=JSON.parse(JSON.stringify(r));this.record=t,this.visible=!0,this.getBtnList(),this.getTableField(),this.ruleFormData={name:r?r.name:"",using:r?r.using:!0,explain:r?r.explain:"",id:r?r.id:uuid$1(12)},r?this.list=[...t.list]:this.list=[{title:"IF",open:!0,condition:{open:!0,list:[]},operation:{open:!0,list:[]},id:uuid$1(12)}],this.$nextTick(()=>{setTimeout(()=>{this.$refs.ruleForm.clearValidate()},0)})},openItem(r,t){if(r==1){this.list[t].open=!this.list[t].open;return}if(r==2){this.list[t].condition.open=!this.list[t].condition.open;return}if(r==3){this.list[t].operation.open=!this.list[t].operation.open;return}},getTableField(){let r=[],t=[];this.loadData.filter(s=>s.dicttypecode?!0:s.children&&s.children.length>0&&this.type==1?(s.children=s.children.filter(o=>o.dicttypecode),!0):!1).forEach(s=>{let o={value:s.columnname,label:this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),dictTypeCode:s.dicttypecode,transKey:s.transkey,id:s.id,fkEntityName:s.fkentityname,effectType:s.effecttype,fieldFormat:s.fieldformat,hasChildren:this.type==1,columnname:s.columnname};if(t.push(o),s.children&&s.children.length>0&&this.type==1){let l=[];s.children.forEach(d=>{const u={value:`${d.columnname}${s.fkentityname}${s.columnname}`,label:this.$i18nt(`Dynamics.${d.transkey}`,d.columncomment),columnname:s.columnname,dictTypeCode:d.dicttypecode,transKey:d.transkey,id:d.id,fkEntityName:d.fkentityname,effectType:d.effecttype,fieldFormat:s.fieldformat,hasChildren:!1};l.push(u),t.push(u)}),Object.assign(o,{children:l})}r.push(o)}),this.tableFieldList=r,this.tableFieldAll=t},isSatisfy(){if(this.list.length==0)return;let r=[...this.list],t=r[r.length-1];t.condition.list.length>0?this.showAdd=!this.isChecked(t.condition.list):this.showAdd=!1},isChecked(r){return r.every((t,a,s)=>{let o=t.rules==="5"||t.rules==="6"?t.columnComment:t.val;return!(t.columnComment!==void 0&&o)})},isCheckedAll(r,t){return r.every((a,s,o)=>{let l="";return t===1?l=a.rules==="5"||a.rules==="6"?a.columnComment:a.val:l=a.rules==="7"?a.columnComment:a.val,(t===1?a.columnComment!==void 0:!0)&&l!==""&&l!==void 0})},closed(){this.confirmLoading=!1,this.fullscreen=!1,this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},getDictionaryd(r){let t=r.rules==="3"?"table_form_essential":r.rules==="4"?"table_form_so":"table_form_locking";return this.getDictionary(t)},getDictionary(r){return this.$options.filters.dictData(r)},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2p=function r(){var t=this,a=t._self._c;return a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[a("template",{slot:"title"},[a("gd-modal-title",{attrs:{title:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219"),fullscreen:t.fullscreen,buttons:t.buttons,confirmLoading:t.confirmLoading},on:{changeEvent:t.doEvent}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[a("div",{staticClass:"view-config"},[a("div",{staticClass:"config-item"},[a("div",{staticClass:"rules"},[t._l(t.list,function(s,o){return a("div",{key:o,staticClass:"rules-if"},[a("div",{staticClass:"title"},[a("div",{staticClass:"l",on:{click:function(l){return t.openItem(1,o)}}},[a("i",{staticClass:"if-icon",class:s.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(s.title)+" ")]),o!=0?a("div",{staticClass:"r"},[a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",cursor:"pointer",color:"#ff4d4f"},on:{click:function(l){return t.del(o)}}})]):t._e()]),s.open?a("div",{staticClass:"rules-ifs"},[a("div",{staticClass:"condition"},[a("div",{staticClass:"title",on:{click:function(l){return t.openItem(2,o)}}},[a("i",{staticClass:"if-icon",class:s.condition.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.if","\u5982\u679C"))+" ")]),s.condition&&s.condition.open?a("div",{staticClass:"detail"},[t._l(s.condition.list,function(l,d){return a("div",{staticClass:"lists"},[a("div",{staticClass:"rg"},[l.type==0?a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),value:t.$i18nt("gd.basics.if","\u5982\u679C"),disabled:""}}):a("el-select",{staticStyle:{width:"100%"},model:{value:l.type,callback:function(u){t.$set(l,"type",u)},expression:"ite.type"}},[a("el-option",{attrs:{value:"1",label:t.$i18nt("gd.filter.and","\u548C")}}),a("el-option",{attrs:{value:"2",label:t.$i18nt("gd.filter.or","\u6216")}})],1)],1),a("div",{staticClass:"zd"},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.tableFieldList},on:{change:function(u){return t.conditionColumn(u,l)}},scopedSlots:t._u([{key:"default",fn:function({node:u,data:f}){return[a("EffectTypeIcon",{attrs:{effectType:f.effectType}}),a("span",{staticStyle:{"margin-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${f.transKey}`,f.label))+" "),f.hasChildren?t._e():a("span",[t._v("("+t._s(f.columnname)+")")])])]}}],null,!0),model:{value:l.columnComment,callback:function(u){t.$set(l,"columnComment",u)},expression:"ite.columnComment"}})],1),a("div",{staticClass:"tj"},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:!(l.columnComment!==""&&l.columnComment.length>0)},model:{value:l.rules,callback:function(u){t.$set(l,"rules",u)},expression:"ite.rules"}},[t._l(l.rulesList,function(u){return[a("el-option",{attrs:{value:u.code,label:t.$i18nt(`Dynamics.${u.transkey}`,u.name)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${u.transkey}`,u.name))+" ")])]})],2)],1),a("div",{staticClass:"jg"},[a("el-select",{staticStyle:{width:"100%"},model:{value:l.val,callback:function(u){t.$set(l,"val",u)},expression:"ite.val"}},[t._l(t.getDictionary(l.dictTypeCode),function(u){return[a("el-option",{attrs:{value:u.code,label:t.$i18nt(`Dynamics.${u.transkey}`,u.name)}})]})],2)],1),a("div",{staticClass:"sc"},[a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(u){return t.delCondition(o,d)}}})])])}),a("div",{staticClass:"add"},[a("span",{staticClass:"active-color",on:{click:function(l){return t.addCondition(o)}}},[a("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addCondition","\u6DFB\u52A0\u6761\u4EF6"))+" ")])])],2):t._e()]),a("div",{staticClass:"operation"},[a("div",{staticClass:"title",on:{click:function(l){return t.openItem(3,o)}}},[a("i",{class:s.operation.open?"el-icon-caret-bottom":"el-icon-caret-right"}),t._v(" "+t._s(t.$i18nt("gd.basics.handle"))+" "),o===t.list.length-1&&s.operation.list.length>0&&s.condition.list.length===0?a("div",{staticClass:"title-sc"},[a("i",{staticClass:"el-icon-delete",staticStyle:{"font-size":"18px",color:"#ff4d4f"},on:{click:function(l){return l.stopPropagation(),t.delOperation(o)}}})]):t._e()]),s.operation&&s.operation.open?a("div",{staticClass:"list"},[t._l(s.operation.list,function(l,d){return a("div",{staticClass:"lists"},[a("div",{staticClass:"tjs"},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:""},model:{value:l.val,callback:function(u){t.$set(l,"val",u)},expression:"ite.val"}},[t._l(t.getDictionaryd(l),function(u,f){return[a("el-option",{attrs:{value:u.code,label:t.$i18nt(`Dynamics.${u.transkey}`,u.name)}})]})],2)],1),a("div",{staticClass:"jg"},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),filterable:"",multiple:""},model:{value:l.columnComment,callback:function(u){t.$set(l,"columnComment",u)},expression:"ite.columnComment"}},[t._l(t.remainingBtn(s.operation.list,d),function(u){return[a("el-option",{attrs:{label:t.$i18nt(`Dynamics.${u.transkey}`,u.displayname),value:u.name}})]})],2)],1),a("div",{staticClass:"sc"})])}),t.list.length>1&&o===t.list.length-1&&s.operation.list.length===0?a("div",{staticClass:"add active-color"},[a("span",{on:{click:function(l){return t.addOperationMore(o)}}},[a("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addHandle","\u6DFB\u52A0\u64CD\u4F5C"))+" ")])]):t._e()],2):t._e()])]):t._e()])}),t.showAdd?a("div",{staticClass:"rules-el"},[a("span",{staticClass:"active-color",staticStyle:{cursor:"pointer"},on:{click:t.addList}},[a("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$i18nt("gd.basics.addElse","\u6DFB\u52A0 ELSE"))+" ")])]):t._e()],2)]),a("div",{staticClass:"config-item config-items"},[a("div",{staticClass:"b"},[a("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"top",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:4},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1),a("div",{staticClass:"using-flex"},[a("div",{staticClass:"using-flex-title"},[t._v(" "+t._s(t.$i18nt("gd.msg.temPlate.isEnabled","\u662F\u5426\u542F\u7528"))+" ")]),a("el-switch",{attrs:{"active-color":t.primaryColor},model:{value:t.ruleFormData.using,callback:function(s){t.$set(t.ruleFormData,"using",s)},expression:"ruleFormData.using"}})],1)],1)],1)])])])],2)},_sfc_staticRenderFns$2p=[],__component__$2p=normalizeComponent(_sfc_main$2p,_sfc_render$2p,_sfc_staticRenderFns$2p,!1,null,"659d1f86",null,null);const ButtonRule=__component__$2p.exports,viewTree_vue_vue_type_style_index_0_scoped_f5799332_lang="",disableList$1=[{code:1,name:"\u662F",transkey:"gd.state.yes"},{code:0,name:"\u5426",transkey:"gd.state.no"}],_sfc_main$2o={props:{table:{type:Object,default:()=>({})}},data(){return{buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],labelTitle:"\u6761\u4EF6",confirmLoading:!1,visible:!1,width:"700px",fullscreen:!1,fetching:!1,spinning:!1,ruleFormData:{treeId:"",sysViewId:"",detailId:"",isDisable:0,ifSet:"",rulesValue:"1",operators:"1",conditional:"",parentId:"",parentPid:"",relevanceId:"",childrenId:""},rules:{treeId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],sysViewId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],detailId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],parentPid:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],parentId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],relevanceId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}],childrenId:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9")}]},loadData:[],viewList:[],detailList:[],disableList:disableList$1,ifSetList:[],rulesList:[],cascadeList:[],parentPidList:[],conditionList:[],parentList:[],relevanceList:[],childrenList:[],conditionalList:[],dictData:[],fildFk:null,selData:null}},computed:{styles(){return`color:${this.primaryColor}`},...mapGetters(["labelPosition","formMode","tableLists","primaryColor"])},created(){this.dictData=this.$options.filters.dictData("table_lookup_rules"),this.conditionList=this.dictData.filter(r=>r.code==1),this.rulesList=this.dictData.filter(r=>r.code<3)},methods:{toggleFullscreen(){this.fullscreen=!this.fullscreen},open(r){this.visible=!0,this.selData=r,this.getList(),Object.keys(r).length!=0&&this.listData()},listData(r){this.ruleFormData.treeId=r?"":this.selData.treeId,this.loadData=r?"":this.selData.loadData,this.ruleFormData.sysViewId=r?"":this.selData.sysViewId,this.viewList=r?[]:this.selData.viewList,this.ruleFormData.detailId=r?"":this.selData.detailId,this.detailList=r?[]:this.selData.detailList,this.ruleFormData.parentId=r?"":this.selData.parentId,this.ruleFormData.parentPid=r?"":this.selData.parentPid,this.parentList=r?[]:this.selData.parentList,this.parentPidList=r?[]:this.selData.parentPidList,this.ruleFormData.relevanceId=r?"":this.selData.relevanceId,this.relevanceList=r?[]:this.selData.relevanceList,this.ruleFormData.childrenId=r?"":this.selData.childrenId,this.childrenList=r?[]:this.selData.childrenList,this.ruleFormData.isDisable=r?0:this.selData.isDisable,this.ruleFormData.ifSet=r?"":this.selData.ifSet,this.ifSetList=r?[]:this.selData.ifSetList,this.ruleFormData.conditional=r?"":this.selData.conditional,this.conditionalList=r?[]:this.selData.conditionalList,this.ruleFormData.rulesValue=r?"":this.selData.rulesValue,this.rulesList=r?[]:this.selData.rulesList,this.cascadeList=r?[]:this.selData.cascadeList,this.ruleFormData.treeId!=""&&(this.getTable(),this.getDetail(this.ruleFormData.sysViewId))},getList(){return this.spinning=!0,baseReference$1({tableId:this.table.id}).then(r=>{if(r.success){let t=r.data.filter(a=>a.item7=="parental");this.loadData=[...t],this.spinning=!1}else this.$message.error(r.message)})},getView(r){let t=this.tableLists.filter(a=>a.tableName==r)[0];sysViewList$1({SysCodeGenId:t.id}).then(a=>{a.success?this.viewList=a.data:this.$message.error(a.message)})},getTable(){onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(r=>{r.success?this.relevanceList=r.data:this.$message.error(r.message)})},getDetail(r){return sysViewDetails({id:r}).then(t=>{if(t.success){let a=[{fieldId:0,name:"id",joinFielName:"id",joinFieldId:"0"}],s=[],o=[],l=[],u=t.data.sysviewfields.filter(f=>f.field.columnname.toLowerCase()=="id")[0]==null?a.concat(t.data.sysviewfields):t.data.sysviewfields;this.parentList=u,this.parentPidList=u,this.childrenList=u,this.detailList=t.data.sysviewfields,t.data.sysviewfields.forEach(f=>{o.push({joinfieldid:f.joinfieldid}),s.push(f.field)}),l=s,l.map((f,p)=>{f.joinfieldid=o[p].joinfieldid}),this.ifSetList=l}else this.$message.error(t.message)})},conditionColumn(r){this.getView(r.item2),this.getTable(),this.ruleFormData.sysViewId="",this.ruleFormData.parentId="",this.ruleFormData.parentPid="",this.ruleFormData.childrenId="",this.ruleFormData.detailId="",this.ruleFormData.relevanceId="",this.ruleFormData.ifSet="",this.ruleFormData.rulesValue="",this.ruleFormData.conditional=""},viewClick(r){this.ruleFormData.sysViewId=r,this.ruleFormData.parentId="",this.ruleFormData.parentPid="",this.ruleFormData.childrenId="",this.ruleFormData.detailId="",this.ruleFormData.ifSet="",this.ruleFormData.rulesValue="",this.ruleFormData.conditional="",this.getDetail(r)},deatilClick(r){this.ruleFormData.detailId=r},ifClick(r){console.log(r),this.ruleFormData.conditional="",this.cascadeList=[r],this.rulesList=this.dictData.filter(t=>t.code<3),r.effecttype=="fk"||r.effecttype=="user"?(this.fildFk=r,this.searchData("")):this.conditionalList=[]},isSet(r){console.log(r,"Ee"),this.ruleFormData.rulesValue=r},showTime(r){return r.fieldFormat.length>10},inputRadio(r){this.rulesList=this.dictData.filter(t=>t.code<3),console.log(this.ruleFormData.ifSet)},searchData(r){this.fetching=!0,baseFkList({name:r,fkEntityName:this.fildFk.fkEntityName}).then(t=>{this.conditionalList=t.success?[...t.data]:[],this.fetching=!1})},handleSubmit(){this.$refs.ruleForm.validate(r=>{if(r){let t=this.viewList.map(h=>({id:h.id,name:h.name})),a=this.detailList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),s=this.parentList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),o=this.parentPidList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),l=this.relevanceList.map(h=>({columnName:h.columnname,columnComment:h.columncomment})),d=this.childrenList.map(h=>({fieldId:h.fieldid,joinFieldId:h.joinfieldid,name:h.name})),u;this.ruleFormData.isDisable==1?u=this.ifSetList.map(h=>({id:h.id,joinFieldId:h.joinfieldid,name:h.name,columnName:h.columnname,columnComment:h.columncomment,effectType:h.effecttype,dictTypeCode:h.dicttypecode})):u=[];let f=this.ruleFormData.isDisable==1?this.conditionalList.map(h=>({id:h.id,name:h.name})):[],p={treeId:this.ruleFormData.treeId,loadData:this.loadData.filter(h=>h.item2+"&"+h.item4==this.ruleFormData.treeId),sysViewId:this.ruleFormData.sysViewId,viewList:t.filter(h=>h.id==this.ruleFormData.sysViewId),detailId:this.ruleFormData.detailId,detailList:a.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.detailId),parentId:this.ruleFormData.parentId,parentPid:this.ruleFormData.parentPid,parentList:s.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.parentId),parentPidList:o.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.parentPid),relevanceId:this.ruleFormData.relevanceId,relevanceList:l.filter(h=>h.columnname==this.ruleFormData.relevanceId),childrenId:this.ruleFormData.childrenId,childrenList:d.filter(h=>h.fieldid+"&"+h.joinfieldid==this.ruleFormData.childrenId),isDisable:this.ruleFormData.isDisable,ifSet:this.ruleFormData.isDisable==1?this.ruleFormData.ifSet:"",ifSetList:this.ruleFormData.isDisable==1?u.filter(h=>h.id+"&"+h.joinfieldid==this.ruleFormData.ifSet):[],conditional:this.ruleFormData.isDisable==1?this.ruleFormData.conditional:"",conditionalList:this.ruleFormData.isDisable==1?f.filter(h=>h.id==this.ruleFormData.conditional):[],rulesValue:this.ruleFormData.rulesValue,rulesList:this.ruleFormData.isDisable==1?this.rulesList.filter(h=>h.code==this.ruleFormData.rulesValue):[],cascadeList:this.cascadeList};console.log(p,"str"),this.$emit("ok",p),this.closed()}})},closed(){this.$refs.ruleForm.resetFields(),this.visible=!1},getDictionary(r){return r.columncomment==null?[]:r.dicttypecode==null?[]:this.$options.filters.dictData(r.dicttypecode)},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2o=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.view.configurationSwitch","\u89C6\u56FE\u6811\u8BBE\u7F6E")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.buttons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.toggleFullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}],staticClass:"config_viewtree"},[a("el-form",{ref:"ruleForm",attrs:{model:t.ruleFormData,"label-width":"100px","label-position":"top",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.dataOrigin","\u89C6\u56FE\u6811\u672C\u8868\u6765\u6E90\u5B57\u6BB5"),prop:"treeId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.treeId,callback:function(s){t.$set(t.ruleFormData,"treeId",s)},expression:"ruleFormData.treeId"}},t._l(t.loadData,function(s){return a("el-option",{key:s.item2+"&"+s.item4,attrs:{value:s.item2+"&"+s.item4,label:t.$i18nt(`Dynamics.${s.transkey}`,s.item6)},nativeOn:{click:function(o){return t.conditionColumn(s)}}},[t._v(" "+t._s(s.item5)+" "),a("span",{style:t.styles},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.item6))+" ")]),t._v(" "+t._s(s.item2)+" ")])}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.view","\u89C6\u56FE\u6811\u6765\u6E90\u89C6\u56FE"),prop:"sysViewId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.view")},on:{change:t.viewClick},model:{value:t.ruleFormData.sysViewId,callback:function(s){t.$set(t.ruleFormData,"sysViewId",s)},expression:"ruleFormData.sysViewId"}},t._l(t.viewList,function(s){return a("el-option",{key:s.id,attrs:{value:s.id,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.displayField","\u89C6\u56FE\u6811\u663E\u793A\u5B57\u6BB5"),prop:"detailId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field","\u5B57\u6BB5")},on:{change:t.deatilClick},model:{value:t.ruleFormData.detailId,callback:function(s){t.$set(t.ruleFormData,"detailId",s)},expression:"ruleFormData.detailId"}},t._l(t.detailList,function(s,o){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])])}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.disableMode","\u5F00\u542F\u7981\u7528\u6A21\u5F0F"),prop:"isDisable"}},[a("el-radio-group",{on:{input:t.inputRadio},model:{value:t.ruleFormData.isDisable,callback:function(s){t.$set(t.ruleFormData,"isDisable",s)},expression:"ruleFormData.isDisable"}},t._l(t.disableList,function(s,o){return a("el-radio",{key:o,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.name))+" ")])}),1)],1)],1)],1),t.ruleFormData.isDisable==1?a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.ifSet","\u8BBE\u7F6E\u6761\u4EF6"),prop:"ifSet"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.ifSet,callback:function(s){t.$set(t.ruleFormData,"ifSet",s)},expression:"ruleFormData.ifSet"}},t._l(t.ifSetList,function(s){return a("el-option",{key:s.id+"&"+s.joinfieldid,attrs:{value:s.id+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)},nativeOn:{click:function(o){return t.ifClick(s)}}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.form.value1","\u6761\u4EF6"),prop:"rulesValue"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.isSet},model:{value:t.ruleFormData.rulesValue,callback:function(s){t.$set(t.ruleFormData,"rulesValue",s)},expression:"ruleFormData.rulesValue"}},t._l(t.rulesList,function(s){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),t._l(t.cascadeList,function(s,o){return t.ruleFormData.ifSet!=""&&t.ruleFormData.ifSet!=null?a("el-col",{key:o,attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.form.value","\u503C"),prop:"conditional"}},[s.effecttype=="input"||s.effecttype=="textarea"||s.effecttype=="double"||s.effecttype=="currency"?a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}}):s.effecttype=="select"||s.effecttype=="radio"||s.effecttype=="checkbox"||s.effecttype=="switch"?a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}},t._l(t.getDictionary(s),function(l){return a("el-option",{key:l.code,attrs:{value:l.code,label:t.$i18nt(`Dynamics.${l.transkey}`,l.name)}})}),1):s.effecttype=="datepicker"?a("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"show-time":t.showTime(s),type:t.showTime?"datetime":"date","value-format":s.fieldformat,format:s.fieldformat},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}}):s.effecttype=="fk"||s.effecttype=="about"||s.effecttype=="user"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{filterable:"",placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),loading:t.fetching,clearable:"",remote:"","reserve-keyword":"",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD","remote-method":t.searchData},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}},t._l(t.conditionalList,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:l.name}},[a("span",[t._v(" "+t._s(t.$i18nt(`Dynamics.${l.transkey}`,l.name))+" ")])])}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(l){return t.lookup(t.ind,s.value)}}})],1):s.effecttype=="participants"?a("div",{staticClass:"cao_about"},[a("el-select",{staticStyle:{flex:"1",overflow:"hidden"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),"remote-method":t.searchData,loading:t.fetching,clearable:"",filterable:"",remote:"","collapse-tags":"","reserve-keyword":""},model:{value:t.ruleFormData.conditional,callback:function(l){t.$set(t.ruleFormData,"conditional",l)},expression:"ruleFormData.conditional"}},t._l(t.conditionalList,function(l,d){return a("el-option",{key:d,attrs:{value:l.id,label:l.name}})}),1),a("i",{staticClass:"el-icon-search cao_setting",on:{click:function(l){return t.lookup(o,s.value)}}})],1):t._e()],1)],1):t._e()})],2):t._e(),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.parentData","\u89C6\u56FE\u6811\u7236\u7EA7ID"),prop:"parentPid"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.parentPid,callback:function(s){t.$set(t.ruleFormData,"parentPid",s)},expression:"ruleFormData.parentPid"}},t._l(t.parentPidList,function(s){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.labelTitle,prop:"operators"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:t.ruleFormData.operators,callback:function(s){t.$set(t.ruleFormData,"operators",s)},expression:"ruleFormData.operators"}},t._l(t.conditionList,function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.childrenData","\u89C6\u56FE\u6811\u7236\u7EA7\u5173\u7CFB\u5B57\u6BB5"),prop:"parentId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.parentId,callback:function(s){t.$set(t.ruleFormData,"parentId",s)},expression:"ruleFormData.parentId"}},t._l(t.parentList,function(s,o){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.association","\u89C6\u56FE\u6811\u5173\u7CFB\u672C\u8868\u5B57\u6BB5"),prop:"relevanceId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.relevanceId,callback:function(s){t.$set(t.ruleFormData,"relevanceId",s)},expression:"ruleFormData.relevanceId"}},t._l(t.relevanceList,function(s,o){return a("el-option",{key:s.columnname,attrs:{value:s.columnname,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" "+t._s(s.effecttype)+" ")])}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.labelTitle,prop:"operators"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),disabled:!0},model:{value:t.ruleFormData.operators,callback:function(s){t.$set(t.ruleFormData,"operators",s)},expression:"ruleFormData.operators"}},t._l(t.conditionList,function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.sidebar.assChid","\u89C6\u56FE\u6811ID"),prop:"childrenId"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")+t.$i18nt("gd.table.field")},model:{value:t.ruleFormData.childrenId,callback:function(s){t.$set(t.ruleFormData,"childrenId",s)},expression:"ruleFormData.childrenId"}},t._l(t.childrenList,function(s,o){return a("el-option",{key:s.fieldid+"&"+s.joinfieldid,attrs:{value:s.fieldid+"&"+s.joinfieldid,label:t.$i18nt(`Dynamics.${s.transkey}`,s.name)}})}),1)],1)],1)],1)],1)],1)],2)],1)},_sfc_staticRenderFns$2o=[],__component__$2o=normalizeComponent(_sfc_main$2o,_sfc_render$2o,_sfc_staticRenderFns$2o,!1,null,"f5799332",null,null);const ViewTree=__component__$2o.exports,edit_vue_vue_type_style_index_0_scoped_eb12b7c2_lang="",defaultList=[{code:1,name:"\u662F",transKey:"gd.state.yes"},{code:0,name:"\u5426",transKey:"gd.state.no"}],defaultSortList=[{code:"asc",name:"\u5347\u5E8F",transKey:"gd.view.asc"},{code:"desc",name:"\u964D\u5E8F",transKey:"gd.view.desc"}],_sfc_main$2n={props:{table:{type:Object,default:()=>({})}},data(){return{width:"1200px",record:null,confirmLoading:!1,visible:!1,fullscreen:!1,buttons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],ruleFormData:{transKey:"",id:"",num:0,name:"",type:"1",explain:"",viewName:"",isDefault:0,isViewTree:0,order:100,sortOneField:"",sortOneOrder:"asc",sortTwoField:"",sortTwoOrder:"asc"},rules:{name:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],viewName:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"},{pattern:/^[a-zA-Z]([a-zA-Z0-9]+)?$/,message:this.$i18nt("gd.view.viewNameTip","\u8BF7\u8F93\u5165\u82F1\u6587\u5B57\u6BCD!")}],type:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],isDefault:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],order:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}]},isViewType:null,viewTree:{},defaultList,defaultSortList,list:[],tableFieldList:[],rulesList:[],queryList:[],filterList:{},buttonRule:[],lodaData:{}}},computed:{title(){return this.record?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E")},disabled(){return!!this.record},sortField(){return this.tableFieldList.filter(r=>r.effecttype=="about"&&r.columnname==(r.relations+"_abouttable").toLowerCase()?!1:!(r.effecttype=="user"||r.effecttype=="fk"||r.effecttype=="about"||r.effecttype=="participants"))},plugFilters(){return{referencefiled:"",referencetable:this.table.tablename,checked:!1,columnid:0,columnname:"",columntype:"",dynamicreferencefield:"",dynamicreferencetable:"",fieldformat:null,fkdata:[],id:0,operators:"1",optionsdata:[],pid:null,recordid:null,ruleslist:[],show:!0,tablename:this.table.tablename,type:"1",value:"",values:[],list:[]}},...mapGetters(["primaryColor"])},components:{ViewList,ViewQuery,FlowsFilter,ButtonRule,ViewTree,EffectTypeIcon},methods:{okFilter(r){this.filterList={...r}},init(){this.confirmLoading=!0,Promise.all([this.getTableList(),this.getDetail()]).then(r=>{let t=[],a=[];this.record&&this.tableFieldList.forEach(s=>{if(!this.isChecked(s.id,this.lodaData.sysviewfields)){let o=this.lodaData.sysviewfields.filter(l=>l.fieldid==s.id)[0];if(o&&o.type==1){let l=this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),d=this.$i18nt(`Dynamics.${o.transkey}`,o.name),u=o.align?o.align.split("&"):[];const f=Object.assign({...s},{order:o.order,num:o.width,aliastranskey:o.transkey?o.transkey:null,alias:l===d?"":d,orderconfig:o.orderconfig==1,gatherconfig:o.gatherconfig==1,columnname:o.field.columnname,codegenid:o.field.codegenid,maxtagcount:o.maxtagcount?o.maxtagcount:2,fkrelations:`${l} -- ${s.columnname}`,transkey:s.transkey,operate:"edit",aliasold:d,align:u[0]?u[0]:"left",visible:u[1]?u[1]==1:!0,displaymode:u[2]?u[2]:"none",displayprefix:u[3]?u[3]:"none",preview:u[4]?u[4]==="true":!0,download:u[5]?u[5]==="true":!0});t.push(f)}}if(s.children&&s.children.length>0&&s.children.forEach(o=>{if(!this.isChecked(o.id+"-"+s.id,this.lodaData.sysviewfields)){let l=this.lodaData.sysviewfields.filter(d=>(d.type==2?d.joinfieldid+"-"+d.fieldid:d.fieldid)==o.id+"-"+s.id)[0];if(l){let d=this.$i18nt(`Dynamics.${s.transkey}`,s.columncomment),u=this.$i18nt(`Dynamics.${o.transkey}`,o.columncomment),f=this.$i18nt(`Dynamics.${l.transkey}`,l.name),p=l.align?l.align.split("&"):[];const h=Object.assign({...o},{order:l.order,num:l.width,aliastranskey:l.transkey?l.transkey:null,alias:u===f?"":f,id:o.id+"-"+s.id,orderconfig:l.orderconfig==1,gatherconfig:l.gatherconfig==1,fkrelations:`${d} -- ${s.columnname}`,maxtagcount:l.maxtagcount?l.maxtagcount:2,transkey:o.transkey,operate:"edit",aliasold:f,align:p[0]?p[0]:"left",visible:p[1]?p[1]==1:!0,displaymode:p[2]?p[2]:"none",displayprefix:p[3]?p[3]:"none",preview:p[4]?p[4]==="true":!0,download:p[5]?p[5]==="true":!0});t.push(h)}}}),!this.isChecked(s.id,this.lodaData.sysviewqueries)){let o=this.lodaData.sysviewqueries.filter(d=>d.fieldid==s.id)[0];const l=Object.assign({...s},{order:o.order,displaystyle:o.displaystyle!==void 0?o.displaystyle:0,children:null,options:Object.assign({...o.options},{fieldFiltering:!0,columnName:s.columnname,effectType:s.effecttype})});a.push(l)}}),t=sort$3(t),a=sort$3(a),this.list=[...t],this.queryList=[...a],this.$refs.viewList.init(this.list),this.$refs.viewQuery.init(this.queryList),this.confirmLoading=!1})},getDetail(){return this.record?sysViewDetails({id:this.record}).then(r=>{if(r.code===200){this.rulesList=r.data.ruleconfig?JSON.parse(r.data.ruleconfig):[];let t=r.data.sysviewqueries?r.data.sysviewqueries:[];t.forEach((s,o)=>{s.options?t[o].options=typeof s.options=="string"?JSON.parse(s.options):s.options:t[o].options={effectType:"",displayStyle:0,defaultValue:"",defaultValueList:[],filter:[],hidden:!1,required:!1,defaultInterval:[{type:"interval",value:""},{type:"equal",value:""}]}}),this.lodaData=Object.assign(r.data,{sysviewqueries:[...t]}),this.filterList=r.data.filterconfig?JSON.parse(r.data.filterconfig):JSON.parse(JSON.stringify(this.plugFilters));const a=r.data.defaultsort?JSON.parse(r.data.defaultsort):[];this.buttonRule=r.data.buttonrule?JSON.parse(r.data.buttonrule):[],this.viewTree=r.data.viewtree?JSON.parse(r.data.viewtree):{},this.isViewType=r.data.type,this.ruleFormData={num:r.data.frozencolumn,transKey:r.data.transkey,id:r.data.id,name:r.data.name,type:String(r.data.type),explain:r.data.explain,viewName:r.data.viewname,isDefault:r.data.isdefault?r.data.isdefault:0,isViewTree:r.data.isviewtree,order:r.data.order,sortOneField:a[0]?a[0].sortField:"",sortOneOrder:a[0]?a[0].sortOrder:"asc",sortTwoField:a[1]?a[1].sortField:"",sortTwoOrder:a[1]?a[1].sortOrder:"asc"}}return r}):new Promise(r=>{r()})},getTableList(){return onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(r=>(r.code===200&&(this.tableFieldList=r.data),r))},selFilter(){this.$refs.flowsFilter.init(this.filterList)},okSelTable(r){this.list=[...r]},saveQuery(r){this.queryList=[...r]},saveQueryRules(r){this.rulesList=[...r]},selBtnRules(r){this.$refs.viewBtnRules.init(r)},delBtnRules(r){this.buttonRule=this.buttonRule.filter(t=>t.id!==r.id)},okBtnRules(r){let t=[...this.buttonRule];r.key==="1"?t=t.concat([Object.assign(r,{key:"2"})]):t.forEach((s,o)=>{s.id===r.id&&(t[o]=Object.assign(r,{key:"2"}))}),this.buttonRule=[...t]},changeType(r){this.isViewType=r==1?1:r==2?2:null},onChange(r){this.ruleFormData.isViewTree=r},configSidebar(){this.$refs.viewTrees.open(this.viewTree)},okTree(r){this.viewTree=r},toggleFullscreen(){this.fullscreen=!this.fullscreen},open(r){this.record=r,this.list=[],this.lodaData={},this.queryList=[],this.buttonRule=[],this.visible=!0,this.viewTree={},this.ruleFormData={num:0,name:"",type:"1",explain:"",viewName:uuid$1(8,!1),isDefault:0,isViewTree:0,order:100,sortOneField:"",sortOneOrder:"asc",sortTwoField:"",sortTwoOrder:"asc",transKey:"",id:""},this.isViewType=this.ruleFormData.type==1?1:this.ruleFormData.type==2?2:null,this.$nextTick(()=>{this.filterList=JSON.parse(JSON.stringify(this.plugFilters)),this.init()})},isChecked(r,t){return t.every((a,s,o)=>(a.type==2?a.joinfieldid+"-"+a.fieldid:a.fieldid)!=r)},isCheckedFilters(r,t){return t.every((a,s,o)=>a.id!=r)},isCheckedSysViewFilters(r,t){return t.every((a,s,o)=>a.columnid!=r)},closed(){this.fullscreen=!1,this.visible=!1},add(){let r=[],t=[],a=[];this.list.forEach((u,f)=>{let p=String(u.id).split("-"),h=`${u.align}&${u.visible?1:0}&${u.displaymode}&${u.displayprefix}&${u.preview}&${u.download}`,v={name:u.alias==""?u.columncomment:u.alias,width:u.num,order:f,type:p.length>1?2:1,fieldid:p.length>1?u.joinfieldid:p[0],jointableid:u.codegenid,joinfieldid:p[0],orderconfig:u.orderconfig?1:0,gatherconfig:u.gatherconfig?1:0,maxtagcount:u.maxtagcount,align:h};r.push(v)}),this.queryList.forEach((u,f)=>{let p={querytype:u.effecttype=="fk"?2:1,name:u.columncomment,fieldid:u.id,jointableid:u.codegenid,joinfieldid:u.id,order:f,displaystyle:u.displaystyle,options:JSON.stringify(u.options)};t.push(p)}),this.ruleFormData.sortOneField!==""&&a.push({sortField:this.ruleFormData.sortOneField,sortOrder:this.ruleFormData.sortOneOrder}),this.ruleFormData.sortTwoField!==""&&a.push({sortField:this.ruleFormData.sortTwoField,sortOrder:this.ruleFormData.sortTwoOrder});let s=this.filterList.list[0],o=0;this.filterList.list.forEach(u=>{o+=u.list.length});let l=s&&this.filterList.list.length===1&&s.referencefiled===""&&s.referencetable===""&&s.list.length>0?Object.assign(s,{columnid:0}):this.filterList,d={syscodegenid:this.table.id,name:this.ruleFormData.name,type:this.ruleFormData.type,explain:this.ruleFormData.explain,frozencolumn:this.ruleFormData.num,isdefault:this.ruleFormData.isDefault,viewname:this.ruleFormData.viewName,order:this.ruleFormData.order,sysviewfields:r,filterconfig:JSON.stringify(l),sysviewqueries:t,defaultsort:JSON.stringify(a),viewtree:this.ruleFormData.isViewTree?JSON.stringify(this.viewTree):JSON.stringify({}),isviewtree:this.ruleFormData.isViewTree?1:0,ruleconfig:JSON.stringify(this.rulesList),buttonrule:JSON.stringify(this.buttonRule)};sysViewAdd(d).then(u=>{u.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u65B0\u589E\u6210\u529F")),this.$emit("ok"),this.closed()):this.$message.error(this.$i18nt("gd.https.addFail","\u65B0\u589E\u5931\u8D25:")+u.message),this.confirmLoading=!1})},edit(r=1){let t=[],a=[],s=[];this.list.forEach((f,p)=>{let h=String(f.id).split("-"),v=`${f.align}&${f.visible?1:0}&${f.displaymode}&${f.displayprefix}&${f.preview}&${f.download}`;if(this.isChecked(f.id,this.lodaData.sysviewfields)){let g={id:0,name:f.alias==""?f.columncomment:f.alias,width:f.num,order:p,type:h.length>1?2:1,fieldid:h.length>1?f.joinfieldid:h[0],jointableid:f.codegenid,joinfieldid:h[0],orderconfig:f.orderconfig?1:0,gatherconfig:f.gatherconfig?1:0,maxtagcount:f.maxtagcount,align:v};t.push(g)}else{let g=this.lodaData.sysviewfields.filter(y=>f.id==(y.type==1?y.fieldid:y.joinfieldid+"-"+y.fieldid))[0];g.width=f.num,g.order=p,g.name=f.alias==""?f.columncomment:f.alias,g.orderconfig=f.orderconfig?1:0,g.gatherconfig=f.gatherconfig?1:0,g.maxtagcount=f.maxtagcount?f.maxtagcount:2,g.align=v,t.push(g)}}),this.lodaData.sysviewfields.forEach(f=>{let p=f.type==1?f.fieldid:f.joinfieldid+"-"+f.fieldid;this.isCheckedFilters(p,this.list)&&(f.statecodes=0,t.push(f))}),this.queryList.forEach((f,p)=>{if(this.isChecked(f.id,this.lodaData.sysviewqueries)){let h={id:0,querytype:f.effecttype=="fk"?2:1,name:f.columncomment,fieldid:f.id,jointableid:f.codegenid,joinfieldid:f.id,order:p,displaystyle:f.displaystyle,options:JSON.stringify(f.options)};a.push(h)}else{let h=this.lodaData.sysviewqueries.filter(v=>v.fieldid==f.id)[0];h.order=p,h.displaystyle=f.displaystyle,h.options=JSON.stringify(f.options),a.push(h)}}),this.lodaData.sysviewqueries.forEach(f=>{this.isCheckedFilters(f.fieldid,this.queryList)&&(f.statecodes=0,a.push(Object.assign({...f},{options:""})))}),this.ruleFormData.sortOneField!==""&&s.push({sortField:this.ruleFormData.sortOneField,sortOrder:this.ruleFormData.sortOneOrder}),this.ruleFormData.sortTwoField!==""&&s.push({sortField:this.ruleFormData.sortTwoField,sortOrder:this.ruleFormData.sortTwoOrder});let o=this.filterList.list[0],l=0;this.filterList.list.forEach(f=>{l+=f.list.length});let d=o&&this.filterList.list.length===1&&o.referencefiled===""&&o.referencetable===""&&o.list.length>0&&l===0?Object.assign(o,{columnid:0}):this.filterList;const u=Object.assign({...this.lodaData},{name:this.ruleFormData.name,type:this.ruleFormData.type,explain:this.ruleFormData.explain,frozencolumn:this.ruleFormData.num,isdefault:this.ruleFormData.isDefault,viewname:this.ruleFormData.viewName,order:this.ruleFormData.order,sysviewfields:[...t],sysviewqueries:[...a],filterconfig:JSON.stringify(d),defaultsort:JSON.stringify(s),viewtree:this.ruleFormData.isViewTree?JSON.stringify(this.viewTree):JSON.stringify({}),isviewtree:this.ruleFormData.isViewTree?1:0,ruleconfig:JSON.stringify(this.rulesList),buttonrule:JSON.stringify(this.buttonRule)});sysViewEdit(u).then(f=>{f.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),r==1?this.closed():setTimeout(()=>{this.init()},50)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25:")+f.message),this.confirmLoading=!1})},handleSubmit(){this.confirmLoading=!0,this.$refs.ruleForm.validate(r=>{if(r){if({...this.ruleFormData},this.list.length===0){this.$message.error(this.$i18nt("gd.view.addColumnTip","\u8BF7\u914D\u7F6E\u663E\u793A\u5217")),this.confirmLoading=!1;return}const t=this.table.isvirtualtable===1,a=this.tableFieldList.filter(l=>l.isprimarykey===1)[0];if(t&&!a){this.$message.error(this.$i18nt("gd.view.tablePrimaryKeyTip","\u8868\u672A\u8BBE\u7F6E\u4E3B\u952E\u5B57\u6BB5")),this.confirmLoading=!1;return}const s=this.list.filter(l=>{const d=a&&a.columnname?a.columnname:"";return l.columnname===d})[0];if(t&&!s){this.$message.error(this.$i18nt("gd.view.columnPrimaryKeyTip","\u663E\u793A\u5217\u672A\u914D\u7F6E\u4E3B\u952E\u5B57\u6BB5")),this.confirmLoading=!1;return}if(this.queryList.filter(l=>l.options&&!l.options.fieldFiltering).length>0){this.$message.error("\u8BF7\u8865\u5145\u67E5\u8BE2\u6761\u4EF6\u5B57\u6BB5\u6570\u636E\uFF01"),this.confirmLoading=!1;return}if(this.ruleFormData.isViewTree==!0&&Object.keys(this.viewTree).length==0){this.$message.error(this.$i18nt("gd.view.pleaseConfig","\u8BF7\u914D\u7F6E\u89C6\u56FE\u6811")),this.confirmLoading=!1;return}this.record?this.edit():this.add()}else this.confirmLoading=!1})},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()},getDictionary(r){return this.$options.filters.dictData(r)},getsortField(r){const t=this.ruleFormData[r];return this.sortField.filter(a=>a.columnName!==t)},lookupSeled(r){this.ruleFormData.name=r.defaulttext}}};var _sfc_render$2n=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.closed}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.title))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.buttons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.toggleFullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form"},[t.visible?a("div",{staticClass:"view-config"},[a("ViewList",{ref:"viewList",attrs:{tableFieldList:t.tableFieldList,table:t.table,ruleFormData:t.ruleFormData,fullscreen:t.fullscreen,list:t.list},on:{ok:t.okSelTable}}),a("ViewQuery",{ref:"viewQuery",attrs:{tableFieldList:t.tableFieldList,table:t.table,ruleFormData:t.ruleFormData,fullscreen:t.fullscreen,rulesList:t.rulesList},on:{okRules:t.saveQueryRules,ok:t.saveQuery}}),a("div",{staticClass:"config-item config-items"},[a("div",{staticClass:"t"},[a("div",{staticClass:"tls"},[t._v(t._s(t.$i18nt("gd.view.basicInformation","\u57FA\u7840\u4FE1\u606F")))]),a("el-button",{attrs:{type:"primary"},on:{click:t.selFilter}},[t._v(" "+t._s(t.$i18nt("gd.view.filterConditions","\u8FC7\u6EE4\u6761\u4EF6"))+" ")])],1),a("div",{staticClass:"b"},[a("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"left",model:t.ruleFormData,size:"mini",rules:t.rules},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-form-item",{attrs:{label:t.$i18nt("gd.view.displayName","\u663E\u793A\u540D\u79F0"),prop:"name"}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:!t.record,expression:"!record"}],attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}}),t.record&&t.ruleFormData.transKey?a("gd-translation",{ref:"gdTranslation",attrs:{keyI18n:"transKey",recordData:t.ruleFormData,type:2},on:{lookupSeled:t.lookupSeled}}):t._e()],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.viewName","\u89C6\u56FE\u540D\u79F0"),prop:"viewName"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),disabled:t.disabled},model:{value:t.ruleFormData.viewName,callback:function(s){t.$set(t.ruleFormData,"viewName",s)},expression:"ruleFormData.viewName"}})],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.type","\u7C7B\u578B"),prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:t.changeType},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},t._l(t.getDictionary("view_type"),function(s,o){return a("el-option",{key:s.code,attrs:{value:s.code,label:t.$i18nt(`Dynamics.${s.transKey}`,s.name)}})}),1)],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.default","\u662F\u5426\u9ED8\u8BA4"),prop:"isDefault"}},[a("el-radio-group",{model:{value:t.ruleFormData.isDefault,callback:function(s){t.$set(t.ruleFormData,"isDefault",s)},expression:"ruleFormData.isDefault"}},t._l(t.defaultList,function(s){return a("el-radio",{key:s.code,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.name))+" ")])}),1)],1),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.sort","\u6392\u5E8F"),prop:"order"}},[a("el-input-number",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),"controls-position":"right",min:0,step:1},model:{value:t.ruleFormData.order,callback:function(s){t.$set(t.ruleFormData,"order",s)},expression:"ruleFormData.order"}})],1),t.isViewType==1||t.isViewType==2?a("el-form-item",{attrs:{label:t.$i18nt("gd.view.switch","\u662F\u5426\u5F00\u542F\u89C6\u56FE\u6811"),prop:"isViewTree"}},[a("div",{staticClass:"tree_config"},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.primaryColor},on:{change:t.onChange},model:{value:t.ruleFormData.isViewTree,callback:function(s){t.$set(t.ruleFormData,"isViewTree",s)},expression:"ruleFormData.isViewTree"}}),t.ruleFormData.isViewTree?a("a",{on:{click:t.configSidebar}},[t._v(" "+t._s(t.$i18nt("gd.view.configuration","\u914D\u7F6E"))+" ")]):t._e()],1)]):t._e(),a("el-form-item",{attrs:{label:t.$i18nt("gd.view.explain","\u8BF4\u660E"),prop:"explain"}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),type:"textarea",rows:2},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1),a("el-divider"),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.view.sortBy","\u6392\u5E8F\u4F9D\u636E")}},[a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortOneField"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:""},model:{value:t.ruleFormData.sortOneField,callback:function(s){t.$set(t.ruleFormData,"sortOneField",s)},expression:"ruleFormData.sortOneField"}},t._l(t.getsortField("sortTwoField"),function(s,o){return a("el-option",{key:s.columnname,attrs:{value:s.columnname,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" "+t._s(s.columnname)+" ")])],1)}),1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortOneOrder"}},[a("el-radio-group",{model:{value:t.ruleFormData.sortOneOrder,callback:function(s){t.$set(t.ruleFormData,"sortOneOrder",s)},expression:"ruleFormData.sortOneOrder"}},t._l(t.defaultSortList,function(s){return a("el-radio",{key:s.code,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.name))+" ")])}),1)],1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{label:t.$i18nt("gd.view.secondBasis","\u7B2C\u4E8C\u4F9D\u636E")}},[a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortTwoField"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9"),clearable:""},model:{value:t.ruleFormData.sortTwoField,callback:function(s){t.$set(t.ruleFormData,"sortTwoField",s)},expression:"ruleFormData.sortTwoField"}},t._l(t.getsortField("sortOneField"),function(s,o){return a("el-option",{key:s.columnname,attrs:{value:s.columnname,label:t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment)}},[a("EffectTypeIcon",{attrs:{effectType:s.effecttype}}),a("span",{staticStyle:{"padding-left":"4px"}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transkey}`,s.columncomment))+" ("+t._s(s.columnname)+") ")])],1)}),1)],1),a("el-form-item",{staticStyle:{"margin-bottom":"0 !important"},attrs:{prop:"sortTwoOrder"}},[a("el-radio-group",{model:{value:t.ruleFormData.sortTwoOrder,callback:function(s){t.$set(t.ruleFormData,"sortTwoOrder",s)},expression:"ruleFormData.sortTwoOrder"}},t._l(t.defaultSortList,function(s){return a("el-radio",{key:s.code,attrs:{label:s.code}},[t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.name))+" ")])}),1)],1)],1),a("el-divider"),a("el-form-item",{staticStyle:{"margin-bottom":"6px !important"},attrs:{label:t.$i18nt("gd.view.btnRules","\u6309\u94AE\u89C4\u5219")}},[a("div",{staticClass:"btn-config"},[a("el-button",{attrs:{type:"primary"},on:{click:function(s){return t.selBtnRules(null)}}},[t._v(" "+t._s(t.$i18nt("gd.form.addBtnRuleConfig","\u65B0\u589E\u6309\u94AE\u89C4\u5219"))+" ")])],1)]),t.buttonRule.length>0?a("div",{staticClass:"btn-config-list"},[t._l(t.buttonRule,function(s){return[a("div",{staticClass:"item flex"},[a("div",{staticClass:"sku"},[a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{"open-delay":150,effect:"dark",content:t.$i18nt(`Dynamics.${s.transKey}`,s.name),placement:"top"}},[a("div",{staticClass:"line1"},[t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.name))+" ")])])],1),a("i",{staticClass:"el-icon-edit active-color",on:{click:function(o){return t.selBtnRules(s)}}}),a("i",{staticClass:"el-icon-delete rdelete",on:{click:function(o){return t.delBtnRules(s)}}})])]})],2):t._e()],1)],1)])],1):t._e()])],2),t.visible?a("FlowsFilter",{ref:"flowsFilter",attrs:{type:2,table:t.table},on:{ok:t.okFilter}}):t._e(),a("ButtonRule",{ref:"viewBtnRules",attrs:{table:t.table,loadData:t.tableFieldList,id:t.record?t.record:""},on:{ok:t.okBtnRules}}),a("ViewTree",{ref:"viewTrees",attrs:{table:t.table},on:{ok:t.okTree}})],1)},_sfc_staticRenderFns$2n=[],__component__$2n=normalizeComponent(_sfc_main$2n,_sfc_render$2n,_sfc_staticRenderFns$2n,!1,null,"eb12b7c2",null,null);const editViewConfig=__component__$2n.exports,copy_vue_vue_type_style_index_0_scoped_8d56044c_lang="",_sfc_main$2m={props:{type:{type:[String,Number],default:1}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,spinning:!1,loadData:[],viewData:[],formData:[],detail:null,record:null,fullscreen:!1,width:"600px",arrTransKey:[],allTableData:[],langsAll:[],httpNumbe:0,ruleFormData:{},pattern:"/^[a-zA-Z]+$/"}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"80px"}}},...mapGetters(["tableLists"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(r){this.httpNumbe=0,this.fullscreen=!1,this.record=r,this.visible=!0,this.spinning=!0,this.type==1?this.getViewDetail():this.getFormDetail()},getViewDetail(){return sysViewDetails({id:this.record}).then(r=>(r.success?(this.detail=Object.assign(r.data,{viewname:r.data.viewname+uuid$1(2,!1,!1)}),this.spinning=!1,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData={name:this.detail.viewname,displayName:this.detail.name,type:String(this.detail.type),explain:this.detail.explain}},0)})):this.$message.error(r.message),r.data))},getFormDetail(){return sysFormDetails({id:this.record}).then(r=>(r.success?(this.detail=Object.assign(r.data,{name:r.data.name+uuid$1(2,!1,!1)}),this.spinning=!1,this.$nextTick(()=>{setTimeout(()=>{this.ruleFormData={name:this.detail.name,displayName:this.detail.displayname,type:"4",explain:this.detail.explain}},0)})):this.$message.error(r.message),r.data))},handleSubmit(){this.$refs.ruleForm.validate(r=>{r&&(this.type==1?this.addView(this.ruleFormData):(this.spinning=!0,this.confirmLoading=!0,this.addForm(this.ruleFormData)))})},addView(r){let t=[],a=[];this.detail.sysviewfields.forEach((o,l)=>{let d={name:o.name,width:o.width,order:l,type:o.type,fieldId:o.fieldid,joinTableId:o.jointableid,joinFieldId:o.joinfieldid,orderConfig:o.orderconfig,gatherConfig:o.gatherconfig,maxTagCount:o.maxtagcount,align:o.align?o.align:"left&1&none&none"};t.push(d)}),this.detail.sysviewqueries.forEach((o,l)=>{if(o.field){let d={queryType:o.querytype,name:o.field.columncomment,fieldId:o.fieldid,joinTableId:o.jointableid,joinFieldId:o.joinfieldid,order:l,displayStyle:o.displaystyle,options:o.options};a.push(d)}});let s={syscodegenid:this.detail.syscodegenid,name:r.displayName,type:r.type,explain:r.explain,frozenColumn:this.detail.frozencolumn,isDefault:0,viewName:r.name,order:this.detail.order,sysViewFields:t,filterConfig:this.detail.filterconfig,sysViewQueries:a,defaultSort:this.detail.defaultsort,viewTree:this.detail.viewtree,isViewTree:this.detail.isviewtree,ruleConfig:this.detail.ruleconfig,buttonRule:this.detail.buttonrule};this.spinning=!0,this.confirmLoading=!0,sysViewAdd(s).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.spinning=!1,this.confirmLoading=!1})},async addForm(r){let t=JSON.parse(this.detail.formconfig);t.config=Object.assign({...t.config},{name:r.name,displayName:r.displayName,type:r.type,explain:r.explain,transKey:null});const a=o=>(o=o.filter((l,d)=>(l.langs!==void 0&&delete l.langs,l.options.columnName!==void 0&&l.options.transKey&&(l.options=Object.assign(l.options,{transKey:null})),["card","approval"].includes(l.type)&&l.options.transKey&&(l.options=Object.assign(l.options,{transKey:null})),["grid","tabs","collapse"].includes(l.type)&&l.columns.forEach(u=>{u.transKey=null,u.list=a(u.list)}),(l.type==="card"||l.type==="batch")&&(l.list=a(l.list)),l.type==="table"&&l.trs.forEach(u=>{u.tds.forEach(f=>{f.list=a(f.list)})}),!0)),o);t.list=await a(t.list);let s={name:r.name,displayName:r.displayName,type:r.type,explain:r.explain,sysCodeGenId:this.detail.syscodegenid,changeName:this.detail.changename,changeWeb:this.detail.changeweb,initName:this.detail.initname,initWeb:this.detail.initweb,width:this.detail.width,formConfig:JSON.stringify(Object.assign(t,{addTransKey:[],allTransKey:[]})),businessConfig:this.detail.businessconfig};this.spinning=!0,this.confirmLoading=!0,sysFormAdd(s).then(o=>{o.success?(this.$message.success(this.$i18nt("gd.https.addSucc","\u64CD\u4F5C\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.addFail","\u64CD\u4F5C\u5931\u8D25")+o.message),this.spinning=!1,this.confirmLoading=!1})},getAllTableData(){if(this.tableLists.length>0){this.allTableData=[...this.tableLists];return}codeGenerateInformationList({busName:""}).then(r=>{r.success&&(this.allTableData=[...r.data])})},addTranslation(r){return sysTranslationAdd(r).then(t=>t)},handleCancel(){this.visible=!1,this.$refs.ruleForm.resetFields()},getDictionary(r){return this.$options.filters.dictData(r)},doEvent(r){let t=r.item.functionName;this[t]()}},created(){this.getAllTableData()}};var _sfc_render$2m=function r(){var t=this,a=t._self._c;return a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.btn.copy")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[a("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[a("el-form",{ref:"ruleForm",attrs:{"label-width":"110px","label-position":"left",model:t.ruleFormData},nativeOn:{submit:function(s){s.preventDefault()}}},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.displayName"),prop:"displayName",rules:[{required:!0,message:t.$i18nt("gd.placeholder.input")}]}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:""},model:{value:t.ruleFormData.displayName,callback:function(s){t.$set(t.ruleFormData,"displayName",s)},expression:"ruleFormData.displayName"}})],1)],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.type==1?t.$i18nt("gd.view.viewName"):t.$i18nt("gd.form.formName"),prop:"name",rules:[{required:!0,message:t.$i18nt("gd.placeholder.input")},{pattern:/^[a-zA-Z]+$/,message:t.$i18nt("gd.view.viewNameTip")}]}},[a("el-input",{attrs:{placeholder:t.$i18nt("gd.placeholder.input"),clearable:""},model:{value:t.ruleFormData.name,callback:function(s){t.$set(t.ruleFormData,"name",s)},expression:"ruleFormData.name"}})],1)],1),t.type==1?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.type"),prop:"type",rules:[{required:!0,message:t.$i18nt("gd.placeholder.select")}]}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),clearable:""},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},t._l(t.getDictionary("view_type"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:s.name}})}),1)],1)],1):t._e(),t.type==2?a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.form.type"),prop:"type",rules:[{required:!0,message:t.$i18nt("gd.placeholder.select")}]}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$i18nt("gd.placeholder.select"),clearable:"",disabled:""},model:{value:t.ruleFormData.type,callback:function(s){t.$set(t.ruleFormData,"type",s)},expression:"ruleFormData.type"}},t._l(t.getDictionary("table_form_type"),function(s,o){return a("el-option",{key:o,attrs:{value:s.code,label:s.name}})}),1)],1)],1):t._e(),a("el-col",{attrs:{span:24}},[a("el-form-item",{staticStyle:{"margin-bottom":"0px"},attrs:{label:t.$i18nt("gd.view.explain")}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.ruleFormData.explain,callback:function(s){t.$set(t.ruleFormData,"explain",s)},expression:"ruleFormData.explain"}})],1)],1)],1)],1)],1)])],2)},_sfc_staticRenderFns$2m=[],__component__$2m=normalizeComponent(_sfc_main$2m,_sfc_render$2m,_sfc_staticRenderFns$2m,!1,null,"8d56044c",null,null);const copy=__component__$2m.exports,btnRelation_vue_vue_type_style_index_0_scoped_4db017d9_lang="",_sfc_main$2l={props:{codeGenId:{type:[String,Number],default:""},type:{type:[String,Number],default:"1"}},data(){return{title:"\u89C6\u56FE\u6309\u94AE\u8BBE\u7F6E",fullscreen:!1,visible:!1,width:"900px",confirmLoading:!1,spinning:!1,closeList:[],loadData:[],allBtn:[],selectedKeys:[],btnList:[],checkAll:!1,indeterminate:!0,sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],activeIndex:"0",selId:"0",changeChecked:!1}},computed:{isIndeterminate(){return this.closeList.length>0&&this.closeList.length<this.allBtn.length}},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(r){this.fullScreen=!1,this.loadData=[...r],this.title=this.type==1?this.$i18nt("gd.btnConfig.viewBtnSettings","\u89C6\u56FE\u6309\u94AE\u8BBE\u7F6E"):this.$i18nt("gd.btnConfig.formBtnSettings","\u8868\u5355\u6309\u94AE\u8BBE\u7F6E"),this.visible=!0,this.spinning=!0,Promise.all([this.getBtnList()]).then(t=>{this.loadData.forEach(a=>{let s=this.getCloseBtn(a);return a.close=[...s],a.initial=[...s],a}),this.closeList=this.loadData.length>0?[...this.loadData[0].close]:[],this.checkedOptions=[...this.closeList],this.spinning=!1})},belonging(r){let t="--",a=this.type==1?r.sysviewid:r.sysformidbyset,s=this.loadData.filter(o=>o.id==a);return s.length>0&&(t=s.length>0?this.type==1?s[0].name:s[0].displayname:""),t},getBtnList(){return sysButtonList({type:this.type,SysCodeGenId:this.codeGenId}).then(r=>{let t=[];return r.data.forEach((a,s)=>{r.data[s].belonging=this.belonging(a),t.push(a.id)}),this.btnList=r.data.filter(a=>a.parentid==null),this.allBtn=[...t],r.data})},select(r,t){this.selId!=r&&(this.selId=r,this.selectedKeys=t,this.closeList=this.loadData[parseInt(r)].close)},onCheckAllChange(r){let t=this.closeList.length===0?[...this.allBtn]:this.allBtn.length===this.closeList.length?[]:[...this.allBtn];this.closeList=[...t],this.loadData[parseInt(this.selId)].close=[...t]},handleCheckedCitiesChange(r){this.loadData[parseInt(this.selId)].close=[...r],this.closeList=[...r]},getCloseBtn(r){let t=[];return this.btnList.forEach(a=>{this.type==1&&a.sysviewid==r.id&&t.push(a.id),this.type==2&&a.sysformidbyset==r.id&&t.push(a.id)}),t},handleSubmit(){this.confirmLoading=!0,this.spinning=!0;let r=[];this.loadData.forEach(t=>{let a=this.btnFilter(t,1),s=this.btnFilter(t,0),o=a.concat(s);if(o.length>0){let l={type:this.type,componentId:t.id,btnS:o};r.push(l)}}),sysButtonSet(r).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.$emit("ok"),this.handleCancel()):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+t.message),this.confirmLoading=!1,this.spinning=!1})},btnFilter(r,t){let a=[],s=[];return t==1?a=r.close.filter(o=>!r.initial.includes(o)):a=r.initial.filter(o=>!r.close.includes(o)),a.forEach(o=>{s.push({type:t,btnId:o})}),s},handleCancel(){this.visible=!1},doEvent(r){let t=r.item.functionName;this[t]()}}};var _sfc_render$2l=function r(){var t=this,a=t._self._c;return a("div",[a("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:t.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:t.fullscreen,visible:t.visible,width:t.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px"},on:{"update:visible":function(s){t.visible=s},closed:t.handleCancel}},[a("template",{slot:"title"},[a("div",{staticClass:"gd-dialog-head"},[a("div",{staticClass:"dialog-head-title"},[t._v(t._s(t.$i18nt("gd.btn.copy")))]),a("div",{staticClass:"dialog-head-btn"},[a("gd-btn-list",{attrs:{sysViewButtons:t.sysViewButtons},on:{functionName:t.doEvent}})],1),a("div",{staticClass:"dialog-head-operate"},[a("i",{staticClass:"gd-icons active-color",class:t.fullscreen?"gd-icon-quanpingsuoxiao":"gd-icon-fangda",on:{click:t.togglefullscreen}})]),t.confirmLoading?a("div",{staticClass:"gd-dialog-meng"}):t._e()])]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinning,expression:"spinning"}]},[a("div",{class:t.fullscreen?"modal-bodyq":"modal-body"},[a("div",{staticClass:"list"},[a("div",{staticClass:"l"},[a("div",{staticClass:"title"},[t._v(" "+t._s(t.type==1?t.$i18nt("gd.btnConfig.view"):t.$i18nt("gd.btnConfig.form"))+" ")]),a("div",{staticClass:"detail"},[a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.activeIndex},on:{select:t.select}},[t._l(t.loadData,function(s,o){return[a("el-menu-item",{attrs:{index:String(o)}},[a("div",{staticClass:"line1"},[t._v(t._s(t.type==1?s.name:s.displayname))])])]})],2)],1)]),a("div",{staticClass:"r"},[a("div",{staticClass:"title more"},[a("div",{staticClass:"btn"},[a("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.onCheckAllChange},model:{value:t.changeChecked,callback:function(s){t.changeChecked=s},expression:"changeChecked"}},[t._v(" "+t._s(t.$i18nt("gd.btnConfig.btn"))+" ")])],1),a("div",{staticClass:"suo"},[t._v(" "+t._s(t.type==1?t.$i18nt("gd.btnConfig.belongingView"):t.$i18nt("gd.btnConfig.belongingForm"))+" ")]),a("div",{staticClass:"explain"},[t._v(t._s(t.$i18nt("gd.btnConfig.explain")))])]),a("div",{staticClass:"detail"},t._l(t.btnList,function(s,o){return a("div",{key:o,staticClass:"more"},[a("div",{staticClass:"btn"},[a("el-checkbox-group",{on:{change:t.handleCheckedCitiesChange},model:{value:t.closeList,callback:function(l){t.closeList=l},expression:"closeList"}},[a("el-checkbox",{attrs:{label:s.id}},[a("div",[t._v(t._s(s.displayname))])])],1)],1),a("div",{staticClass:"suo line1"},[t._v(t._s(s.belonging))]),a("div",{staticClass:"explain line1"},[t._v(t._s(s.description))])])}),0)])])])])],2)],1)},_sfc_staticRenderFns$2l=[],__component__$2l=normalizeComponent(_sfc_main$2l,_sfc_render$2l,_sfc_staticRenderFns$2l,!1,null,"4db017d9",null,null);const btnRelation=__component__$2l.exports,main_vue_vue_type_style_index_0_scoped_bac693dd_lang="",_sfc_main$2k={props:{height:{type:Number,default:100},record:{type:Object,default:()=>({})}},mixins:[tablesFilter,mixins$h],data(){return{transKey:"gd.btn.add",selectedRowKeys:[],selectedRows:[],queryParam:{},data:[],loadData:r=>this.record.id===void 0?new Promise((t,a)=>{t({pageNo:1,pageSize:40,totalRows:0,rows:[]})}):sysViewList$1({sysCodeGenId:this.record.id}).then(t=>(this.data=t.data,{pageNo:1,pageSize:40,totalRows:0,rows:t.data}))}},components:{editForm:editViewConfig,copy,btnRelation},computed:{...mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{relation(){this.$refs.btnRelation.open(this.data)},copyed(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.$refs.copy.open(this.selectedRowKeys[0])},add(){this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u5217\u6570\u636E\u7F16\u8F91!"));return}this.$refs.editForm.open(this.selectedRowKeys[0])},refresh(){this.$refs.table.refresh()},editForm(r){this.$refs.editForm.open(r.id)},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(r,t,a)=>{this.delHand(r,t,a)}})},delHand(r,t,a){if(r!=="confirm"){a();return}t.confirmButtonLoading=!0,t.cancelButtonLoading=!0,t.showCancelButton=!1,sysViewDelete({ids:this.selectedRowKeys.join(",")}).then(s=>{t.confirmButtonLoading=!1,t.cancelButtonLoading=!1,t.showCancelButton=!0,a(),s.success?(this.refresh(),this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F"))):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+s.message)})},onSelectChange(r,t){this.selectedRowKeys=r,this.selectedRows=t},doEvent(r){let t=r.item.functionName;this[t]&&this[t]()}}};var _sfc_render$2k=function r(){var t=this,a=t._self._c;return a("div",[a("div",[a("gd-tables",{ref:"table",attrs:{dataSource:t.loadData,size:t.tableSize,pageSize:t.tablePageSize,columns:t.tableColumns,selectedRowKeys:t.selectedRowKeys,"max-height":t.height,showPagination:!1,initialLoading:!1},on:{onChange:t.onSelectChange},scopedSlots:t._u([{key:"name",fn:function({column:s,row:o}){return[a("gd-tooltip",{attrs:{rowKey:"name",row:o,highlight:"",transKey:`Dynamics.${o.transkey}`},on:{click:t.editForm}})]}},{key:"type",fn:function(s){return[a("el-tag",{style:t._f("dictColor")("view_type",s.row.type),attrs:{effect:"dark"}},[t._v(" "+t._s(t._f("dictType")("view_type",s.row.type))+" ")])]}},{key:"isDefault",fn:function(s){return[s.row.isdefault==1?a("i",{staticClass:"gd-icons gd-icon-xuanzhong active-color",staticStyle:{"font-size":"18px"}}):a("i",{staticClass:"gd-icons gd-icon-jinyong1",staticStyle:{"font-size":"20px",color:"#999"}})]}},{key:"operator",fn:function(){return[a("div",{staticClass:"gd-table-operator"},[a("div",{staticClass:"gd-table-operatorr"},[a("gd-btn-list",{attrs:{sysViewButtons:t.tableButtons},on:{functionName:t.doEvent}})],1)])]},proxy:!0}])})],1),a("editForm",{ref:"editForm",attrs:{table:t.record},on:{ok:t.refresh}}),a("btnRelation",{ref:"btnRelation",attrs:{codeGenId:this.record.id,type:1,loadData:t.data},on:{ok:t.refresh}}),a("copy",{ref:"copy",attrs:{type:1},on:{ok:t.refresh}})],1)},_sfc_staticRenderFns$2k=[],__component__$2k=normalizeComponent(_sfc_main$2k,_sfc_render$2k,_sfc_staticRenderFns$2k,!1,null,"bac693dd",null,null);const viewConfig=__component__$2k.exports,mixins$g={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.form.displayName",prop:"displayName",label:"\u663E\u793A\u540D\u79F0",width:"260",type:"slot",slotType:"displayName",align:"left",fixed:!0,showOverflowTooltip:!0},{transKey:"gd.form.formName",prop:"name",width:"260",label:"\u8868\u5355\u540D\u79F0",align:"left",showOverflowTooltip:!0},{transKey:"gd.form.type",prop:"type",width:"200",type:"slot",slotType:"type",label:"\u8868\u5355\u7C7B\u578B",align:"left"},{transKey:"gd.form.explain",prop:"explain",minWidth:"200",label:"\u8BF4\u660E",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysTableForm:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysTableForm:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysTableForm:delete"},{displayName:"\u590D\u5236",functionName:"copyed",show:!0,transKey:"gd.btn.copy",icon:"el-icon-document-copy",name:"sysTableForm:add"},{displayName:"\u8BBE\u7F6E\u6309\u94AE",functionName:"relation",show:!0,transKey:"gd.btn.setButton",icon:"el-icon-setting",name:"sysTableBtn:set"}]}}},main_vue_vue_type_style_index_0_scoped_e3579586_lang="",_sfc_main$2j={props:{activeKey:{type:String,default:"page"},menus:{type:Array,default:()=>[]}},data(){return{}},methods:{selItem(r){r.key!==this.activeKey&&this.$emit("change",r.key)}}};var _sfc_render$2j=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"panel-menus"},[t._l(t.menus,function(s,o){return[a("div",{key:o,staticClass:"item",class:s.key===t.activeKey?"active-meuns":"",on:{click:function(l){return t.selItem(s)}}},[a("i",{staticClass:"gd-icons",class:[s.icon,s.key===t.activeKey?"active-color":""],on:{click:function(l){return t.selItem(s)}}}),a("div",{staticClass:"name",class:s.key===t.activeKey?"active-color":""},[t._v(t._s(t.$i18nt(`${s.transKey}`,s.name)))])])]})],2)},_sfc_staticRenderFns$2j=[],__component__$2j=normalizeComponent(_sfc_main$2j,_sfc_render$2j,_sfc_staticRenderFns$2j,!1,null,"e3579586",null,null);const operationMenus=__component__$2j.exports,abilityItems=[{type:"btnGroup",key:"",label:"\u6309\u94AE\u7EC4",icon:"gd-icon-anniu",transKey:"gd.functionalcomponents.btnGroup",options:{limit:20},columns:[],css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"textSearch",key:"",label:"\u6587\u672C\u641C\u7D22",icon:"gd-icon-yulanmoban",transKey:"gd.functionalcomponents.textSearch",options:{placeholderTip:"\u63D0\u793A\u4FE1\u606F"},css:{padding:[0,0,0,0],margin:[0,0,0,0]},defined:{pc:{},mobile:{}}},{type:"currentTime",key:"",label:"\u65E5\u671F\u65F6\u95F4",icon:"gd-icon-riqi",transKey:"gd.functionalcomponents.currentTime",options:{format:"YYYY-MM-DD"},css:{bjColor:"#fff",fontSize:12,color:"#333",align:"left",padding:[0,0,0,0],margin:[0,0,0,0]},defined:{pc:{},mobile:{}}},{type:"currentUser",key:"",label:"\u7528\u6237",icon:"gd-icon-user",transKey:"gd.functionalcomponents.currentUser",options:{},css:{width:40,radius:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0],labelUnit:"%"},defined:{pc:{},mobile:{}}}],basicsItems=[{type:"divider",key:"",label:"\u5206\u5272\u7EBF",icon:"gd-icon-fengexian",transKey:"gd.basiccomponents.divider",options:{title:"",direction:"horizontal",position:"center",transKey:null},css:{width:"100",height:"1",padding:[0,0,0,0],labelUnit:"%",bjColor:"transparent"},customCss:"",defined:{pc:{},mobile:{}}},{type:"textContent",key:"",label:"\u6587\u672C\u5185\u5BB9",icon:"gd-icon-wenbenneirong",transKey:"gd.basiccomponents.textContent",options:{title:"\u6587\u672C\u5185\u5BB9",transKey:null,flexWidth:100,flexUnit:"%",columnContextName:[]},css:{maxLineClamp:void 0,bjColor:"transparent",fontSize:12,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],fontWeight:"normal",radius:[0,0,0,0],align:"left",lineHeight:18,letterSpacing:0,fontStyle:"normal",textDecoration:"none"},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"title",key:"",label:"\u6807\u9898",icon:"gd-icon-ziti",transKey:"gd.basiccomponents.title",options:{title:"\u6807\u9898",transKey:null,subtransKey:null,subtitle:"\u526F\u6807\u9898",mode:"center",iconShow:!1,columnContextName:[],subtransContextName:[]},css:{bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"fonticon",key:"",label:"\u5B57\u4F53\u56FE\u6807",icon:"gd-icon-zititubiao",transKey:"gd.basiccomponents.fonticon",options:{icon:"gd-icon-group-line",flexWidth:100,flexUnit:"%",columnContextName:[]},css:{bjColor:"transparent",fontSize:16,color:"#333",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],fontWeight:"normal",align:"center",lineHeight:24},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"image",key:"",label:"\u56FE\u7247",icon:"gd-icon-tupian",transKey:"gd.basiccomponents.image",options:{filePath:"",url:"",columnContextName:[]},css:{width:"30",height:"30",padding:[0,0,0,0],margin:[0,0,0,0],labelUnit:"px",objectFit:"contain"},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"tag",key:"",label:"\u6807\u7B7E",icon:"gd-icon-dagang_biaoqianzu",transKey:"gd.basiccomponents.tag",options:{title:"\u6807\u7B7E",transKey:null,color:"",size:"small",effect:"light",columnContextName:[]},css:{padding:[0,0,0,0],margin:[0,0,0,0],align:"left"},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"link",key:"",label:"\u94FE\u63A5",icon:"gd-icon-lianjie",transKey:"gd.basiccomponents.link",options:{title:"\u94FE\u63A5",transKey:null,linkUrl:"",columnContextName:[]},css:{padding:[0,0,0,0],margin:[0,0,0,0],align:"left",fontSize:12,fontStyle:"normal",textDecoration:"none",bjColor:"transparent",color:"#1456f0",radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"QRcode",key:"",label:"\u4E8C\u7EF4\u7801",icon:"gd-icon-erweima",transKey:"gd.basiccomponents.QRcode",options:{urlQRcode:"https://www.baidu.com/",columnContextName:[]},css:{width:200,height:200,padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"banner",key:"",label:"\u8F6E\u64AD\u56FE",icon:"gd-icon-shouyelunbotu",transKey:"gd.basiccomponents.banner",options:{imgUrl:"",filePath:"",autoplay:!0,interval:5e3,loop:!0},css:{width:100,height:100,padding:[0,0,0,0],margin:[0,0,0,0],labelUnit:"px"},fieldContext:[],customCss:"",argument:!0,defined:{pc:{indicatorPosition:"inside",arrow:"hover",type:"none",direction:"horizontal",loop:!0,objectFit:"contain"},mobile:{indicatorDots:!0,indicatorColor:"rgba(0, 0, 0, .3)",indicatorActiveColor:"#000000",previousMargin:0,nextMargin:0,circular:!0}}}],datasheetItems=[{type:"table",key:"",label:"\u89C6\u56FE",icon:"gd-icon-biaodanzujian-biaoge",transKey:"gd.datadisplaycomponents.table",options:{table:{},view:{},btn:[],heightMode:"fill",height:300,maxBtnLength:12,formKey:"",form:{id:""},formMode:"",viewWeights:"2"},formList:[],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"dataList",key:"",label:"\u5217\u8868",icon:"gd-icon-mubanbianpai",transKey:"gd.datadisplaycomponents.list",options:{table:{},view:{},flexWidth:100,flexUnit:"%",pageSize:10,pageSizeMode:"customize",layoutType:"grid",layoutDirection:"column",columnsNumber:2,columnsWidth:100,spacing:0},list:[],css:{heightL:100,heiType:"auto",bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},fieldContext:[],customCss:"",defined:{pc:{},mobile:{}}},{type:"descriptions",key:"",label:"\u8BE6\u60C5",icon:"gd-icon-miaoshu",transKey:"gd.datadisplaycomponents.descriptions",options:{table:{},view:{},field:[],column:3,directionList:"horizontal",colon:!0,border:1},css:{},defined:{pc:{},mobile:{}}},{type:"echarts",key:"",label:"\u56FE\u8868",icon:"gd-icon-zhuzhuangtu",transKey:"gd.datadisplaycomponents.echarts",options:{echartsId:"",table:{},view:{},echarts:{},heightMode:"fixed",fixedHeight:300,relativeHeight:100},fkData:[],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"statistic",key:"",label:"\u7EDF\u8BA1\u6570\u503C",icon:"gd-icon-baobiaotongji",transKey:"gd.datadisplaycomponents.statisticValue",options:{title:"\u7EDF\u8BA1",timeIndices:!1,titleValue:0,transKey:"gd.datadisplaycomponents.statistic"},css:{color:"#333",fontSize:"14"},customCss:"",defined:{pc:{},mobile:{}}}],dialogItems=[{type:"dialog",key:"",label:"\u5F39\u7A97",icon:"gd-icon-ZeekrVisualDialog",transKey:"gd.elasticlayercomponents.dialog",options:{visible:!0,title:"\u6807\u9898",transKey:"gd.elasticlayercomponents.title",width:"50%",fullscreen:!1,top:"80px"},list:[],btn:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"drawer",key:"",label:"\u4FA7\u62C9",icon:"gd-icon-chouti",transKey:"gd.elasticlayercomponents.drawer",options:{visible:!0,title:"\u6807\u9898",transKey:"gd.elasticlayercomponents.title",width:"60%",openDirection:"rtl"},list:[],btn:[{displayName:"\u53D6\u6D88",functionName:"closed",show:!0,transKey:"gd.btn.cancel",btnType:"info",icon:""},{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:""}],css:{},customCss:"",defined:{pc:{openDirection:"rtl"},mobile:{type:"right"}}},{type:"popover",key:"",label:"\u6C14\u6CE1",icon:"gd-icon-24gl-bubbles6",transKey:"gd.elasticlayercomponents.popover",options:{title:"\u6807\u9898",transKey:"gd.elasticlayercomponents.title",content:"\u63D0\u793A\u4FE1\u606F",placement:"bottom"},css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0]},customCss:"",defined:{pc:{},mobile:{}}}],formItems=[{type:"input",key:"",label:"\u5355\u884C\u6587\u672C",icon:"gd-icon-danhangshurukuang",transKey:"gd.formcomponents.input",options:{maxLength:void 0,value:"",columnName:"",effectType:"input",type:"text",width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"textarea",key:"",label:"\u591A\u884C\u6587\u672C",icon:"gd-icon-duohangshuru",transKey:"gd.formcomponents.textarea",options:{value:"",maxLength:void 0,columnName:"",effectType:"textarea",minRows:4,maxRows:6,width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"editor",key:"",label:"\u5BCC\u6587\u672C",icon:"gd-icon-fuwenbenkuang",transKey:"gd.formcomponents.editor",options:{value:"",columnName:"",effectType:"editor",height:300,width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"inputNumber",key:"",label:"\u6570\u5B57\u8F93\u5165",icon:"gd-icon-shuzi",transKey:"gd.formcomponents.inputNumber",options:{value:void 0,columnName:"",effectType:"inputnumber",width:"100",widthUnit:"%",defaultValue:void 0,min:void 0,max:void 0,precision:0,step:1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,clearable:!0,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,disabledColumnName:!1,displayMode:"none",initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,type:"number",message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{controlsPosition:"right",controls:!0},mobile:{}}},{type:"switch",key:"",label:"\u5F00\u5173",icon:"gd-icon-anniu_kaiqi",transKey:"gd.formcomponents.switch",options:{value:"0",columnName:"",effectType:"switch",defaultValue:"0",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"radio",key:"",label:"\u5355\u9009\u6846",icon:"gd-icon-danxuan_xuanzhong",transKey:"gd.formcomponents.radio",options:{value:void 0,columnName:"",effectType:"radio",defaultValue:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},fkData:[],filterList:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"checkbox",key:"",label:"\u591A\u9009\u6846",icon:"gd-icon-xuanzhong",transKey:"gd.formcomponents.checkbox",options:{value:[],columnName:"",effectType:"checkbox",defaultValue:[],placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"select",key:"",label:"\u4E0B\u62C9\u6846",icon:"gd-icon-xiala",transKey:"gd.formcomponents.select",options:{value:"",columnName:"",effectType:"select",width:"100",widthUnit:"%",defaultValue:"",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,filter:[],filterConfig:null,multiple:!1,dictTypeCode:"state_code",fkEntityName:null,disabledColumnName:!1,initialType:[],relations:"",disableDictCode:[],disableDictMode:1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"selectMultiple",key:"",label:"\u4E0B\u62C9\u6846\u591A\u9009",icon:"gd-icon-xiala",transKey:"gd.formcomponents.selectMultiple",options:{value:[],columnName:"",effectType:"checkbox",defaultValue:[],placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,dictTypeCode:"state_code",disabledColumnName:!1,initialType:[],filter:[],disableDictCode:[],disableDictMode:1},filterList:[],fkData:[],operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"uploadImg",key:"",label:"\u56FE\u7247\u4E0A\u4F20",icon:"gd-icon-tupian",transKey:"gd.formcomponents.uploadImg",options:{value:"",columnName:"",effectType:"image",width:"100",widthUnit:"%",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,fileName:"file",limit:1,action:"",headers:{},data:"{}",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"uploadFile",key:"",label:"\u6587\u4EF6\u4E0A\u4F20",icon:"gd-icon-mulu",transKey:"gd.formcomponents.uploadFile",options:{value:"",columnName:"",effectType:"file",width:"100",widthUnit:"%",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,download:!1,drag:!1,fileName:"file",limit:1,action:"",headers:{},data:"{}",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"blur"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"datePicker",key:"",label:"\u65E5\u671F\u9009\u62E9",icon:"gd-icon-riqi",transKey:"gd.formcomponents.datePicker",options:{value:"",columnName:"",effectType:"datepicker",width:"100",widthUnit:"%",defaultValue:"",rangeDefaultValue:[],range:!1,showTime:!1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,format:"1",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"timePicker",key:"",label:"\u65F6\u95F4\u9009\u62E9",icon:"gd-icon-riqi",transKey:"gd.formcomponents.timePicker",options:{value:"",columnName:"",effectType:"datepicker",width:"100",widthUnit:"%",defaultValue:"",rangeDefaultValue:[],range:!1,showTime:!1,placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:null,hidden:!1,disabled:!1,labelHide:!1,bringTo:!0,format:"3",disabledColumnName:!1,initialType:[]},operationAttribute:!0,help:"",rules:[{required:!1,message:"\u5FC5\u586B\u9879",trigger:"change"}],css:{},customCss:"",defined:{pc:{},mobile:{}}}],layoutItems=[{type:"containerPanel",key:"",label:"\u5BB9\u5668\u9762\u677F",icon:"gd-icon-rongqi",transKey:"gd.layoutContainer.containerPanel",options:{flexWidth:100,flexUnit:"%"},list:[],css:{heightL:100,heiType:"auto",bjColor:"transparent",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0]},customCss:"",defined:{pc:{},mobile:{}}},{type:"grid",key:"",label:"\u6805\u683C\u5E03\u5C40",icon:"gd-icon-zhage",transKey:"gd.layoutContainer.gridLayout",options:{gutter:0},columns:[{type:"grid-item",span:12,list:[],key:"",label:"",icon:"gd-icon-ziyuansu"},{type:"grid-item",span:12,list:[],key:"",label:"",icon:"gd-icon-ziyuansu"}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"collapse",key:"",label:"\u6298\u53E0\u9762\u677F",icon:"gd-icon-zhediemianban",transKey:"gd.layoutContainer.collapse",options:{accordion:!1,activeKey:[]},columns:[{type:"collapse-item",list:[],key:"",label:"\u9762\u677F1",transKey:null,disabled:!1,icon:"gd-icon-ziyuansu",hidden:!1},{type:"collapse-item",list:[],key:"",label:"\u9762\u677F2",transKey:null,disabled:!1,icon:"gd-icon-ziyuansu",hidden:!1}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"card",key:"",label:"\u5361\u7247\u5E03\u5C40",icon:"gd-icon-qiapian",transKey:"gd.layoutContainer.card",options:{header:"\u5361\u7247\u5E03\u5C40",shadow:"always",transKey:null},list:[],css:{},customCss:"",customCss:"",defined:{pc:{},mobile:{}}},{type:"tabs",key:"",label:"\u6807\u7B7E\u9875\u5E03\u5C40",icon:"gd-icon-tabs",transKey:"gd.layoutContainer.tabs",options:{type:"none",tabPosition:"top",activeKey:""},columns:[{type:"tabs-item",list:[],key:"",label:"\u6807\u7B7E1",transKey:null,icon:"gd-icon-ziyuansu",hidden:!1,forceRender:!0,isLoad:!1},{type:"tabs-item",list:[],key:"",label:"\u6807\u7B7E2",transKey:null,icon:"gd-icon-ziyuansu",hidden:!1,forceRender:!0,isLoad:!1}],css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"form",key:"",label:"\u8868\u5355\u5BB9\u5668",icon:"gd-icon-biaodanzujian-biaoge",transKey:"gd.layoutContainer.form",options:{tableName:"",model:"ruleForm",inline:!1,labelPosition:"right",labelWidth:100,labelUnit:"px",formModes:"dialog"},ruleForm:{},ruleFormKey:[],field:[],list:[],css:{},customCss:"",defined:{pc:{labelPosition:"right"},mobile:{labelPosition:"left",labelAlign:"left"}}},{type:"treePanel",key:"",label:"\u6811\u9009\u62E9\u5BB9\u5668",icon:"gd-icon-dagangshu",transKey:"gd.layoutContainer.treePanel",options:{id:0,table:{},detailId:"",view:{},heightMode:"fill",height:300},css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"flexLayout",key:"",label:"\u533A\u5757\u5E03\u5C40",icon:"gd-icon-flex-wrap",transKey:"gd.layoutContainer.flexLayout",options:{flexWidth:100,flexUnit:"%"},list:[],css:{bjColor:"#fff",padding:[0,0,0,0],margin:[0,0,0,0],radius:[0,0,0,0],flexDirection:"row",justifyContent:"flex-start",alignItems:"flex-start",flexWrap:"nowrap",flexHeightShow:0,fixedHeight:100},customCss:"",defined:{pc:{},mobile:{}}}],pageItems=[{type:"GdTableDevelopment",key:"",label:"\u8868\u5B9A\u4E49",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.tableDefinition",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformDict",key:"",label:"\u5B57\u5178",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.dictionary",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D41\u7A0B\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.processManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u89E3\u51B3\u65B9\u6848",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.solution",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"web\u8D44\u6E90",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.webResources",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u63D2\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.plugin",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u7FFB\u8BD1",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.translation",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformOrg",key:"",label:"\u673A\u6784",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.institution",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformPos",key:"",label:"\u804C\u4F4D",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.position",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u65E5\u5FD7",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.log",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u670D\u52A1\u7CFB\u7EDF",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.serviceSystem",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdplatformConfig",key:"",label:"\u7CFB\u7EDF\u914D\u7F6E",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.systemConfiguration",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"GdPlatformUse",key:"",label:"\u7528\u6237\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.userManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u89D2\u8272\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.roleManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5B89\u5168\u5B57\u6BB5\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.securityFieldManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5728\u7EBF\u7528\u6237",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.onlineUser",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u4EFB\u52A1\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.taskManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u53D1\u9001\u90AE\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.sendEmail",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6A21\u7248\u5E93",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.templateLibrary",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u6A21\u7248",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageTemplate",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u63D0\u9192\u89C4\u5219",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageReminderRules",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u6D88\u606F\u53D1\u9001\u8BB0\u5F55",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.messageSendingRecord",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u5373\u65F6\u6D88\u606F",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.instantMessage",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u516C\u544A\u7BA1\u7406",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.announcementManagement",options:{},css:{},defined:{pc:{},mobile:{}}},{type:"",key:"",label:"\u7CFB\u7EDF\u6587\u4EF6",icon:"gd-icon-xitong",transKey:"gd.pagecomponents.systemFile",options:{},css:{},defined:{pc:{},mobile:{}}}],seniorItems=[{type:"iframe",key:"",label:"Iframe",icon:"gd-icon-iframe",transKey:null,options:{linkUrl:"",heightMode:"fill",height:300},css:{},customCss:"",defined:{pc:{},mobile:{}}},{type:"customComponents",key:"",label:"\u81EA\u5B9A\u4E49\u7EC4\u4EF6",icon:"gd-icon-ai-code",transKey:"gd.advancedcomponents.customComponent",options:{emitFunction:"emitFunction",webPath:""},props:"record (Object);tableData (Object);id (Strng/Number);parameterData (Object)",css:{},customCss:"",webList:[],defined:{pc:{},mobile:{}}}],pluginItems=[{type:"customComponents",key:"",label:"\u81EA\u5B9A\u4E49\u7EC4\u4EF6",icon:"gd-icon-ai-code",transKey:"gd.advancedcomponents.customComponent",options:{emitFunction:"emitFunction",webPath:""},props:"record (Object);tableData (Object);parameterData (Object)",css:{},customCss:"",webList:[],defined:{pc:{},mobile:{}}},{type:"approval",key:"",label:"\u5BA1\u6279",icon:"gd-icon-jurassic_audit-something",transKey:"gd.advancedcomponents.approval",options:{hidden:!1,labelHidden:!1,refresh:!0,transKey:null,flexWidth:100,flexUnit:"%"},operationAttribute:!0,css:{heightL:400,heiType:"auto"},customCss:"",defined:{pc:{},mobile:{}}}],getComponentsTree$1=abilityItems.concat(basicsItems).concat(datasheetItems).concat(dialogItems).concat(layoutItems).concat(formItems).concat(pageItems).concat(seniorItems).concat(pluginItems),getType=r=>{switch(r){case"participants":return"select";case"double":return"inputNumber";case"currency":return"inputNumber";case"datepicker":return"datePicker";case"fk":return"select";case"about":return"select";case"image":return"uploadImg";case"file":return"uploadFile";case"user":return"select";default:return r}},collapseItem_vue_vue_type_style_index_0_scoped_d4c28f5b_lang="",_sfc_main$2i={name:"collapseItem",props:{list:{type:Array,default:[]},type:{type:[Number,String],default:1},disabled:{type:Boolean,default:!1},table:{type:Object,default:()=>({})},component:{type:String,default:""}},data(){return{}},computed:{getList(){return JSON.parse(JSON.stringify(this.list))}},components:{draggable},methods:{dragstart(r,t){this.$emit("generateKey",r,t)},handleStart(r,t){this.$emit("start",t[r.oldIndex].type)},handleEnd(r,t){this.$emit("end",t[r.oldIndex])}}};var _sfc_render$2i=function r(){var t=this,a=t._self._c;return a("draggable",t._b({staticClass:"designer-template-ul",attrs:{tag:"ul",value:t.getList,disabled:t.disabled},on:{start:function(s){return t.handleStart(s,t.list)},end:function(s){return t.handleEnd(s,t.list)}}},"draggable",{group:{name:"gd-draggable",pull:"clone",put:!1},sort:!1,animation:180,ghostClass:"moving"},!1),t._l(t.getList,function(s,o){return a("li",{key:o,staticClass:"designer-template-li line1",on:{dragstart:function(l){return t.dragstart(t.list,o)},click:function(l){return t.$emit("handleListPush",s)}}},[t.component===""?a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt(`${s.transKey}`,s.label),placement:"top","open-delay":150}},[a("el-button",{staticClass:"line1 designer-btn",staticStyle:{width:"100%"},attrs:{size:"mini"}},[a("i",{staticClass:"gd-icons",class:s.icon}),t._v(" "+t._s(t.$i18nt(`${s.transKey}`,s.label))+" ")])],1):t._e(),t.component==="field"?a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:t.$i18nt(`Dynamics.${s.transKey}`,s.label),placement:"top","open-delay":150}},[a("el-button",{staticClass:"line1 designer-btn",staticStyle:{width:"100%"},attrs:{size:"mini"}},[a("i",{staticClass:"gd-icons",class:s.icon}),t._v(" "+t._s(t.$i18nt(`Dynamics.${s.transKey}`,s.label))+" ")])],1):t._e()],1)}),0)},_sfc_staticRenderFns$2i=[],__component__$2i=normalizeComponent(_sfc_main$2i,_sfc_render$2i,_sfc_staticRenderFns$2i,!1,null,"d4c28f5b",null,null);const collapseItem=__component__$2i.exports,main_vue_vue_type_style_index_0_scoped_872f9cac_lang="",_sfc_main$2h={props:{table:{type:Object,default:()=>({})},usedComponent:{type:Array,default:()=>[]}},data(){return{activeNames:["layout","basics","form","senior"],basicsItems,layoutItems,formItems,pluginItems,loadData:[]}},computed:{fieldList(){const r=this.loadData.filter(t=>!this.usedComponent.includes(t.columnname));return this.getSelectedField(r)},layoutItemsList(){return this.layoutItems.filter(r=>!["form","treePanel"].includes(r.type))}},components:{collapseItem},methods:{init(){Promise.all([this.getLoadData()]).then(r=>{this.$emit("loadData",this.loadData)})},getLoadData(){return onlineFormGetCodeGenerateList({codeGenId:this.table.id}).then(r=>{let t=r.data.filter(a=>{const s=this.getType(a);return a.required=!1,a.title=a.columncomment,a.inputComponent=s.val,a.inputComponentList=s.data,a.effecttype=="about"&&a.columnname==(a.relations+"_AboutTable").toLowerCase()?!1:!(a.effecttype=="currency"&&a.columnname==(a.relations+"_Currency_Base").toLowerCase())});return this.loadData=t,r.data})},getSelectedField(r){let t=[];return r.forEach(a=>{const s=a.inputComponentList.filter(f=>f.type===a.inputComponent)[0],o=s.rules.filter((f,p)=>(p===0&&(f.required=a.required),!0)),l=s.type+"_"+uuid$1(8);let d=[];a.inputComponentList.forEach(f=>{d.push(f.type)});let u={type:a.inputComponent,key:l,label:a.columncomment,transKey:a.transkey,options:Object.assign({...s.options},{columnName:a.columnname,effectType:a.effecttype,disabledColumnName:!0,initialType:d,transKey:null}),rules:[...o]};a.dicttypecode&&Object.assign(u,{options:Object.assign({...u.options},{dictTypeCode:a.dicttypecode})}),a.fkentityname&&Object.assign(u,{options:Object.assign({...u.options},{fkEntityName:a.fkentityname,dictTypeCode:""})}),a.fkentityname&&["fk","user"].includes(a.effecttype)&&Object.assign(u,{options:Object.assign({...u.options},{viewdeId:"",formdeId:"",fieldFiltering:!0,searchWid:"90",searchUnit:"%"})}),["about"].includes(a.effecttype)&&Object.assign(u,{options:Object.assign({...u.options},{relations:a.relations,searchWid:"90",searchUnit:"%"})}),["participants"].includes(a.effecttype)&&Object.assign(u,{options:Object.assign({...u.options},{multiple:!0,multipleLimit:0,searchWid:"90",searchUnit:"%"})}),a.fieldformat&&Object.assign(u,{showTime:a.fieldformat!==2,options:Object.assign({...u.options},{format:String(a.fieldformat)})}),t.push(Object.assign({...s},u))}),t},getType(r){let t={val:"input",arr:["input","textarea"],data:[]};["input","textarea"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["input","textarea"]}):["radio"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["radio","select"]}):["switch"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["switch"]}):["inputnumber","currency","double"].includes(r.effecttype)?Object.assign(t,{val:"inputNumber",arr:["inputNumber"]}):["checkbox"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["checkbox","selectMultiple"]}):["select"].includes(r.effecttype)?Object.assign(t,{val:r.effecttype,arr:["radio","select"]}):["fk","user","participants","about"].includes(r.effecttype)?Object.assign(t,{val:"select",arr:["select"]}):["editor"].includes(r.effecttype)?Object.assign(t,{val:"editor",arr:["editor"]}):["file"].includes(r.effecttype)?Object.assign(t,{val:"uploadFile",arr:["uploadFile"]}):["image"].includes(r.effecttype)?Object.assign(t,{val:"uploadImg",arr:["uploadImg"]}):["datepicker"].includes(r.effecttype)&&Object.assign(t,{val:"datePicker",arr:["datePicker"]});const a=formItems.filter(o=>t.arr.includes(o.type));let s=JSON.parse(JSON.stringify(a));return s.forEach((o,l)=>{let d=JSON.parse(JSON.stringify(o.options));["currency","double"].includes(r.effecttype)&&Object.assign(d,{precision:r.filedsize,currencyType:"symbol"}),r.effecttype==="currency"&&Object.assign(d,{currency:"0",convertField:"0",currencyType:"symbol"}),s[l].options={...d}}),Object.assign(t,{data:s})},handleEnd(r){this.$emit("end",r)},handleStart(r){this.$emit("start",r)},handleListPush(r){this.$emit("handleListPush",r)},generateKey(r,t){this.$emit("generateKey",r,t)}},created(){this.init()}};var _sfc_render$2h=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"designer-template"},[a("el-collapse",{model:{value:t.activeNames,callback:function(s){t.activeNames=s},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.layoutContainerAssembly","\u5E03\u5C40\u5BB9\u5668\u7EC4\u4EF6"),name:"layout"}},[a("collapseItem",{attrs:{list:t.layoutItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.baseComponent","\u57FA\u7840\u7EC4\u4EF6"),name:"basics"}},[a("collapseItem",{attrs:{list:t.basicsItems},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.fieldComponent","\u5B57\u6BB5\u7EC4\u4EF6"),name:"form"}},[a("collapseItem",{attrs:{list:t.fieldList,component:"field"},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.componentsTree.plugIn","\u63D2\u4EF6"),name:"senior"}},[a("collapseItem",{attrs:{list:t.pluginItems},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1)],1)],1)},_sfc_staticRenderFns$2h=[],__component__$2h=normalizeComponent(_sfc_main$2h,_sfc_render$2h,_sfc_staticRenderFns$2h,!1,null,"872f9cac",null,null);const componentsTree$1=__component__$2h.exports,main_vue_vue_type_style_index_0_scoped_0cd3b3c8_lang="",_sfc_main$2g={props:{table:{type:Object,default:()=>({})},usedComponent:{type:Array,default:()=>[]}},data(){return{activeNames:["view","form"],formData:[],viewData:[]}},components:{collapseItem},computed:{viewItemsList(){return this.viewData.filter(r=>!this.usedComponent.includes(r.componentItem))},formItemsList(){return this.formData.filter(r=>!this.usedComponent.includes(r.formId))},...mapGetters(["tableLists"])},methods:{init(){Promise.all([this.getCodeGenerateForm(),this.getCodeGenerateView()]).then(r=>{this.$emit("init",{viewData:this.viewData,formData:this.formData})})},getCodeGenerateForm(){return codeGenerateForm({tableId:this.table.id}).then(r=>{if(r.code===200){let t=[];r.data.forEach(a=>{const s=this.tableLists.filter(d=>d.tablename===a.syscodegen.tablename)[0],o=this.$i18nt(`Dynamics.${a.transkey}`,a.displayname),l={type:"displayform",name:`${a.syscodegen.tablename}/${a.syscodegenconfig.columnname}/${o}`,label:`${a.syscodegen.tablename}/${a.syscodegenconfig.columnname}/${o}`,transKey:null,icon:"gd-icon-dingbudaohang",formId:a.syscodegenconfig.columnname+","+a.id,key:"",operationAttribute:!0,options:{hidden:!1,relevanceColumnName:a.syscodegenconfig.columnname,table:s},ntransKey:a.transkey?a.transkey:null,nlabel:o};t.push(l)}),this.formData=t}return r.data})},getCodeGenerateView(){return codeGenerateView({tableId:this.table.id}).then(r=>{if(r.code===200){let t=[];r.data.forEach(a=>{const s=this.$i18nt(`Dynamics.${a.transkey}`,a.sysview.name),o=this.tableLists.filter(d=>d.tablename===a.contacttable.tablename)[0],l={type:"viewtable",loadData:[],delData:[],sourceData:[],icon:"gd-icon-biaodanzujian-biaoge",key:"",label:`${a.contacttable.tablename}/${a.columnname}/${s}`,options:{hidden:!1,foreign:a.columnname,table:o,viewdeId:a.sysview.id,formdeId:"",saved:!0,refreshHost:!0,refreshMode:1,refreshFields:[]},operationAttribute:!0,componentItem:a.contacttable.tablename.replace("_","")+a.sysview.viewname,componentName:a.contacttable.tablename+a.columnname,fkEntityName:a.contacttable.tablename,sourceEntityName:a.fkentityname,ntransKey:a.sysview.transkey?a.sysview.transkey:null,transKey:null};t.push(l)}),this.viewData=t}return r.data})},handleEnd(r){this.$emit("end",r)},handleStart(r){this.$emit("start",r)},handleListPush(r){this.$emit("handleListPush",r)},generateKey(r,t){this.$emit("generateKey",r,t)}},created(){this.init()}};var _sfc_render$2g=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"designer-template"},[a("el-collapse",{model:{value:t.activeNames,callback:function(s){t.activeNames=s},expression:"activeNames"}},[a("el-collapse-item",{attrs:{title:t.$i18nt("gd.relevanceTree.associatedView","\u5173\u8054\u89C6\u56FE"),name:"view"}},[a("collapseItem",{attrs:{list:t.viewItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1),a("el-collapse-item",{attrs:{title:t.$i18nt("gd.relevanceTree.associationForm","\u5173\u8054\u8868\u5355"),name:"form"}},[a("collapseItem",{attrs:{list:t.formItemsList},on:{generateKey:t.generateKey,handleListPush:t.handleListPush,start:t.handleStart,end:t.handleEnd}})],1)],1)],1)},_sfc_staticRenderFns$2g=[],__component__$2g=normalizeComponent(_sfc_main$2g,_sfc_render$2g,_sfc_staticRenderFns$2g,!1,null,"0cd3b3c8",null,null);const relevanceTree=__component__$2g.exports,mixins$f={methods:{async traverse(r){let t=[];const a=(s,o)=>(s=s.filter((l,d)=>{t.push(Object.assign({...l},{pid:o})),["grid","tabs","collapse"].includes(l.type)?l.columns.forEach(u=>{t.push(Object.assign({...u},{pid:l.key})),a(u.list,u.key)}):["card","drawer","dialog","batch","form","flexLayout","containerPanel"].includes(l.type)&&a(l.list,l.key)}),s);return await a(r,0),t},generatorDynamicRouter(r){return new Promise((t,a)=>{const s=r,o=[];this.listToTree(s,o,0),t(o)}).catch(t=>Promise.reject(t))},listToTree(r,t,a){r&&r.forEach(s=>{if(s.pid==a){const o={...s,children:[]};this.listToTree(r,o.children,s.key),o.children.length<=0&&delete o.children,t.push(o)}})},findParent(r,t,a){for(let s of r)if(s.key===t.pid||s.children&&s.children.length>0&&this.findParent(s.children,t,a))return a.unshift(s),!0;return!1},async traverseKey(r,t){let a={};const s=(o,l)=>(o=o.filter((d,u)=>{d.key===t.key&&(a={...d}),d.children&&d.children.length>0&&s(d.children)}),o);return await s(r),a}}},main_vue_vue_type_style_index_0_scoped_7ac06061_lang="",_sfc_main$2f={props:{data:{type:Object,required:!0}},mixins:[mixins$f],data(){return{dialogTree:[],pageTree:[],defaultProps:{children:"children",label:"key",value:"key"},defaultExpandedKeys:"",state:!1}},watch:{data:{handler(r){this.$nextTick(()=>{setTimeout(()=>{this.state||this.init(r)},0)})},deep:!0,immediate:!0}},methods:{handleNodeClick(r,t){let a=[];this.findParent(this[t],r,a),this.$emit("handleSelectItem",r,a)},async init(r){this.state=!0,this.ruleFormFiter(r),r.list.filter(o=>["dialog","drawer"].includes(o.type)),r.list.filter(o=>!["dialog","drawer"].includes(o.type));let t=[],a=[],s=[];r.list.forEach(async o=>{let l=await this.traverse(JSON.parse(JSON.stringify([o]))),d=this.generatorDynamicRouter(l).then(u=>(u.length>0&&["dialog","drawer"].includes(o.type)?t.push(u[0]):u.length>0&&!["dialog","drawer"].includes(o.type)&&a.push(u[0]),u));s.push(d)}),Promise.all(s).then(o=>{this.dialogTree=t,this.pageTree=a}),this.$emit("outlineTree",{dialogTree:this.dialogTree,pageTree:this.pageTree})},async ruleFormFiter(r){let t=[],a=!1,s=[],o=[];const l=(d,u)=>(d=d.filter((f,p)=>{["grid","tabs","collapse"].includes(f.type)?f.columns.forEach(h=>{l(h.list,u)}):["card","drawer","dialog","batch","form","flexLayout","containerPanel"].includes(f.type)&&(f.type==="form"&&t.push(f),l(f.list,u)),f.type==="tabs"&&(o=f.columns.filter((h,v)=>h.key==f.options.activeKey),f.options.activeKey=o.length==0?f.columns[0].key:f.options.activeKey),a&&["input","textarea","editor","inputNumber","switch","radio","checkbox","select","uploadImg","uploadFile","datePicker","timePicker","selectMultiple"].includes(f.type)&&s[u].children.push({options:f.options,type:f.type,key:f.key})}),d);await l(r.list,0),a=!0,t.forEach((d,u)=>{s.push({item:d,children:[]}),l(d.list,u);let f=this.getRuleFormData(s[u]);const p=d.options.tableName;t[u].ruleForm=p===""?f.data:Object.assign(f.data,{tableName:p}),t[u].ruleFormKey=p===""?[]:f.field}),this.$nextTick(()=>{setTimeout(()=>{this.state=!1},10)})},getRuleFormData(r){let t=new Map,a=[];return r.children.forEach(s=>{s.options.initialType&&s.options.initialType.length>0&&a.push({key:s.key,columnName:s.options.columnName}),["inputNumber","select"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:void 0):["switch"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:0):["checkbox","selectMultiple"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:[]):["select"].includes(s.type)?t.set(s.options.columnName,s.options.defaultValue!==void 0?s.options.defaultValue:s.options.multiple?[]:void 0):t.set(s.options.columnName,(s.options.defaultValue!==void 0,s.options.defaultValue))}),{data:Object.fromEntries(t),field:a}}}};var _sfc_render$2f=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"outline-tree"},[t.dialogTree.length>0?a("div",{staticClass:"dialog-tree"},[a("div",{staticClass:"name"},[t._v(t._s(t.$i18nt("gd.outlineTree.modalBox","\u6A21\u6001\u6846")))]),a("div",{staticClass:"list"},[a("el-tree",{ref:"dialogTree",attrs:{data:t.dialogTree,props:t.defaultProps,"node-key":"key","current-node-key":t.defaultExpandedKeys,"default-expand-all":"","expand-on-click-node":!1},on:{"node-click":function(s){return t.handleNodeClick(s,"dialogTree")}},scopedSlots:t._u([{key:"default",fn:function({node:s,data:o}){return a("span",{staticClass:"custom-tree-node",attrs:{title:o.key}},[a("span",{staticClass:"gd-icons",class:o.icon}),a("span",{staticClass:"line1 titles"},[t._v(" "+t._s(o.key)+" ")])])}}],null,!1,3331784856)})],1)]):t._e(),t.dialogTree.length>0?a("el-divider"):t._e(),a("div",{staticClass:"page-tree"},[a("div",{staticClass:"name"},[t._v(t._s(t.$i18nt("gd.outlineTree.mainView","\u4E3B\u89C6\u56FE")))]),a("div",{staticClass:"list"},[a("el-tree",{ref:"tree",attrs:{data:t.pageTree,props:t.defaultProps,"node-key":"key","current-node-key":t.defaultExpandedKeys,"default-expand-all":"","expand-on-click-node":!1},on:{"node-click":function(s){return t.handleNodeClick(s,"pageTree")}},scopedSlots:t._u([{key:"default",fn:function({node:s,data:o}){return a("span",{staticClass:"custom-tree-node",attrs:{title:o.key}},[a("span",{staticClass:"gd-icons",class:o.icon}),a("span",{staticClass:"line1 titles"},[t._v(" "+t._s(o.key)+" ")])])}}])})],1)])],1)},_sfc_staticRenderFns$2f=[],__component__$2f=normalizeComponent(_sfc_main$2f,_sfc_render$2f,_sfc_staticRenderFns$2f,!1,null,"7ac06061",null,null);const outlineTree=__component__$2f.exports,main_vue_vue_type_style_index_0_scoped_a94cc98e_lang="",_sfc_main$2e={data(){return{}},methods:{}};var _sfc_render$2e=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"empty-control"},[a("i",{staticClass:"el-icon-receiving"}),a("div",{staticClass:"empty-title"},[t._v(t._s(t.$i18nt("gd.form.controlSelectedNo","\u672A\u9009\u62E9\u63A7\u4EF6")))])])},_sfc_staticRenderFns$2e=[],__component__$2e=normalizeComponent(_sfc_main$2e,_sfc_render$2e,_sfc_staticRenderFns$2e,!1,null,"a94cc98e",null,null);const emptyControl=__component__$2e.exports,sideHeader_vue_vue_type_style_index_0_scoped_38bf144c_lang="",_sfc_main$2d={props:{navParameters:{type:Object,default:()=>({})},collapsed:{type:Boolean,default:!0}},data(){return{photoUrl:""}},computed:{menus(){return this.navParameters.menus},getUserImg(){let r="/"+this.userInfo.filePath+"/"+this.userInfo.fileObjectName;return`${this.$getImageUrl(r)}`},...mapGetters(["userInfo"])},methods:{}};var _sfc_render$2d=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"side-header"},[a("div",{staticClass:"triggers",on:{click:function(s){return t.$emit("toggle")}}},[a("i",{staticClass:"gd-icons",class:t.collapsed?"gd-icon-shousuo":"gd-icon-shousuo1"})]),a("div",{staticClass:"multi"}),a("div",{staticClass:"user-wrapper"},[t._l(t.menus,function(s){return[s.statu?[s.key==="user"?a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:t.userInfo.nickName,placement:"bottom","open-delay":150}},[a("span",{staticClass:"user-dropdown-menu user-dropdown-user"},[t.userInfo.avatar?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.userInfo.avatar,expression:"userInfo.avatar"}],staticClass:"user-img"}):t.userInfo.filePath&&t.userInfo.photoUrl==""?a("img",{staticClass:"user-img",attrs:{src:t.getUserImg}}):a("img",{staticClass:"user-img",attrs:{src:"data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACMYGh4aFiMeHB4nJSMpNFc4NDAwNGpMUD9Xfm+EgnxveneLnMipi5S9lnd6ru2wvc7V4OLgh6f1//PZ/8jb4Nf/2wBDASUnJzQuNGY4OGbXj3qP19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f/wgARCADhAOEDAREAAhEBAxEB/8QAGgABAAIDAQAAAAAAAAAAAAAAAAECAwQFBv/EABgBAQEBAQEAAAAAAAAAAAAAAAABAgME/9oADAMBAAIQAxAAAADuAAAAGFOfLzqwWY6qZozG9L0kwS6pat6NmgAAAAANc5xxtS+s7abkZKRQ07daMc1FzlsrnW5nfZTZAAAAEDCed019Y2qyICkAKKJiMa7XPffjLQAAAAGI81ZTeboAAAAAIiud+ll2AAAAAY04Mul0xksKAAAACAVlyZ36KM6FAAAHOPP6mTWQAACGiAAggrnXazesoAAAHl619YhF0EEItRNiIrPy1PWYEhpMlyZ36iMoAABgPLVGs0JRV5utxKWatcxGNdrh37HHXM640/RxkxrElc69Tm7lAAAco8/qXuZFSl1mMdzM3EZ8denzbeNXXDM8zs1evHXsiWq9vN6xlABhOGuvm2l1OmZSpbNmsmNbEbeW1nexcyTLERbjmtdjndpqdc5ebLE6noLnKoHINFvq8LzuitnQ46ulrcqWiVXM2oAjNiqy45a51p9OWr1dflrmdJfpy7wIjzR1PL2tOnP688uZu51a29lmZqdSIkUERLEVMbUZusaffPT4bjfPi+nPqZiwjy/S9Xy9cvLeDfPHW3z6W0vc2ZmrJGgADKlsZUm4Ndmu5s8t03OP7uPp+UsI89bHLp0+W76563Rn8/W212ZS1k2KACoyrLEtJqsuvvlsaJrR1nW649KgGE8zrW3x1t8tLdjGrVe5lJsknUgkgQirVZazVZnBqVzdX040ek9DjnvKoDEcY1KpnXc83TJN21myTZKFWKSogiWCk1S54vrwzjOdpNhQAAB56Vz6dPFul5ZRqTDQIZsaRLWWtaMxp+jHpLLAAAACMJ5Xeu35t7UtwIsjUKEkLWWq67PJ9c7eOW9aAAAAAOccR17PKbMt8hNiozpYgldzWzeP2nTY69hQAAAAMRxDQ1NvPTf8zY6by3E5StiIpqYsXBtodZqXnty9uNigAAABzo4em3rO6lbHO5eXVmznVtZhqNSucqp6ecXMtakaeb2ZemSAAAcs49dfWbJKwY5N5Wbgm+ZO1G+q8u30xjNPS6FRCcua3c3tEgAGhHE07lzFWUCEiXJHK5erWz6kZ+nk7XThjuMdl2gKpQ5Wb05eoADEeaO5ZkokgKTDUxj49ebPWs29eXc6corJEgEFbbZeal9SZgDlmid+yKAASRak0cejkcvYmup08vR6+Qk2gIVUmTlTUHbAPNnUTeFVJi1QSCmXKz6NDPrZm7vj2evjgkAggkkwy+fPUAHlj0EbNQYNS8ZJZBAjk8/TpZ61us14d7p5psKBSzFWzlC4TzR6osDyZBIrGWS0oAkxzdViLVkuCACtUMsASepLA8kagAAABMgi0ASsIABJAMx7Asf/xAA/EAACAgADBQQIAwcBCQAAAAABAgADBBJRBREhMXEQEzNSFSAwQlNUYbFzgZMyNHKCkaLBQWJjobLC0dLh8P/aAAgBAQABPwD2Nt1VSFrXRI+2qU8NI+18U8N97877X6u0KWuSWR2+p3mCq5eIRhEtxKcUvdOjNE2riklG2/jJKr6bULpajpLdqYamenE+BE21R8KUYyjE+E8HtXcIC/8A2AAGpMv2wnhUfqR7brnLu7u8pwzvqx0WUYHzhE+ryrBUrzufokTB0e+H/UMOEwnkf9Qx8FhmBKXOn0eXYHyOjy7CvVqn0aEW0lgAy6lSQCJVQxALMVBiLUASVDakkmXFOKqi8/8AJ4CYLZlt5FruUT++U0lOoULnfizbtT7S25KUd7XCosxmOuxX4cSk8Hb6ELEROTgBeG5ViXIEyABANABBe/ngvccnnftBe/nnfvxGed+fPDeHQo4DahgDHqRszJuU+U8RHrKkgAgiWs6Jk5F+B6CbHoF7u7xEVECqAFAAA5AAQezttSqp3cgIgJMxeKfFX6IhIRJUiVKHIDOfzCxGCg8iYLW4zvWnetO9M70zvTO9M70zvTO9aFwwIMNS2oRydRvDf4Mw174Vw46OvnWYa+q+kXJB7IlUBJIAA3n6ATamJN7mlPDT+55UgRc7cWI4DQQNM0zTMRM0zTNM0zQNM0zTNMxIMYB0JAAKjeDqNDNnYs4W/VHIDxHR+KaBhoQeIPstpX9xhCic7d6JKlLuXYkgHeTqYGmaZpmmaZpmmaZpmmYiZpmmY7jM03mWoFIZQADwI+s2LeXoNUHsdq3m/FP5E4JAAOpAJP1MzGBpmmaZpmgYwMTAWMCkAkkACFhxAlNTu7onuAlzyUAQIVH/AMCCDxBB0hVlmYwMYQCG0I3CYG40X1W+4GAaVsLEV+asAw6EewvtFNNr+RGaO5uzOeLn7kkmBgIGgLcYCxi5jEVzvG4xKnPJTEped0igkusNqLvVFJPLQQ2s32AlODe8h34JKaURAFAVQBNo4Z0JvT+eVWhRkcZlP5kQquUurg/cdRCxG8GZowKknoRNm299hEf2G1cVQKHpR0LvKuDE6CI4XmoMS1BzQRLUHNIltY5pBcg5IJ36AHKkN/lQQ3P5so0G4QM7nmXcncAN5JMqwV9vNCg1eUYCqn+OJSF0UAbgoAAAhUAR0VtG56EEHXfL8A/F6erpGDp/U6ggjmCDxhtYghpm5xyCBNi3olL0PEIcAqQQQCCOII9UuEzM7gKAToABzJmN2obnNVHhyjAX3jP4aed5i8KKCgDly8BJ1O6AmAsSQAT0ERHbgqMToFJgot+E7dFMTB3fBeVbKvfm6JE2TSniO7xMMieHSiRKf9XMVVUcFhEIhHOEc5fhqbv/ADl+AuTwyH/541T1c0mEoF7lHcoApeX7Luq8Ii1Jg9o3YVwjkukR0sAKcmUMNCD6m2bzVSKUmzaA7m5/cjutXBNB0UDgABNqOXoSbOqR0cunNwkSmjyL+mIlNPwkHRBEoReCBF6Io+wiVquigaAAREEStBEVVBIWDtIhEI5wjnGHOMCQZtRA9PR5snxbn0SVXMxAebRwyeOn882HiudD+ptMl8c/UJKECUIg8gmUsSTNpITV/A82V4HV4kQRIgiwCDeQYB6hhHOEc4RwMYbgZjPAtTRJshPFeBSI6Bg6efep6EESomq9D5HH9A0UggHUDtxgKY5/xJR4SdE/4CBCZi0L0WpomebL8Do8QRIkQxYvr6wjnGHZi/At/DmzailQfq8yHjCwTe/JEBJ6DeTF3vikOr/d4vAAaADt2zQUcXTZ14dDU78U4pKLVICOcpndo5ZSQU+4IIIlNRFr/ViU6NKzEiCJF7BugHaT2HsYRt4BmJQuAvxWRX+iAkxERE5pwQIOgEe1EDIhDMZjLUSop782PQbsUH8kHbiaUxVL0vLabsNaQ4KSjH+5b+pExdPnlV6WuERy8qIIiRDEMQwdikATeO3WEjsaMQEMuvqTg/B/zIAEOLo88fHIgKVAu3neIll9uRAWd5gcKlFATm7gF/VupqvqKWoHSX7E+A89FYz4Eq31OpcFSjgPEdH/AJ0DA9YkSIQIhinnBFPMTeOMJhMJ5wnn2GO6hNAoJOgAl7l3fqEibKxnwZVsS5/EeUYSihN1Sex2zQUu76YC7Ohqf3OKSlgwGo3CLEMWIeYMB5wHcDN/Ob4TCefa7BVLGY+4VVFOTvNk0d9f/BueKABuAAA4D2d9CXUvU/J4UfDXFOTo0w1yOgcaAPK3VlDLEBgg5nsU+qRzjEKCxltyIGcuAqD8yeO4CO5xL5+blwqJMDhBhaAnN34vB7TaWBGKTOnipKHNDlvyZJReloDp/OsqdHAKEGBWijmIAdxigzLCCB2ZSN8dlVCztul16IC/uJL73v8AoicESbJwRpAueD2lt1VCF7XVEl+2H5UREvxLu+5387Smm2khwxR5ReLk8jgyq8EAOAYjo4JRwYq74FmWERmVeLuoj3oN6oATL7wgLsS5Xkkam23/AKPLHpuoOfyEEOso2vcniyjFUXpvqeD2WN2jVhQUTxY9t2NJLl3f+1BKMCiAO5Dv/bERPJ9AFAAA6CNSCjCYZEFr1OgIfinURKHTfkcnRWiixd4cMv1BJgudPNuEN7oAXIXQt/7IiXu/BH+x+xhvfkS0Jd+Khyfz+5hodwQ7lRonA7vqZiakREpRAC5BfUgSmnKnQCFF/wAEEAgj6g8JdgUuBKAI8IvodSHdNHBIBAmB2ol+6q/xYpBG8EEH2G09oigGirxZRhr8W7vyTm7ylKkDhE0XN7zfUmCoTup3QIMdGQh05owPUA/YiVBLUDoQVcAid0NBMS6VJzQKgPUnQCPez9ASFUEgAQWupzr0ZSSQw0ModLgHq0AdYKoQihmcgBQSToBON7u5BKgkINADEqAEFU7obiJbSltIR0DqD+YB0Mvwr0b7aiXT+5JsraXKi6Ag8QQQfW2lihRR/vX4JMJRbi7nLlynN3mRAgQIERAAiymoKjasSf6Tup3U7qPSrIwIBlDlS9T/AFKH7iO6U9ACdCToNTMYbntCP1RYqsJlMwbul/8AjVBKHW1A46HUGYn4SftvwY6LKKAqTuucWqd1HqBqcaAEfkYiL9w+hB4EETaODehxanhvNj4vv6TQ/iJB6j2rUHL8lUsdABL77cbeXT33CIkw1KUIE6F287mPXzlVYCBYK53fOd2IawQQRHoboVIII1BgD+/yUAZfuT9TL0D1M7FAV4o0BpKe+rDoR9xCaQrEZzoCAJgkAqdw/wBH1QRMwcuoJB4Mv+hE7p3td34kn8gIlQUTuxFrE7sRqwUYagiU1ZZbSltTpzR0MItwWK/26nlDpbUtqEFHUepti/uKPxZsSjPeboVLb4UB3wIACAIFmQTIJ3cNSneCIiKu8ATafhInnft2QfGSGpTwKxKlEyCZeYAgQTKNxhTerDUSuoCVLNt0cr5sK/nT6m3HL4sJ5EmyUFOBTVwXhXnMu8mcAWWKu8GZZkmWZYFmOfw0hUjNNxE2R4zp50mSBTMpgWBZlIBJhyghSRFUCKsxNQuotq86TZLmnGpo5KeptEm7HXfiBJhECUIuip2BY9wS50J0lNqssUAjtCwLMcCb0TyJHpI9yPUwmA/ek0eBQYFgWBRCAAY9qqDDepKIG4lwOwKBHrWwMr6EHQgjcZ4OP/Dt+zxeKg6gdu0f32/8SekcZ8y89J4z5l56TxnzLw4zEu5c3OWgx2L+O89I4z5l56TxnzLz0njPmXnpPGfMvPSOK+K8N9trlnd3nf3ed5393naJbchDK7jRp6TxfzLz0ljPmXnpPGfMvPSeM+ZeekcZ8y8OOxXzLwYzE/HeekcZ8y89J4z5l56RxnzLyly+LV3991Y9SwJifsL0HbtH9+v/ABPZCDkfbUeKn8aRP2F6Ds//xAAoEQEAAwACAQUAAgICAwAAAAABAAIRITEDECAwQVESYUBxMlCBkaH/2gAIAQIBAT8A+I2AwFmP5MZj3kyYTM9DZn+CVWFQ5ZodEXOiawWFkm72TCfxZWs/iEU+U9A2VrAwmb3MyZAmTJkz0yOh6HyhsqTo+RNiZD5AlTOfQfQfUfcMHIm8x+SpD/AT4wlT02b8GcaTT7cgmaOzI+mTPiIEzIMyA/kKv5Ciwr+z+IG7GwcBN+3qXuUEHWNrWVWeG+ALz9StsMTSYJxMmxh8NYMLEEYWJ/KpP5kb7GzF/WPloaDrG93QcGFVds8xrER2rzKXTC7x+zhNHj1z4Mj5K14GUtu/1NDuGHG9zQ6Zods/nUOyN6HbG4dGx8tnSsbXt2wovNoAcBMmRImSl70cHiU8o4JjBOhGXs1NGUvVce4fp17vM4IPP3G+Cjqzw7dR+iea6ICnEpe73Z4/uF7va/8AuFrJysBe1la72ytTrIAHUJrMM37mRiRiaORMOZ4VL5vDPMoVx7ZTy689zxX1yz317D7nQsvdWyvcBVZ4ULp+k8qt5TjSVlSVJWEIPrkTNjEjEzQnicuf7nldA/OYD0cMpdEV50jzUf09SHT/AGMuJew/sK/ZPEZctPNzd/MlWVJSErD3Poxn7PEbc/3PM7fvQjT7Ic3Kn7EQqPYHqenloi3Dh7lLmYyoCIy70jrgMpKSkrCEPcvcWMXsniQdXqIWVXuKVMHWeEb31ODmdce0TETRl/D2jx+PcfDc0Bj4r0NRyUVJVlYSrKsJs302b6LGLgyniveih1DxX6Rni8K83QP/ALMEAMCapD3H+5/zE/TiA0ujxjByHUIdQhN9Ni8TYxZ+r1HVA+2f8AExeX134Rnloj/MOHuUSxr9SvfHUIQYex9GJFweeJ4qN76nB8mzI4iJoxpel0ThlEeSBAhD2PpkUCA3QDtmAAf+X9fnSt6I9/TGl/EonH7+yiJw8yo9dQEIP9euTNmJ0RQFWA3QBRhQob2vbBdfnCKIib/f2S/ivRU5IXwxMYIgjCv2OzJkTO5oHKRsGhzKeK93XQg0pTg1/fuY5GBnxkDZUgZDjqJn1oy5S+pgxpeitXSBenQ5Bv8AYwXoGY3MBNlKX7spKFA1RZQA6wnXoh2T9+MgZ7AM/Zv9TdMdimKm/wC4orwZBB6JRM0Ah1AhNh658ISpnrs2HPU+oG8EupwvE5YcymvB19wMlT2j8RxBm+w9BAcjUaqwReYgG/coGKdzJWbN9T4z3C5H9IuAbkPQcE30F/wD3jwzy84T9mcSvCnof4BAme0e471+EzmBjKaOQ9oQMI/Ee/hMYlV1n8KHRMrADo59pBm/9J//xAAlEQEAAwACAQUAAwEBAQAAAAABAAIRITEQAyAwQVESQGGRBEL/2gAIAQMBAT8A+E1mHjQ+4WH7mkEeNhnjYTD+koRs9E5e2FR+5h+zKzD9hpCyQsPTG0/kvErua/0G30eAyb46mzfIZ4p8/wBRd8nxVUYInzLvEPjyZM4lHIfIuHwHuJmQlHRPkYHsyBM8aTYQHHDYjz/krY68BAyHx4nb4EJpOD7I2Dtjc/Y3Dp2fzXiowovbCuQG2KYQAACXrjocRoPNe5WycJBEgZDr4nqYsaPOMa3+mNL/ALGl/tYUXtYel+sKUOe5UDgIUX/CFQ5ecmgYdQdgmY9RDFP+TjkTmFc5ICQ+AB7hRZYzDqFeVOZjy5zCr+Qqv1ClnohSz9QovcKhysClY2DipNXthCEGNBHTmNLGo7ETsSUorGqfUxHH3FFyz1Cmn4S9AoJKAipsaHOBGh+EwPqKHARUjZir2+SEIQlchEGih1KAqMtQBQl6YKewlPx/ZQyoQQMJc2m/k9MysfuMYsfcQhKysrLm0ZQzWbpEEePqJyn4+SVed/2UT+A/5NyX5ElOK5GMYxj7TwSsIS/FGBw/6wtHAVn/AN2T99g4ZKImPcvROTmK9JKCD+bssRjGPjPJAgQIQhL1UQgoADKFnFMIpQQeUnevtqo6OMpcALQaJqkL0XB5liMYkfYECBCBCEr3kUogvcWhzpFAQHY3VVe50/BRy47B2ojGJGZ7AgQgQIQhgK9RdV3Q6hCZ8JKuiLySxi/k/Y+M8hAhCEICuEUoYds73fkJRRElLlzvmNUUY+8hCVN4IpUVjdVf+Q+UlFHR4+5VLmjzLVa7s0688TYJBg73AVwNiAKuMvdVDqHEPm6JS6cjx+Sl63MY0HmrLFq7pF/SDNgwF6GFF5s5G9aCHc1VVw/PqCfPrFhxB3keZT+dOHklLl+Exg0d1IFU2rsSgawKA6nEb0BDGXbu5wRW3K7BczwOcQd+TYedDolV7SCGocsKL+8/k9GgAKq97L+iXohw/wCS9Gl0V46/JmszDvfGeauQfi33VdMZwE9GlGmgL9wA6i71PVpRoqG/UU3CJhA9mQh8WTJnjJXiIso3L4Gj2RL7p1Kl9162XVuUxA6mOzZkyZMmeD5jwOcT0gbqm4QdDJrPXOmDM94f0Psn/m6s/wCpBwIPb/k9c2g+D3nxnu9DCi/ayt+O5W5i7PWy1Lfpkwh7j5Az2nGn7KNqVSjhD1bhmw9a/wCy972qi6TYf3T5P//Z"}})])]):a("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],attrs:{content:s.name,placement:"bottom","open-delay":150}},[a("span",{staticClass:"user-dropdown-menu user-dropdown-user"},[s.key==="universalImport"?a("i",{staticClass:"gd-icons gd-icon-mulu"}):s.key==="advancedFind"?a("i",{staticClass:"gd-icons el-icon-search"}):s.key==="theme"?a("i",{staticClass:"gd-icons gd-icon-xitongshezhi"}):s.key==="fullScreen"?a("i",{staticClass:"gd-icons gd-icon-fangda"}):t._e()])])]:t._e()]})],2)])},_sfc_staticRenderFns$2d=[],__component__$2d=normalizeComponent(_sfc_main$2d,_sfc_render$2d,_sfc_staticRenderFns$2d,!1,null,"38bf144c",null,null);const sideHeader=__component__$2d.exports,sideMenus_vue_vue_type_style_index_0_scoped_8804c2be_lang="",_sfc_main$2c={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:!0}},data(){return{}},computed:{options(){return this.navParameters.logo||{}},list(){return this.treeData[0]?this.treeData[0].children:[]},tstyle(){return`font-size:${this.options.titleFont}px`},ystyle(){return`font-size:${this.options.subtitleFont}px`}},methods:{}};var _sfc_render$2c=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"side-menus"},[t.navParameters.logoOpen?[a("div",{directives:[{name:"show",rawName:"v-show",value:t.options.mode==="imageWithText",expression:"options.mode === 'imageWithText'"}],staticClass:"logo"},[a("div",{staticClass:"picture"},[t.options.smallPicture?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.smallPicture,expression:"options.smallPicture"}],staticStyle:{width:"42px",height:"42px"},attrs:{"data-url":t.options.smallPicture}}):t._e()]),t.collapsed?a("div",{staticClass:"company"},[a("div",{staticClass:"title line1",style:t.tstyle},[t._v(t._s(t.options.title))]),a("div",{staticClass:"ytitle line1",style:t.ystyle},[t._v(t._s(t.options.subtitle))])]):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.options.mode!=="imageWithText",expression:"options.mode !== 'imageWithText'"}],staticClass:"logo"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsed,expression:"!collapsed"}],staticClass:"picture"},[t.options.smallPicture?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.smallPicture,expression:"options.smallPicture"}],staticStyle:{width:"42px",height:"42px"},attrs:{"data-url":t.options.smallPicture}}):t._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.collapsed,expression:"collapsed"}],staticClass:"bpicture"},[t.options.bigPicture?a("img",{directives:[{name:"lazyImg",rawName:"v-lazyImg",value:t.options.bigPicture,expression:"options.bigPicture"}],staticStyle:{width:"100%",height:"44px"},attrs:{"data-url":t.options.bigPicture}}):t._e()])])]:t._e(),a("div",{staticClass:"list"},t._l(t.list,function(s,o){return a("div",{key:o,staticClass:"item",class:t.collapsed?"":"item-open"},[a("i",{staticClass:"gd-icons",class:s.icon}),t.collapsed?a("div",{staticClass:"name"},[t._v(t._s(s.name))]):t._e()])}),0)],2)},_sfc_staticRenderFns$2c=[],__component__$2c=normalizeComponent(_sfc_main$2c,_sfc_render$2c,_sfc_staticRenderFns$2c,!1,null,"8804c2be",null,null);const sideMenus=__component__$2c.exports,sideNav_vue_vue_type_style_index_0_scoped_c3035179_lang="",_sfc_main$2b={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]}},data(){return{collapsed:!0}},computed:{style(){return this.navParameters.isNavigation===0?"":this.collapsed?"padding-left: 172px;":"padding-left: 68px;"},stylew(){return this.collapsed?"width: 172px;":"width: 68px;"}},components:{sideHeader,sideMenus},methods:{toggle(){this.collapsed=!this.collapsed}}};var _sfc_render$2b=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"gd-layout-nav",style:t.style},[t.navParameters.isNavigation===1?a("div",{staticClass:"nav-menu",style:t.stylew},[a("sideMenus",{attrs:{treeData:t.treeData,navParameters:t.navParameters,collapsed:t.collapsed}})],1):t._e(),a("div",{staticClass:"nav-main"},[t.navParameters.isNavigation===1?a("div",{staticClass:"nav-head"},[a("sideHeader",{attrs:{navParameters:t.navParameters,collapsed:t.collapsed},on:{toggle:t.toggle}})],1):t._e(),a("div",{staticClass:"nav-content",attrs:{id:"nav-content"}},[a("div",{staticClass:"nav-content-solt"},[t._t("default")],2)])])])},_sfc_staticRenderFns$2b=[],__component__$2b=normalizeComponent(_sfc_main$2b,_sfc_render$2b,_sfc_staticRenderFns$2b,!1,null,"c3035179",null,null);const sideNav=__component__$2b.exports,topNav_vue_vue_type_style_index_0_scoped_2a0862d5_lang="",_sfc_main$2a={data(){return{}},methods:{}};var _sfc_render$2a=function r(){var t=this,a=t._self._c;return a("div")},_sfc_staticRenderFns$2a=[],__component__$2a=normalizeComponent(_sfc_main$2a,_sfc_render$2a,_sfc_staticRenderFns$2a,!1,null,"2a0862d5",null,null);const topNav=__component__$2a.exports,main_vue_vue_type_style_index_0_scoped_c9295208_lang="",_sfc_main$29={props:{navParameters:{type:Object,default:()=>({})},treeData:{type:Array,default:()=>[]}},data(){return{}},computed:{componentmenu(){return{sidemenu:sideNav,topmenu:topNav}[this.navParameters.layout]}},methods:{}};var _sfc_render$29=function r(){var t=this,a=t._self._c;return a(t.componentmenu,{tag:"component",attrs:{navParameters:t.navParameters,treeData:t.treeData}},[t._t("default")],2)},_sfc_staticRenderFns$29=[],__component__$29=normalizeComponent(_sfc_main$29,_sfc_render$29,_sfc_staticRenderFns$29,!1,null,"c9295208",null,null);const navBuild=__component__$29.exports,tableView_vue_vue_type_style_index_0_scoped_1b064941_lang="",_sfc_main$28={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},height:{type:Number,default:100}},data(){return{}},components:{ViewTable},computed:{componentItemed(){const r=this.$importViewFiles();let a=`../views/main/${this.options.table.tableName||this.options.table.tablename}/index.vue`,s=r[a];return s?s.default:ViewTable},show(){const r=!!this.options.table.id,t=!!this.options.view.id;return!(r&&t)},options(){return this.record.options}},methods:{}};var _sfc_render$28=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"view-table"},[t.show?a("div",{staticClass:"emport"},[t._v("~"+t._s(t.$i18nt("gd.module.pleaseClickOnFormGenerator","\u8BF7\u70B9\u51FB\u8868\u683C\u751F\u6210\u5668"))+"~")]):a(t.componentItemed,{tag:"component",attrs:{record:t.record,height:t.height,develop:t.develop},on:{changeData:s=>t.$emit("changeData",s),onSelectChange:(s,o)=>t.$emit("onSelectChange",s,o),fieldData:s=>t.$emit("fieldData",s)}})],1)},_sfc_staticRenderFns$28=[],__component__$28=normalizeComponent(_sfc_main$28,_sfc_render$28,_sfc_staticRenderFns$28,!1,null,"1b064941",null,null);const tableView=__component__$28.exports,editor_vue_vue_type_style_index_0_scoped_a667c585_lang="",_sfc_main$27={props:{record:{type:Object,default:()=>({})},model:{type:Object,default:()=>({})}},components:{quillEditor:vueQuillEditor.exports.quillEditor},data(){return{}},computed:{options(){return this.record.options},editorOption(){return{placeholder:this.options.placeholder!==void 0?this.options.placeholder===""?this.options.placeholder:this.$i18nt(`Dynamics.${this.options.placeholderTransKey}`,this.options.placeholder):this.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")}},style(){return{height:`${this.options.height|300}px`,width:`${this.options.width}${this.options.widthUnit}`}},disabled(){return this.options.disabled===void 0?!1:this.options.disabled}},methods:{onEditorBlur(){},onEditorFocus(){},onEditorChange(r){this.$emit("change",r.html)}},mounted(){this.$refs.vueQuillEditor.quill.enable(!1),this.$nextTick(()=>{setTimeout(()=>{this.$refs.vueQuillEditor.quill.blur(),this.$refs.vueQuillEditor.quill.enable(!0)},1e3)})}};var _sfc_render$27=function r(){var t=this,a=t._self._c;return a("quillEditor",{ref:"vueQuillEditor",staticClass:"ql-editor-class",class:{chinesization:!0},style:t.style,attrs:{options:t.editorOption,disabled:t.disabled},on:{blur:function(s){return t.onEditorBlur(s)},focus:function(s){return t.onEditorFocus(s)},change:function(s){return t.onEditorChange(s)}},model:{value:t.model[t.options.columnName],callback:function(s){t.$set(t.model,t.options.columnName,s)},expression:"model[options.columnName]"}})},_sfc_staticRenderFns$27=[],__component__$27=normalizeComponent(_sfc_main$27,_sfc_render$27,_sfc_staticRenderFns$27,!1,null,"a667c585",null,null);const editor=__component__$27.exports,divider_vue_vue_type_style_index_0_scoped_f3eaa07d_lang="",_sfc_main$26={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},style(){let r=this.record.css,t=[];r.padding&&r.padding.forEach(s=>{t.push(s+"px")}),r.margin&&r.margin.forEach(s=>{});let a=`padding:${t.join(" ")}`;return`background:${r.bjColor};${a};height:${r.height}px;width:${r.width}${r.labelUnit};`}},methods:{}};var _sfc_render$26=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"flex-div",style:t.style},[a("div",{staticStyle:{width:"100%"}},[a("el-divider",{attrs:{direction:t.options.direction,"content-position":t.options.position}},[t.options.title?[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]:t._e()],2)],1)])},_sfc_staticRenderFns$26=[],__component__$26=normalizeComponent(_sfc_main$26,_sfc_render$26,_sfc_staticRenderFns$26,!1,null,"f3eaa07d",null,null);const divider=__component__$26.exports;function getCss(r){let t="";for(let a in r)t+=getProperti(r,a);return t}function paddingData(r){let t=[];return(r.padding?r.padding:[]).forEach(s=>{t.push(s?`${s}px`:0)}),t.length===0?"":`padding:${t.join(" ")};`}function marginData(r){let t=[];return(r.margin?r.margin:[]).forEach(s=>{t.push(s?`${s}px`:0)}),t.length===0?"":`margin:${t.join(" ")};`}function backgroundData(r){const t=r.bjColor?r.bjColor:"";return t===""?"":`background-color:${t};`}function radiusData(r){let t=[];return(r.radius?r.radius:[]).forEach(s=>{t.push(s?`${s}px`:0)}),t.length===0?"":`border-radius:${t.join(" ")};`}function textAlign(r){const t=r.align?r.align:"";return t===""?"":`text-align:${t};`}function lineHeight(r){const t=r.lineHeight?r.lineHeight:"";return t===""?"":`line-height:${t}px;`}function letterSpacing(r){const t=r.letterSpacing?r.letterSpacing:"";return t===""?"":`letter-spacing:${t}px;`}function colorData(r){const t=r.color?r.color:"";return t===""?"":`color:${t};`}function fontSize(r){const t=r.fontSize?r.fontSize:"";return t===""?"":`font-size:${t}px;`}function fontWeight(r){const t=r.fontWeight?r.fontWeight:"";return t===""?"":`font-weight:${t};`}function textDecoration(r){const t=r.textDecoration?r.textDecoration:"";return t===""?"":`text-decoration:${t};`}function fontStyle(r){const t=r.fontStyle?r.fontStyle:"";return t===""?"":`font-style:${t};`}function maxLineClamp(r){const t=r.maxLineClamp?r.maxLineClamp:"";return t===""?"":`overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: ${t};-webkit-box-orient: vertical;`}function widthData(r){const t=r.flexWidth?r.flexWidth:"100",a=r.flexUnit?r.flexUnit:"%";return`width:${a==="%"?t>100?100:t:a==="auto"?"":t}${a};`}function flexDirection(r){const t=r.flexDirection?r.flexDirection:"";return t===""?"":`flex-direction:${t};`}function justifyContent(r){const t=r.justifyContent?r.justifyContent:"";return t===""?"":`justify-content:${t};`}function alignItems(r){const t=r.alignItems?r.alignItems:"";return t===""?"":`align-items:${t};`}function flexWrap(r){const t=r.flexWrap?r.flexWrap:"";return t===""?"":`flex-wrap:${t};`}function getProperti(r,t){switch(t){case"padding":return paddingData(r);case"margin":return marginData(r);case"bjColor":return backgroundData(r);case"radius":return radiusData(r);case"align":return textAlign(r);case"lineHeight":return lineHeight(r);case"letterSpacing":return letterSpacing(r);case"color":return colorData(r);case"fontSize":return fontSize(r);case"fontWeight":return fontWeight(r);case"textDecoration":return textDecoration(r);case"fontStyle":return fontStyle(r);case"maxLineClamp":return maxLineClamp(r);case"flexWidth":return widthData(r);case"flexDirection":return flexDirection(r);case"justifyContent":return justifyContent(r);case"alignItems":return alignItems(r);case"flexWrap":return flexWrap(r);default:return""}}const textContent_vue_vue_type_style_index_0_scoped_b07fe66c_lang="",_sfc_main$25={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]}},data(){return{}},watch:{fieldContext:{handler(r){this.record.fieldContext=this.fieldContext},deep:!0,immediate:!0}},computed:{columnName(){const r=this.options.columnContextName?this.options.columnContextName:[];return r[r.length-1]},options(){return this.record.options},style(){const r=this.record.customCss?this.record.customCss:"";return`${getCss(this.record.css)}${r}`},wstyle(){return`overflow: hidden;${this.develop==1?"":`${getCss(this.options)}max-width:100%;`}`}},methods:{},mounted(){}};var _sfc_render$25=function r(){var t=this,a=t._self._c;return a("div",{style:t.wstyle},[t.develop==1?a("div",{style:t.style},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]):[t.columnName?a("div",{style:t.style},[t._v(t._s(t.itemData[t.columnName]))]):a("div",{style:t.style},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))])]],2)},_sfc_staticRenderFns$25=[],__component__$25=normalizeComponent(_sfc_main$25,_sfc_render$25,_sfc_staticRenderFns$25,!1,null,"b07fe66c",null,null);const textContent=__component__$25.exports,title_vue_vue_type_style_index_0_scoped_eca0bb1b_lang="",_sfc_main$24={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},fstyle(){let r=this.record.css;return`color:${r.color};font-size:${r.fontSize}px;font-weight:${r.fontWeight};`},style(){let r=this.record.css,t=[],a=[];r.padding&&r.padding.forEach(l=>{t.push(l+"px")}),r.margin&&r.margin.forEach(l=>{a.push(l+"px")});let s=`padding:${t.join(" ")}`,o=`margin:${a.join(" ")}`;return`background:${r.bjColor};border-radius:${r.radius}px;${s};${o};`}},methods:{}};var _sfc_render$24=function r(){var t=this,a=t._self._c;return a("div",{style:t.style},[a("div",{staticClass:"subtitle",class:t.options.mode==="center"?"subtitlec":"subtitlel",style:t.fstyle},[a("div",{staticClass:"title",style:t.fstyle},[t._v(t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title)))]),t.options.subtitle!==""?a("div",{staticClass:"titles",style:t.fstyle},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.subtransKey}`,t.options.subtitle))+" ")]):t._e(),t.options.iconShow&&t.options.mode==="left"?a("div",{staticClass:"jiant"},[a("i",{staticClass:"el-icon-arrow-right"})]):t._e()])])},_sfc_staticRenderFns$24=[],__component__$24=normalizeComponent(_sfc_main$24,_sfc_render$24,_sfc_staticRenderFns$24,!1,null,"eca0bb1b",null,null);const titleVlaue=__component__$24.exports,fonticon_vue_vue_type_style_index_0_scoped_12a9467b_lang="",_sfc_main$23={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1},itemData:{type:Object,default:()=>({})},fieldContext:{type:Array,default:()=>[]}},data(){return{}},watch:{fieldContext:{handler(r){this.record.fieldContext=this.fieldContext},deep:!0,immediate:!0}},computed:{options(){return this.record.options},style(){const r=this.record.customCss?this.record.customCss:"";return`${getCss(this.record.css)}cursor: pointer;${r}`},wstyle(){return`overflow: hidden;${this.develop==1?"":`${getCss(this.options)}max-width:100%;`}`}},methods:{change(){const r=this.options.columnContextName?this.options.columnContextName:[],t=r[r.length-1];console.log(t,this.itemData[t])}}};var _sfc_render$23=function r(){var t=this,a=t._self._c;return a("div",{style:t.wstyle},[a("div",{staticClass:"gd-icons",class:t.options.icon,style:t.style,on:{click:t.change}})])},_sfc_staticRenderFns$23=[],__component__$23=normalizeComponent(_sfc_main$23,_sfc_render$23,_sfc_staticRenderFns$23,!1,null,"12a9467b",null,null);const fonticon=__component__$23.exports,tag_vue_vue_type_style_index_0_scoped_f9f124d2_lang="",_sfc_main$22={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},style(){let r=this.record.css,t=[],a=[];r.padding&&r.padding.forEach(l=>{t.push(l+"px")}),r.margin&&r.margin.forEach(l=>{a.push(l+"px")});let s=`padding:${t.join(" ")}`,o=`margin:${a.join(" ")}`;return`${s};${o};text-align:${r.align};`}},methods:{}};var _sfc_render$22=function r(){var t=this,a=t._self._c;return a("div",{style:t.style},[a("div",[a("el-tag",{attrs:{effect:t.options.effect,color:t.options.color,size:t.options.size}},[t._v(" "+t._s(t.$i18nt(`Dynamics.${t.options.transKey}`,t.options.title))+" ")])],1)])},_sfc_staticRenderFns$22=[],__component__$22=normalizeComponent(_sfc_main$22,_sfc_render$22,_sfc_staticRenderFns$22,!1,null,"f9f124d2",null,null);const tagValue=__component__$22.exports,image_vue_vue_type_style_index_0_scoped_8ab5eb50_lang="",_sfc_main$21={props:{record:{type:Object,required:!0},develop:{type:[Number,String],default:1}},data(){return{url:""}},watch:{imageUrl(r,t){r===""?this.url="":this.init()}},computed:{imageUrl(){return this.options.filePath},options(){return this.record.options},stylel(){let r=this.record.css;return`width:${r.width}${r.labelUnit};height:${r.height}px;object-fit:${r.objectFit};margin: 0 auto;`},style(){let r=this.record.css,t=[],a=[];r.padding&&r.padding.forEach(l=>{t.push(l+"px")}),r.margin&&r.margin.forEach(l=>{a.push(l+"px")});let s=`padding:${t.join(" ")}`,o=`margin:${a.join(" ")}`;return`${s};${o};`}},methods:{init(){if(!this.imageUrl)return;if(console.log(this.imageUrl),this.imageUrl.includes("http")){this.url=this.imageUrl;return}sysFileInfoPreview({id:this.imageUrl}).then(t=>{this.url=window.URL.createObjectURL(new Blob([t]))})}},mounted(){this.init()}};var _sfc_render$21=function r(){var t=this,a=t._self._c;return a("div",{staticClass:"logo",style:t.style},[t.imageUrl?[a("img",{staticClass:"logs",style:t.stylel,attrs:{src:t.url}})]:t._e(),t.develop==1&&!t.imageUrl?a("div",{staticClass:"nlogo"},[a("div",{staticClass:"nlogos"},[t._m(0),a("div",{staticClass:"tip"},[t._v("~"+t._s(t.$i18nt("gd.module.pleaseUploadPicturesOnTheRight","\u8BF7\u5728\u53F3\u8FB9\u4E0A\u4F20\u56FE\u7247"))+"~")])])]):t._e()],2)},_sfc_staticRenderFns$21=[function(){var r=this,t=r._self._c;return t("div",{staticClass:"icons"},[t("div",{staticClass:"iconfont icon-image"})])}],__component__$21=normalizeComponent(_sfc_main$21,_sfc_render$21,_sfc_staticRenderFns$21,!1,null,"8ab5eb50",null,null);const imageFile=__component__$21.exports,linkItem_vue_vue_type_style_index_0_scoped_213aa6f5_lang="",_sfc_main$20={props:{record:{type:Object,required:!0}},data(){return{}},computed:{options(){return this.record.options},cstyle(){let r=this.record.css;return`color:${r.color};font-size:${r.fontSize}px;text-decoration:${r.textDecoration};
|
|
417
417
|
font-style:${r.fontStyle};`},style(){let r=this.record.css,t=[],a=[];r.padding&&r.padding.forEach(l=>{t.push(l+"px")}),r.margin&&r.margin.forEach(l=>{a.push(l+"px")});let s=`padding:${t.join(" ")}`,o=`margin:${a.join(" ")}`;return`background:${r.bjColor};${s};${o};text-align:${r.align};border-radius:${r.radius}px;`},...mapGetters(["primaryColor"])},methods:{dropDown(){window.location.href=this.options.linkUrl}}};var _sfc_render$20=function r(){var t=this,a=t._self._c;return a("div",{style:t.style},[t.options.title!=""?a("div",{style:t.cstyle},[a("a",{attrs:{href:t.options.linkUrl,target:"_blank"}},[t._v(t._s(t.$i18nt(`${t.options.transKey}`,t.options.title)))])]):a("div",{style:t.cstyle},[a("a",{attrs:{href:t.options.linkUrl,target:"_blank"}},[t._v(t._s(t.options.linkUrl))])])])},_sfc_staticRenderFns$20=[],__component__$20=normalizeComponent(_sfc_main$20,_sfc_render$20,_sfc_staticRenderFns$20,!1,null,"213aa6f5",null,null);const linkItem=__component__$20.exports;var browser={},canPromise$1=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1={};let toSJISFunction;const CODEWORDS_COUNT=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];utils$1.getSymbolSize=function r(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},utils$1.getSymbolTotalCodewords=function r(t){return CODEWORDS_COUNT[t]},utils$1.getBCHDigit=function(r){let t=0;for(;r!==0;)t++,r>>>=1;return t},utils$1.setToSJISFunction=function r(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=t},utils$1.isKanjiModeEnabled=function(){return typeof toSJISFunction<"u"},utils$1.toSJIS=function r(t){return toSJISFunction(t)};var errorCorrectionLevel={};(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function t(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+a)}}r.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},r.from=function(s,o){if(r.isValid(s))return s;try{return t(s)}catch{return o}}})(errorCorrectionLevel);function BitBuffer$1(){this.buffer=[],this.length=0}BitBuffer$1.prototype={get:function(r){const t=Math.floor(r/8);return(this.buffer[t]>>>7-r%8&1)===1},put:function(r,t){for(let a=0;a<t;a++)this.putBit((r>>>t-a-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}BitMatrix$1.prototype.set=function(r,t,a,s){const o=r*this.size+t;this.data[o]=a,s&&(this.reservedBit[o]=!0)},BitMatrix$1.prototype.get=function(r,t){return this.data[r*this.size+t]},BitMatrix$1.prototype.xor=function(r,t,a){this.data[r*this.size+t]^=a},BitMatrix$1.prototype.isReserved=function(r,t){return this.reservedBit[r*this.size+t]};var bitMatrix=BitMatrix$1,alignmentPattern={};(function(r){const t=utils$1.getSymbolSize;r.getRowColCoords=function(s){if(s===1)return[];const o=Math.floor(s/7)+2,l=t(s),d=l===145?26:Math.ceil((l-13)/(2*o-2))*2,u=[l-7];for(let f=1;f<o-1;f++)u[f]=u[f-1]-d;return u.push(6),u.reverse()},r.getPositions=function(s){const o=[],l=r.getRowColCoords(s),d=l.length;for(let u=0;u<d;u++)for(let f=0;f<d;f++)u===0&&f===0||u===0&&f===d-1||u===d-1&&f===0||o.push([l[u],l[f]]);return o}})(alignmentPattern);var finderPattern={};const getSymbolSize=utils$1.getSymbolSize,FINDER_PATTERN_SIZE=7;finderPattern.getPositions=function r(t){const a=getSymbolSize(t);return[[0,0],[a-FINDER_PATTERN_SIZE,0],[0,a-FINDER_PATTERN_SIZE]]};var maskPattern={};(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};r.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},r.from=function(o){return r.isValid(o)?parseInt(o,10):void 0},r.getPenaltyN1=function(o){const l=o.size;let d=0,u=0,f=0,p=null,h=null;for(let v=0;v<l;v++){u=f=0,p=h=null;for(let g=0;g<l;g++){let y=o.get(v,g);y===p?u++:(u>=5&&(d+=t.N1+(u-5)),p=y,u=1),y=o.get(g,v),y===h?f++:(f>=5&&(d+=t.N1+(f-5)),h=y,f=1)}u>=5&&(d+=t.N1+(u-5)),f>=5&&(d+=t.N1+(f-5))}return d},r.getPenaltyN2=function(o){const l=o.size;let d=0;for(let u=0;u<l-1;u++)for(let f=0;f<l-1;f++){const p=o.get(u,f)+o.get(u,f+1)+o.get(u+1,f)+o.get(u+1,f+1);(p===4||p===0)&&d++}return d*t.N2},r.getPenaltyN3=function(o){const l=o.size;let d=0,u=0,f=0;for(let p=0;p<l;p++){u=f=0;for(let h=0;h<l;h++)u=u<<1&2047|o.get(p,h),h>=10&&(u===1488||u===93)&&d++,f=f<<1&2047|o.get(h,p),h>=10&&(f===1488||f===93)&&d++}return d*t.N3},r.getPenaltyN4=function(o){let l=0;const d=o.data.length;for(let f=0;f<d;f++)l+=o.data[f];return Math.abs(Math.ceil(l*100/d/5)-10)*t.N4};function a(s,o,l){switch(s){case r.Patterns.PATTERN000:return(o+l)%2===0;case r.Patterns.PATTERN001:return o%2===0;case r.Patterns.PATTERN010:return l%3===0;case r.Patterns.PATTERN011:return(o+l)%3===0;case r.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(l/3))%2===0;case r.Patterns.PATTERN101:return o*l%2+o*l%3===0;case r.Patterns.PATTERN110:return(o*l%2+o*l%3)%2===0;case r.Patterns.PATTERN111:return(o*l%3+(o+l)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}r.applyMask=function(o,l){const d=l.size;for(let u=0;u<d;u++)for(let f=0;f<d;f++)l.isReserved(f,u)||l.xor(f,u,a(o,f,u))},r.getBestMask=function(o,l){const d=Object.keys(r.Patterns).length;let u=0,f=1/0;for(let p=0;p<d;p++){l(p),r.applyMask(p,o);const h=r.getPenaltyN1(o)+r.getPenaltyN2(o)+r.getPenaltyN3(o)+r.getPenaltyN4(o);r.applyMask(p,o),h<f&&(f=h,u=p)}return u}})(maskPattern);var errorCorrectionCode={};const ECLevel$1=errorCorrectionLevel,EC_BLOCKS_TABLE=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],EC_CODEWORDS_TABLE=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];errorCorrectionCode.getBlocksCount=function r(t,a){switch(a){case ECLevel$1.L:return EC_BLOCKS_TABLE[(t-1)*4+0];case ECLevel$1.M:return EC_BLOCKS_TABLE[(t-1)*4+1];case ECLevel$1.Q:return EC_BLOCKS_TABLE[(t-1)*4+2];case ECLevel$1.H:return EC_BLOCKS_TABLE[(t-1)*4+3];default:return}},errorCorrectionCode.getTotalCodewordsCount=function r(t,a){switch(a){case ECLevel$1.L:return EC_CODEWORDS_TABLE[(t-1)*4+0];case ECLevel$1.M:return EC_CODEWORDS_TABLE[(t-1)*4+1];case ECLevel$1.Q:return EC_CODEWORDS_TABLE[(t-1)*4+2];case ECLevel$1.H:return EC_CODEWORDS_TABLE[(t-1)*4+3];default:return}};var polynomial={},galoisField={};const EXP_TABLE=new Uint8Array(512),LOG_TABLE=new Uint8Array(256);(function r(){let t=1;for(let a=0;a<255;a++)EXP_TABLE[a]=t,LOG_TABLE[t]=a,t<<=1,t&256&&(t^=285);for(let a=255;a<512;a++)EXP_TABLE[a]=EXP_TABLE[a-255]})(),galoisField.log=function r(t){if(t<1)throw new Error("log("+t+")");return LOG_TABLE[t]},galoisField.exp=function r(t){return EXP_TABLE[t]},galoisField.mul=function r(t,a){return t===0||a===0?0:EXP_TABLE[LOG_TABLE[t]+LOG_TABLE[a]]},function(r){const t=galoisField;r.mul=function(s,o){const l=new Uint8Array(s.length+o.length-1);for(let d=0;d<s.length;d++)for(let u=0;u<o.length;u++)l[d+u]^=t.mul(s[d],o[u]);return l},r.mod=function(s,o){let l=new Uint8Array(s);for(;l.length-o.length>=0;){const d=l[0];for(let f=0;f<o.length;f++)l[f]^=t.mul(o[f],d);let u=0;for(;u<l.length&&l[u]===0;)u++;l=l.slice(u)}return l},r.generateECPolynomial=function(s){let o=new Uint8Array([1]);for(let l=0;l<s;l++)o=r.mul(o,new Uint8Array([1,t.exp(l)]));return o}}(polynomial);const Polynomial=polynomial;function ReedSolomonEncoder$1(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder$1.prototype.initialize=function r(t){this.degree=t,this.genPoly=Polynomial.generateECPolynomial(this.degree)},ReedSolomonEncoder$1.prototype.encode=function r(t){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(t.length+this.degree);a.set(t);const s=Polynomial.mod(a,this.genPoly),o=this.degree-s.length;if(o>0){const l=new Uint8Array(this.degree);return l.set(s,o),l}return s};var reedSolomonEncoder=ReedSolomonEncoder$1,version={},mode={},versionCheck={};versionCheck.isValid=function r(t){return!isNaN(t)&&t>=1&&t<=40};var regex={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+`)(?:.|[\r
|
|
418
418
|
]))+`;regex.KANJI=new RegExp(kanji,"g"),regex.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),regex.BYTE=new RegExp(byte,"g"),regex.NUMERIC=new RegExp(numeric,"g"),regex.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex.testKanji=function r(t){return TEST_KANJI.test(t)},regex.testNumeric=function r(t){return TEST_NUMERIC.test(t)},regex.testAlphanumeric=function r(t){return TEST_ALPHANUMERIC.test(t)},function(r){const t=versionCheck,a=regex;r.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(l,d){if(!l.ccBits)throw new Error("Invalid mode: "+l);if(!t.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?l.ccBits[0]:d<27?l.ccBits[1]:l.ccBits[2]},r.getBestModeForData=function(l){return a.testNumeric(l)?r.NUMERIC:a.testAlphanumeric(l)?r.ALPHANUMERIC:a.testKanji(l)?r.KANJI:r.BYTE},r.toString=function(l){if(l&&l.id)return l.id;throw new Error("Invalid mode")},r.isValid=function(l){return l&&l.bit&&l.ccBits};function s(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+o)}}r.from=function(l,d){if(r.isValid(l))return l;try{return s(l)}catch{return d}}}(mode),function(r){const t=utils$1,a=errorCorrectionCode,s=errorCorrectionLevel,o=mode,l=versionCheck,d=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(d);function f(g,y,b){for(let _=1;_<=40;_++)if(y<=r.getCapacity(_,b,g))return _}function p(g,y){return o.getCharCountIndicator(g,y)+4}function h(g,y){let b=0;return g.forEach(function(_){const w=p(_.mode,y);b+=w+_.getBitsLength()}),b}function v(g,y){for(let b=1;b<=40;b++)if(h(g,b)<=r.getCapacity(b,y,o.MIXED))return b}r.from=function(y,b){return l.isValid(y)?parseInt(y,10):b},r.getCapacity=function(y,b,_){if(!l.isValid(y))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=o.BYTE);const w=t.getSymbolTotalCodewords(y),x=a.getTotalCodewordsCount(y,b),C=(w-x)*8;if(_===o.MIXED)return C;const S=C-p(_,y);switch(_){case o.NUMERIC:return Math.floor(S/10*3);case o.ALPHANUMERIC:return Math.floor(S/11*2);case o.KANJI:return Math.floor(S/13);case o.BYTE:default:return Math.floor(S/8)}},r.getBestVersionForData=function(y,b){let _;const w=s.from(b,s.M);if(Array.isArray(y)){if(y.length>1)return v(y,w);if(y.length===0)return 1;_=y[0]}else _=y;return f(_.mode,_.getLength(),w)},r.getEncodedBits=function(y){if(!l.isValid(y)||y<7)throw new Error("Invalid QR Code version");let b=y<<12;for(;t.getBCHDigit(b)-u>=0;)b^=d<<t.getBCHDigit(b)-u;return y<<12|b}}(version);var formatInfo={};const Utils$3=utils$1,G15=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G15_MASK=1<<14|1<<12|1<<10|1<<4|1<<1,G15_BCH=Utils$3.getBCHDigit(G15);formatInfo.getEncodedBits=function r(t,a){const s=t.bit<<3|a;let o=s<<10;for(;Utils$3.getBCHDigit(o)-G15_BCH>=0;)o^=G15<<Utils$3.getBCHDigit(o)-G15_BCH;return(s<<10|o)^G15_MASK};var segments={};const Mode$4=mode;function NumericData(r){this.mode=Mode$4.NUMERIC,this.data=r.toString()}NumericData.getBitsLength=function r(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},NumericData.prototype.getLength=function r(){return this.data.length},NumericData.prototype.getBitsLength=function r(){return NumericData.getBitsLength(this.data.length)},NumericData.prototype.write=function r(t){let a,s,o;for(a=0;a+3<=this.data.length;a+=3)s=this.data.substr(a,3),o=parseInt(s,10),t.put(o,10);const l=this.data.length-a;l>0&&(s=this.data.substr(a),o=parseInt(s,10),t.put(o,l*3+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(r){this.mode=Mode$3.ALPHANUMERIC,this.data=r}AlphanumericData.getBitsLength=function r(t){return 11*Math.floor(t/2)+6*(t%2)},AlphanumericData.prototype.getLength=function r(){return this.data.length},AlphanumericData.prototype.getBitsLength=function r(){return AlphanumericData.getBitsLength(this.data.length)},AlphanumericData.prototype.write=function r(t){let a;for(a=0;a+2<=this.data.length;a+=2){let s=ALPHA_NUM_CHARS.indexOf(this.data[a])*45;s+=ALPHA_NUM_CHARS.indexOf(this.data[a+1]),t.put(s,11)}this.data.length%2&&t.put(ALPHA_NUM_CHARS.indexOf(this.data[a]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(r){this.mode=Mode$2.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}ByteData.getBitsLength=function r(t){return t*8},ByteData.prototype.getLength=function r(){return this.data.length},ByteData.prototype.getBitsLength=function r(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(r){for(let t=0,a=this.data.length;t<a;t++)r.put(this.data[t],8)};var byteData=ByteData;const Mode$1=mode,Utils$2=utils$1;function KanjiData(r){this.mode=Mode$1.KANJI,this.data=r}KanjiData.getBitsLength=function r(t){return t*13},KanjiData.prototype.getLength=function r(){return this.data.length},KanjiData.prototype.getBitsLength=function r(){return KanjiData.getBitsLength(this.data.length)},KanjiData.prototype.write=function(r){let t;for(t=0;t<this.data.length;t++){let a=Utils$2.toSJIS(this.data[t]);if(a>=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
419
419
|
Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),r.put(a,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(r){var t={single_source_shortest_paths:function(a,s,o){var l={},d={};d[s]=0;var u=t.PriorityQueue.make();u.push(s,0);for(var f,p,h,v,g,y,b,_,w;!u.empty();){f=u.pop(),p=f.value,v=f.cost,g=a[p]||{};for(h in g)g.hasOwnProperty(h)&&(y=g[h],b=v+y,_=d[h],w=typeof d[h]>"u",(w||_>b)&&(d[h]=b,u.push(h,b),l[h]=p))}if(typeof o<"u"&&typeof d[o]>"u"){var x=["Could not find a path from ",s," to ",o,"."].join("");throw new Error(x)}return l},extract_shortest_path_from_predecessor_list:function(a,s){for(var o=[],l=s;l;)o.push(l),a[l],l=a[l];return o.reverse(),o},find_path:function(a,s,o){var l=t.single_source_shortest_paths(a,s,o);return t.extract_shortest_path_from_predecessor_list(l,o)},PriorityQueue:{make:function(a){var s=t.PriorityQueue,o={},l;a=a||{};for(l in s)s.hasOwnProperty(l)&&(o[l]=s[l]);return o.queue=[],o.sorter=a.sorter||s.default_sorter,o},default_sorter:function(a,s){return a.cost-s.cost},push:function(a,s){var o={value:a,cost:s};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=t})(dijkstra),function(r){const t=mode,a=numericData,s=alphanumericData,o=byteData,l=kanjiData,d=regex,u=utils$1,f=dijkstra.exports;function p(x){return unescape(encodeURIComponent(x)).length}function h(x,C,S){const T=[];let D;for(;(D=x.exec(S))!==null;)T.push({data:D[0],index:D.index,mode:C,length:D[0].length});return T}function v(x){const C=h(d.NUMERIC,t.NUMERIC,x),S=h(d.ALPHANUMERIC,t.ALPHANUMERIC,x);let T,D;return u.isKanjiModeEnabled()?(T=h(d.BYTE,t.BYTE,x),D=h(d.KANJI,t.KANJI,x)):(T=h(d.BYTE_KANJI,t.BYTE,x),D=[]),C.concat(S,T,D).sort(function($,L){return $.index-L.index}).map(function($){return{data:$.data,mode:$.mode,length:$.length}})}function g(x,C){switch(C){case t.NUMERIC:return a.getBitsLength(x);case t.ALPHANUMERIC:return s.getBitsLength(x);case t.KANJI:return l.getBitsLength(x);case t.BYTE:return o.getBitsLength(x)}}function y(x){return x.reduce(function(C,S){const T=C.length-1>=0?C[C.length-1]:null;return T&&T.mode===S.mode?(C[C.length-1].data+=S.data,C):(C.push(S),C)},[])}function b(x){const C=[];for(let S=0;S<x.length;S++){const T=x[S];switch(T.mode){case t.NUMERIC:C.push([T,{data:T.data,mode:t.ALPHANUMERIC,length:T.length},{data:T.data,mode:t.BYTE,length:T.length}]);break;case t.ALPHANUMERIC:C.push([T,{data:T.data,mode:t.BYTE,length:T.length}]);break;case t.KANJI:C.push([T,{data:T.data,mode:t.BYTE,length:p(T.data)}]);break;case t.BYTE:C.push([{data:T.data,mode:t.BYTE,length:p(T.data)}])}}return C}function _(x,C){const S={},T={start:{}};let D=["start"];for(let A=0;A<x.length;A++){const $=x[A],L=[];for(let N=0;N<$.length;N++){const E=$[N],R=""+A+N;L.push(R),S[R]={node:E,lastCount:0},T[R]={};for(let I=0;I<D.length;I++){const P=D[I];S[P]&&S[P].node.mode===E.mode?(T[P][R]=g(S[P].lastCount+E.length,E.mode)-g(S[P].lastCount,E.mode),S[P].lastCount+=E.length):(S[P]&&(S[P].lastCount=E.length),T[P][R]=g(E.length,E.mode)+4+t.getCharCountIndicator(E.mode,C))}}D=L}for(let A=0;A<D.length;A++)T[D[A]].end=0;return{map:T,table:S}}function w(x,C){let S;const T=t.getBestModeForData(x);if(S=t.from(C,T),S!==t.BYTE&&S.bit<T.bit)throw new Error('"'+x+'" cannot be encoded with mode '+t.toString(S)+`.
|