n20-common-lib 1.3.43 → 1.3.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +168 -48
  2. package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +153 -155
  3. package/{src → nstc-g6}/utils/mapper_aims.js +0 -0
  4. package/package.json +3 -2
  5. package/src/components/ApprovalRecord/approvalImgPro.vue +120 -15
  6. package/src/components/DragList/index.vue +5 -1
  7. package/src/components/ECharts/index.vue +5 -2
  8. package/src/components/InputNumber/index.vue +1 -1
  9. package/src/components/LoginTemporary/form.vue +8 -2
  10. package/src/components/LoginTemporary/index.vue +16 -17
  11. package/src/components/LoginTemporary/qrcode.vue +5 -3
  12. package/src/components/Statis/index.vue +2 -0
  13. package/src/components/Statis/statisItem.vue +7 -2
  14. package/src/components/Table/index.vue +2 -49
  15. package/src/components/TableOperateColumn/OperateBtns.vue +13 -0
  16. package/src/index.js +1 -0
  17. package/src/utils/importGlobal.js +16 -0
  18. package/src/utils/toExcel.js +10 -2
  19. package/src/utils/xls2json.js +6 -2
  20. package/src/utils/xlsx2json.js +6 -2
  21. package/style/index.css +1 -1
  22. package/style/index.css.map +1 -1
  23. package/theme/blue.css +1 -1
  24. package/theme/green.css +1 -1
  25. package/theme/lightBlue.css +1 -1
  26. package/theme/orange.css +1 -1
  27. package/theme/purple.css +1 -1
  28. package/theme/red.css +1 -1
  29. package/theme/yellow.css +1 -1
  30. package/src/assets/.DS_Store +0 -0
  31. package/src/components/.DS_Store +0 -0
  32. package/src/components/Empty/.DS_Store +0 -0
  33. package/src/components/Empty/img/.DS_Store +0 -0
  34. package/src/components/Layout/.DS_Store +0 -0
  35. package/src/components/Table/ThSelectHeader.vue +0 -128
  36. package/src/plugins/.DS_Store +0 -0
  37. package/src/plugins/Sign/.DS_Store +0 -0
@@ -2,21 +2,56 @@
2
2
  <div class="n20-approval-img-por">
3
3
  <svg v-pre style="display: none">
4
4
  <symbol id="symbol_node_User">
5
- <g transform="translate(13, 6)">
5
+ <g transform="translate(8, 6)">
6
6
  <path
7
- d="M7.90909091,7.88279417 C8.63636364,8.68785247 9,9.58236169 9,10.6557728 L9,15.4861225 C9,15.5755735 9,15.6650244 8.90909091,15.8439262 C8.90909091,15.9333772 8.81818182,16.0228281 8.63636364,16.2017299 C8.45454545,16.3806318 8.18181818,16.4700827 7.90909091,16.5595336 C7.54545455,16.4700827 7.27272727,16.3806318 7.09090909,16.2017299 C6.81818182,15.9333772 6.72727273,15.7544753 6.72727273,15.4861225 L6.72727273,21.9265889 C6.72727273,22.1949417 6.63636364,22.4632945 6.36363636,22.6421963 C6.18181818,22.9105491 5.90909091,23 5.63636364,23 C5.45454545,23 5.27272727,23 5.18181818,22.9105491 C5,22.8210982 4.90909091,22.7316472 4.81818182,22.6421963 C4.63636364,22.4632945 4.45454545,22.1949417 4.45454545,21.9265889 C4.45454545,22.1949417 4.36363636,22.4632945 4.09090909,22.6421963 C4,22.7316472 3.90909091,22.8210982 3.81818182,22.9105491 C3.63636364,23 3.45454545,23 3.36363636,23 C3,23 2.81818182,22.9105491 2.54545455,22.6421963 C2.36363636,22.4632945 2.18181818,22.1949417 2.18181818,21.9265889 L2.18181818,15.4861225 C2.18181818,15.7544753 2.09090909,15.9333772 1.90909091,16.2017299 C1.63636364,16.3806318 1.36363636,16.4700827 1.09090909,16.5595336 C0.727272727,16.4700827 0.545454545,16.3806318 0.272727273,16.2017299 C0.0909090909,15.9333772 0,15.7544753 0,15.4861225 L0,10.6557728 C0,9.58236169 0.363636364,8.68785247 1.09090909,7.88279417 C1.09090909,7.79334325 1.18181818,7.79334325 1.27272727,7.79334325 C2.09090909,6.89883403 3.18181818,6.45157942 4.45454545,6.45157942 C5.72727273,6.45157942 6.81818182,6.89883403 7.63636364,7.79334325 C7.72727273,7.79334325 7.81818182,7.79334325 7.90909091,7.88279417 Z M1.32857705,2.70047865 C1.23766796,1.89542035 1.51039524,1.26926389 2.05584978,0.732558361 C2.60130433,0.195852828 3.23766796,-0.0724999378 4.05584978,0.0169509843 C4.78312251,-0.0724999378 5.41948615,0.195852828 5.96494069,0.732558361 C6.41948615,1.26926389 6.69221342,1.89542035 6.78312251,2.70047865 C6.69221342,3.41608602 6.41948615,4.04224248 5.96494069,4.57894801 C5.41948615,5.02620262 4.78312251,5.38400631 4.05584978,5.38400631 C3.23766796,5.38400631 2.60130433,5.02620262 2.05584978,4.57894801 C1.51039524,4.04224248 1.23766796,3.41608602 1.32857705,2.70047865 Z"
7
+ d="M8.62859063,8.46867126 L8.63329414,8.24055098 C9.71745339,7.48328573 10.2442466,6.14748866 10.2442466,4.16966236 C10.2442466,2.26238871 9.05190661,1.12413909 7.0529145,1.12413909 L6.94473376,1.12413909 C4.9480934,1.12413909 3.75340165,2.26238871 3.75340165,4.16966236 C3.75340165,6.13808165 4.28489838,7.47387871 5.37846464,8.23584747 L5.37846464,8.4663195 C3.55820594,8.71090206 1.73324375,9.43524274 1.73324375,10.5429195 C1.73324375,12.0927264 3.50411558,12.8782127 6.99882412,12.8782127 C10.4935327,12.8782127 12.2644045,12.0927264 12.2644045,10.5429195 C12.2644045,9.4375945 10.4441458,8.71325383 8.62859063,8.46867126 Z"
8
8
  />
