@bytenew/bn-bus-ui 1.1.463 → 1.1.464

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 (167) hide show
  1. package/dist/assocTableSearch-Bfe96864.js +349 -0
  2. package/dist/assocTableSearch.css +1 -0
  3. package/dist/bn-bus-ui.es.js +65 -0
  4. package/dist/bn-bus-ui.umd.js +49 -0
  5. package/dist/chooseIPaasData-COrrvQKZ.js +391 -0
  6. package/dist/chooseIPaasData.css +1 -0
  7. package/dist/defaultSet-CzN1ec_d.js +297 -0
  8. package/dist/defaultSet.css +1 -0
  9. package/dist/fileFormData-D_Q1vylE.js +53 -0
  10. package/dist/formItemFooter-BvptZj_u.js +108 -0
  11. package/dist/formItemFooter.css +1 -0
  12. package/dist/funcExprDialog-BguNs9fl.js +139 -0
  13. package/dist/funcExprDialog.css +1 -0
  14. package/dist/index-0oB7QocU.js +44 -0
  15. package/dist/index-69fRP0M8.js +89 -0
  16. package/dist/index-BdklTJtF.js +66 -0
  17. package/dist/index-Bu3jHlby.js +45 -0
  18. package/dist/index-BxWx5kpG.js +89 -0
  19. package/dist/index-C5LQ0OSs.js +183 -0
  20. package/dist/index-C8YhrrUN.js +51 -0
  21. package/dist/index-COuPCIzB.js +45 -0
  22. package/dist/index-CSvVyjxx.js +178 -0
  23. package/dist/index-DCv51EXX.js +109 -0
  24. package/dist/index-DUSI6MuC.js +135 -0
  25. package/dist/index-DVzxs2vR.js +58 -0
  26. package/dist/index-Dd4b8zNb.js +746 -0
  27. package/dist/index-Md-ZlkCW.js +66 -0
  28. package/dist/index-hsSIY2FP.js +221 -0
  29. package/dist/index-n13-H3_Y.js +118 -0
  30. package/dist/index-wUl5aPUD.js +64 -0
  31. package/dist/index.css +1 -0
  32. package/dist/index2.css +1 -0
  33. package/dist/index3.css +1 -0
  34. package/dist/index4.css +1 -0
  35. package/dist/index5.css +1 -0
  36. package/dist/index6.css +1 -0
  37. package/dist/index7.css +1 -0
  38. package/dist/install-CNjs0u5x.js +23299 -0
  39. package/dist/install.css +1 -0
  40. package/dist/setOption-CXOifQcx.js +329 -0
  41. package/dist/setOption.css +1 -0
  42. package/dist/setRelationOption-C7VDhej7.js +5217 -0
  43. package/dist/setRelationOption.css +1 -0
  44. package/package.json +4 -20
  45. package/install.js +0 -134
  46. package/packages/BnAddress/index.vue +0 -141
  47. package/packages/BnAddressParse/index.vue +0 -75
  48. package/packages/BnAdvancedFilter/BnFilterView.vue +0 -145
  49. package/packages/BnAdvancedFilter/index.vue +0 -345
  50. package/packages/BnAdvancedFilter/util.js +0 -171
  51. package/packages/BnCascader/BnCascader.vue +0 -543
  52. package/packages/BnCascader/BnCascaderPanel.vue +0 -1331
  53. package/packages/BnCascader/cascaderDisplay.js +0 -102
  54. package/packages/BnCheck/BnCheck.vue +0 -253
  55. package/packages/BnColumnConfig/columnConfigDialog.vue +0 -134
  56. package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +0 -143
  57. package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +0 -314
  58. package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +0 -243
  59. package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +0 -114
  60. package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +0 -210
  61. package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +0 -126
  62. package/packages/BnColumnConfig/component/packageFilter/index.vue +0 -141
  63. package/packages/BnColumnConfig/component/paraExplainSet/index.vue +0 -156
  64. package/packages/BnColumnConfig/component/setOption/setOption.vue +0 -321
  65. package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +0 -277
  66. package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +0 -144
  67. package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +0 -642
  68. package/packages/BnColumnConfig/data.js +0 -129
  69. package/packages/BnColumnConfig/index.scss +0 -23
  70. package/packages/BnColumnConfig/index.vue +0 -309
  71. package/packages/BnCondVal/BnCondVal.vue +0 -112
  72. package/packages/BnCondVal/itemVal/dateRegVal.vue +0 -39
  73. package/packages/BnCondVal/itemVal/dateVal.vue +0 -39
  74. package/packages/BnCondVal/itemVal/numRegVal.vue +0 -67
  75. package/packages/BnCondVal/itemVal/numVal.vue +0 -44
  76. package/packages/BnCondVal/itemVal/relationVal.vue +0 -73
  77. package/packages/BnCondVal/itemVal/selectColumnVal.vue +0 -58
  78. package/packages/BnCondVal/itemVal/selectVal.vue +0 -59
  79. package/packages/BnCondVal/itemVal/stringVal.vue +0 -156
  80. package/packages/BnCondition/index.vue +0 -551
  81. package/packages/BnCondition/util.js +0 -232
  82. package/packages/BnDatePicker/BnDatePicker.vue +0 -194
  83. package/packages/BnDrop/BnDrop.vue +0 -917
  84. package/packages/BnEmptyTip/BnEmptyTip.vue +0 -107
  85. package/packages/BnExportOrder/BnExportOrder.vue +0 -241
  86. package/packages/BnExportOrder/validatorCode.vue +0 -94
  87. package/packages/BnFileView/BnFileView.vue +0 -271
  88. package/packages/BnFileView/FileDetail.vue +0 -125
  89. package/packages/BnFileView/videoPreview.vue +0 -70
  90. package/packages/BnFilterOption/BnFilterOption.vue +0 -160
  91. package/packages/BnFunExpr/BnFunExpr.vue +0 -608
  92. package/packages/BnImportOrder/BnImportOrder.vue +0 -323
  93. package/packages/BnImportTemplate/BnImportTemplate.vue +0 -866
  94. package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
  95. package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
  96. package/packages/BnImportTemplate/assets/xls.png +0 -0
  97. package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +0 -198
  98. package/packages/BnImportTemplate/components/TemplateEditDialog.vue +0 -340
  99. package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +0 -401
  100. package/packages/BnImportTemplate/components/TemplateListDialog.vue +0 -297
  101. package/packages/BnInpNum/BnInpNum.vue +0 -165
  102. package/packages/BnMenus/BnMenus.vue +0 -502
  103. package/packages/BnMenus/MenuItem.vue +0 -321
  104. package/packages/BnOrderCard/BnOrderCard.vue +0 -389
  105. package/packages/BnOrderCard/orderRemark.vue +0 -178
  106. package/packages/BnOrderCard/util.js +0 -94
  107. package/packages/BnOrderDetail/BnOrderDetail.vue +0 -338
  108. package/packages/BnOrderDetail/filterLogByUser.vue +0 -108
  109. package/packages/BnOrderDetail/orderLogs.vue +0 -53
  110. package/packages/BnOrderDetail/showSubForm/index.vue +0 -41
  111. package/packages/BnOrderDetail/showSubForm/showChildTable.vue +0 -61
  112. package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +0 -131
  113. package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +0 -84
  114. package/packages/BnOrderShare/index.vue +0 -378
  115. package/packages/BnOrderShare/shareUrlInp.vue +0 -54
  116. package/packages/BnRadio/BnRadio.vue +0 -181
  117. package/packages/BnRelation/BnRelation.vue +0 -120
  118. package/packages/BnSelect/BnSelect.vue +0 -485
  119. package/packages/BnSmartForm/BnBatchForm.vue +0 -334
  120. package/packages/BnSmartForm/BnBatchFormDialog.vue +0 -423
  121. package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +0 -57
  122. package/packages/BnSmartForm/BnSmartElf/index.vue +0 -95
  123. package/packages/BnSmartForm/BnSmartFormPsychic.js +0 -629
  124. package/packages/BnSmartForm/BnSmartFormUtil.js +0 -524
  125. package/packages/BnSmartForm/addressForm/index.vue +0 -73
  126. package/packages/BnSmartForm/checkboxForm/index.vue +0 -99
  127. package/packages/BnSmartForm/childrenForm/childFormFile.vue +0 -237
  128. package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +0 -260
  129. package/packages/BnSmartForm/childrenForm/index.vue +0 -110
  130. package/packages/BnSmartForm/childrenForm/searchInventory.vue +0 -115
  131. package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +0 -451
  132. package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +0 -229
  133. package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +0 -84
  134. package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +0 -158
  135. package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +0 -307
  136. package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +0 -84
  137. package/packages/BnSmartForm/choosePackage/choosePackage.vue +0 -361
  138. package/packages/BnSmartForm/dateDualForm/index.vue +0 -37
  139. package/packages/BnSmartForm/dateForm/index.vue +0 -38
  140. package/packages/BnSmartForm/fileForm/fileFormData.js +0 -50
  141. package/packages/BnSmartForm/fileForm/index.vue +0 -240
  142. package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +0 -38
  143. package/packages/BnSmartForm/formItemTop/formItemTop.vue +0 -42
  144. package/packages/BnSmartForm/index.vue +0 -1201
  145. package/packages/BnSmartForm/numberForm/index.vue +0 -63
  146. package/packages/BnSmartForm/radioForm/index.vue +0 -72
  147. package/packages/BnSmartForm/receiveForm/index.vue +0 -112
  148. package/packages/BnSmartForm/relationForm/index.vue +0 -82
  149. package/packages/BnSmartForm/scoreForm/index.vue +0 -39
  150. package/packages/BnSmartForm/selectForm/index.vue +0 -55
  151. package/packages/BnSmartForm/showValForm/index.vue +0 -42
  152. package/packages/BnSmartForm/showValForm/showValFormTable.vue +0 -104
  153. package/packages/BnSmartForm/smartFormsCommon.scss +0 -43
  154. package/packages/BnSmartForm/stringForm/index.vue +0 -170
  155. package/packages/BnVirtPopover/index.vue +0 -319
  156. package/packages/BnWebLog/BnWebLog.vue +0 -140
  157. package/packages/BnWorkSettingDrop/advancedOptions.js +0 -112
  158. package/packages/BnWorkSettingDrop/benBenAIUtil.js +0 -89
  159. package/packages/BnWorkSettingDrop/index.vue +0 -292
  160. package/packages/font/iconfont.css +0 -243
  161. package/packages/font/iconfont.ttf +0 -0
  162. package/packages/font/iconfont.woff +0 -0
  163. package/packages/font/iconfont.woff2 +0 -0
  164. package/utils/addressParse-old.js +0 -645
  165. package/utils/addressParse.js +0 -735
  166. package/utils/config.js +0 -68
  167. package/utils/index.js +0 -1171
