cloud-web-corejs 1.0.54-dev.149 → 1.0.54-dev.150
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/package.json +1 -1
- package/src/components/baseAttachment/index.vue +20 -11
- package/src/components/baseAttachment/mixins.js +249 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +26 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
package/package.json
CHANGED
@@ -1,20 +1,29 @@
|
|
1
1
|
<template>
|
2
2
|
<span>
|
3
|
-
<template v-if="edit || !!
|
4
|
-
<el-tooltip :enterable="false" effect="dark" :content="
|
5
|
-
popper-class="tooltip-skin" :disabled="!
|
3
|
+
<template v-if="edit || !!imageUrl">
|
4
|
+
<el-tooltip :enterable="false" effect="dark" :content="fileName" placement="top"
|
5
|
+
popper-class="tooltip-skin" :disabled="!fileName">
|
6
6
|
<a class="a-link img num1" @click="openPreview()">
|
7
|
-
<el-image v-if="!!
|
8
|
-
<span class="num" v-if="
|
7
|
+
<el-image v-if="!!imageUrl" :key="imageUrl" :src="imageUrl" :lazy="true"/>
|
8
|
+
<span class="num" v-if="size>1">{{ size }}</span>
|
9
9
|
</a>
|
10
10
|
</el-tooltip>
|
11
11
|
<template v-if="showViewButton">
|
12
|
-
<el-tooltip :enterable="false" effect="dark" :content="title" placement="top" popper-class="tooltip-skin"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
</
|
17
|
-
|
12
|
+
<el-tooltip :enterable="false" effect="dark" :content="title" placement="top" popper-class="tooltip-skin">
|
13
|
+
<a href="javascript:void(0);" class="a-link nums" @click="openAttachmentDialog">
|
14
|
+
<i class="iconfont icon-fujian3"/>
|
15
|
+
</a>
|
16
|
+
</el-tooltip>
|
17
|
+
<template v-if="edit && isUploadEnabled">
|
18
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('上传')" placement="top"
|
19
|
+
popper-class="tooltip-skin"
|
20
|
+
>
|
21
|
+
<a href="javascript:void(0);" class="a-link nums" @click="uploadFile">
|
22
|
+
<i class="el-icon-upload2"/>
|
23
|
+
</a>
|
24
|
+
</el-tooltip>
|
25
|
+
</template>
|
26
|
+
|
18
27
|
</template>
|
19
28
|
<uploadDialog v-if="showUploadDialog" :visiable.sync="showUploadDialog"
|
20
29
|
:rows.sync="rows" :title="title" :edit="edit" :param.sync="option.uploadConfig"
|
@@ -1,7 +1,255 @@
|
|
1
1
|
import {selectDialogMixins} from "../../mixins/selectDialog/index";
|
2
2
|
|
3
3
|
export let indexMixin, uploadDialogMixin;
|
4
|
-
(function(_0x33067f,_0x7fe751){const _0x5c933f=_0x33067f();function _0x8fe1fc(_0x47174e,_0x4d75fe,_0x21f907,_0x1d03e1,_0x5bfa62){return _0x1110(_0x4d75fe- -0x3ba,_0x5bfa62);}function _0x9e3f91(_0x47733a,_0x3e6201,_0xa677a9,_0x472750,_0x25dd69){return _0x1110(_0x47733a-0x237,_0xa677a9);}function _0x53c465(_0x28e8e7,_0x481feb,_0x151158,_0x4fdc7e,_0x4a8b96){return _0x9920(_0x151158- -0x1e2,_0x4fdc7e);}function _0x5d3ed8(_0x5aa089,_0x9cb717,_0x4eab19,_0x77a731,_0x25ef9a){return _0x9920(_0x5aa089- -0x112,_0x9cb717);}function _0x4c34c7(_0x380fb0,_0x37754a,_0x367688,_0x5a7752,_0x4ae4f5){return _0x1110(_0x4ae4f5-0x24f,_0x5a7752);}function _0x5d9013(_0x508183,_0x2c181d,_0x4f7352,_0x308892,_0x336edb){return _0x9920(_0x2c181d- -0xa6,_0x308892);}function _0x2b9daa(_0x45700d,_0x12f7d1,_0x26d01f,_0x36bedb,_0x2a90fb){return _0x1110(_0x2a90fb- -0x3c5,_0x45700d);}function _0x5d9018(_0x3b2b48,_0x713975,_0x151e16,_0x64f62c,_0x3a70b4){return _0x1110(_0x713975-0x88,_0x3a70b4);}function _0x28efb2(_0x22ce48,_0x652c91,_0xd2276f,_0x1d86f0,_0xc9b0ed){return _0x9920(_0x1d86f0-0x3aa,_0x652c91);}while(!![]){try{const _0x20a656=-parseInt(_0x5d9013(-0x4e,-0x30,-0x65,"6rap".split("").reverse().join(""),0x1))/0x1*(-parseInt(_0x2b9daa(-0x381,-0x397,-0x355,-0x394,-0x364))/0x2)+parseInt(_0x2b9daa(-0x3a0,-0x2fb,-0x34f,-0x37b,-0x34c))/0x3+-parseInt(_0x9e3f91(0x2e8,0x2af,0x2ee,0x2f4,0x337))/0x4+-parseInt(_0x2b9daa(-0x375,-0x36c,-0x382,-0x3dc,-0x3c1))/0x5*(parseInt(_0x9e3f91(0x2aa,0x287,0x2bc,0x273,0x25d))/0x6)+-parseInt(_0x28efb2(0x3d2,"#ZCU".split("").reverse().join(""),0x416,0x3c6,0x401))/0x7*(parseInt(_0x8fe1fc(-0x314,-0x31c,-0x31a,-0x30e,-0x33a))/0x8)+-parseInt(_0x5d9013(-0x7,-0x22,-0x3,"Ha!N".split("").reverse().join(""),-0x57))/0x9*(-parseInt(_0x9e3f91(0x23e,0x27c,0x26c,0x21a,0x25a))/0xa)+parseInt(_0x53c465(-0x17d,-0x16f,-0x136,"%GdG".split("").reverse().join(""),-0x101))/0xb;if(_0x20a656===_0x7fe751){break;}else{_0x5c933f["\u0070\u0075\u0073\u0068"](_0x5c933f["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x47aba8){_0x5c933f["\u0070\u0075\u0073\u0068"](_0x5c933f["\u0073\u0068\u0069\u0066\u0074"]());}}})(_0x31e6,0x25046);function _0x163434(_0x20402e,_0x4c3628,_0xd4a9b1,_0x54fb73,_0x319666){return _0x9920(_0x319666-0x324,_0x20402e);}function _0x1110(_0xa64160,_0x31e600){const _0x1110d7=_0x31e6();_0x1110=function(_0x18db69,_0x159f1c){_0x18db69=_0x18db69-0x0;let _0x556702=_0x1110d7[_0x18db69];if(_0x1110["\u0054\u004f\u004b\u006f\u0067\u0076"]===undefined){var _0x51bd05=function(_0x494b5d){const _0x225eec="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x160d93="".split("").reverse().join("");let _0x17e39b="".split("").reverse().join("");for(let _0x504df0=0x0,_0x13bd0e,_0x318eaf,_0x3a465e=0x0;_0x318eaf=_0x494b5d["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x3a465e++);~_0x318eaf&&(_0x13bd0e=_0x504df0%0x4?_0x13bd0e*0x40+_0x318eaf:_0x318eaf,_0x504df0++%0x4)?_0x160d93+=String['fromCharCode'](0xff&_0x13bd0e>>(-0x2*_0x504df0&0x6)):0x0){_0x318eaf=_0x225eec['indexOf'](_0x318eaf);}for(let _0x58dc7b=0x0,_0xfb2c7d=_0x160d93["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x58dc7b<_0xfb2c7d;_0x58dc7b++){_0x17e39b+="\u0025"+("00".split("").reverse().join("")+_0x160d93['charCodeAt'](_0x58dc7b)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x17e39b);};_0x1110["\u004c\u006c\u0063\u004e\u004a\u0042"]=_0x51bd05;_0xa64160=arguments;_0x1110['TOKogv']=!![];}const _0x3f1c74=_0x1110d7[0x0];const _0xc8db8c=_0x18db69+_0x3f1c74;const _0x99207=_0xa64160[_0xc8db8c];if(!_0x99207){_0x556702=_0x1110["\u004c\u006c\u0063\u004e\u004a\u0042"](_0x556702);_0xa64160[_0xc8db8c]=_0x556702;}else{_0x556702=_0x99207;}return _0x556702;};return _0x1110(_0xa64160,_0x31e600);}indexMixin={'props':{"\u006f\u0070\u0074\u0069\u006f\u006e":{'type':Object},"\u0076\u0061\u006c\u0075\u0065":{"\u0074\u0079\u0070\u0065":[String,Object,Array]},"\u0062\u0069\u006e\u0064\u0044\u0061\u0074\u0061":Boolean},'data'(){return{"\u0072\u006f\u0077\u0073":[],"\u0073\u0068\u006f\u0077\u0055\u0070\u006c\u006f\u0061\u0064\u0044\u0069\u0061\u006c\u006f\u0067":![],"\u0073\u0069\u007a\u0065":0x0,'imageUrl':null,'fileName':null,"\u0073\u0068\u006f\u0077\u0053\u006f\u0075\u0072\u0063\u0065\u0055\u0072\u006c":null,'showContent':![]};},"\u0063\u006f\u006d\u0070\u0075\u0074\u0065\u0064":{"\u0074\u0069\u0074\u006c\u0065"(){function _0x12070e(_0x58ed2c,_0x5257ab,_0x29959b,_0x517d5e,_0x5f1c5e){return _0x9920(_0x517d5e- -0x23c,_0x5257ab);}function _0x3de440(_0x4b9644,_0x548653,_0x5d6126,_0x1b1e09,_0x129488){return _0x1110(_0x4b9644- -0x25a,_0x5d6126);}const _0x36e12b={'gTlCk':_0x2ceaf0(-0x3cb,-0x3f2,-0x3cc,-0x3d6,-0x418)};function _0x2ceaf0(_0xea5bbb,_0x240ecc,_0x278db7,_0x1bda66,_0x4115ad){return _0x1110(_0x278db7- -0x3cc,_0x1bda66);}return this['$t2']("\u770B\u67E5".split("").reverse().join(""),_0x12070e(-0x15e,"\u0069\u005a\u0036\u005e",-0x167,-0x1b0,-0x1a5))+(this["\u006f\u0070\u0074\u0069\u006f\u006e"]&&this['option']['title']?this["\u006f\u0070\u0074\u0069\u006f\u006e"]['title']:this['$t2'](_0x36e12b["\u0067\u0054\u006c\u0043\u006b"],_0x3de440(-0x24b,-0x20a,-0x2a1,-0x23e,-0x210)));},'edit'(){return this["\u006f\u0070\u0074\u0069\u006f\u006e"]&&this['option']['edit']?this["\u006f\u0070\u0074\u0069\u006f\u006e"]["\u0065\u0064\u0069\u0074"]:![];},"\u0073\u0068\u006f\u0077\u0056\u0069\u0065\u0077\u0042\u0075\u0074\u0074\u006f\u006e"(){const _0x71f228={"\u004e\u006a\u0046\u0071\u006e":function(_0x197040,_0x12fa06){return _0x197040!==_0x12fa06;}};return this['option']&&_0x71f228["\u004e\u006a\u0046\u0071\u006e"](this['option']["\u0073\u0068\u006f\u0077\u0056\u0069\u0065\u0077\u0042\u0075\u0074\u0074\u006f\u006e"],![])?!![]:![];}},'methods':{"\u0067\u0065\u0074\u0056\u0061\u006c\u0075\u0065"(){function _0x53ad66(_0x43a8ab,_0x539f69,_0x116b08,_0x2c265a,_0x15a58c){return _0x1110(_0x43a8ab-0xbe,_0x2c265a);}function _0x1fff67(_0x1f67d7,_0x9a04c3,_0x5c7302,_0x48e48f,_0x1ec97a){return _0x9920(_0x5c7302- -0x38e,_0x48e48f);}function _0x2f593a(_0x210375,_0x12a639,_0x441906,_0x5227b5,_0x34e7f4){return _0x1110(_0x34e7f4-0x6f,_0x12a639);}const _0x3541de={'cNDWu':_0x1fff67(-0x309,-0x335,-0x338,"rFYW".split("").reverse().join(""),-0x33c),"\u0049\u0055\u0073\u006e\u0059":_0x2f593a(0x150,0xc3,0x141,0x123,0xf7),"\u0074\u0054\u0053\u004d\u0066":function(_0x4ed492){return _0x4ed492();},"\u006e\u006a\u0041\u0052\u0071":_0x1fff67(-0x34e,-0x31e,-0x339,"CHYK".split("").reverse().join(""),-0x365)};function _0x38aafc(_0x5eaa01,_0x52712d,_0x227c63,_0x2ab1b0,_0x54d8b5){return _0x9920(_0x227c63- -0x329,_0x54d8b5);}var _0xb37d94;function _0x5b1779(_0x3d0c09,_0x33c660,_0x7a870c,_0x5a842a,_0x5526f6){return _0x9920(_0x33c660- -0x382,_0x5a842a);}let _0x5dce1d=null;function _0x5cbd3b(_0x194957,_0x4ea496,_0x535815,_0xc5b65b,_0x1f4131){return _0x9920(_0x1f4131-0x3c1,_0x535815);}_0xb37d94=0x9;if(this["\u0062\u0069\u006e\u0064\u0044\u0061\u0074\u0061"]){if(_0x3541de["\u0049\u0055\u0073\u006e\u0059"]===_0x5cbd3b(0x3f7,0x451,"&hcN".split("").reverse().join(""),0x40b,0x41f)){_0x5dce1d=this['value'];}else{this['$baseFilePreview'](_0x41419b);}}else if(typeof this["\u006f\u0070\u0074\u0069\u006f\u006e"]["\u0072\u006f\u0077\u0073"]===_0x2f593a(0x1c,0x6e,0x36,0x74,0x72)){let _0xf9ed51=async()=>{if(_0x3541de['cNDWu']!=='LpBQR'){_0x2761f0=_0x2ce839['name'];}else{await new Promise((_0x21cced,_0x220bc5)=>{let _0x2f5cca=_0x51e533=>{_0x5dce1d=_0x51e533;_0x21cced(_0x5dce1d);};this["\u006f\u0070\u0074\u0069\u006f\u006e"]['rows'](_0x2f5cca);});}};_0x3541de["\u0074\u0054\u0053\u004d\u0066"](_0xf9ed51);}else{if(_0x38aafc(-0x2d7,-0x2c3,-0x287,-0x2a5,'E&lF')!==_0x3541de['njARq']){_0x5dce1d=this['option']['rows'];}else{var _0x346904=this;return{'showDialog':!![],"\u0066\u0061\u006c\u0073\u0065\u0056\u0061\u006c\u0075\u0065":![],'selectMulti':!![],'formData':{},"\u0076\u0078\u0065\u004f\u0070\u0074\u0069\u006f\u006e":{},"\u006f\u0070\u0074\u0069\u006f\u006e":{'accept':_0x38aafc(-0x2d2,-0x2d7,-0x297,-0x268,"jT1Q".split("").reverse().join("")),"\u006d\u0075\u006c\u0074\u0069":!![]},"\u0073\u0068\u006f\u0077\u0055\u0070\u006c\u006f\u0061\u0064":![]};}}function _0xd0cc5b(_0x2ec37e,_0x54273c,_0x2b519e,_0x1b1029,_0x308828){return _0x9920(_0x54273c- -0x70,_0x308828);}return _0x5dce1d;},"\u0067\u0065\u0074\u0053\u0068\u006f\u0077\u0053\u006f\u0075\u0072\u0063\u0065\u0055\u0072\u006c"(){const _0x3a3cdc={"\u0055\u0078\u0077\u0057\u0041":_0x3b8490(0x27e,0x2dc,0x2b3,0x293,0x252),"\u0075\u0041\u0048\u0079\u004d":function(_0x16a0eb,_0x201b5c){return _0x16a0eb!==_0x201b5c;},"\u0062\u006b\u006d\u0054\u0059":_0xc3e7a9(0x255,0x211,"\u004e\u0021\u0061\u0048",0x209,0x22c)};var _0x2eb066;function _0x403e90(_0x41da40,_0x525b2c,_0x85a87c,_0x192020,_0x45fa9e){return _0x1110(_0x41da40-0x28e,_0x525b2c);}let _0x304702=this['getValue']();_0x2eb066=_0x3a3cdc['UxwWA'];var _0x144062;function _0x3b8490(_0x4955bd,_0x14ea49,_0x5f2d13,_0x3d5e6f,_0x434d63){return _0x1110(_0x3d5e6f-0x1ef,_0x4955bd);}function _0xc3e7a9(_0x3b6337,_0x396232,_0x2eb5da,_0x26592e,_0x57becd){return _0x9920(_0x3b6337-0x1ce,_0x2eb5da);}function _0x46ea6c(_0x149f6a,_0x9b8991,_0x3e4c1b,_0x58d210,_0x19dc98){return _0x1110(_0x19dc98-0x17a,_0x149f6a);}let _0x1eb25e=null;_0x144062=_0x3b8490(0x254,0x29d,0x28d,0x25a,0x253);function _0x593baf(_0x2250e2,_0x24cbe7,_0x5ab78d,_0x368dfe,_0x1ff3d1){return _0x9920(_0x24cbe7-0x140,_0x2250e2);}if(Array['isArray'](_0x304702)){if(_0x304702['length']){if(_0x3a3cdc['uAHyM'](_0x3a3cdc['bkmTY'],_0x593baf("Q6Z5".split("").reverse().join(""),0x1be,0x168,0x16a,0x17a))){_0x1eb25e=_0x304702[0xbe2e8^0xbe2e8]["\u0064\u006f\u006d\u0061\u0069\u006e"]+_0x304702[0x3fb93^0x3fb93]['url'];}else{if(_0x8331aa["\u006c\u0065\u006e\u0067\u0074\u0068"]){_0x26d630=this["\u0024\u0063\u006f\u006d\u006d\u006f\u006e\u0046\u0069\u006c\u0065\u0055\u0074\u0069\u006c"]['getShowUrl'](_0x3f91cb[0xa8fac^0xa8fac]['domain']+(_0x2d28c8[0x6e966^0x6e966]["\u006d\u0065\u0064\u0069\u0075\u006d"]?_0x386e13[0xe8b5e^0xe8b5e]["\u006d\u0065\u0064\u0069\u0075\u006d"]:_0x177ff8[0x56ad6^0x56ad6]["\u0075\u0072\u006c"]));}}}}else if(Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"]['call'](_0x304702)===_0x46ea6c(0x208,0x236,0x1fb,0x27c,0x227)){_0x1eb25e=_0x304702['domain']+_0x304702['url'];}else{_0x1eb25e=_0x304702||null;}return _0x1eb25e;},"\u0067\u0065\u0074\u0049\u006d\u0061\u0067\u0065\u0055\u0072\u006c"(){const _0x52eb09={'ovUDr':function(_0x4d958f,_0x515e40){return _0x4d958f(_0x515e40);},'pKNgF':function(_0x4b6215,_0x481884){return _0x4b6215+_0x481884;},'omlmR':_0x1c8773(0x48,0x5e,0xab,'h2W0',0x77),'DgPbd':function(_0x223e9b,_0x2803b8){return _0x223e9b^_0x2803b8;},'VUZMg':_0x1c8773(-0x57,-0x2f,-0x39,'PSjm',-0x31)};function _0x2b35de(_0x384dbf,_0x2ec7cd,_0x2a78df,_0x12c95a,_0x1e6412){return _0x1110(_0x2ec7cd-0xcc,_0x2a78df);}function _0x32be16(_0x11c806,_0x5287c4,_0x3f302a,_0x585970,_0x40282b){return _0x9920(_0x5287c4- -0xec,_0x40282b);}let _0x14ff47=this["\u0067\u0065\u0074\u0056\u0061\u006c\u0075\u0065"]();function _0x1c8773(_0x16f116,_0x439250,_0xb28bbf,_0x1bb380,_0x307653){return _0x9920(_0x439250- -0x49,_0x1bb380);}function _0x562149(_0x54b41c,_0x5f6759,_0x18509f,_0x3f1e28,_0x596350){return _0x1110(_0x18509f- -0x37f,_0x3f1e28);}function _0x2e9961(_0x26144b,_0x410399,_0x2661e7,_0x2163f6,_0x4466d4){return _0x1110(_0x26144b-0x1ad,_0x2661e7);}let _0x4a05d2=null;if(Array['isArray'](_0x14ff47)){if(_0x3c8c92(0x47,0x44,0x6,0x38,0x71)===_0x3c8c92(0x23,0x47,0x39,0x38,-0x1e)){if(_0x14ff47["\u006c\u0065\u006e\u0067\u0074\u0068"]){if(_0x3c8c92(0x29,0x9b,0x14,0x4a,0x66)===_0x52eb09["\u006f\u006d\u006c\u006d\u0052"]){_0x18e325=_0x48c61d['length'];}else{_0x4a05d2=this['$commonFileUtil']['getShowUrl'](_0x14ff47[0xa8fac^0xa8fac]['domain']+(_0x14ff47[_0x52eb09['DgPbd'](0x6e966,0x6e966)]['medium']?_0x14ff47[_0x52eb09['DgPbd'](0xe8b5e,0xe8b5e)]['medium']:_0x14ff47[_0x52eb09['DgPbd'](0x56ad6,0x56ad6)]['url']));}}}else{let _0x235e4b=_0x15a000=>{_0x3880dd=_0x15a000;_0x52eb09["\u006f\u0076\u0055\u0044\u0072"](_0x5b5df0,_0xff4207);};this["\u006f\u0070\u0074\u0069\u006f\u006e"]['rows'](_0x235e4b);}}else if(Object['prototype']['toString']['call'](_0x14ff47)===_0x52eb09["\u0056\u0055\u005a\u004d\u0067"]){if(_0x2c6847('6K#@',0x35b,0x32e,0x2fb,0x32e)===_0x2e9961(0x1c6,0x1f7,0x1db,0x1f1,0x194)){_0xe1dd1f=this['$commonFileUtil']["\u0067\u0065\u0074\u0053\u0068\u006f\u0077\u0055\u0072\u006c"](_0x52eb09['pKNgF'](_0x267df4[0xa8fac^0xa8fac]["\u0064\u006f\u006d\u0061\u0069\u006e"],_0x18b0dd[0x6e966^0x6e966]["\u006d\u0065\u0064\u0069\u0075\u006d"]?_0x34c524[0xe8b5e^0xe8b5e]['medium']:_0x290b06[0x56ad6^0x56ad6]['url']));}else{_0x4a05d2=this['$commonFileUtil']['getShowUrl'](_0x14ff47["\u0064\u006f\u006d\u0061\u0069\u006e"]+(_0x14ff47['medium']?_0x14ff47['medium']:_0x14ff47['url']));}}else{_0x4a05d2=_0x14ff47?this['$commonFileUtil']['getShowUrl'](_0x14ff47):null;}function _0x3c8c92(_0x50b186,_0xce8b34,_0x5ee23e,_0x1bac64,_0x5df8cb){return _0x1110(_0x1bac64- -0x40,_0x5df8cb);}function _0x2c6847(_0x11ebea,_0x7f9b88,_0x36ecd3,_0x20833b,_0x21a8e2){return _0x9920(_0x36ecd3-0x2dc,_0x11ebea);}return _0x4a05d2;},"\u0067\u0065\u0074\u0046\u0069\u006c\u0065\u004e\u0061\u006d\u0065"(){const _0x4ef223={'mdOeC':function(_0x497f7a,_0x3634a8){return _0x497f7a^_0x3634a8;},'IFJxL':function(_0x2480ac,_0x3dc7e6){return _0x2480ac!==_0x3dc7e6;},'EAuKN':function(_0x30158b,_0x568dcc){return _0x30158b^_0x568dcc;},'htraC':_0x5dd830(0x8c,'HIk3',0xac,0xe3,0xd0),'Acsxp':_0x293084(0x13d,0x18f,0x17f,0x170,0x18d)};let _0x2d20c6=this['getValue']();let _0x51896b=null;function _0x93a0ef(_0x5cbdda,_0x135d67,_0x5c1f1c,_0x2b8a2d,_0x22a7ad){return _0x9920(_0x135d67-0x303,_0x2b8a2d);}function _0x4a4041(_0x56b647,_0x3e0df1,_0x8e898f,_0x1bc8d3,_0x2eecbb){return _0x9920(_0x1bc8d3-0x2ea,_0x8e898f);}function _0x293084(_0x4fd89a,_0x6ab998,_0x3d505a,_0xe21c58,_0x415d84){return _0x1110(_0x3d505a-0x135,_0x415d84);}if(Array['isArray'](_0x2d20c6)){if(_0x2d20c6['length']){if(_0x4ef223['IFJxL'](_0x5dd830(0x74,'par6',0xa1,0xd1,0xb5),_0x4a4041(0x315,0x2af,"3jMS".split("").reverse().join(""),0x2f2,0x32c))){_0x1ce5ff=_0x31ade8?this['$commonFileUtil']["\u0067\u0065\u0074\u0053\u0068\u006f\u0077\u0055\u0072\u006c"](_0x1b3912):null;}else{_0x51896b=_0x2d20c6[_0x4ef223['EAuKN'](0x89707,0x89707)]['name'];}}}else if(Object["\u0070\u0072\u006f\u0074\u006f\u0074\u0079\u0070\u0065"]['toString']['call'](_0x2d20c6)===_0x4ef223['htraC']){if(_0x4ef223['Acsxp']===_0x24b55d(0x4b,0x12,0x59,0x3c,0x49)){_0x51896b=_0x2d20c6['name'];}else{_0x555fe0=!!_0x1cd8ba?0xeb1a9^0xeb1a8:_0x4ef223['mdOeC'](0x6ce8b,0x6ce8b);}}else{if(_0x2d20c6){let _0x328ba9=_0x2d20c6['lastIndexOf']('/');if(_0x328ba9>=_0x4ef223['EAuKN'](0xb0fe7,0xb0fe7)){_0x51896b=_0x2d20c6['slice'](_0x328ba9+(0x536bc^0x536bd));}}}function _0x24b55d(_0x166c28,_0x248e3d,_0x2653a1,_0x501a31,_0x4465be){return _0x1110(_0x2653a1-0xf,_0x248e3d);}function _0x5dd830(_0x3bcdd3,_0x31727a,_0x277b95,_0x53a92c,_0x3464fd){return _0x9920(_0x3464fd-0x33,_0x31727a);}return _0x51896b;},'getSize'(){const _0x5d37a1={'XCgxB':function(_0x197318,_0x3cd54b){return _0x197318>=_0x3cd54b;},'KXdUX':function(_0x529008,_0x4149eb){return _0x529008^_0x4149eb;},"\u0057\u0042\u006f\u006c\u0054":_0x363329(0xb5,0xc4,0xea,0x138,0xd0),"\u0077\u0046\u0065\u004e\u0066":_0xec3b47(-0x182,-0x10b,-0x1b4,-0x1b6,-0x163)};var _0x4f83ba;let _0x33ced9=this['getValue']();_0x4f83ba=0x9+0x3;function _0x363329(_0x50f6e6,_0x5851e2,_0xde8905,_0x3c7521,_0x13d012){return _0x1110(_0xde8905-0x3d,_0x3c7521);}function _0x554c3f(_0x14c16b,_0x567b70,_0x1907eb,_0x4d8596,_0x40bcd2){return _0x9920(_0x14c16b- -0x6b,_0x1907eb);}function _0x10bc1b(_0xa14caa,_0x15b4a3,_0x40bb4d,_0x49be59,_0x19369b){return _0x1110(_0x40bb4d- -0x7,_0x19369b);}var _0x1216dc=0x4+0x9;let _0x37e34e=0x54c4a^0x54c4a;_0x1216dc=0x5+0x0;function _0xec3b47(_0x4b010f,_0x1ea3dc,_0x17b38e,_0x11c494,_0xc71f34){return _0x1110(_0xc71f34- -0x19c,_0x4b010f);}if(Array['isArray'](_0x33ced9)){if(_0x7c853e(-0x1e5,-0x1ed,-0x1b4,-0x209,"\u004f\u0054\u0074\u0046")===_0x7c853e(-0x194,-0x1a1,-0x1bb,-0x18d,'E&lF')){_0x37e34e=_0x33ced9['length'];}else{let _0x3f29cf=_0x5662a1['lastIndexOf']('/');if(_0x5d37a1['XCgxB'](_0x3f29cf,_0x5d37a1['KXdUX'](0xb0fe7,0xb0fe7))){_0x249f09=_0x2c15c5['slice'](_0x3f29cf+(0x536bc^0x536bd));}}}else if(Object['prototype']['toString']['call'](_0x33ced9)===_0x5d37a1['WBolT']){if(_0x5d37a1['wFeNf']!==_0xec3b47(-0x167,-0x1ae,-0x13a,-0x14b,-0x163)){let _0x162708=this['$baseLodash']['cloneDeep'](this['getValue']()||[]);this['rows']=_0x162708;this['showUploadDialog']=!![];this['option']['open']&&this['option']['open']();}else{_0x37e34e=0x1;}}else{_0x37e34e=!!_0x33ced9?0xeb1a9^0xeb1a8:0x6ce8b^0x6ce8b;}function _0x7c853e(_0x8fb3f2,_0x23ec52,_0x140c70,_0x2feee3,_0x4c7061){return _0x9920(_0x140c70- -0x20e,_0x4c7061);}return _0x37e34e;},'openAttachmentDialog'(){let _0xd8297d=this['$baseLodash']['cloneDeep'](this['getValue']()||[]);this['rows']=_0xd8297d;this["\u0073\u0068\u006f\u0077\u0055\u0070\u006c\u006f\u0061\u0064\u0044\u0069\u0061\u006c\u006f\u0067"]=!![];this['option']['open']&&this['option']['open']();},'confirmInsertAttachment'(_0x2af214){const _0x54812e={'VrPiA':_0x37a06a("F5rv".split("").reverse().join(""),0x18f,0x189,0x198,0x145),'FJQSc':_0x29282a(0x3d0,0x360,0x3a2,0x384,0x383)};this['$emit'](_0x54812e['VrPiA'],_0x2af214);function _0x29282a(_0x46424f,_0x4719f3,_0x4c026d,_0x38d22e,_0x1f80aa){return _0x1110(_0x38d22e-0x35d,_0x46424f);}this['option']['confirm']&&this['option']["\u0063\u006f\u006e\u0066\u0069\u0072\u006d"](_0x2af214);function _0x37a06a(_0x356082,_0x5c1279,_0x43a74e,_0x480d44,_0x183358){return _0x9920(_0x480d44-0x197,_0x356082);}this['$emit'](_0x54812e['FJQSc'],![]);},'openPreview'(){function _0x41fbbb(_0x3f1536,_0x35a265,_0x5706f1,_0x132071,_0x2bae9a){return _0x1110(_0x132071-0x38d,_0x35a265);}var _0x25dd43=0x7+0x2;let _0x283026=this['getShowSourceUrl']();_0x25dd43=_0x41fbbb(0x3ca,0x3c6,0x3d9,0x3cc,0x3ca);if(_0x283026){if(this['$commonFileUtil']["\u0069\u0073\u0050\u0069\u0063\u0074\u0075\u0072\u0065\u0046\u0069\u006c\u0065"](_0x283026)){this['$baseFilePreview'](_0x283026);}else if(this['$commonFileUtil']['isPreviewFile'](_0x283026)){this['$openFilePreview'](_0x283026);}}}}};function _0x18aeba(_0x5bff08,_0xc71958,_0x3dafdc,_0x1dda32,_0xa354b0){return _0x9920(_0x5bff08-0x118,_0xa354b0);}function _0x9920(_0xa64160,_0x31e600){const _0x1110d7=_0x31e6();_0x9920=function(_0x18db69,_0x159f1c){_0x18db69=_0x18db69-0x0;let _0x556702=_0x1110d7[_0x18db69];if(_0x9920['RVMfiF']===undefined){var _0x51bd05=function(_0x225eec){const _0x160d93="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x17e39b='';let _0x504df0='';for(let _0x13bd0e=0x0,_0x318eaf,_0x3a465e,_0x58dc7b=0x0;_0x3a465e=_0x225eec['charAt'](_0x58dc7b++);~_0x3a465e&&(_0x318eaf=_0x13bd0e%0x4?_0x318eaf*0x40+_0x3a465e:_0x3a465e,_0x13bd0e++%0x4)?_0x17e39b+=String['fromCharCode'](0xff&_0x318eaf>>(-0x2*_0x13bd0e&0x6)):0x0){_0x3a465e=_0x160d93['indexOf'](_0x3a465e);}for(let _0xfb2c7d=0x0,_0x54f061=_0x17e39b['length'];_0xfb2c7d<_0x54f061;_0xfb2c7d++){_0x504df0+='%'+('00'+_0x17e39b['charCodeAt'](_0xfb2c7d)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x504df0);};const _0x494b5d=function(_0x1cf291,_0x102104){let _0x7b7a90=[],_0x3880dd=0x0,_0x5b5df0,_0xff4207="".split("").reverse().join("");_0x1cf291=_0x51bd05(_0x1cf291);let _0x53c3b3;for(_0x53c3b3=0x0;_0x53c3b3<0x100;_0x53c3b3++){_0x7b7a90[_0x53c3b3]=_0x53c3b3;}for(_0x53c3b3=0x0;_0x53c3b3<0x100;_0x53c3b3++){_0x3880dd=(_0x3880dd+_0x7b7a90[_0x53c3b3]+_0x102104["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x53c3b3%_0x102104['length']))%0x100;_0x5b5df0=_0x7b7a90[_0x53c3b3];_0x7b7a90[_0x53c3b3]=_0x7b7a90[_0x3880dd];_0x7b7a90[_0x3880dd]=_0x5b5df0;}_0x53c3b3=0x0;_0x3880dd=0x0;for(let _0x582db2=0x0;_0x582db2<_0x1cf291['length'];_0x582db2++){_0x53c3b3=(_0x53c3b3+0x1)%0x100;_0x3880dd=(_0x3880dd+_0x7b7a90[_0x53c3b3])%0x100;_0x5b5df0=_0x7b7a90[_0x53c3b3];_0x7b7a90[_0x53c3b3]=_0x7b7a90[_0x3880dd];_0x7b7a90[_0x3880dd]=_0x5b5df0;_0xff4207+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x1cf291['charCodeAt'](_0x582db2)^_0x7b7a90[(_0x7b7a90[_0x53c3b3]+_0x7b7a90[_0x3880dd])%0x100]);}return _0xff4207;};_0x9920["\u0044\u0046\u0062\u0050\u0079\u0076"]=_0x494b5d;_0xa64160=arguments;_0x9920['RVMfiF']=!![];}const _0x3f1c74=_0x1110d7[0x0];const _0xc8db8c=_0x18db69+_0x3f1c74;const _0x99207=_0xa64160[_0xc8db8c];if(!_0x99207){if(_0x9920['EFyQKS']===undefined){_0x9920['EFyQKS']=!![];}_0x556702=_0x9920['DFbPyv'](_0x556702,_0x159f1c);_0xa64160[_0xc8db8c]=_0x556702;}else{_0x556702=_0x99207;}return _0x556702;};return _0x9920(_0xa64160,_0x31e600);}uploadDialogMixin={'props':{'visiable':Boolean,'multi':String,"\u0072\u006f\u0077\u0073":Array,'param':Object,'onConfirm':Function,'edit':{'type':Boolean,'default':![]},"\u0074\u0069\u0074\u006c\u0065":{'type':String,'default':()=>this['$t2'](_0x163434("&[&w".split("").reverse().join(""),0x307,0x336,0x328,0x344),_0x18aeba(0x140,0x109,0x178,0x143,'OTtF'))}},'mixins':[selectDialogMixins],'created'(){this['initSetting']();this['checkRows']=this["\u0024\u0062\u0061\u0073\u0065\u004c\u006f\u0064\u0061\u0073\u0068"]["\u0063\u006c\u006f\u006e\u0065\u0044\u0065\u0065\u0070"](this['rows']||[]);Object["\u0061\u0073\u0073\u0069\u0067\u006e"](this['option'],this['param']);this['showUpload']=!![];},'mounted'(){},'data'(){var _0x594318=this;function _0x2e848b(_0x3e1abc,_0x962aa,_0x60ba46,_0x14c082,_0xfe343c){return _0x1110(_0x3e1abc- -0x123,_0x14c082);}return{'showDialog':!![],"\u0066\u0061\u006c\u0073\u0065\u0056\u0061\u006c\u0075\u0065":![],'selectMulti':!![],'formData':{},"\u0076\u0078\u0065\u004f\u0070\u0074\u0069\u006f\u006e":{},"\u006f\u0070\u0074\u0069\u006f\u006e":{"\u0061\u0063\u0063\u0065\u0070\u0074":_0x2e848b(-0x112,-0xd2,-0xc2,-0xce,-0x132),'multi':!![]},'showUpload':![]};},'methods':{'closeWin'(){this["\u0073\u0068\u006f\u0077\u0044\u0069\u0061\u006c\u006f\u0067"]=![];this['dialogClose']();},'confirmWin'(){this["\u0073\u0068\u006f\u0077\u0044\u0069\u0061\u006c\u006f\u0067"]=![];this['dialogPrimary'](this['checkRows']);this['onConfirm']&&this['onConfirm'](this['checkRows']);}}};function _0x31e6(){const _0x57a6bc=['WRmOa8kKW54','W7aDW6RdNSkcWOzPWRqCW5xcUgC',"aBJ9MB".split("").reverse().join(""),"ToCJcdcaE0Lc8oCSc/OW".split("").reverse().join(""),"eNubPMB".split("").reverse().join(""),"u4WXCOWqo8w".split("").reverse().join(""),"ad/nImDo8f".split("").reverse().join(""),"5oCRctJNc7ga".split("").reverse().join(""),"4HvEG1LcdOW".split("").reverse().join(""),'WOpcHL8dCb5Wc8ojW5JdQa',"COWIe5WAkmhg1fLdN5WX4ZTddOW".split("").reverse().join(""),'w29IAMvJDcbpyMPLy3rD',"\u0041\u0068\u0072\u0059\u0079\u0075\u006d","muzprwB".split("").reverse().join(""),'rSo9WRVdUYRcRW','nJu0nJa4EuP0z3fS',"VgO5H+l5b+k6TEy5".split("").reverse().join(""),'W4HYWP7cJvm','y2HLy2TsB3DZ',"\u007a\u004e\u0076\u0055\u0079\u0033\u0072\u0050\u0042\u0032\u0034",'mtqWnwnQBgDTBG','W4VdV8kJW6m','w2yix8k5xrSJW4SXW7KqW50',"Hj2AvfMzWuZm".split("").reverse().join(""),'WQ3cKCktEu0',"\u006b\u006d\u006f\u0041\u0057\u0034\u004f\u0061\u006b\u006d\u006f\u0037\u0073\u006d\u006f\u006e\u0072\u0033\u0062\u0048\u006a\u0043\u006f\u006c\u0065\u0077\u0047","aBSf2y".split("").reverse().join(""),'WRjog21BzW','W53dS8kLW6aJy8oUWRFdSCoN','BMfTzq',"a7WEoSa1LrFam0JcZPW".split("").reverse().join(""),'y29TCg9Uzw50CY5IyxnLqxr0ywnOBwvUDc50AxrSzq','W5NcLNJdK8kOl0yMWQK','zMLSzq','aCkKy8oPqG','C2HVD1vWBg9HzerPywXVzW','jgvTAxq',"TjxAM52Bd52B".split("").reverse().join(""),'D0zLtMy','mtiXmJi4mwDvCuzbrG','W53cPIBcQaS',"\u0073\u0067\u006a\u004a\u0045\u0065\u0043","GRWrk8IdBueOoCIdVbm2oSj1k8vpLQW".split("").reverse().join(""),'jgnVBw1VBKzPBgvvDgLS',"GZosk8AGoSdRrXrvX4WdomD".split("").reverse().join(""),'jgjHC2vmB2rHC2G','ruf1s04',"\u0057\u0052\u0033\u0063\u0056\u0065\u0070\u0063\u0050\u0038\u006f\u0057",'5ysW6k+/5l6o5OgR',"\u0072\u006d\u006b\u006b\u006d\u006d\u006b\u007a\u0075\u0066\u0068\u0064\u0050\u0053\u006b\u0050\u0044\u0053\u006f\u0070\u0066\u006d\u006f\u0030\u0067\u0049\u0061\u0038","qBYLMzU92y".split("").reverse().join(""),'WOyiWPpcT8k7rW',"K0zzPetNDtm".split("").reverse().join(""),"qRWJomNcN6WLe7W".split("").reverse().join(""),'zwrPDa','DxbKyxrLoNzPC2LHyMXL','WPxcSfxdKgRdO8o3dComCYy6W7xcVSkYF8kewmoVW6TtdSkbWOn0nmomWQz6ESoj',"afEo8a".split("").reverse().join(""),"\u0072\u0066\u004e\u0063\u0051\u0072\u002f\u0064\u004a\u0071","\u0057\u0050\u002f\u0063\u004c\u0075\u006d\u0064\u0076\u0047\u0072\u0054\u0068\u0053\u006f\u0075","WeEkzus".split("").reverse().join(""),'yMLUzerHDge',"ywttrfD".split("").reverse().join(""),'jhqY','zHyGDZhcVGVdNMq','jg9Wzw5gAwXLuhjLDMLLDW','emktEs8',"\u007a\u0032\u0076\u0030\u0075\u0032\u0048\u0056\u0044\u0031\u0076\u0059\u0042\u0061","GmvBgo8i".split("").reverse().join(""),'WPf8WO5/Cq','BgvUz3rO',"\u006e\u0064\u0071\u0058\u006f\u0077\u0066\u0059\u0079\u0032\u0039\u0079\u0071\u0057",'z1rSq2S',"ahDH12y".split("").reverse().join(""),'ChjVDg90ExbL','y8ojW5eekSo6','W6RdSSkmx2i','W7vCBCkDWRZdUre','W4ddJCk0vIi',"\u007a\u004d\u0076\u004e\u0041\u0071",'CM93CW','zr0nFYVcSa','WORdR8o4',"\u0076\u004e\u006a\u0071\u0041\u0075\u0065",'zgLHBg9Nq2XVC2u',"UDwAZnxy".split("").reverse().join(""),'WR3dPmoGsfLfcaqMs0NcOq','Dg9tDhjPBMC','BwvKAxvT','y05ev3u','ALb6txi',"W2d8k8hYkCd".split("").reverse().join(""),'vCofuq0','W6HaF8kBWRZdSqy+',"y0zoTeC".split("").reverse().join(""),'vuqn',"m4WYz5WZk8Vdx7W".split("").reverse().join(""),'DufiEu0','kdbVoSoP','WP86cmkbW5C','B3bLBG',"\u0057\u0037\u004b\u0058\u006d\u0053\u006b\u0064\u0074\u0071",'WPZcRSoWWQddTW','W43dT8kLW7KctSoQWR7dRG',"\u0057\u0035\u0069\u0051\u0057\u0034\u0056\u0063\u0048\u006d\u006f\u0034",'ohTeWQxcLCktW5NdKa','WRlcP3BdQKO',"uwDSfMD".split("").reverse().join(""),"mIoxkSSc/xq55PWb1RW".split("").reverse().join(""),'W79oqmkd','BCo0W5yJea','vxH3v0e','bfqaeSoJFsdcR8oxW7jl',"aBojgszDenZatm".split("").reverse().join(""),'WQNcT8kLD1Snu8kz','lr0oCsS','vLvAtwC',"aBYvvzJjxDVn1DVH2u0v2z".split("").reverse().join(""),"wW4WV14WgkmVdp7W".split("").reverse().join(""),'Aw5PDfnLDhrPBMC','WROBW6LcuSo8W6u',"GfqombWLgB8o8q9o8eAO4Wro8F".split("").reverse().join(""),'DgL0Bgu',"GARDwB".split("").reverse().join(""),'dCkHASoNE3WMpCou','fmk4kmkHcgGAbG','BeyJmmou',"\u0057\u0035\u0048\u0069\u0057\u0035\u0074\u0064\u0051\u0053\u006b\u0074\u0043\u0064\u0047\u0052\u0064\u0031\u004f",'uSoZWQtdUY4','jgjHC2vgAwXLuhjLDMLLDW',"qzSLMr3vwA2vMCqnxA".split("").reverse().join(""),'ntm0Bu1JBLHY',"Ko8VdtRWJoSEYa6WLk8Sd35W".split("").reverse().join(""),'C2XPy2u','mqNcNJhdOZZdJmkd',"6oCScZZLctwc".split("").reverse().join(""),'Axr2Dfa',"dL0Bz9MEXutn2ytm".split("").reverse().join(""),'W6JdKCkBW4qe',"azb12cBbRW".split("").reverse().join(""),'gInr','WRO2WRddOgfu','l8kBnmktdq','WRfBawnayq',"qIddQWVzGdh4OW3o8q".split("").reverse().join(""),"aeaomQc3LHcdPW".split("").reverse().join(""),"GNdxYUc33y".split("").reverse().join(""),'rgDqyMq','fSkMW6FcOYlcS24XW5SF','W4TTq8kdWPO','qglcNdJcQCo4W7xcNSkmW7JdTgbMW4BdLq','qmoLWRRdIZu',"uLtZ1uy".split("").reverse().join(""),'DxjS','shv5r2i','vCoQWOi0W6y',"domMd3QW7k8HchGyOKOWG0XLdlOWskCKcFOWdDgl".split("").reverse().join(""),"WvwzevMBVX2y".split("").reverse().join(""),"tGPWUoCr".split("").reverse().join(""),"aTclxvbk8Udt7W".split("").reverse().join(""),"CuhDoSOcFOW".split("").reverse().join(""),"CQWX9Jd3O4WNk8f".split("").reverse().join(""),"rk8makSb".split("").reverse().join(""),'AxnbCNjHEq','W4z5WPRcRKBdMCopCG',"qLdd5Wnf1Nd34W".split("").reverse().join(""),'W6BcTmkWfXWq','WRvuWP5drN4',"uwDSfMv0v2z".split("").reverse().join(""),'qwnZEha','B3b0Aw9U','WPdcGfhcPCoggCkSsmo1Emk2xSkW',"y2t4vgzULeDZfgB".split("").reverse().join(""),'k8kTW5WlcJbWW6ldP2SBWPOIWOPw','ofHirK9PDW','l2XFWOFcM8klW5xdHq0','W7NdP8kIW5X2W78aida','AxnqAwn0DxjLrMLSzq'];_0x31e6=function(){return _0x57a6bc;};return _0x31e6();}
|
4
|
+
indexMixin = {
|
5
|
+
props: {
|
6
|
+
option: {
|
7
|
+
type: Object,
|
8
|
+
},
|
9
|
+
value: {
|
10
|
+
type: [String, Object, Array]
|
11
|
+
},
|
12
|
+
bindData: Boolean
|
13
|
+
},
|
14
|
+
data() {
|
15
|
+
return {
|
16
|
+
rows: [],
|
17
|
+
showUploadDialog: false,
|
18
|
+
size: 0,
|
19
|
+
imageUrl: null,
|
20
|
+
fileName: null,
|
21
|
+
showSourceUrl: null,
|
22
|
+
showContent: false,
|
23
|
+
isUploadEnabled: false
|
24
|
+
};
|
25
|
+
},
|
26
|
+
computed: {
|
27
|
+
title() {
|
28
|
+
return (
|
29
|
+
this.$t2("查看", "system.button.check") +
|
30
|
+
(this.option && this.option.title
|
31
|
+
? this.option.title
|
32
|
+
: this.$t2("凭证信息", "components.baseAttachment.title"))
|
33
|
+
);
|
34
|
+
},
|
35
|
+
edit() {
|
36
|
+
return this.option && this.option.edit ? this.option.edit : false;
|
37
|
+
},
|
38
|
+
showViewButton() {
|
39
|
+
return this.option && this.option.showViewButton !== false ? true : false;
|
40
|
+
},
|
41
|
+
},
|
42
|
+
created() {
|
43
|
+
this.initRows();
|
44
|
+
},
|
45
|
+
methods: {
|
46
|
+
initIsUploadEnabled() {
|
47
|
+
let value = true;
|
48
|
+
let uploadConfig = this.option.uploadConfig;
|
49
|
+
if (uploadConfig && uploadConfig.limit) {
|
50
|
+
value = uploadConfig.limit > this.rows.length
|
51
|
+
}
|
52
|
+
this.isUploadEnabled = value;
|
53
|
+
},
|
54
|
+
uploadFile() {
|
55
|
+
let uploadConfig = this.option.uploadConfig;
|
56
|
+
let config = {
|
57
|
+
...uploadConfig
|
58
|
+
}
|
59
|
+
|
60
|
+
this.$baseUpload.open({
|
61
|
+
...config,
|
62
|
+
callback: (rows) => {
|
63
|
+
if (rows.length) {
|
64
|
+
let items = [
|
65
|
+
...this.rows,
|
66
|
+
...rows
|
67
|
+
]
|
68
|
+
if (uploadConfig && uploadConfig.limit) {
|
69
|
+
if (items.length > uploadConfig.limit) {
|
70
|
+
items.length = uploadConfig.limit
|
71
|
+
}
|
72
|
+
}
|
73
|
+
this.confirmInsertAttachment(items)
|
74
|
+
}
|
75
|
+
},
|
76
|
+
});
|
77
|
+
},
|
78
|
+
initRows() {
|
79
|
+
let value = this.$baseLodash.cloneDeep(this.getValue() || []);
|
80
|
+
this.rows.length = 0
|
81
|
+
this.rows.push(...value)
|
82
|
+
this.$nextTick(() => {
|
83
|
+
this.initIsUploadEnabled();
|
84
|
+
this.initImageUrl();
|
85
|
+
this.initShowSourceUrl();
|
86
|
+
this.initFileName()
|
87
|
+
this.initSize();
|
88
|
+
})
|
89
|
+
|
90
|
+
},
|
91
|
+
getValue() {
|
92
|
+
let value = null
|
93
|
+
if (this.bindData) {
|
94
|
+
value = this.value;
|
95
|
+
} else if (typeof this.option.rows === "function") {
|
96
|
+
let toDo = () => {
|
97
|
+
let done = (attachments) => {
|
98
|
+
value = attachments
|
99
|
+
};
|
100
|
+
this.option.rows(done);
|
101
|
+
}
|
102
|
+
toDo();
|
103
|
+
} else {
|
104
|
+
value = this.option.rows
|
105
|
+
}
|
106
|
+
return value;
|
107
|
+
},
|
108
|
+
initShowSourceUrl() {
|
109
|
+
let attachment = this.rows;
|
110
|
+
let showSourceUrl = null
|
111
|
+
if (Array.isArray(attachment)) {
|
112
|
+
if (attachment.length) {
|
113
|
+
showSourceUrl = attachment[0].domain + attachment[0].url;
|
114
|
+
}
|
115
|
+
} else if (Object.prototype.toString.call(attachment) === "[object Object]") {
|
116
|
+
showSourceUrl = attachment.domain + attachment.url;
|
117
|
+
} else {
|
118
|
+
showSourceUrl = attachment || null;
|
119
|
+
}
|
120
|
+
this.showSourceUrl = showSourceUrl;
|
121
|
+
},
|
122
|
+
initImageUrl() {
|
123
|
+
let attachment = this.rows;
|
124
|
+
let imageUrl = null
|
125
|
+
if (Array.isArray(attachment)) {
|
126
|
+
if (attachment.length) {
|
127
|
+
imageUrl = this.$commonFileUtil.getShowUrl(
|
128
|
+
attachment[0].domain +
|
129
|
+
(attachment[0].medium ? attachment[0].medium : attachment[0].url)
|
130
|
+
);
|
131
|
+
}
|
132
|
+
} else if (Object.prototype.toString.call(attachment) === "[object Object]") {
|
133
|
+
imageUrl = this.$commonFileUtil.getShowUrl(
|
134
|
+
attachment.domain +
|
135
|
+
(attachment.medium ? attachment.medium : attachment.url)
|
136
|
+
);
|
137
|
+
} else {
|
138
|
+
imageUrl = attachment
|
139
|
+
? this.$commonFileUtil.getShowUrl(attachment)
|
140
|
+
: null;
|
141
|
+
}
|
142
|
+
this.imageUrl = imageUrl;
|
143
|
+
},
|
144
|
+
initFileName() {
|
145
|
+
let attachment = this.rows;
|
146
|
+
let fileName = null
|
147
|
+
if (Array.isArray(attachment)) {
|
148
|
+
if (attachment.length) {
|
149
|
+
fileName = attachment[0].name;
|
150
|
+
}
|
151
|
+
} else if (Object.prototype.toString.call(attachment) === "[object Object]") {
|
152
|
+
fileName = attachment.name;
|
153
|
+
} else {
|
154
|
+
if (attachment) {
|
155
|
+
let index = attachment.lastIndexOf("/");
|
156
|
+
if (index >= 0) {
|
157
|
+
fileName = attachment.slice(index + 1);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
this.fileName = fileName;
|
162
|
+
},
|
163
|
+
initSize() {
|
164
|
+
let attachment = this.rows;
|
165
|
+
let size = 0;
|
166
|
+
if (Array.isArray(attachment)) {
|
167
|
+
size = attachment.length;
|
168
|
+
} else if (Object.prototype.toString.call(attachment) === "[object Object]") {
|
169
|
+
size = 1;
|
170
|
+
} else {
|
171
|
+
size = !!attachment ? 1 : 0;
|
172
|
+
}
|
173
|
+
this.size = size;
|
174
|
+
},
|
175
|
+
openAttachmentDialog() {
|
176
|
+
this.initRows();
|
177
|
+
this.showUploadDialog = true;
|
178
|
+
this.option.open && this.option.open();
|
179
|
+
},
|
180
|
+
confirmInsertAttachment(rows) {
|
181
|
+
this.$emit("input", rows);
|
182
|
+
this.option.confirm && this.option.confirm(rows);
|
183
|
+
this.$emit("update:visiable", false);
|
184
|
+
this.$nextTick(()=>{
|
185
|
+
this.initRows();
|
186
|
+
})
|
187
|
+
},
|
188
|
+
openPreview() {
|
189
|
+
let url = this.showSourceUrl;
|
190
|
+
if (url) {
|
191
|
+
if (this.$commonFileUtil.isPictureFile(url)) {
|
192
|
+
this.$baseFilePreview(url)
|
193
|
+
} else if (this.$commonFileUtil.isPreviewFile(url)) {
|
194
|
+
this.$openFilePreview(url);
|
195
|
+
}
|
196
|
+
}
|
197
|
+
},
|
198
|
+
},
|
199
|
+
};
|
200
|
+
uploadDialogMixin = {
|
201
|
+
props: {
|
202
|
+
visiable: Boolean,
|
203
|
+
multi: String,
|
204
|
+
rows: Array,
|
205
|
+
param: Object,
|
206
|
+
onConfirm: Function,
|
207
|
+
edit: {
|
208
|
+
type: Boolean,
|
209
|
+
default: false,
|
210
|
+
},
|
211
|
+
title: {
|
212
|
+
type: String,
|
213
|
+
default: () => this.$t2("凭证信息", "components.baseAttachment.title"),
|
214
|
+
},
|
215
|
+
},
|
216
|
+
mixins: [selectDialogMixins],
|
217
|
+
created() {
|
218
|
+
this.initSetting();
|
219
|
+
this.checkRows = this.$baseLodash.cloneDeep(this.rows || []);
|
220
|
+
Object.assign(this.option, this.param);
|
221
|
+
this.showUpload = true;
|
222
|
+
},
|
223
|
+
mounted() {
|
224
|
+
},
|
225
|
+
data() {
|
226
|
+
var that = this;
|
227
|
+
return {
|
228
|
+
showDialog: true,
|
229
|
+
falseValue: false,
|
230
|
+
selectMulti: true,
|
231
|
+
formData: {},
|
232
|
+
vxeOption: {},
|
233
|
+
option: {
|
234
|
+
accept: "file",
|
235
|
+
multi: true,
|
236
|
+
},
|
237
|
+
showUpload: false,
|
238
|
+
checkRows: []
|
239
|
+
};
|
240
|
+
},
|
241
|
+
methods: {
|
242
|
+
closeWin() {
|
243
|
+
this.showDialog = false;
|
244
|
+
this.dialogClose();
|
245
|
+
},
|
246
|
+
confirmWin() {
|
247
|
+
this.showDialog = false;
|
248
|
+
this.dialogPrimary(this.checkRows);
|
249
|
+
this.onConfirm && this.onConfirm(this.checkRows);
|
250
|
+
},
|
251
|
+
},
|
252
|
+
};
|
5
253
|
export default {
|
6
254
|
indexMixin,
|
7
255
|
uploadDialogMixin
|
package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue
CHANGED
@@ -55,7 +55,8 @@ export default {
|
|
55
55
|
oldFieldValue: [], //field组件change之前的值
|
56
56
|
fieldModel: [],
|
57
57
|
rules: [],
|
58
|
-
isH5: false
|
58
|
+
isH5: false,
|
59
|
+
option:{}
|
59
60
|
}
|
60
61
|
},
|
61
62
|
watch: {
|
@@ -67,7 +68,7 @@ export default {
|
|
67
68
|
formDataId() {
|
68
69
|
let formRef = this.getFormRef();
|
69
70
|
return formRef.dataId;
|
70
|
-
}
|
71
|
+
}/*,
|
71
72
|
option() {
|
72
73
|
return {
|
73
74
|
title: '附件',
|
@@ -87,7 +88,7 @@ export default {
|
|
87
88
|
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
88
89
|
}
|
89
90
|
};
|
90
|
-
}
|
91
|
+
}*/
|
91
92
|
},
|
92
93
|
beforeCreate() {
|
93
94
|
/* 这里不能访问方法和属性!! */
|
@@ -116,6 +117,7 @@ export default {
|
|
116
117
|
this.buildFieldRules()
|
117
118
|
|
118
119
|
this.handleOnCreated()
|
120
|
+
this.initOption();
|
119
121
|
},
|
120
122
|
|
121
123
|
mounted() {
|
@@ -126,6 +128,27 @@ export default {
|
|
126
128
|
this.unregisterFromRefList()
|
127
129
|
},
|
128
130
|
methods: {
|
131
|
+
initOption(){
|
132
|
+
debugger
|
133
|
+
this.option = {
|
134
|
+
title: '附件',
|
135
|
+
edit: !this.field.options.disabled,
|
136
|
+
uploadConfig: {
|
137
|
+
limit: this.field.options.limit,
|
138
|
+
resultType: "Array"
|
139
|
+
},
|
140
|
+
rows: (done) => {
|
141
|
+
done(this.fieldModel);
|
142
|
+
},
|
143
|
+
confirm: (rows, fileInfos) => {
|
144
|
+
this.fieldModel = rows;
|
145
|
+
// this.field.options.onAfterConfirmFile && this.field.options.onAfterConfirmFile(rows, fileInfos);
|
146
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
147
|
+
let eventParamValues = [rows, fileInfos];
|
148
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
149
|
+
}
|
150
|
+
}
|
151
|
+
},
|
129
152
|
setValue(val) {
|
130
153
|
let data = val || []
|
131
154
|
this.fieldModel = data;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<el-form-item :label="i18nt('designer.setting.limit')">
|
3
|
-
<el-input-number v-model="optionModel.limit"
|
3
|
+
<el-input-number v-model="optionModel.limit" class="hide-spin-button" style="width: 100%"></el-input-number>
|
4
4
|
</el-form-item>
|
5
5
|
</template>
|
6
6
|
|