9
9
  </g>
10
10
  </symbol>
11
11
  <symbol id="symbol_node_Department">
12
- <g transform="translate(8,8.5)">
12
+ <g transform="translate(8,6)">
13
13
  <path
14
- d="M18.7974851,12.756941 L18.7974851,13.0227567 C18.7974851,13.0816828 18.7974851,13.1406089 18.738559,13.2584611 C18.738559,13.3173872 18.6796329,13.3763133 18.5617807,13.4941655 C18.4439285,13.6120177 18.2671502,13.6709438 18.0903718,13.7298699 C17.8546674,13.6709438 17.6778891,13.6120177 17.5600369,13.4941655 C17.3864764,13.3206049 17.3265168,13.2038449 17.3243915,13.0323521 L17.3243915,16.9818835 C17.3243915,16.9851013 17.3243719,16.9883191 17.3243325,16.9915365 L17.3243325,17.2654359 C17.3243325,17.4422142 17.2654064,17.6189925 17.0886281,17.7368447 C16.9707759,17.913623 16.7939976,17.9725491 16.6172193,17.9725491 C16.4993671,17.9725491 16.3815149,17.9725491 16.3225888,17.913623 C16.2047366,17.8546969 16.1458105,17.7957708 16.0868844,17.7368447 C15.9690322,17.6189925 15.85118,17.4422142 15.85118,17.2654359 C15.85118,17.4422142 15.7922539,17.6189925 15.6154756,17.7368447 C15.5565495,17.7957708 15.4976234,17.8546969 15.4386973,17.913623 C15.3208451,17.9725491 15.2029929,17.9725491 15.1440668,17.9725491 C14.9083624,17.9725491 14.7905102,17.913623 14.6137319,17.7368447 C14.4958797,17.6189925 14.3780275,17.4422142 14.3780275,17.2654359 L14.3780275,13.0227567 C14.3780275,13.199535 14.3191014,13.3173872 14.2012492,13.4941655 C14.0244709,13.6120177 13.8476926,13.6709438 13.6709143,13.7298699 C13.4352099,13.6709438 13.3173577,13.6120177 13.1405794,13.4941655 C13.0227272,13.3173872 12.9638011,13.199535 12.9638011,13.0227567 L12.9638011,9.84074723 C12.9638011,9.8342922 12.9638207,9.82784699 12.96386,9.82141156 L12.96386,9.55719484 C12.96386,8.85008163 13.1995644,8.26082062 13.6709732,7.73048571 C13.6709732,7.67155961 13.7298993,7.67155961 13.7888254,7.67155961 C14.3191603,7.08229861 15.0262735,6.7876681 15.8512389,6.7876681 C16.6762044,6.7876681 17.3833176,7.08229861 17.9136525,7.67155961 C17.9725786,7.67155961 18.0315047,7.67155961 18.0904308,7.73048571 C18.5618396,8.26082062 18.797544,8.85008163 18.797544,9.55719484 L18.797544,12.7392043 C18.797544,12.7450969 18.797544,12.7509895 18.7974851,12.756941 Z M15.910224,2.95747156 C16.3816328,2.89854545 16.7941155,3.07532376 17.1476721,3.42888036 C17.4423026,3.78243697 17.6190809,4.19491967 17.6190809,4.72525458 C17.6190809,5.19666338 17.4423026,5.60914609 17.1476721,5.96270269 C16.7941155,6.3162593 16.3816328,6.4930376 15.910224,6.4930376 C15.3798891,6.4930376 14.9674064,6.3162593 14.6138498,5.96270269 C14.2602932,5.66807219 14.0835149,5.25558948 14.142441,4.72525458 C14.0835149,4.19491967 14.2602932,3.78243697 14.6138498,3.42888036 C14.9674064,3.07532376 15.3798891,2.89854545 15.910224,2.95747156 Z M14.2011313,0.482752103 C14.4957619,0.836308707 14.6725402,1.24879141 14.7314663,1.77912632 C14.7314663,2.25053512 14.554688,2.66301783 14.2011313,3.01657443 C13.8475747,3.31120494 13.435092,3.54690934 12.9636832,3.54690934 C12.4333483,3.54690934 12.0208656,3.31120494 11.667309,3.01657443 C11.3137524,2.66301783 11.1369741,2.25053512 11.1369741,1.77912632 C11.1369741,1.24879141 11.3137524,0.836308707 11.667309,0.482752103 C12.0208656,0.129195499 12.4333483,0.0113432971 12.9636832,0.0113432971 C13.435092,0.0113432971 13.8475747,0.129195499 14.2011313,0.482752103 Z M12.2566879,13.2584611 C12.2566879,13.3173872 12.1977618,13.3763133 12.0799096,13.4941655 C11.9620574,13.6120177 11.7852791,13.6709438 11.6085008,13.7298699 C11.3727964,13.6709438 11.1960181,13.6120177 11.0781659,13.4941655 C10.9013876,13.3173872 10.8424615,13.199535 10.8424615,13.0227567 L10.8424615,17.2654359 C10.8424615,17.4422142 10.7835354,17.6189925 10.6067571,17.7368447 C10.4889049,17.913623 10.3121266,17.9725491 10.1353483,17.9725491 C10.017496,17.9725491 9.89964385,17.9725491 9.84071775,17.913623 C9.72286555,17.8546969 9.66393945,17.7957708 9.60501334,17.7368447 C9.48716114,17.6189925 9.36930894,17.4422142 9.36930894,17.2654359 C9.36930894,17.4422142 9.31038284,17.6189925 9.13360454,17.7368447 C9.07467844,17.7957708 9.01575234,17.8546969 8.95682624,17.913623 C8.83897404,17.9725491 8.72112183,17.9725491 8.66219573,17.9725491 C8.42649133,17.9725491 8.30863913,17.913623 8.13186083,17.7368447 C8.01400863,17.6189925 7.89615642,17.4422142 7.89615642,17.2654359 L7.89615642,13.0227567 C7.89615642,13.199535 7.83723032,13.3173872 7.71937812,13.4941655 C7.54259982,13.6120177 7.36582152,13.6709438 7.18904322,13.7298699 C6.95333881,13.6709438 6.83548661,13.6120177 6.65870831,13.4941655 C6.54085611,13.3173872 6.48193001,13.199535 6.48193001,13.0227567 L6.48193001,9.84074723 C6.48193001,9.13363402 6.71763441,8.54437302 7.18904322,8.01403811 C7.18904322,7.95511201 7.24796932,7.95511201 7.30689542,7.95511201 C7.83723032,7.365851 8.54434353,7.0712205 9.36930894,7.0712205 C10.1942744,7.0712205 10.9013876,7.365851 11.4317225,7.95511201 C11.4906486,7.95511201 11.5495747,7.95511201 11.6085008,8.01403811 C12.0799096,8.54437302 12.315614,9.13363402 12.315614,9.84074723 L12.315614,13.0227567 C12.315614,13.0816828 12.315614,13.1406089 12.2566879,13.2584611 Z M9.42835289,2.95747156 C9.8997617,2.89854545 10.3122444,3.07532376 10.665801,3.42888036 C10.9604315,3.78243697 11.1372098,4.19491967 11.1372098,4.72525458 C11.1372098,5.19666338 10.9604315,5.60914609 10.665801,5.96270269 C10.3122444,6.3162593 9.8997617,6.4930376 9.42835289,6.4930376 C8.89801799,6.4930376 8.48553528,6.3162593 8.13197868,5.96270269 C7.77842207,5.66807219 7.60164377,5.25558948 7.66056987,4.72525458 C7.60164377,4.19491967 7.77842207,3.78243697 8.13197868,3.42888036 C8.48553528,3.07532376 8.89801799,2.89854545 9.42835289,2.95747156 Z M5.12657076,7.73054464 C5.59797957,8.26087955 5.83368397,8.85014055 5.83368397,9.55725376 L5.83368397,12.7392632 C5.83368397,12.7981893 5.83368397,12.8571154 5.77475787,12.9749676 C5.77475787,13.0338937 5.71583177,13.0928198 5.59797957,13.210672 C5.48012737,13.3285242 5.30334907,13.3874503 5.12657076,13.4463764 C4.89086636,13.3874503 4.71408806,13.3285242 4.59623586,13.210672 C4.41945755,13.0338937 4.36053145,12.9160415 4.36053145,12.7392632 L4.36053145,16.9819425 C4.36053145,17.1587208 4.30160535,17.3354991 4.12482705,17.4533513 C4.00697485,17.6301296 3.83019655,17.6890557 3.65341825,17.6890557 C3.53556604,17.6890557 3.41771384,17.6890557 3.35878774,17.6301296 C3.24093554,17.5712035 3.18200944,17.5122774 3.12308334,17.4533513 C3.00523114,17.3354991 2.88737894,17.1587208 2.88737894,16.9819425 C2.88737894,17.1587208 2.82845283,17.3354991 2.65167453,17.4533513 C2.59274843,17.5122774 2.53382233,17.5712035 2.47489623,17.6301296 C2.35704403,17.6890557 2.23919183,17.6890557 2.18026573,17.6890557 C1.94456132,17.6890557 1.82670912,17.6301296 1.64993082,17.4533513 C1.53207862,17.3354991 1.41422642,17.1587208 1.41422642,16.9819425 L1.41422642,12.7392632 C1.41422642,12.9160415 1.35530032,13.0338937 1.23744812,13.210672 C1.06066981,13.3285242 0.883891511,13.3874503 0.707113209,13.4463764 C0.471408806,13.3874503 0.353556604,13.3285242 0.176778302,13.210672 C0.0589261007,13.0338937 0,12.9160415 0,12.7392632 L0,9.55725376 C0,8.85014055 0.235704403,8.26087955 0.707113209,7.73054464 C0.707113209,7.67161854 0.766039309,7.67161854 0.82496541,7.67161854 C1.35530032,7.08235753 2.06241353,6.78772703 2.88737894,6.78772703 C3.71234435,6.78772703 4.41945755,7.08235753 4.94979246,7.67161854 C5.00871856,7.67161854 5.06764466,7.67161854 5.12657076,7.73054464 Z M1.17869879,4.72525458 C1.11977269,4.19491967 1.29655099,3.78243697 1.6501076,3.42888036 C2.0036642,3.07532376 2.41614691,2.89854545 2.94648181,2.95747156 C3.41789062,2.89854545 3.83037333,3.07532376 4.18392993,3.42888036 C4.47856043,3.78243697 4.65533874,4.19491967 4.71426484,4.72525458 C4.65533874,5.19666338 4.47856043,5.60914609 4.18392993,5.96270269 C3.83037333,6.2573332 3.41789062,6.4930376 2.94648181,6.4930376 C2.41614691,6.4930376 2.0036642,6.2573332 1.6501076,5.96270269 C1.29655099,5.60914609 1.11977269,5.19666338 1.17869879,4.72525458 Z M7.12999926,2.95747156 C6.77644266,3.31102816 6.36395995,3.48780646 5.89255115,3.48780646 C5.36221624,3.48780646 4.94973354,3.31102816 4.59617693,2.95747156 C4.24262033,2.66284105 4.06584202,2.25035835 4.12476812,1.77894954 L4.12476812,1.72002344 C4.06584202,1.18968853 4.24262033,0.777205828 4.59617693,0.482575325 C4.94973354,0.12901872 5.36221624,-0.0477595819 5.89255115,0.0111665188 C6.36395995,-0.0477595819 6.77644266,0.12901872 7.12999926,0.482575325 C7.42462977,0.836131929 7.60140807,1.24861463 7.60140807,1.77894954 C7.60140807,2.25035835 7.42462977,2.66284105 7.12999926,2.95747156 Z"
14
+ d="M7.04500001,8.5975 C7.04341917,8.43233903 7.11928944,8.27597225 7.25,8.175 C8.13981911,7.5076991 8.659503,6.45719523 8.65,5.34499999 L8.65,3.7075 C8.65,1.93500001 7.2825,0.500000006 5.59250001,0.500000006 L5.0925,0.500000006 C3.40500001,0.500000006 2.03749999,1.93500001 2.03749999,3.7075 L2.03749999,5.34499999 C2.02858505,6.45763799 2.54923878,7.50822626 3.44000001,8.175 C3.56977164,8.27648552 3.64467827,8.43277221 3.6425,8.5975 C3.64849065,8.83992543 3.4853373,9.05399926 3.25,9.1125 C1.335,9.50000001 0,10.4025 0,11.4525 C0,12.86 2.3925,14 5.3425,14 C8.29249999,14 10.6875,12.86 10.6875,11.4525 C10.6875,10.4025 9.35250001,9.5025 7.4375,9.1125 C7.20216271,9.05399926 7.03900935,8.83992543 7.04500001,8.5975 Z M11.84,5.75000001 C11.7079451,5.71733762 11.6061675,5.61208512 11.5779553,5.47900848 C11.549743,5.34593185 11.6000579,5.20843574 11.7075,5.125 C12.3007336,4.67960715 12.6476383,3.97930492 12.6425,3.2375 L12.6425,2.1375 C12.6690444,0.984062183 11.7559203,0.0272961173 10.6025,0 L10.2725,0 C9.40687566,0.0115235348 8.64254102,0.567494343 8.365,1.3875 C8.87621704,2.05264244 9.15230637,2.86860072 9.15,3.7075 L9.15,5.10250001 L9.1675,5.11749999 C9.26100971,5.18903404 9.3126331,5.30253015 9.30510153,5.42002253 C9.29756997,5.53751492 9.23187787,5.6434908 9.13,5.7025 C9.04235466,6.75161502 8.54690721,7.72455893 7.75,8.4125 C8.58510108,8.82290154 9.50732647,9.0245043 10.4375,9 C12.405,9 14,8.24999999 14,7.3025 C14,6.6025 13.11,6 11.84,5.75000001 Z"
15
15
  />
