@bytenew/bn-bus-ui 1.1.461 → 1.1.463
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/install.js +134 -0
- package/package.json +20 -4
- package/packages/BnAddress/index.vue +141 -0
- package/packages/BnAddressParse/index.vue +75 -0
- package/packages/BnAdvancedFilter/BnFilterView.vue +145 -0
- package/packages/BnAdvancedFilter/index.vue +345 -0
- package/packages/BnAdvancedFilter/util.js +171 -0
- package/packages/BnCascader/BnCascader.vue +543 -0
- package/packages/BnCascader/BnCascaderPanel.vue +1331 -0
- package/packages/BnCascader/cascaderDisplay.js +102 -0
- package/packages/BnCheck/BnCheck.vue +253 -0
- package/packages/BnColumnConfig/columnConfigDialog.vue +134 -0
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +143 -0
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +314 -0
- package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +243 -0
- package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +114 -0
- package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +210 -0
- package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +126 -0
- package/packages/BnColumnConfig/component/packageFilter/index.vue +141 -0
- package/packages/BnColumnConfig/component/paraExplainSet/index.vue +156 -0
- package/packages/BnColumnConfig/component/setOption/setOption.vue +321 -0
- package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +277 -0
- package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +144 -0
- package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +642 -0
- package/packages/BnColumnConfig/data.js +129 -0
- package/packages/BnColumnConfig/index.scss +23 -0
- package/packages/BnColumnConfig/index.vue +309 -0
- package/packages/BnCondVal/BnCondVal.vue +112 -0
- package/packages/BnCondVal/itemVal/dateRegVal.vue +39 -0
- package/packages/BnCondVal/itemVal/dateVal.vue +39 -0
- package/packages/BnCondVal/itemVal/numRegVal.vue +67 -0
- package/packages/BnCondVal/itemVal/numVal.vue +44 -0
- package/packages/BnCondVal/itemVal/relationVal.vue +73 -0
- package/packages/BnCondVal/itemVal/selectColumnVal.vue +58 -0
- package/packages/BnCondVal/itemVal/selectVal.vue +59 -0
- package/packages/BnCondVal/itemVal/stringVal.vue +156 -0
- package/packages/BnCondition/index.vue +551 -0
- package/packages/BnCondition/util.js +232 -0
- package/packages/BnDatePicker/BnDatePicker.vue +194 -0
- package/packages/BnDrop/BnDrop.vue +917 -0
- package/packages/BnEmptyTip/BnEmptyTip.vue +107 -0
- package/packages/BnExportOrder/BnExportOrder.vue +241 -0
- package/packages/BnExportOrder/validatorCode.vue +94 -0
- package/packages/BnFileView/BnFileView.vue +271 -0
- package/packages/BnFileView/FileDetail.vue +125 -0
- package/packages/BnFileView/videoPreview.vue +70 -0
- package/packages/BnFilterOption/BnFilterOption.vue +160 -0
- package/packages/BnFunExpr/BnFunExpr.vue +608 -0
- package/packages/BnImportOrder/BnImportOrder.vue +323 -0
- package/packages/BnImportTemplate/BnImportTemplate.vue +866 -0
- package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
- package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
- package/packages/BnImportTemplate/assets/xls.png +0 -0
- package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +198 -0
- package/packages/BnImportTemplate/components/TemplateEditDialog.vue +340 -0
- package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +401 -0
- package/packages/BnImportTemplate/components/TemplateListDialog.vue +297 -0
- package/packages/BnInpNum/BnInpNum.vue +165 -0
- package/packages/BnMenus/BnMenus.vue +502 -0
- package/packages/BnMenus/MenuItem.vue +321 -0
- package/packages/BnOrderCard/BnOrderCard.vue +389 -0
- package/packages/BnOrderCard/orderRemark.vue +178 -0
- package/packages/BnOrderCard/util.js +94 -0
- package/packages/BnOrderDetail/BnOrderDetail.vue +338 -0
- package/packages/BnOrderDetail/filterLogByUser.vue +108 -0
- package/packages/BnOrderDetail/orderLogs.vue +53 -0
- package/packages/BnOrderDetail/showSubForm/index.vue +41 -0
- package/packages/BnOrderDetail/showSubForm/showChildTable.vue +61 -0
- package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +131 -0
- package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +84 -0
- package/packages/BnOrderShare/index.vue +378 -0
- package/packages/BnOrderShare/shareUrlInp.vue +54 -0
- package/packages/BnRadio/BnRadio.vue +181 -0
- package/packages/BnRelation/BnRelation.vue +120 -0
- package/packages/BnSelect/BnSelect.vue +485 -0
- package/packages/BnSmartForm/BnBatchForm.vue +334 -0
- package/packages/BnSmartForm/BnBatchFormDialog.vue +423 -0
- package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +57 -0
- package/packages/BnSmartForm/BnSmartElf/index.vue +95 -0
- package/packages/BnSmartForm/BnSmartFormPsychic.js +629 -0
- package/packages/BnSmartForm/BnSmartFormUtil.js +524 -0
- package/packages/BnSmartForm/addressForm/index.vue +73 -0
- package/packages/BnSmartForm/checkboxForm/index.vue +99 -0
- package/packages/BnSmartForm/childrenForm/childFormFile.vue +237 -0
- package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +260 -0
- package/packages/BnSmartForm/childrenForm/index.vue +110 -0
- package/packages/BnSmartForm/childrenForm/searchInventory.vue +115 -0
- package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +451 -0
- package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +229 -0
- package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +84 -0
- package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +158 -0
- package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +307 -0
- package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +84 -0
- package/packages/BnSmartForm/choosePackage/choosePackage.vue +361 -0
- package/packages/BnSmartForm/dateDualForm/index.vue +37 -0
- package/packages/BnSmartForm/dateForm/index.vue +38 -0
- package/packages/BnSmartForm/fileForm/fileFormData.js +50 -0
- package/packages/BnSmartForm/fileForm/index.vue +240 -0
- package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +38 -0
- package/packages/BnSmartForm/formItemTop/formItemTop.vue +42 -0
- package/packages/BnSmartForm/index.vue +1201 -0
- package/packages/BnSmartForm/numberForm/index.vue +63 -0
- package/packages/BnSmartForm/radioForm/index.vue +72 -0
- package/packages/BnSmartForm/receiveForm/index.vue +112 -0
- package/packages/BnSmartForm/relationForm/index.vue +82 -0
- package/packages/BnSmartForm/scoreForm/index.vue +39 -0
- package/packages/BnSmartForm/selectForm/index.vue +55 -0
- package/packages/BnSmartForm/showValForm/index.vue +42 -0
- package/packages/BnSmartForm/showValForm/showValFormTable.vue +104 -0
- package/packages/BnSmartForm/smartFormsCommon.scss +43 -0
- package/packages/BnSmartForm/stringForm/index.vue +170 -0
- package/packages/BnVirtPopover/index.vue +319 -0
- package/packages/BnWebLog/BnWebLog.vue +140 -0
- package/packages/BnWorkSettingDrop/advancedOptions.js +112 -0
- package/packages/BnWorkSettingDrop/benBenAIUtil.js +89 -0
- package/packages/BnWorkSettingDrop/index.vue +292 -0
- package/packages/font/iconfont.css +243 -0
- package/packages/font/iconfont.ttf +0 -0
- package/packages/font/iconfont.woff +0 -0
- package/packages/font/iconfont.woff2 +0 -0
- package/utils/addressParse-old.js +645 -0
- package/utils/addressParse.js +735 -0
- package/utils/config.js +68 -0
- package/utils/index.js +1171 -0
- package/dist/assocTableSearch-C14i_zJO.js +0 -349
- package/dist/assocTableSearch.css +0 -1
- package/dist/bn-bus-ui.es.js +0 -65
- package/dist/bn-bus-ui.umd.js +0 -49
- package/dist/chooseIPaasData-Cl_5qkFA.js +0 -391
- package/dist/chooseIPaasData.css +0 -1
- package/dist/defaultSet-I4xpf8a4.js +0 -297
- package/dist/defaultSet.css +0 -1
- package/dist/fileFormData-D_Q1vylE.js +0 -53
- package/dist/formItemFooter-CTA7rDtV.js +0 -108
- package/dist/formItemFooter.css +0 -1
- package/dist/funcExprDialog-Cm5BiRM3.js +0 -139
- package/dist/funcExprDialog.css +0 -1
- package/dist/index-B6b4uj8v.js +0 -51
- package/dist/index-BWdkDTbz.js +0 -109
- package/dist/index-BdZ1zOap.js +0 -89
- package/dist/index-BdzNjjMC.js +0 -64
- package/dist/index-BfpZqab2.js +0 -66
- package/dist/index-BmkiB4hr.js +0 -66
- package/dist/index-Br1sqCoo.js +0 -58
- package/dist/index-C9qrl-yc.js +0 -183
- package/dist/index-CXFJXCn5.js +0 -746
- package/dist/index-DF114jZq.js +0 -135
- package/dist/index-DFPfZ_Il.js +0 -178
- package/dist/index-DSEtu7TN.js +0 -44
- package/dist/index-Did0UUWV.js +0 -221
- package/dist/index-DrPj-tmI.js +0 -45
- package/dist/index-DzDf9s2W.js +0 -89
- package/dist/index-LnjudNEI.js +0 -118
- package/dist/index-ObCfCmDT.js +0 -45
- package/dist/index.css +0 -1
- package/dist/index2.css +0 -1
- package/dist/index3.css +0 -1
- package/dist/index4.css +0 -1
- package/dist/index5.css +0 -1
- package/dist/index6.css +0 -1
- package/dist/index7.css +0 -1
- package/dist/install-C-scqkds.js +0 -23103
- package/dist/install.css +0 -1
- package/dist/setOption-CSnWzOny.js +0 -329
- package/dist/setOption.css +0 -1
- package/dist/setRelationOption-CJcHdfaa.js +0 -5217
- package/dist/setRelationOption.css +0 -1
|
@@ -0,0 +1,107 @@
|
|
|
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>
|
|
@@ -0,0 +1,241 @@
|
|
|
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>
|
|
@@ -0,0 +1,94 @@
|
|
|
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>
|