@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,334 @@
|
|
|
1
|
+
<!--Created by xinba on 2024/10/30.-->
|
|
2
|
+
<!--
|
|
3
|
+
联动组件、
|
|
4
|
+
"https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_26e18a1f306bad541a1713b86e6d1030.png" 1
|
|
5
|
+
"https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_34d142cdae778fe5751269e3ebb078be.png" 2
|
|
6
|
+
"https://banniu-work.oss-cn-zhangjiakou.aliyuncs.com/125_10030158_a3e8db53df86fa2143e8d5238fc5dac0.png" 3
|
|
7
|
+
子表单组件、
|
|
8
|
+
附件预览
|
|
9
|
+
-->
|
|
10
|
+
<template>
|
|
11
|
+
<div class="BnBatchForm">
|
|
12
|
+
<div class="BnBatchForm-body" :val="value">
|
|
13
|
+
<el-scrollbar ref="formScroll" height="100%" style="background: #fff">
|
|
14
|
+
<template v-for="(column, j) in componentList" :key="j">
|
|
15
|
+
<div class="BnBatchForm-body-item" :id="'col_'+column.columnCode">
|
|
16
|
+
<div class="BnBatchForm-body-item-del" @click="componentList.splice(j,1)">
|
|
17
|
+
<span class="bnUIcon bnUIcon-delete"></span>
|
|
18
|
+
</div>
|
|
19
|
+
<component :is="componentView(column)" :column="column" :postFunc="postFunc" @onChange="comChange"/>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
</el-scrollbar>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
<script>
|
|
27
|
+
import {checkChildrenFormValue, FORM_TYPES,} from "./BnSmartFormUtil";
|
|
28
|
+
import {defineAsyncComponent} from "vue";
|
|
29
|
+
import {cloneDeep, isEmpty, debounce} from "lodash";
|
|
30
|
+
export default {
|
|
31
|
+
name: "BnBatchForm",
|
|
32
|
+
props: {
|
|
33
|
+
// 表单id 涉及编辑表单
|
|
34
|
+
id: [String, Number],
|
|
35
|
+
// 表单value
|
|
36
|
+
modelValue: Object,
|
|
37
|
+
// 扩展参数
|
|
38
|
+
extendPost: Object,
|
|
39
|
+
// 组件列表
|
|
40
|
+
components: Array,
|
|
41
|
+
// 接口请求外部转发
|
|
42
|
+
postFunc: Function,
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
/**
|
|
46
|
+
* 生成整张表单的valueData,供保存使用
|
|
47
|
+
* @param {Object} components: 组件data
|
|
48
|
+
*
|
|
49
|
+
* */
|
|
50
|
+
getFormContent() {
|
|
51
|
+
let response = {
|
|
52
|
+
contents: [],
|
|
53
|
+
};
|
|
54
|
+
try {
|
|
55
|
+
for (let i in this.componentList) {
|
|
56
|
+
let component = cloneDeep(this.componentList[i]);
|
|
57
|
+
let content = {
|
|
58
|
+
columnCode: component.columnCode,
|
|
59
|
+
};
|
|
60
|
+
switch (component.behaviorType) {
|
|
61
|
+
case 1://文本
|
|
62
|
+
case 2://数值
|
|
63
|
+
case 9://评分
|
|
64
|
+
case 7://日期
|
|
65
|
+
case 11://富文本
|
|
66
|
+
{
|
|
67
|
+
content.value = component.value;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
case 3://单选
|
|
71
|
+
case 4://下拉
|
|
72
|
+
case 5://多选
|
|
73
|
+
case 6://联动
|
|
74
|
+
case 20://多选联动
|
|
75
|
+
case 8://区间
|
|
76
|
+
case 10://附件
|
|
77
|
+
case 12://标签
|
|
78
|
+
case 13://子表单
|
|
79
|
+
case 14://地址
|
|
80
|
+
case 15://收寄信息
|
|
81
|
+
{
|
|
82
|
+
content.value = component.value?JSON.stringify(component.value):'';
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
response.contents.push(content)
|
|
87
|
+
}
|
|
88
|
+
} catch (e) {
|
|
89
|
+
console.log("getFormContentErr:" + e)
|
|
90
|
+
}
|
|
91
|
+
return response;
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* 表单校验,根据组件规则校验表单填写的正确性
|
|
95
|
+
* */
|
|
96
|
+
checkFormContent() {
|
|
97
|
+
let check = {
|
|
98
|
+
column: null,
|
|
99
|
+
checked: true
|
|
100
|
+
};
|
|
101
|
+
for (let i in this.componentList) {
|
|
102
|
+
let component = {...this.componentList[i]};
|
|
103
|
+
let content = {
|
|
104
|
+
columnCode: component.columnCode,
|
|
105
|
+
};
|
|
106
|
+
switch (component.behaviorType) {
|
|
107
|
+
case 1://文本
|
|
108
|
+
case 2://数值
|
|
109
|
+
{
|
|
110
|
+
// 文本校验是否必填
|
|
111
|
+
if (component.extraInfo.valueEmptyCheck == 1 && component.behaviorType == 1 && isEmpty(component.value)) {
|
|
112
|
+
this.componentList[i].error = component.name + "的值不能为空";
|
|
113
|
+
}
|
|
114
|
+
// 数值校验是否必填
|
|
115
|
+
if (component.extraInfo.valueEmptyCheck == 1 && component.behaviorType == 2 && (component.value === undefined || component.value === null || component.value === '')) {
|
|
116
|
+
this.componentList[i].error = component.name + "的值不能为空";
|
|
117
|
+
}
|
|
118
|
+
// 正则校验
|
|
119
|
+
if (component.extraInfo.regular) {
|
|
120
|
+
//获取校验规则,转化为正则表达式
|
|
121
|
+
let rule = new RegExp(component.extraInfo.regular);
|
|
122
|
+
if (!rule.test(component.value)) {
|
|
123
|
+
this.componentList[i].error = component.extraInfo.paraExplain || '请输入符合要求的' + component.name;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
case 3://单选
|
|
129
|
+
case 4://下拉
|
|
130
|
+
case 5://多选
|
|
131
|
+
case 6://联动
|
|
132
|
+
case 20://多选联动
|
|
133
|
+
case 8://区间
|
|
134
|
+
case 10://附件
|
|
135
|
+
case 12://标签
|
|
136
|
+
case 9://评分
|
|
137
|
+
case 7://日期
|
|
138
|
+
case 11://富文本
|
|
139
|
+
{
|
|
140
|
+
// 校验是否必填
|
|
141
|
+
if (component.extraInfo.valueEmptyCheck == 1 && isEmpty(component.value)) {
|
|
142
|
+
this.componentList[i].error = component.name + "的值不能为空";
|
|
143
|
+
}
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
case 13://子表单
|
|
147
|
+
{
|
|
148
|
+
if (component.extraInfo.valueEmptyCheck == 1) {
|
|
149
|
+
if(isEmpty(component.value)){
|
|
150
|
+
this.componentList[i].error = component.name + '至少要有一条内容';
|
|
151
|
+
}else{
|
|
152
|
+
let msg = checkChildrenFormValue(component,this.id)
|
|
153
|
+
if(msg){
|
|
154
|
+
this.componentList[i].error = msg;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
case 14://地址
|
|
161
|
+
case 15://收寄信息
|
|
162
|
+
{
|
|
163
|
+
if (component.extraInfo.valueEmptyCheck == 1) {
|
|
164
|
+
for(let key in component.value){
|
|
165
|
+
if(isEmpty(component.value[key])){
|
|
166
|
+
this.componentList[i].error = `请输入完整的${component.name}`;
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if (this.componentList[i].error) {
|
|
175
|
+
check.column = this.componentList[i];
|
|
176
|
+
check.checked = false;
|
|
177
|
+
this.getHere(content, true);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return check;
|
|
182
|
+
},
|
|
183
|
+
/**
|
|
184
|
+
* 锚点滚动条滚动后,组件列表跟随滚动到指定位置
|
|
185
|
+
* */
|
|
186
|
+
getHere(item) {
|
|
187
|
+
const targetElement = document.getElementById("col_" + item.columnCode);
|
|
188
|
+
if (targetElement && this.$refs.formScroll) {
|
|
189
|
+
// 使用 el-scrollbar 的 scrollTo 方法
|
|
190
|
+
this.$refs.formScroll.scrollTo({top: targetElement.offsetTop, behavior: 'smooth'});
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* 保存任务,返回校验完毕,组装完成后的数据
|
|
195
|
+
* */
|
|
196
|
+
saveTask() {
|
|
197
|
+
if (this.checkFormContent()) {
|
|
198
|
+
let params = this.getFormContent();
|
|
199
|
+
return {check: true, taskStatus: {}, carryUser: {}, ...params}
|
|
200
|
+
} else {
|
|
201
|
+
return {check: false}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* 判断返回是哪一类型的组件
|
|
206
|
+
* */
|
|
207
|
+
componentView(column) {
|
|
208
|
+
const components = {
|
|
209
|
+
stringForm: defineAsyncComponent(() => import('./stringForm/index.vue')),
|
|
210
|
+
numberForm: defineAsyncComponent(() => import('./numberForm/index.vue')),
|
|
211
|
+
selectForm: defineAsyncComponent(() => import('./selectForm/index.vue')),
|
|
212
|
+
radioForm: defineAsyncComponent(() => import('./radioForm/index.vue')),
|
|
213
|
+
checkboxForm: defineAsyncComponent(() => import('./checkboxForm/index.vue')),
|
|
214
|
+
dateForm: defineAsyncComponent(() => import('./dateForm/index.vue')),
|
|
215
|
+
dateDualForm: defineAsyncComponent(() => import('./dateDualForm/index.vue')),
|
|
216
|
+
fileForm: defineAsyncComponent(() => import('./fileForm/index.vue')),
|
|
217
|
+
childrenForm: defineAsyncComponent(() => import('./childrenForm/index.vue')),
|
|
218
|
+
addressForm: defineAsyncComponent(() => import('./addressForm/index.vue')),
|
|
219
|
+
receiveForm: defineAsyncComponent(() => import('./receiveForm/index.vue')),
|
|
220
|
+
relationForm: defineAsyncComponent(() => import('./relationForm/index.vue')),
|
|
221
|
+
// showValForm: defineAsyncComponent(() => import('./showValForm/index.vue')),
|
|
222
|
+
}
|
|
223
|
+
// 根据常量获取不同组件类型,进行渲染
|
|
224
|
+
let componentName = FORM_TYPES[column.behaviorType] || null;
|
|
225
|
+
try {
|
|
226
|
+
// 当组件是编辑时禁用,或者是流程的冻结组件时,展示一个预览样式 autoNumber:自动编码
|
|
227
|
+
// if (this.id && column.purviewArr.includes('edit') && column.extraInfo.valueEditable == '1') {
|
|
228
|
+
// return 'showValForm'
|
|
229
|
+
// }
|
|
230
|
+
} catch (e) {
|
|
231
|
+
console.log('BnBatchFormComponentViewErr:' + e)
|
|
232
|
+
}
|
|
233
|
+
return components[componentName]
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* 组件值发生改变,在数据确定变化结束才会返回这个事件。需要注意input事件也会触发change,只不过做了防抖
|
|
237
|
+
* @param {Object} params :子表单事件透出,需要提供更多组件信息,只有子表单才有这个参数!!
|
|
238
|
+
* */
|
|
239
|
+
comChange() {
|
|
240
|
+
this.$emit('change', this.value)
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
computed: {
|
|
244
|
+
// 组件列表
|
|
245
|
+
componentList: {
|
|
246
|
+
get() {
|
|
247
|
+
return this.components;
|
|
248
|
+
},
|
|
249
|
+
set(val) {
|
|
250
|
+
this.$emit("update:components", val);
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
value() {
|
|
254
|
+
const content = this.getFormContent();
|
|
255
|
+
this.$emit("update:modelValue", content);
|
|
256
|
+
return content;
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
}
|
|
260
|
+
</script>
|
|
261
|
+
<style>
|
|
262
|
+
@import "../font/iconfont.css";
|
|
263
|
+
</style>
|
|
264
|
+
<style scoped lang="scss">
|
|
265
|
+
.BnBatchForm {
|
|
266
|
+
position: relative;
|
|
267
|
+
background: #fff;
|
|
268
|
+
width: 100%;
|
|
269
|
+
height: 100%;
|
|
270
|
+
|
|
271
|
+
&-head {
|
|
272
|
+
position: absolute;
|
|
273
|
+
top: 0;
|
|
274
|
+
width: 100%;
|
|
275
|
+
height: 8px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&-body {
|
|
279
|
+
position: relative;
|
|
280
|
+
width: 100%;
|
|
281
|
+
height: 100%;
|
|
282
|
+
|
|
283
|
+
&-item {
|
|
284
|
+
position: relative;
|
|
285
|
+
padding: 10px 20px;
|
|
286
|
+
&-del{
|
|
287
|
+
position: absolute;
|
|
288
|
+
right: 20px;
|
|
289
|
+
top: 10px;
|
|
290
|
+
color: #FF5F5F;
|
|
291
|
+
cursor: pointer;
|
|
292
|
+
z-index: 1;
|
|
293
|
+
}
|
|
294
|
+
&:first-child{
|
|
295
|
+
padding-top: 0;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
&-elf {
|
|
301
|
+
position: absolute;
|
|
302
|
+
top: 0;
|
|
303
|
+
left: calc(100% + 10px);
|
|
304
|
+
background: #fff;
|
|
305
|
+
width: 340px;
|
|
306
|
+
height: calc(80%);
|
|
307
|
+
box-shadow: 0 0 12px rgba(0, 0, 0, .12);;
|
|
308
|
+
border-radius: 4px;
|
|
309
|
+
border: 1px solid #e4e7ed;
|
|
310
|
+
overflow: hidden;
|
|
311
|
+
|
|
312
|
+
&-tip {
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: 60px;
|
|
315
|
+
right: 30px;
|
|
316
|
+
width: 50px;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
z-index: -1;
|
|
319
|
+
|
|
320
|
+
img {
|
|
321
|
+
width: 60px;
|
|
322
|
+
transform: rotate(40deg); /* 旋转 90 度 */
|
|
323
|
+
transform-origin: center; /* 设置旋转中心为图片中心 */
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
transition: right 0.5s ease-in-out;
|
|
327
|
+
|
|
328
|
+
&-show {
|
|
329
|
+
right: -20px;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
</style>
|