16
16
  </g>
17
17
  </symbol>
18
18
  </svg>
19
19
  <div ref="activiti-svg-wrap" class="activiti-svg-wrap"></div>
20
+ <div class="flex-box activiti-svg-zoom">
21
+ <el-button
22
+ type="text"
23
+ icon="el-icon-zoom-out"
24
+ style="font-size: 18px"
25
+ @click="scaleMinus"
26
+ />
27
+ <el-slider
28
+ v-model="zoomValue"
29
+ class="m-l m-r"
30
+ :min="min"
31
+ :max="max"
32
+ :step="step"
33
+ :format-tooltip="$options.filters.zoomFormat"
34
+ style="width: 200px"
35
+ />
36
+ <el-button
37
+ type="text"
38
+ icon="el-icon-zoom-in"
39
+ style="font-size: 18px"
40
+ @click="scaleAdd"
41
+ />
42
+ <span
43
+ class="m-l-s m-r-s"
44
+ style="display: inline-block; width: 38px; line-height: 38px"
45
+ >{{ zoomValue | zoomFormat }}</span
46
+ >
47
+ <el-button
48
+ type="text"
49
+ icon="el-icon-full-screen"
50
+ style="font-size: 16px"
51
+ @click="scaleReset"
52
+ />
53
+ </div>
54
+
20
55
  <div ref="msgEl" class="activiti-msg">
