@bytenew/bn-bus-ui 1.1.463 → 1.1.465
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/dist/assocTableSearch-BsLq8li6.js +349 -0
- package/dist/assocTableSearch.css +1 -0
- package/dist/bn-bus-ui.es.js +65 -0
- package/dist/bn-bus-ui.umd.js +17 -0
- package/dist/chooseIPaasData-DUfjjEr2.js +391 -0
- package/dist/chooseIPaasData.css +1 -0
- package/dist/defaultSet-CR0AVrl6.js +297 -0
- package/dist/defaultSet.css +1 -0
- package/dist/fileFormData-D_Q1vylE.js +53 -0
- package/dist/formItemFooter-CN8bMSJS.js +108 -0
- package/dist/formItemFooter.css +1 -0
- package/dist/funcExprDialog-OOejhToM.js +139 -0
- package/dist/funcExprDialog.css +1 -0
- package/dist/index-B-VEGqoB.js +183 -0
- package/dist/index-BDLkgkeO.js +66 -0
- package/dist/index-BK-KXSCO.js +221 -0
- package/dist/index-BwDhrvPs.js +109 -0
- package/dist/index-CKX6Ga7g.js +135 -0
- package/dist/index-CYrbjge7.js +64 -0
- package/dist/index-CpTMfPTm.js +45 -0
- package/dist/index-D94SlRAW.js +746 -0
- package/dist/index-DGQrmPZ8.js +66 -0
- package/dist/index-D_Gjzn2Y.js +89 -0
- package/dist/index-DbTkT_Pc.js +118 -0
- package/dist/index-Dp6qwgSk.js +58 -0
- package/dist/index-GqIlg6mb.js +89 -0
- package/dist/index-MYgF6eap.js +44 -0
- package/dist/index-btmDCgbT.js +178 -0
- package/dist/index-die9_Xdx.js +51 -0
- package/dist/index-x2GgSFZY.js +45 -0
- package/dist/index.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/install-D9fhAvpu.js +16424 -0
- package/dist/install.css +1 -0
- package/dist/setOption-aixerIsi.js +329 -0
- package/dist/setOption.css +1 -0
- package/dist/setRelationOption-AZZQd-2m.js +775 -0
- package/dist/setRelationOption.css +1 -0
- package/package.json +7 -22
- package/install.js +0 -134
- package/packages/BnAddress/index.vue +0 -141
- package/packages/BnAddressParse/index.vue +0 -75
- package/packages/BnAdvancedFilter/BnFilterView.vue +0 -145
- package/packages/BnAdvancedFilter/index.vue +0 -345
- package/packages/BnAdvancedFilter/util.js +0 -171
- package/packages/BnCascader/BnCascader.vue +0 -543
- package/packages/BnCascader/BnCascaderPanel.vue +0 -1331
- package/packages/BnCascader/cascaderDisplay.js +0 -102
- package/packages/BnCheck/BnCheck.vue +0 -253
- package/packages/BnColumnConfig/columnConfigDialog.vue +0 -134
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +0 -143
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +0 -314
- package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +0 -243
- package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +0 -114
- package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +0 -210
- package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +0 -126
- package/packages/BnColumnConfig/component/packageFilter/index.vue +0 -141
- package/packages/BnColumnConfig/component/paraExplainSet/index.vue +0 -156
- package/packages/BnColumnConfig/component/setOption/setOption.vue +0 -321
- package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +0 -277
- package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +0 -144
- package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +0 -642
- package/packages/BnColumnConfig/data.js +0 -129
- package/packages/BnColumnConfig/index.scss +0 -23
- package/packages/BnColumnConfig/index.vue +0 -309
- package/packages/BnCondVal/BnCondVal.vue +0 -112
- package/packages/BnCondVal/itemVal/dateRegVal.vue +0 -39
- package/packages/BnCondVal/itemVal/dateVal.vue +0 -39
- package/packages/BnCondVal/itemVal/numRegVal.vue +0 -67
- package/packages/BnCondVal/itemVal/numVal.vue +0 -44
- package/packages/BnCondVal/itemVal/relationVal.vue +0 -73
- package/packages/BnCondVal/itemVal/selectColumnVal.vue +0 -58
- package/packages/BnCondVal/itemVal/selectVal.vue +0 -59
- package/packages/BnCondVal/itemVal/stringVal.vue +0 -156
- package/packages/BnCondition/index.vue +0 -551
- package/packages/BnCondition/util.js +0 -232
- package/packages/BnDatePicker/BnDatePicker.vue +0 -194
- package/packages/BnDrop/BnDrop.vue +0 -917
- package/packages/BnEmptyTip/BnEmptyTip.vue +0 -107
- package/packages/BnExportOrder/BnExportOrder.vue +0 -241
- package/packages/BnExportOrder/validatorCode.vue +0 -94
- package/packages/BnFileView/BnFileView.vue +0 -271
- package/packages/BnFileView/FileDetail.vue +0 -125
- package/packages/BnFileView/videoPreview.vue +0 -70
- package/packages/BnFilterOption/BnFilterOption.vue +0 -160
- package/packages/BnFunExpr/BnFunExpr.vue +0 -608
- package/packages/BnImportOrder/BnImportOrder.vue +0 -323
- package/packages/BnImportTemplate/BnImportTemplate.vue +0 -866
- 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 +0 -198
- package/packages/BnImportTemplate/components/TemplateEditDialog.vue +0 -340
- package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +0 -401
- package/packages/BnImportTemplate/components/TemplateListDialog.vue +0 -297
- package/packages/BnInpNum/BnInpNum.vue +0 -165
- package/packages/BnMenus/BnMenus.vue +0 -502
- package/packages/BnMenus/MenuItem.vue +0 -321
- package/packages/BnOrderCard/BnOrderCard.vue +0 -389
- package/packages/BnOrderCard/orderRemark.vue +0 -178
- package/packages/BnOrderCard/util.js +0 -94
- package/packages/BnOrderDetail/BnOrderDetail.vue +0 -338
- package/packages/BnOrderDetail/filterLogByUser.vue +0 -108
- package/packages/BnOrderDetail/orderLogs.vue +0 -53
- package/packages/BnOrderDetail/showSubForm/index.vue +0 -41
- package/packages/BnOrderDetail/showSubForm/showChildTable.vue +0 -61
- package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +0 -131
- package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +0 -84
- package/packages/BnOrderShare/index.vue +0 -378
- package/packages/BnOrderShare/shareUrlInp.vue +0 -54
- package/packages/BnRadio/BnRadio.vue +0 -181
- package/packages/BnRelation/BnRelation.vue +0 -120
- package/packages/BnSelect/BnSelect.vue +0 -485
- package/packages/BnSmartForm/BnBatchForm.vue +0 -334
- package/packages/BnSmartForm/BnBatchFormDialog.vue +0 -423
- package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +0 -57
- package/packages/BnSmartForm/BnSmartElf/index.vue +0 -95
- package/packages/BnSmartForm/BnSmartFormPsychic.js +0 -629
- package/packages/BnSmartForm/BnSmartFormUtil.js +0 -524
- package/packages/BnSmartForm/addressForm/index.vue +0 -73
- package/packages/BnSmartForm/checkboxForm/index.vue +0 -99
- package/packages/BnSmartForm/childrenForm/childFormFile.vue +0 -237
- package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +0 -260
- package/packages/BnSmartForm/childrenForm/index.vue +0 -110
- package/packages/BnSmartForm/childrenForm/searchInventory.vue +0 -115
- package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +0 -451
- package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +0 -229
- package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +0 -84
- package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +0 -158
- package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +0 -307
- package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +0 -84
- package/packages/BnSmartForm/choosePackage/choosePackage.vue +0 -361
- package/packages/BnSmartForm/dateDualForm/index.vue +0 -37
- package/packages/BnSmartForm/dateForm/index.vue +0 -38
- package/packages/BnSmartForm/fileForm/fileFormData.js +0 -50
- package/packages/BnSmartForm/fileForm/index.vue +0 -240
- package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +0 -38
- package/packages/BnSmartForm/formItemTop/formItemTop.vue +0 -42
- package/packages/BnSmartForm/index.vue +0 -1201
- package/packages/BnSmartForm/numberForm/index.vue +0 -63
- package/packages/BnSmartForm/radioForm/index.vue +0 -72
- package/packages/BnSmartForm/receiveForm/index.vue +0 -112
- package/packages/BnSmartForm/relationForm/index.vue +0 -82
- package/packages/BnSmartForm/scoreForm/index.vue +0 -39
- package/packages/BnSmartForm/selectForm/index.vue +0 -55
- package/packages/BnSmartForm/showValForm/index.vue +0 -42
- package/packages/BnSmartForm/showValForm/showValFormTable.vue +0 -104
- package/packages/BnSmartForm/smartFormsCommon.scss +0 -43
- package/packages/BnSmartForm/stringForm/index.vue +0 -170
- package/packages/BnVirtPopover/index.vue +0 -319
- package/packages/BnWebLog/BnWebLog.vue +0 -140
- package/packages/BnWorkSettingDrop/advancedOptions.js +0 -112
- package/packages/BnWorkSettingDrop/benBenAIUtil.js +0 -89
- package/packages/BnWorkSettingDrop/index.vue +0 -292
- package/packages/font/iconfont.css +0 -243
- 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 +0 -645
- package/utils/addressParse.js +0 -735
- package/utils/config.js +0 -68
- package/utils/index.js +0 -1171
|
@@ -1,334 +0,0 @@
|
|
|
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>
|