@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.
- package/dist/assocTableSearch-Bfe96864.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 +49 -0
- package/dist/chooseIPaasData-COrrvQKZ.js +391 -0
- package/dist/chooseIPaasData.css +1 -0
- package/dist/defaultSet-CzN1ec_d.js +297 -0
- package/dist/defaultSet.css +1 -0
- package/dist/fileFormData-D_Q1vylE.js +53 -0
- package/dist/formItemFooter-BvptZj_u.js +108 -0
- package/dist/formItemFooter.css +1 -0
- package/dist/funcExprDialog-BguNs9fl.js +139 -0
- package/dist/funcExprDialog.css +1 -0
- package/dist/index-0oB7QocU.js +44 -0
- package/dist/index-69fRP0M8.js +89 -0
- package/dist/index-BdklTJtF.js +66 -0
- package/dist/index-Bu3jHlby.js +45 -0
- package/dist/index-BxWx5kpG.js +89 -0
- package/dist/index-C5LQ0OSs.js +183 -0
- package/dist/index-C8YhrrUN.js +51 -0
- package/dist/index-COuPCIzB.js +45 -0
- package/dist/index-CSvVyjxx.js +178 -0
- package/dist/index-DCv51EXX.js +109 -0
- package/dist/index-DUSI6MuC.js +135 -0
- package/dist/index-DVzxs2vR.js +58 -0
- package/dist/index-Dd4b8zNb.js +746 -0
- package/dist/index-Md-ZlkCW.js +66 -0
- package/dist/index-hsSIY2FP.js +221 -0
- package/dist/index-n13-H3_Y.js +118 -0
- package/dist/index-wUl5aPUD.js +64 -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-CNjs0u5x.js +23299 -0
- package/dist/install.css +1 -0
- package/dist/setOption-CXOifQcx.js +329 -0
- package/dist/setOption.css +1 -0
- package/dist/setRelationOption-C7VDhej7.js +5217 -0
- package/dist/setRelationOption.css +1 -0
- package/package.json +4 -20
- 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,108 +0,0 @@
|
|
|
1
|
-
<!--通过选择成员来筛选操作日志-->
|
|
2
|
-
<template>
|
|
3
|
-
<BnDrop ref="bnDrop" pathUrl="/v2/project/column/select"
|
|
4
|
-
:postData="postData" :postFunc="postFunc" :labelInValue="false"
|
|
5
|
-
:optionProps="{value:'id',label:'title'}"
|
|
6
|
-
searchKey="condition" :options="userConst" multiple v-model="val"
|
|
7
|
-
:pageProps="{pageNum: 'pageNo',pageSize: 'pageSize'}">
|
|
8
|
-
<slot>
|
|
9
|
-
<el-button link class="filter-btn">
|
|
10
|
-
<span class="w-color-blue"><span class="bnUIcon bnUIcon-search"></span> 筛选</span>
|
|
11
|
-
<span class="w-color-gray" v-if="modelValue.length">(已选{{modelValue.length}}人)</span>
|
|
12
|
-
<span class="bnUIcon bnUIcon-clear filter-btn-icon w-color-red w-margin-left4" v-if="modelValue.length" @click.stop="clear()"></span>
|
|
13
|
-
</el-button>
|
|
14
|
-
</slot>
|
|
15
|
-
<template v-slot:dropdown-bottom>
|
|
16
|
-
<div class="w-text-right w-padding-lr10 w-padding-tb4">
|
|
17
|
-
<el-button link @click="val = [];" v-if="val.length">清空</el-button>
|
|
18
|
-
<el-button @click="cancel()">取消</el-button>
|
|
19
|
-
<el-button type="primary" @click="sure()">确定</el-button>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
</BnDrop>
|
|
23
|
-
|
|
24
|
-
</template>
|
|
25
|
-
<script>
|
|
26
|
-
import {userConst} from "../../utils/index.js";
|
|
27
|
-
import {cloneDeep} from "lodash";
|
|
28
|
-
|
|
29
|
-
export default {
|
|
30
|
-
name: "searchLogByUser",
|
|
31
|
-
props: {
|
|
32
|
-
modelValue:{
|
|
33
|
-
type:Array,
|
|
34
|
-
default(){
|
|
35
|
-
return []
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
userByTable:Boolean,
|
|
39
|
-
// 表信息
|
|
40
|
-
tableInfo: Object,
|
|
41
|
-
// 操作列表
|
|
42
|
-
operateList: {
|
|
43
|
-
type:Array,
|
|
44
|
-
default(){
|
|
45
|
-
return []
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
// 底部tabList
|
|
49
|
-
tabPaneList: {
|
|
50
|
-
type:Array,
|
|
51
|
-
default(){
|
|
52
|
-
return []
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
// 接口请求外部转发
|
|
56
|
-
postFunc: Function,
|
|
57
|
-
},
|
|
58
|
-
data(){
|
|
59
|
-
return{
|
|
60
|
-
userConst,
|
|
61
|
-
val:[],
|
|
62
|
-
postData:{
|
|
63
|
-
"appId": this.tableInfo.appId,
|
|
64
|
-
"projectId": this.tableInfo.tableId,
|
|
65
|
-
"selectParams": this.userByTable?'':"{\"userColId\":\"-1\"}",
|
|
66
|
-
"type": "user",
|
|
67
|
-
"ids": "{\"field\":\"\",\"type\":\"user\",\"table\":\"\"}",
|
|
68
|
-
"condition": "",
|
|
69
|
-
},
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
methods:{
|
|
73
|
-
/**
|
|
74
|
-
* 确定
|
|
75
|
-
* */
|
|
76
|
-
sure() {
|
|
77
|
-
this.$emit("update:modelValue", cloneDeep(this.val));
|
|
78
|
-
this.$refs.bnDrop.close();
|
|
79
|
-
},
|
|
80
|
-
/**
|
|
81
|
-
* 取消
|
|
82
|
-
* */
|
|
83
|
-
cancel() {
|
|
84
|
-
this.val = cloneDeep(this.modelValue)
|
|
85
|
-
this.$refs.bnDrop.close();
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* 清空
|
|
89
|
-
* */
|
|
90
|
-
clear() {
|
|
91
|
-
this.val = []
|
|
92
|
-
this.$emit("update:modelValue", cloneDeep(this.val));
|
|
93
|
-
},
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
</script>
|
|
97
|
-
<style scoped lang="scss">
|
|
98
|
-
.filter-btn {
|
|
99
|
-
.filter-btn-icon {
|
|
100
|
-
display: none;
|
|
101
|
-
}
|
|
102
|
-
&:hover {
|
|
103
|
-
.filter-btn-icon {
|
|
104
|
-
display: inline;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
</style>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="w-padding-tb10">
|
|
3
|
-
<BnEmptyTip v-if="!logList.length"></BnEmptyTip>
|
|
4
|
-
<el-timeline>
|
|
5
|
-
<el-timeline-item placement="top" v-for="(activity, index) in logList" :key="index"
|
|
6
|
-
:color="index == 0?'#0bbd87':'#DADADA'" :timestamp="activity.gmtCreate">
|
|
7
|
-
<el-card>
|
|
8
|
-
<div class="w-text-over-two w-color-black6 w-font13" :title="activity.content">{{
|
|
9
|
-
activity.content
|
|
10
|
-
}}
|
|
11
|
-
</div>
|
|
12
|
-
</el-card>
|
|
13
|
-
</el-timeline-item>
|
|
14
|
-
</el-timeline>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<script>
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
name: "orderLogs",
|
|
21
|
-
props: {
|
|
22
|
-
tableInfo: {},
|
|
23
|
-
id: {},
|
|
24
|
-
// 传入成员id筛选这个成员的操作记录
|
|
25
|
-
filterUsers: {},
|
|
26
|
-
// 接口请求外部转发
|
|
27
|
-
postFunc: Function,
|
|
28
|
-
},
|
|
29
|
-
data() {
|
|
30
|
-
return {
|
|
31
|
-
taskLog: [],
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
created() {
|
|
35
|
-
this.taskLog = [];
|
|
36
|
-
let postData = {
|
|
37
|
-
tableCode: this.tableInfo.tableCode,
|
|
38
|
-
id: this.id
|
|
39
|
-
}
|
|
40
|
-
// 获取工单操作记录
|
|
41
|
-
this.postFunc('/biztable/content/selectLogsByTaskId', postData).then(res => {
|
|
42
|
-
if (!res.code) {
|
|
43
|
-
this.taskLog = res.data;
|
|
44
|
-
}
|
|
45
|
-
})
|
|
46
|
-
},
|
|
47
|
-
computed:{
|
|
48
|
-
logList(){
|
|
49
|
-
return this.filterUsers.length>0?this.taskLog.filter(i=>this.filterUsers.includes(String(i.ownerId))):this.taskLog
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
}
|
|
53
|
-
</script>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="showSubFormDetail">
|
|
3
|
-
<!--展示表格,或者时间线-->
|
|
4
|
-
<showTimeLine :columns="column.moduleDefinition" :tableData="tableData"
|
|
5
|
-
v-if="column.columnCode == 'serve_progress' || column.columnCode == 'tracking_back'"></showTimeLine>
|
|
6
|
-
<showChildTable :columns="column.moduleDefinition" :tableData="tableData"
|
|
7
|
-
:maxHeight="maxHeight" v-else></showChildTable>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
<script>
|
|
11
|
-
import showChildTable from "./showChildTable.vue";
|
|
12
|
-
import showTimeLine from "./showTimeLine.vue";
|
|
13
|
-
import {tidyShowSubDataFile} from "../../../utils/index.js";
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
name: 'showSubFormDetail',
|
|
17
|
-
components: {showChildTable, showTimeLine},
|
|
18
|
-
props: {
|
|
19
|
-
column: Object,
|
|
20
|
-
row: Object,
|
|
21
|
-
maxHeight:{
|
|
22
|
-
default:'100%'
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
data() {
|
|
26
|
-
return {
|
|
27
|
-
show: false,
|
|
28
|
-
tableData: [],
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
created() {
|
|
32
|
-
this.tableData = tidyShowSubDataFile(this.column, this.row)
|
|
33
|
-
},
|
|
34
|
-
}
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style scoped lang="scss">
|
|
38
|
-
.showSubFormDetail {
|
|
39
|
-
max-height: 100%;
|
|
40
|
-
}
|
|
41
|
-
</style>
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tableCellCopy ref="childTableCopy"></tableCellCopy>
|
|
3
|
-
<vxe-table border="full"
|
|
4
|
-
:row-config="{ keyField: 'id' }"
|
|
5
|
-
:header-cell-config="{height: 36}"
|
|
6
|
-
resizable :tooltip-config="{}"
|
|
7
|
-
@cell-mouseenter="onMouseEvent"
|
|
8
|
-
@cell-mouseleave="onMouseEvent"
|
|
9
|
-
:scroll-x="{ enabled: true, gt: 10 }"
|
|
10
|
-
:scroll-y="{ enabled: true, gt: 30 }"
|
|
11
|
-
:resizable-config="{ minWidth: 120 }"
|
|
12
|
-
ref="childTable" :data="tableData"
|
|
13
|
-
min-height="40" :max-height="maxHeight">
|
|
14
|
-
<vxe-column type="seq" width="60"></vxe-column>
|
|
15
|
-
<vxe-column :title="column.name" :field="column.columnCode" min-width="160" v-for="(column,index) in columns" :key="index">
|
|
16
|
-
<template #default="scope" v-if="column.behaviorType == 10">
|
|
17
|
-
<BnFileView v-if="scope.row.inside[column.columnCode]" :file-list="scope.row.inside[column.columnCode]"
|
|
18
|
-
:width="32" :is-mini="true" :no-warp="true"></BnFileView>
|
|
19
|
-
</template>
|
|
20
|
-
</vxe-column>
|
|
21
|
-
</vxe-table>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script>
|
|
25
|
-
import tableCellCopy from "./tableCellCopy.vue";
|
|
26
|
-
|
|
27
|
-
export default {
|
|
28
|
-
name: 'showChildTable',
|
|
29
|
-
components: {tableCellCopy},
|
|
30
|
-
props: {
|
|
31
|
-
columns: Array,
|
|
32
|
-
maxHeight: {
|
|
33
|
-
default: '100%'
|
|
34
|
-
},
|
|
35
|
-
tableData: Array,
|
|
36
|
-
},
|
|
37
|
-
methods: {
|
|
38
|
-
/**
|
|
39
|
-
* 鼠标移入移出单元格,展示隐藏复制按钮
|
|
40
|
-
* @param {Event} e 事件对象
|
|
41
|
-
*/
|
|
42
|
-
onMouseEvent(scope) {
|
|
43
|
-
// 当鼠标悬浮到单元格时,再加复制按钮
|
|
44
|
-
let e = scope.$event;
|
|
45
|
-
// 鼠标离开
|
|
46
|
-
if (e.type === "mouseleave") {
|
|
47
|
-
this.$refs.childTableCopy?.onHide()
|
|
48
|
-
} else {
|
|
49
|
-
let data = {
|
|
50
|
-
column: {columnCode: this.columns[scope.columnIndex - 1]?.columnCode},
|
|
51
|
-
row: scope.row
|
|
52
|
-
}
|
|
53
|
-
// 有值再显示
|
|
54
|
-
if (data.row[data.column.columnCode]) {
|
|
55
|
-
this.$refs.childTableCopy?.onShow(scope.cell, data)
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
</script>
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="showTimeLine">
|
|
3
|
-
<el-timeline style="max-width: 800px;">
|
|
4
|
-
<el-timeline-item v-for="(item,index) in displayData"
|
|
5
|
-
:key="index" :timestamp="item.serve_status+' '+item.operator_time" placement="top"
|
|
6
|
-
:color="index == 0?'#1677FF':'#DADADA'">
|
|
7
|
-
<el-card body-class="showTimeLine-card">
|
|
8
|
-
<el-row :gutter="20">
|
|
9
|
-
<template v-for="(column,i) in stringList" :key="i">
|
|
10
|
-
<el-col :span="12" v-if="item[column.columnCode]" class="showTimeLine-box">
|
|
11
|
-
<div class="showTimeLine-box-title">{{column.name}}:</div>
|
|
12
|
-
<el-popover :content="item[column.columnCode]" placement="top-end" width="680" :disabled="!isTextOverflow(item[column.columnCode])">
|
|
13
|
-
<template #reference>
|
|
14
|
-
<div class="showTimeLine-box-text w-text-over-three" ref="textRef">{{item[column.columnCode]}}</div>
|
|
15
|
-
</template>
|
|
16
|
-
</el-popover>
|
|
17
|
-
</el-col>
|
|
18
|
-
</template>
|
|
19
|
-
</el-row>
|
|
20
|
-
<template v-for="(column,i) in imgList" :key="i">
|
|
21
|
-
<el-row :gutter="20" v-if="item[column.columnCode]">
|
|
22
|
-
<el-col :span="24" v-if="item[column.columnCode]" class="showTimeLine-box">
|
|
23
|
-
<div class="showTimeLine-box-title">{{column.name}}:</div>
|
|
24
|
-
|
|
25
|
-
<div class="showTimeLine-box-file"><BnFileView :file-list="item.inside[column.columnCode]" :is-mini="true" :no-warp="true" width="50px" /></div>
|
|
26
|
-
</el-col>
|
|
27
|
-
</el-row>
|
|
28
|
-
</template>
|
|
29
|
-
<template v-for="(column,i) in editorList" :key="i">
|
|
30
|
-
<el-row :gutter="20" v-if="item[column.columnCode]">
|
|
31
|
-
<el-col :span="24" v-if="item[column.columnCode]" class="showTimeLine-box">
|
|
32
|
-
<div class="showTimeLine-box-title">{{column.name}}:</div>
|
|
33
|
-
<div v-html="item[column.columnCode]"></div>
|
|
34
|
-
</el-col>
|
|
35
|
-
</el-row>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
</el-card>
|
|
39
|
-
</el-timeline-item>
|
|
40
|
-
</el-timeline>
|
|
41
|
-
|
|
42
|
-
<!-- 查看更多/收起按钮 -->
|
|
43
|
-
<div v-if="tableData.length > 3" class="w-text-center">
|
|
44
|
-
<el-button type="primary" @click="toggleExpand" link>
|
|
45
|
-
{{ isExpanded ? '收起' : '查看更多' }}
|
|
46
|
-
</el-button>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</template>
|
|
50
|
-
<script>
|
|
51
|
-
export default {
|
|
52
|
-
name: "showTimeLine",
|
|
53
|
-
props: {
|
|
54
|
-
columns: Array,
|
|
55
|
-
tableData: Array,
|
|
56
|
-
},
|
|
57
|
-
data() {
|
|
58
|
-
return {
|
|
59
|
-
isExpanded: false
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
computed: {
|
|
63
|
-
displayData() {
|
|
64
|
-
if (this.isExpanded) {
|
|
65
|
-
return this.tableData
|
|
66
|
-
}
|
|
67
|
-
return this.tableData.slice(0, 3)
|
|
68
|
-
},
|
|
69
|
-
editorList() {
|
|
70
|
-
let list = this.columns.filter(i=> [11].includes(i.behaviorType))
|
|
71
|
-
return list
|
|
72
|
-
},
|
|
73
|
-
stringList() {
|
|
74
|
-
let list = this.columns.filter(i=> [1,2,3,4,5,6,7,8,9,12,14,15].includes(i.behaviorType) && !['serve_status','operator_time'].includes(i.columnCode))
|
|
75
|
-
return list
|
|
76
|
-
},
|
|
77
|
-
imgList() {
|
|
78
|
-
let list = this.columns.filter(i=>i.behaviorType == 10)
|
|
79
|
-
return list
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
methods: {
|
|
83
|
-
toggleExpand() {
|
|
84
|
-
this.isExpanded = !this.isExpanded
|
|
85
|
-
},
|
|
86
|
-
isTextOverflow(text) {
|
|
87
|
-
if (!text) return false
|
|
88
|
-
// 简单判断:如果文本长度超过50个字符,认为可能超出显示范围
|
|
89
|
-
return text.length > 50
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
</script>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<style scoped lang="scss">
|
|
97
|
-
.showTimeLine {
|
|
98
|
-
position: relative;
|
|
99
|
-
width: 100%;
|
|
100
|
-
height: 100%;
|
|
101
|
-
|
|
102
|
-
:deep(.showTimeLine-card) {
|
|
103
|
-
padding:20px 12px;
|
|
104
|
-
}
|
|
105
|
-
&-box{
|
|
106
|
-
display: flex;
|
|
107
|
-
margin-bottom: 20px;
|
|
108
|
-
&-title{
|
|
109
|
-
line-height: 20px;
|
|
110
|
-
font-size: 12px;
|
|
111
|
-
color: #888;
|
|
112
|
-
white-space: nowrap;
|
|
113
|
-
}
|
|
114
|
-
&-text{
|
|
115
|
-
line-height: 20px;
|
|
116
|
-
font-size: 12px;
|
|
117
|
-
color: #666;
|
|
118
|
-
white-space: pre-line;
|
|
119
|
-
}
|
|
120
|
-
&-file{
|
|
121
|
-
max-width: calc(100% - 120px);
|
|
122
|
-
overflow-x: hidden;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
&-toggle {
|
|
126
|
-
text-align: center;
|
|
127
|
-
margin-top: 20px;
|
|
128
|
-
margin-bottom: 20px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="worksheetCopy" :style="style" v-show="visiable || isMouseIn" @mouseover="onMouseEvent"
|
|
3
|
-
@mouseleave="onMouseEvent" @click.stop="copyText">复制
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: "WorksheetCopy",
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
isMouseIn: false,
|
|
13
|
-
visiable: false,
|
|
14
|
-
params: {},
|
|
15
|
-
style: {},
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
methods: {
|
|
19
|
-
/**
|
|
20
|
-
* 鼠标移入移出
|
|
21
|
-
* @param {Event} e 事件对象
|
|
22
|
-
*/
|
|
23
|
-
onMouseEvent(e) {
|
|
24
|
-
this.isMouseIn = e.type === "mouseleave" ? false : true;
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* 初始化
|
|
28
|
-
* @param {Object} params {column:组件信息,row:行数据}
|
|
29
|
-
*/
|
|
30
|
-
onShow(target, params) {
|
|
31
|
-
try {
|
|
32
|
-
const {right, top} = target.getBoundingClientRect();
|
|
33
|
-
this.style = {
|
|
34
|
-
left: `${right - 34}px`,
|
|
35
|
-
top: `${top}px`,
|
|
36
|
-
};
|
|
37
|
-
this.params = params;
|
|
38
|
-
this.visiable = true;
|
|
39
|
-
}catch (e){
|
|
40
|
-
console.log('显示复制按钮失败')
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
onHide() {
|
|
44
|
-
this.visiable = false;
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* 复制文本
|
|
48
|
-
*/
|
|
49
|
-
copyText() {
|
|
50
|
-
const {column, row} = this.params;
|
|
51
|
-
let copyValue = row[column.columnCode] || "";
|
|
52
|
-
if(copyValue) {
|
|
53
|
-
const textarea = document.createElement('textarea');
|
|
54
|
-
textarea.value = copyValue;
|
|
55
|
-
document.body.appendChild(textarea);
|
|
56
|
-
textarea.select();
|
|
57
|
-
document.execCommand('copy');
|
|
58
|
-
document.body.removeChild(textarea);
|
|
59
|
-
this.$message.success('复制成功');
|
|
60
|
-
} else {
|
|
61
|
-
this.$message.warning('无内容可复制');
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
</script>
|
|
67
|
-
<style lang='scss' scoped>
|
|
68
|
-
.worksheetCopy {
|
|
69
|
-
position: fixed;
|
|
70
|
-
width: 34px;
|
|
71
|
-
height: 22px;
|
|
72
|
-
line-height: 22px;
|
|
73
|
-
text-align: center;
|
|
74
|
-
background-color: rgba(51, 51, 51, 0.3);
|
|
75
|
-
color: #fff;
|
|
76
|
-
font-size: 12px;
|
|
77
|
-
z-index: 999999;
|
|
78
|
-
|
|
79
|
-
&:hover {
|
|
80
|
-
background-color: #65acff;
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
</style>
|