21
56
  <div>
22
57
  <span class="color-primary">待审批: </span>{{ daishengpi.toString() }}
@@ -29,15 +64,29 @@
29
64
  </template>
30
65
 
31
66
  <script>
67
+ import importG from '../../utils/importGlobal.js'
32
68
  import { tipShow, tipHide } from '../../directives/VTitle/index.js'
33
-
34
69
  export default {
70
+ filters: {
71
+ zoomFormat(val) {
72
+ return parseInt(val * 10) + '0%'
73
+ }
74
+ },
35
75
  data() {
36
76
  this.svgW = undefined
37
77
  this.svgC = undefined
38
78
  return {
39
79
  daishengpi: [],
40
- yishengpi: []
80
+ yishengpi: [],
81
+ min: 0.4,
82
+ max: 2,
83
+ step: 0.1,
84
+ zoomValue: 1
85
+ }
86
+ },
87
+ watch: {
88
+ zoomValue() {
89
+ this.scaleSvg()
41
90
  }
42
91
  },
43
92
  async mounted() {
@@ -53,14 +102,28 @@ export default {
53
102
  taskDefIdMap.forEach((obj) => {
54
103
  this.addEvent(obj)
55
104
  })
105
+ let { default: panzoom } = await importG('panzoom', () =>
106
+ import(/*webpackChunkName: "panzoom"*/ 'panzoom')
107
+ )
108
+
109
+ this.svgPanzoom = panzoom(this.svgC, {
110
+ maxZoom: this.max,
111
+ minZoom: this.min,
112
+ bounds: true,
113
+ boundsPadding: 0.1,
114
+ beforeWheel: function (e) {
115
+ return !e.ctrlKey
116
+ }
117
+ })
118
+ this.svgPanzoom.on('zoom', (e) => {
119
+ let { scale } = e.getTransform()
120
+ this.zoomValue = scale
121
+ })
122
+ },
123
+ beforeDestroy() {
124
+ this.svgPanzoom && this.svgPanzoom.dispose()
56
125
  },
57
126
  methods: {
58
- Fn() {
59
- tipShow(
60
- document.getElementById('xxx-yyy'),
61
- document.getElementById('popper-x')
62
- )
63
- },
64
127
  setSvgAttrs(str) {
65
128
  this.svgW.innerHTML = str
66
129
  this.svgC = this.svgW.querySelector('svg')
@@ -184,9 +247,32 @@ export default {
184
247
  task.addEventListener('mouseleave', () => {
185
248
  tipHide(task)
186
249
  })
250
+ },
251
+ scaleMinus() {
252
+ let newVal = this.zoomValue - this.step
253
+ if (this.min <= newVal) {
254
+ this.zoomValue = newVal
255
+ } else {
256
+ this.zoomValue = this.min
257
+ }
258
+ },
259
+ scaleAdd() {
260
+ let newVal = this.zoomValue + this.step
261
+ if (newVal < this.max) {
262
+ this.zoomValue = newVal
263
+ } else {
264
+ this.zoomValue = this.max
265
+ }
266
+ },
267
+ scaleReset() {
268
+ this.zoomValue = 1
269
+ },
270
+ scaleSvg() {
271
+ this.svgPanzoom && this.svgPanzoom.zoomAbs(0, 0, this.zoomValue)
187
272
  }
188
273
  }
189
274
  }
275
+
190
276
  /*
191
277
  setRejectLink(from, to) {
192
278
  console.log(this.getElRect(from), 444)
@@ -282,14 +368,33 @@ setRejectLink(from, to) {
282
368
  </script>
283
369
 
284
370
  <style>
285
- .n20-approval-img-por .djs-hit-all,
286
- .n20-approval-img-por .djs-outline {
287
- display: none !important;
371
+ .n20-approval-img-por {
372
+ width: 100%;
373
+ height: 100%;
374
+ position: relative;
375
+ }
376
+ .activiti-svg-wrap {
377
+ width: 100%;
378
+ height: 100%;
379
+ overflow: auto;
288
380
  }
289
381
  .n20-approval-img-por .activiti-msg {
290
382
  display: none;
291
383
  }
384
+ .activiti-svg-zoom {
385
+ position: absolute;
386
+ z-index: 9;
387
+ right: 0;
388
+ bottom: 0;
389
+ }
292
390
 
391
+ .n20-approval-img-por .djs-hit-all,
392
+ .n20-approval-img-por .djs-outline {
393
+ display: none !important;
394
+ }
395
+ .n20-approval-img-por use {
396
+ fill: #b2b2b2 !important;
397
+ }
293
398
  .activiti-node-achieve circle,
294
399
  .activiti-node-achieve rect,
295
400
  .activiti-line-achieve path {
@@ -24,10 +24,14 @@
24
24
  </template>
25
25
 
26
26
  <script>
27
+ import importG from '../../utils/importGlobal.js'
27
28
  export default {
28
29
  name: 'DragList',
29
30
  components: {
30
- vueDraggable: () => import('vuedraggable')
31
+ vueDraggable: () =>
32
+ importG('vuedraggable', () =>
33
+ import(/*webpackChunkName: "vuedraggable"*/ 'vuedraggable')
34
+ )
31
35
  },