@@ -1,107 +0,0 @@
1
- <template>
2
- <div class="BnEmptyTip">
3
- <div class="BnEmptyTip-box">
4
- <div class="BnEmptyTip-img" :style="boxStyle"></div>
5
- <div class="BnEmptyTip-text">{{ displayTip }}</div>
6
- </div>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- const typeMap = {
12
- no:{
13
- url:'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_110527787_41d59fbd8671cfd9a5d2449ccdbfa03f.png',
14
- tip:'呀~没有内容呢~',
15
- width:1,
16
- height:0.8
17
- },
18
- search:{
19
- url:'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_457fba620e4e4c5ced6aab5691f3b933.png',
20
- tip:'呀~没有搜索到呢~',
21
- width:0.8,
22
- height:0.8
23
- },
24
- folder:{
25
- url:'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_3d1230b752dd77eded103a5161dd4fd7.png',
26
- tip:'呀~文件夹为空呢~',
27
- width:0.8,
28
- height:0.8
29
- },
30
- default:{
31
- url:'https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_24c3b65ec3eaedbf32ef990df0bff0f2.png',
32
- tip:'呀~没有内容呢~',
33
- width:0.8,
34
- height:0.8
35
- },
36
- }
37
-
38
- export default {
39
- name: "BnEmptyTip",
40
- props: {
41
- url: {
42
- type: String,
43
- default: ''
44
- },
45
- tip: {
46
- type: String,
47
- default: ''
48
- },
49
- type: {
50
- type: String,
51
- default: 'no',
52
- },
53
- size: {
54
- type: Number,
55
- default: 200
56
- },
57
- },
58
- computed: {
59
- displayTip() {
60
- return this.tip || typeMap[this.type]?.tip || typeMap.no.tip
61
- },
62
- imgUrl() {
63
- if (this.url) return this.url
64
- return typeMap[this.type]?.url || typeMap.no.url
65
- },
66
- boxStyle() {
67
- return {
68
- backgroundImage: `url(${this.imgUrl})`,
69
- width: `${Math.round(this.size * (typeMap[this.type]?.width || 1))}px`,
70
- height: `${Math.round(this.size * (typeMap[this.type]?.height || 0.8))}px`,
71
- }
72
- }
73
- },
74
- };
75
- </script>
76
-
77
- <style scoped lang="scss">
78
- .BnEmptyTip {
79
- position: relative;
80
- width: 100%;
81
- display: flex;
82
- justify-content: space-around;
83
- align-items: center;
84
-
85
- .BnEmptyTip-box {
86
- display: flex;
87
- justify-content: center;
88
- flex-direction: column;
89
- align-items: center;
90
- background-position: center top;
91
- background-size: contain;
92
- background-repeat: no-repeat;
93
- }
94
- .BnEmptyTip-img {
95
- background-size: contain;
96
- background-position: center 35%;
97
- background-repeat: no-repeat;
98
- }
99
- .BnEmptyTip-text {
100
- height: 24px;
101
- line-height: 24px;
102
- text-align: center;
103
- font-size: 14px;
104
- color: #CCCCCC;
105
- }
106
- }
107
- </style>
@@ -1,241 +0,0 @@
1
- <template>
2
- <el-dialog v-model="show" width="780px" top="50px" title="导出" destroy-on-close>
3
- <div class="exportOrder" v-loading="loading">
4
- <div class="w-tip w-margin-bottom10">
5
- <div>
6
- <span class="w-tip-num">1.</span>单次最多导出 <span class="w-color-red">{{ maxImportNum }}</span> 条数据,超出的数据将不导出;导出格式为
7
- <span class="w-color-orange">.Excel</span> 文件
8
- </div>
9
- </div>
10
- <div class="w-flex-wrap">
11
- <div class="w-flex-center w-margin-bottom10" v-if="hasMultiRow || hasSubRow">
12
- <BnCheck v-model="postParams.ext.splitSubformToMultiRow" trueData="1" falseData="0" label="多选联动以及子表单组件导出时拆分成多行数据"/>
13
- </div>
14
- <div class="w-flex-center w-margin-bottom10" v-if="hasSubRow">
15
- <BnCheck v-model="postParams.ext.splitSubformToSingleCol" trueData="1" falseData="0" label="子表单组件导出时合并成单列数据"/>
16
- </div>
17
- <div class="w-flex-center w-margin-bottom10">
18
- <BnCheck v-model="postParams.ext.exportImgData" trueData="1" falseData="0" label="导出预览图"/>
19
- <div class="w-color-orange">(不勾选则导出附件链接)</div>
20
- </div>
21
- <div class="w-flex-center w-margin-bottom10" v-if="hasAddress">
22
- <BnCheck v-model="postParams.ext.addressSplit" trueData="1" falseData="0" label="拆分收获地址、收寄信息"/>
23
- </div>
24
- </div>
25
- <div class="exportOrder-tip" v-if="postData.all">已全选
26
- <span class="w-color-blue w-font16 w-font-weight">{{postData.allLength}}</span> 条数据,请选择导出字段</div>
27
- <div class="exportOrder-tip" v-else-if="postData.ids.length>0">已选择
28
- <span class="w-color-blue w-font16 w-font-weight">{{ postData.ids.length }}</span>条数据,请选择导出字段</div>
29
- <div class="w-flex-between w-flex-bottom w-margin-top10">
30
- <div class="">
31
- <el-input v-model="searchText" placeholder="搜索字段"/>
32
- </div>
33
- <div class="">
34
- <span>{{ postParams.columns.length }}</span>/{{ watchComponents.length }}
35
- <span class="w-color-blue w-cursor-pointer w-margin-left5" @click="checkAll(searchText)"> 全选</span>
36
- <span v-if="postParams.columns.length>0" class="w-color-blue w-cursor-pointer w-margin-left5"
37
- @click="postParams.columns=[]"> 取消选中</span>
38
- </div>
39
- </div>
40
- <div class="exportOrder-columns">
41
- <el-row :gutter="20">
42
- <template v-for="item in watchComponents">
43
- <el-col :span="8" class="w-padding-tb5" v-if="!searchText || item.name.indexOf(searchText)>-1">
44
- <BnCheck style="width: 100%" v-model="postParams.columns" :trueData="item.columnCode" :label="item.name"/>
45
- </el-col>
46
- </template>
47
- </el-row>
48
- </div>
49
- <validator-code ref="validatorCode" :postFunc="postFunc" v-if="appId"
50
- :post-data="{appId:appId,projectId:tableId}"></validator-code>
51
- </div>
52
- <div class="exportOrder-footer">
53
- <el-button @click="show = false" :loading="loading">取 消</el-button>
54
- <el-button type="primary" @click="sureExport" :loading="loading">确 定</el-button>
55
- </div>
56
- </el-dialog>
57
- </template>
58
-
59
- <script>
60
- import validatorCode from "./validatorCode.vue"
61
- import {searchValueToJson} from "../../utils/index.js";
62
-
63
- export default {
64
- name: "BnExportOrder",
65
- components: {validatorCode},
66
- props: {
67
- postFunc: Function,
68
- // 用户级别的唯一值,用于缓存某些操作
69
- userId: {},
70
- // 入参
71
- postData: {
72
- type: Object,
73
- default() {
74
- return {
75
- all: false,//是否全选
76
- allLength: 0,//全部工单长度
77
- conditions: [],//高级筛选条件
78
- ids: [],//选中的任务id
79
- sorts: [],//排序字段
80
- tableCode: ''//表code
81
- }
82
- }
83
- },
84
- pathUrl: {
85
- type: String,
86
- default: '/biztable/io/import'
87
- },
88
- },
89
- data() {
90
- return {
91
- // 是否打开导出弹框
92
- show: false,
93
- loading: false,
94
- // 可见组件列表
95
- watchComponents: [],
96
- // 用于获取验证码
97
- appId: '',
98
- tableId: '',
99
- hasMultiRow:false,//是否存在多选联动组件
100
- hasSubRow:false,//是否存在子表单组件
101
- hasAddress:false,//是否存在地址组件
102
- maxImportNum:30000,//最大导出数量
103
- // 导出参数
104
- postParams: {
105
- columns: [],//选中的组件
106
- ext: {
107
- "splitSubformToMultiRow": "0",//子表单、子订单组件、多选联动,导出时拆分成多行数据
108
- "splitSubformToSingleCol": "0",//子表单、子订单组件,导出时合并成单列数据
109
- "exportImgData": "0",//导出缩略图
110
- "addressSplit": "0",//地址组件拆分
111
- }
112
- },
113
- searchText: '',
114
- }
115
- },
116
- methods: {
117
- /**
118
- * 打开导出弹框
119
- * */
120
- async open() {
121
- this.loading = true;
122
- this.getVersion();
123
- this.show = true;
124
- this.hasMultiRow = false;
125
- this.hasSubRow = false;
126
- this.hasAddress = false;
127
- this.watchComponents = []
128
- let tableData = await this.postFunc(`/biztable/definition/table?tableCode=${this.postData.tableCode}&columns=1`, null, 'get')
129
- if (!tableData.code) {
130
- tableData.data.columns.forEach(i=>{
131
- if(i.extraInfo.listShow == 1){
132
- this.watchComponents.push(i)
133
- if(i.behaviorType == 20){
134
- this.hasMultiRow = true
135
- }else if(i.behaviorType == 13){
136
- this.hasSubRow = true
137
- }else if(i.behaviorType == 14 || i.behaviorType == 15){
138
- this.hasAddress = true
139
- }
140
- }
141
- })
142
- this.appId = tableData.data.appId
143
- this.tableId = tableData.data.tableId
144
- let res = await this.postFunc(`/v2/client/cache/get/${this.userId}${this.postData.tableCode}_export`, null, 'get')
145
- this.loading = false;
146
- if (!res.code && res.data) {
147
- let cache = JSON.parse(res.data)
148
- if (cache.columns) {
149
- this.postParams = cache
150
- } else {
151
- this.postParams.columns = cache
152
- }
153
- } else {
154
- this.postParams.columns = this.watchComponents.map(i => i.columnCode)
155
- }
156
- this.$refs.validatorCode.getCode();
157
- }
158
- },
159
- /**
160
- * 全选
161
- * */
162
- checkAll(search) {
163
- this.watchComponents.forEach(item => {
164
- if ((!search || item.name.indexOf(search) > -1) && !this.postParams.columns.includes(item.columnCode)) {
165
- this.postParams.columns.push(item.columnCode)
166
- }
167
- })
168
- },
169
- /**
170
- * 确认导出
171
- * */
172
- sureExport() {
173
- if (!this.$refs.validatorCode.codeNum) {
174
- this.$message.warning('请输入验证码再导出')
175
- return;
176
- }
177
- if (this.postParams.columns.length == 0) {
178
- this.$message.warning('请选择需要导出的组件,至少一个')
179
- return;
180
- }
181
- this.postFunc(`/v2/client/cache/save`, {
182
- key: `${this.userId}${this.postData.tableCode}_export`,
183
- value: this.postParams
184
- })
185
- this.loading = true;
186
- let data = {
187
- ...this.postParams,
188
- ...this.postData,
189
- checkCode: this.$refs.validatorCode.codeNum,
190
- columns:this.postParams.columns.join(',')
191
- }
192
- if (this.postData?.conditions?.length) {
193
- data.conditions = searchValueToJson(this.postData.conditions)
194
- }
195
- this.postFunc(`/biztable/io/export`, data).then(res => {
196
- this.loading = false;
197
- if (!res.code) {
198
- this.$message.success(res.msg)
199
- this.$emit("exportOver", data, res)
200
- this.show = false
201
- }
202
- })
203
- },
204
- /**
205
- * 获取版本查看导入最多支持多少条
206
- * */
207
- getVersion() {
208
- this.postFunc('v2/logins/checkSession', {}).then(res => {
209
- if (!res.code) {
210
- this.maxImportNum = res.data.capacity.exportImportMax
211
- }
212
- })
213
- }
214
- },
215
- }
216
- </script>
217
-
218
- <style scoped lang="scss">
219
- .exportOrder {
220
- min-height: 100px;
221
-
222
- &-tip {
223
- line-height: 32px;
224
- height: 32px;
225
-
226
- }
227
-
228
- &-columns {
229
- position: relative;
230
- margin: 10px 0;
231
- padding: 10px;
232
- border: 1px solid #eee;
233
- max-height: 360px;
234
- overflow-y: auto;
235
- }
236
-
237
- &-footer {
238
- text-align: right;
239
- }
240
- }
241
- </style>
@@ -1,94 +0,0 @@
1
- <!--
2
- 统一的图形验证码验证器,验证成功会返回一个值标识校验通过
3
- -->
4
- <template>
5
- <div class="validator">
6
- <div class="validator-code clearFix">
7
- <div class="w-float-left validator-code-input">
8
- <el-input v-model="codeNum" size="large" placeholder="请输入验证码"/>
9
- </div>
10
- <div class="w-float-left validator-code-img w-cursor-pointer" v-loading="loading">
11
- <el-image :src="codeImgUrl" title="刷新验证码" style="width: 100%;height: 100%;" @click="getCode">
12
- <div slot="placeholder" class="image-slot">
13
- 加载中<span class="dot">...</span>
14
- </div>
15
- </el-image>
16
- </div>
17
- <div class="w-float-left validator-code-reload w-cursor-pointer" @click="getCode">看不清换一个</div>
18
- </div>
19
- </div>
20
- </template>
21
-
22
- <script>
23
-
24
- export default {
25
- name: "validatorCode",
26
- props: {
27
- postData: {
28
- type: Object,
29
- default() {
30
- return {};
31
- }
32
- },
33
- postFunc: Function,
34
- },
35
- data() {
36
- return {
37
- codeImgUrl: '',
38
- codeNum: '',
39
- loading: false
40
- }
41
- },
42
- methods: {
43
- getCode() {
44
- this.codeNum = '';
45
- this.loading = true;
46
- this.postFunc('/v2/taskio/getValidateCode', this.postData).then(res => {
47
- this.loading = false;
48
- if (!res.code) {
49
- this.codeImgUrl = "data:image/jpeg;base64," + res.data;
50
- } else {
51
- this.codeImgUrl = '';
52
- }
53
- })
54
- }
55
- }
56
- }
57
- </script>
58
-
59
- <style scoped lang="scss">
60
- .validator {
61
- position: relative;
62
- width: 100%;
63
-
64
- &-code {
65
- padding: 10px 0;
66
-
67
- &-input {
68
- width: 160px;
69
- padding-right: 15px;
70
- }
71
-
72
- &-reload {
73
- height: 32px;
74
- line-height: 32px;
75
- color: #595959;
76
- margin-left: 8px;
77
- }
78
-
79
- &-img {
80
- position: relative;
81
- width: 100px;
82
- height: 32px;
83
-
84
- img {
85
- width: 100%;
86
- height: 100%;
87
- }
88
-
89
- }
90
-
91
-
92
- }
93
- }
94
- </style>