32
36
  props: {
33
37
  list: {
@@ -3,9 +3,9 @@
3
3
  </template>
4
4
 
5
5
  <script>
6
- import * as echarts from 'echarts'
7
6
  import resize from './mixins/resize'
8
7
  import merge from 'lodash/merge'
8
+ import importG from '../../utils/importGlobal.js'
9
9
 
10
10
  import { color, axisConfig, pieConfig } from './define'
11
11
 
@@ -57,7 +57,10 @@ export default {
57
57
  },
58
58
 
59
59
  methods: {
60
- initChart() {
60
+ async initChart() {
61
+ let echarts = await importG('echarts', () =>
62
+ import(/*webpackChunkName "echarts"*/ 'echarts')
63
+ )
61
64
  this.chart = echarts.init(this.$refs['chart'])
62
65
  this.setOption()
63
66
  },
@@ -98,7 +98,7 @@ export default {
98
98
  if (val && typeof val === 'string' && val.includes(',')) {
99
99
  return this.$emit('input', Number(val.replace(/,/g, '')))
100
100
  }
101
- this.preValue = val
101
+ this.preValue = val || (val === 0 ? 0 : '')
102
102
  this.valueStr = this.num2str(val)
103
103
  },
104
104
  immediate: true
@@ -173,11 +173,11 @@
173
173
  </template>
174
174
 
175
175
  <script>
176
- import decode from 'jsonwebtoken/decode'
177
176
  import axios from '../../utils/axios'
178
177
  import auth from '../../utils/auth'
179
178
  import qrCode from './qrcode.vue'
180
179
  import { siteTree2menus, siteTree2RelaNos } from './utils'
180
+ import importG from '../../utils/importGlobal.js'
181
181
 
182
182
  function encode(pwd = '', key = 0) {
183
183
  if (pwd === '') return ''
@@ -492,9 +492,15 @@ export default {
492
492
  })
493
493
  },
494
494
  // 登录成功后
495
- loginAfter(data) {
495
+ async loginAfter(data) {
496
496
  auth.setToken(data.accessToken)
497
497
  try {
498
+ let { default: decode } = await importG('jsonwebtoken/decode', () =>
499
+ import(
500
+ /*webpackChunkName: "jsonwebtoken_decode"*/ 'jsonwebtoken/decode'
501
+ )
502
+ )
503
+
498
504
  let tokenObj = decode(data.accessToken)
499
505
  let userInfo = JSON.parse(tokenObj.user_name)
500
506
  this.userNo = userInfo.userNo
@@ -92,24 +92,23 @@ export default {
92
92
  methods: {
93
93
  async init() {
94
94
  const { _layoutData } = await getJsonc('/server-config.jsonc')
95
- console.log(_layoutData.loginSetting, 11)
96
- if (_layoutData.loginSetting === 'JSON') {
97
- this.setConfig()
98
- } else {
99
- axios
100
- .get(`/bems/1.0/sysSetting/list`, null, {
101
- loading: false,
102
- noMsg: true
103
- })
104
- .then(({ data }) => {
105
- this.getdata(data)
106
- })
107
- .finally(() => {
108
- this.setConfig()
109
- })
110
-
111
- this.getLogoImag()
95
+ if (_layoutData && _layoutData.loginSetting === 'JSON') {
96
+ return this.setConfig()
112
97
  }
98
+
99
+ axios
100
+ .get(`/bems/1.0/sysSetting/list`, null, {
101
+ loading: false,
102
+ noMsg: true
103
+ })
104
+ .then(({ data }) => {
105
+ this.getdata(data)
106
+ })
107
+ .finally(() => {
108
+ this.setConfig()
109
+ })
110
+
111
+ this.getLogoImag()
113
112
  },
114
113
  async getLogoImag() {
115
114
  axios
@@ -20,8 +20,8 @@
20
20
  </div>
21
21
  </template>
22
22
  <script>
23
- import QRCode from 'qrcode'
24
23
  import axios from '../../utils/axios'
24
+ import importG from '../../utils/importGlobal.js'
25
25
 
26
26
  export default {
27
27
  data() {
@@ -48,12 +48,14 @@ export default {
48
48
 
49
49
  axios
50
50
  .get('/bems/prod_1.0/uas/api/qrCode', null, { loading })
51
- .then(({ data }) => {
51
+ .then(async ({ data }) => {
52
52
  this.qrCode = data.qrCode
53
53
 
54
54
  let qrCanvas = this.$refs['qr-canvas']
55
55
  let width = qrCanvas.clientWidth
56
-
56
+ let { default: QRCode } = await importG('qrcode', () =>
57
+ import(/*webpackChunkName: "qrcode"*/ 'qrcode')
58
+ )
57
59
  QRCode.toCanvas(this.$refs['qr-canvas'], this.qrCode, {
58
60
  width: width,
59
61
  height: width,
@@ -5,12 +5,14 @@
5
5
  type="当页合计"
6
6
  :list="pageList"
7
7
  :show-w="showW"
8
+ :show-u="showU"
8
9
  :count-label="countLabel"
9
10
  />
10
11
  <statisItem
11
12
  type="全部合计"
12
13
  :list="totalList"
13
14
  :show-w="showW"
15
+ :show-u="showU"
14
16
  :count-label="countLabel"
15
17
  />
16
18
  </div>
@@ -9,7 +9,7 @@
9
9
  class="n20-primary"
10
10
  >{{ item.value }}</span
11
11
  ><span v-else class="n20-primary">{{
12
- item | numerify('0,0.00', showW)
12
+ item | numerify('0,0.00', showW, showU)
13
13
  }}</span></span
14
14
  >
15
15
  </div>
@@ -22,7 +22,8 @@ const n = 10000
22
22
  export default {
23
23
  name: 'StatisItem',
24
24
  filters: {
25
- numerify({ label, value, unit = '' }, f, w) {
25
+ numerify({ label, value }, f, w, unit = '') {
26
+ unit = unit ? (unit === true ? '元' : unit) : ''
26
27
  if (!w) {
27
28
  return numerify(value, f) + unit
28
29
  } else {
@@ -51,6 +52,10 @@ export default {
51
52
  type: Boolean,
52
53
  default: false
53
54
  },
55
+ showU: {
56
+ type: [Boolean, String],
57
+ default: false
58
+ },
54
59
  countLabel: {
55
60
  type: Array,
56
61
  default: () => ['笔数']
@@ -23,23 +23,12 @@
23
23
  :formatter="item.formatter | colfF(item.formatterMap)"
24
24
  :filters="item.filters | colftF(filtersMap)"
25
25
  v-bind="item"
26
- >
27
- <template v-if="item.filterPre" slot="header">
28
- {{ item.label }}
29
- <th-select-header
30
- :property="item.prop"
31
- :data-list="dataList"
32
- :check-list="checkList"
33
- @selectChange="selectChange"
34
- />
35
- </template>
36
- </el-table-column>
26
+ />
37
27
  </template>
38
28
  </el-table>
39
29
  </template>
40
30
 
41
31
  <script>
42
- import thSelectHeader from './ThSelectHeader.vue'
43
32
  import { colfF, colftF } from './filters'
44
33
 
45
34
  const columnRender = {
@@ -59,8 +48,7 @@ const columnRender = {
59
48
  export default {
60
49
  name: 'Table',
61
50
  components: {
62
- columnRender,
63
- thSelectHeader
51
+ columnRender
64
52
  },
65
53
  filters: {
66
54
  colfF,
@@ -96,41 +84,6 @@ export default {
96
84
  type: [String, Number],
97
85
  default: undefined
98
86
  }
99
- },
100
- data() {
101
- return {
102
- checkList: {},
103
- rules: [],
104
- dataList: []
105
- }
106
- },
107
- created() {
108
- this.dataList = JSON.parse(JSON.stringify(this.data))
109
- for (let k in this.dataList[0]) {
110
- this.checkList[k] = []
111
- }
112
- for (let i in this.dataList) {
113
- for (let k in this.dataList[i]) {
114
- if (!this.checkList[k].some((item) => item === this.dataList[i][k])) {
115
- this.checkList[k].push(this.dataList[i][k])
116
- }
117
- }
118
- }
119
- },
120
- methods: {
121
- selectChange(val) {
122
- console.log(val)
123
- let property = val['property']
124
- let value = val['value']
125
- // 遍历过滤条件
126
- if (!value.length) {
127
- this.data = this.dataList
128
- } else {
129
- this.data = this.dataList.filter((item) =>
130
- value.some((c) => item[property] === c)
131
- )
132
- }
133
- }
134
87
  }
135
88
  }
136
89
  </script>
@@ -5,6 +5,7 @@
5
5
  :key="item.label"
6
6
  type="text"
7
7
  size="mini"
8
+ :disabled="item.disabled | dbdBtn(row)"
8
9
  @click="$emit('command', item.command)"
9
10
  >{{ item.label }}</el-button
10
11
  >
@@ -15,6 +16,7 @@
15
16
  v-for="item in moreBtns"
16
17
  :key="item.label"
17
18
  :command="item.command"
19
+ :disabled="item.disabled | dbdBtn(row)"
18
20
  >{{ item.label }}</el-dropdown-item
19
21
  >
20
22
  </el-dropdown-menu>
@@ -24,6 +26,17 @@
24
26
 
25
27
  <script>
26
28
  export default {
29
+ filters: {
30
+ dbdBtn(dbd, row) {
31
+ if (dbd === undefined || dbd === null) {
32
+ return false
33
+ } else if (typeof dbd === 'boolean') {
34
+ return dbd
35
+ } else if (typeof dbd === 'function') {
36
+ return dbd(row)
37
+ }
38
+ }
39
+ },
27
40
  props: {
28
41
  btnList: {
29
42
  type: Array,
package/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import './utils/importGlobal.js' // 联合加载组件保存位置
1
2
  /** 提供组件给外部使用的入口 */
2
3
  import ContentLoading from './components/ContentLoading/index.vue'
3
4
  import ContentNull from './components/ContentNull/index.vue'
@@ -0,0 +1,16 @@
1
+ window._g_import_g_ || (window._g_import_g_ = {})
2
+
3
+ function importG(name, ipt) {
4
+ return new Promise((resolve, reject) => {
5
+ if (window._g_import_g_[name]) {
6
+ resolve(window._g_import_g_[name])
7
+ } else {
8
+ ipt().then((_module) => {
9
+ window._g_import_g_[name] = _module
10
+ resolve(_module)
11
+ })
12
+ }
13
+ })
14
+ }
15
+
16
+ export default importG
@@ -1,6 +1,14 @@
1
- import ExcelJS from 'exceljs'
1
+ import importG from './importGlobal.js'
2
+
3
+ export default async function toExcel({
4
+ columns = [],
5
+ rows = [],
6
+ name = 'sheet01'
7
+ }) {
8
+ let { default: ExcelJS } = await importG('exceljs', () =>
9
+ import(/*webpackChunkName: "exceljs"*/ 'exceljs')
10
+ )
2
11
 
3
- export default function toExcel({ columns = [], rows = [], name = 'sheet01' }) {
4
12
  // 创建工作簿
5
13
  const workbook = new ExcelJS.Workbook()
6
14
  // 创建工作表
@@ -1,6 +1,10 @@
1
- import { read, utils } from 'xlsx'
1
+ import importG from './importGlobal.js'
2
+
3
+ export default async function toJson(file, name) {
4
+ const { read, utils } = await importG('xlsx', () =>
5
+ import(/*webpackChunkName: "xlsx"*/ 'xlsx')
6
+ )
2
7
 
3
- export default function toJson(file, name) {
4
8
  let pro = new Promise((resolve, reject) => {
5
9
  if (file instanceof Blob) {
6
10
  file.arrayBuffer().then((array) => {
@@ -1,6 +1,10 @@
1
- import ExcelJS from 'exceljs'
1
+ import importG from './importGlobal.js'
2
+
3
+ export default async function toJson(file, name) {
4
+ let { default: ExcelJS } = await importG('exceljs', () =>
5
+ import(/*webpackChunkName: "exceljs"*/ 'exceljs')
6
+ )
2
7
 
3
- export default function toJson(file, name) {
4
8
  const workbook = new ExcelJS.Workbook()
5
9
  return new Promise((resolve, reject) => {
6
10
  workbook.xlsx