lw-cdp-ui 1.2.47 → 1.2.49
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/package.json +1 -1
- package/dist/assets/images/empty.jpg +0 -0
- package/dist/assets/images/login.svg +0 -558
- package/dist/assets/images/logo.jpg +0 -0
- package/dist/assets/images/logo.svg +0 -78
- package/dist/assets/images/logo1.svg +0 -86
- package/dist/assets/images/register.svg +0 -351
- package/dist/components/lwCronSelect/index.vue +0 -218
- package/dist/components/lwFlow/components/lfControl.vue +0 -126
- package/dist/components/lwFlow/components/lfNodePanel.vue +0 -98
- package/dist/components/lwFlow/config/dagre.js +0 -279
- package/dist/components/lwFlow/config/nodesList.js +0 -243
- package/dist/components/lwFlow/index.vue +0 -781
- package/dist/components/lwFlow/nodeEdit/audienceReceive.vue +0 -262
- package/dist/components/lwFlow/nodeEdit/basicSettings.vue +0 -88
- package/dist/components/lwFlow/nodeEdit/eventReceive.vue +0 -145
- package/dist/components/lwFlow/nodeEdit/index.vue +0 -306
- package/dist/components/lwFlow/nodeEdit/sms.vue +0 -107
- package/dist/components/lwFlow/nodeEdit/styleSettings.vue +0 -236
- package/dist/components/lwFlow/nodes/basisEnd.js +0 -56
- package/dist/components/lwFlow/nodes/basisStart.js +0 -56
- package/dist/components/lwFlow/nodes/custom.js +0 -129
- package/dist/components/lwFlow/nodes/et2lTable.js +0 -132
- package/dist/components/lwFlow/nodesData/datas/audienceReceive.js +0 -137
- package/dist/components/lwFlow/nodesData/datas/base.js +0 -190
- package/dist/components/lwFlow/nodesData/datas/collap.js +0 -95
- package/dist/components/lwFlow/nodesData/datas/eventReceive.js +0 -106
- package/dist/components/lwFlow/nodesData/datas/expand.js +0 -85
- package/dist/components/lwFlow/nodesData/datas/filter.js +0 -85
- package/dist/components/lwFlow/nodesData/datas/joiner.js +0 -96
- package/dist/components/lwFlow/nodesData/datas/mapper.js +0 -111
- package/dist/components/lwFlow/nodesData/datas/reduce.js +0 -69
- package/dist/components/lwFlow/nodesData/datas/sms.js +0 -69
- package/dist/components/lwFlow/nodesData/datas/source.js +0 -142
- package/dist/components/lwFlow/nodesData/datas/target.js +0 -95
- package/dist/components/lwFlow/nodesData/datas/timer.js +0 -180
- package/dist/components/lwFlow/nodesData/index.js +0 -41
- package/dist/components/lwForm/index.vue +0 -631
- package/dist/components/lwFormJson/JsonItem.vue +0 -302
- package/dist/components/lwFormJson/StatsConfig.vue +0 -544
- package/dist/components/lwFormJson/TreeItem.vue +0 -149
- package/dist/components/lwFormJson/index.vue +0 -362
- package/dist/components/lwFormJson/menuList.js +0 -324
- package/dist/components/lwFormMini/FormItem.vue +0 -466
- package/dist/components/lwFormMini/ViewItem.vue +0 -391
- package/dist/components/lwFormMini/index.vue +0 -421
- package/dist/components/lwFormMini/textToPassword.vue +0 -61
- package/dist/components/lwFormView/index.vue +0 -390
- package/dist/components/lwFormView/textToPassword.vue +0 -59
- package/dist/components/lwIconSelect/iconSelect.js +0 -289
- package/dist/components/lwIconSelect/index.vue +0 -142
- package/dist/components/lwLayout/components/NavMenu.vue +0 -36
- package/dist/components/lwLayout/components/aside.vue +0 -295
- package/dist/components/lwLayout/components/bu.vue +0 -88
- package/dist/components/lwLayout/components/iframeView.vue +0 -57
- package/dist/components/lwLayout/components/lang.vue +0 -77
- package/dist/components/lwLayout/components/setting.vue +0 -102
- package/dist/components/lwLayout/components/sideM.vue +0 -135
- package/dist/components/lwLayout/components/tags.vue +0 -388
- package/dist/components/lwLayout/components/topbar.vue +0 -69
- package/dist/components/lwLayout/components/userbar.vue +0 -214
- package/dist/components/lwLayout/index.vue +0 -460
- package/dist/components/lwLogin/index.vue +0 -506
- package/dist/components/lwLogin/locale/en-us.js +0 -37
- package/dist/components/lwLogin/locale/zh-cn.js +0 -37
- package/dist/components/lwSearch/date/date.vue +0 -113
- package/dist/components/lwSearch/dateRange/dateRange.vue +0 -118
- package/dist/components/lwSearch/dates/dates.vue +0 -366
- package/dist/components/lwSearch/index.vue +0 -628
- package/dist/components/lwSearch/input/input.vue +0 -55
- package/dist/components/lwSearch/locale/en-us.js +0 -15
- package/dist/components/lwSearch/locale/zh-cn.js +0 -15
- package/dist/components/lwSearch/select/select.vue +0 -58
- package/dist/components/lwSvgIcon/index.vue +0 -29
- package/dist/components/lwTable/index.js +0 -286
- package/dist/components/lwTable/index.scss +0 -238
- package/dist/components/lwTable/index.vue +0 -344
- package/dist/components/lwTable/locale/en-US.js +0 -26
- package/dist/components/lwTable/locale/zh-CN.js +0 -26
- package/dist/components/lwTable/useFullscreen.js +0 -73
- package/dist/components/lwTableForm/index.vue +0 -662
- package/dist/components/lwTableSelect/index.vue +0 -266
- package/dist/components/lwTableSelect/tableSelect.js +0 -23
- package/dist/components/lwUpload/index.vue +0 -564
- package/dist/lw-cdp-ui.esm.js +0 -19893
- package/dist/lw-cdp-ui.umd.js +0 -22
- package/dist/style.css +0 -1
- package/dist/vite.svg +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-select :disabled="item.disabled" :placeholder="item.label || '请选择'" :popper-append-to-body="item.appendToBody" v-model="value" clearable filterable :multiple="item.multiple" collapse-tags allow-search size="" style="width: 100%;" :allow-create="item.allowCreate"
|
|
4
|
-
:remote="item.isRemote" :reserve-keyword="item.isReserveKeyword" :remote-method="item.remoteMethod" :loading="item.loading">
|
|
5
|
-
<el-option v-for="(items, index) in item.options" :disabled="items.disabled" :key="item.key ? item.key : item.valueKey ? items[item.valueKey] + items[item.labelKey] + index : items.code + items.name + index" :label="item.isCodeAndName ? ((item.valueKey ? items[item.valueKey] : items.code) + ' - ' + (item.labelKey ? items[item.labelKey] : items.name)) : (item.labelKey ? items[item.labelKey] : items.name)" :value="item.valueKey ? items[item.valueKey] : items.code">
|
|
6
|
-
<el-tooltip :content="item.isCodeAndName ? ((item.valueKey ? items[item.valueKey] : items.code) + ' - ' + (item.labelKey ? items[item.labelKey] : items.name)) : (item.labelKey ? items[item.labelKey] : items.name)">
|
|
7
|
-
<span>{{ item.isCodeAndName ? ((item.valueKey ? items[item.valueKey] : items.code) + ' - ' + (item.labelKey ? items[item.labelKey] : items.name)) : (item.labelKey ? items[item.labelKey] : items.name) }}</span>
|
|
8
|
-
</el-tooltip>
|
|
9
|
-
</el-option>
|
|
10
|
-
</el-select>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
export default {
|
|
16
|
-
name: "Select",
|
|
17
|
-
props: {
|
|
18
|
-
disabled: {
|
|
19
|
-
// 是否禁止操作
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false,
|
|
22
|
-
},
|
|
23
|
-
modelValue: {
|
|
24
|
-
// 绑定的结果
|
|
25
|
-
type: [String, Number, Boolean, Object],
|
|
26
|
-
default: "",
|
|
27
|
-
},
|
|
28
|
-
item: {
|
|
29
|
-
// 配置项
|
|
30
|
-
type: Object,
|
|
31
|
-
default: () => ({}),
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
data() {
|
|
35
|
-
return {
|
|
36
|
-
value: this.modelValue,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
watch: {
|
|
40
|
-
modelValue(newVal) {
|
|
41
|
-
this.value = newVal;
|
|
42
|
-
},
|
|
43
|
-
value(newVal) {
|
|
44
|
-
this.$emit("update:modelValue", newVal);
|
|
45
|
-
this.$emit("change", newVal);
|
|
46
|
-
this.callback(newVal, this.item);
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
methods: {
|
|
50
|
-
// 条件变更回调
|
|
51
|
-
callback(val, item) {
|
|
52
|
-
if (!item.callback) return;
|
|
53
|
-
item.callback(val);
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
</script>
|
|
58
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg class="svg-icon">
|
|
3
|
-
<use :xlink:href="symbolId" />
|
|
4
|
-
</svg>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<!-- lwSvgIcon组件,可将svg图标直接当组件使用 -->
|
|
8
|
-
<script setup>
|
|
9
|
-
import { defineProps, computed } from 'vue'
|
|
10
|
-
const props = defineProps({
|
|
11
|
-
name: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true
|
|
14
|
-
}
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
// 获取svg图标名称,需要和vite.config.js中的配置保持一致
|
|
18
|
-
const symbolId = computed(() => `#${props.name}`)
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style scoped>
|
|
22
|
-
.svg-icon {
|
|
23
|
-
width: 1em;
|
|
24
|
-
height: 1em;
|
|
25
|
-
vertical-align: -0.15em;
|
|
26
|
-
fill: currentColor;
|
|
27
|
-
overflow: hidden;
|
|
28
|
-
}
|
|
29
|
-
</style>
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
import { VueSelecto } from 'vue3-selecto'
|
|
2
|
-
export default {
|
|
3
|
-
name: 'lwTable',
|
|
4
|
-
components: { VueSelecto },
|
|
5
|
-
props: {
|
|
6
|
-
// 表格基础配置
|
|
7
|
-
refName: { type: String, default: 'multipleTableRef' }, // 表格的 ref 名称
|
|
8
|
-
tableName: { type: String, default: '' }, // 表格名称
|
|
9
|
-
tableData: { type: Array, default: () => [] }, // 表格数据
|
|
10
|
-
tableColumns: { type: Array, default: () => [] }, // 表格列配置
|
|
11
|
-
loading: { type: Boolean, default: false }, // 加载状态
|
|
12
|
-
tableSize: { type: String, default: 'large' }, // 表格尺寸
|
|
13
|
-
|
|
14
|
-
// 表格样式配置
|
|
15
|
-
bordered: { type: Boolean, default: true }, // 是否显示边框
|
|
16
|
-
stripe: { type: Boolean, default: false }, // 是否显示斑马纹
|
|
17
|
-
hoverable: { type: Boolean, default: true }, // 是否启用鼠标悬停效果
|
|
18
|
-
maxHeight: { type: String, default: 'calc(100vh - 270px)' }, // 表格最大高度
|
|
19
|
-
|
|
20
|
-
// 选择功能配置
|
|
21
|
-
rowSelection: { type: Boolean, default: false }, // 是否可选择行
|
|
22
|
-
isRadio: { type: Boolean, default: false }, // 是否为单选模式
|
|
23
|
-
rowKey: { type: String, default: 'id' }, // 行数据的唯一标识字段
|
|
24
|
-
defaultSelectData: { type: Array, default: () => [] }, // 默认选中的数据
|
|
25
|
-
selectedKeys: { type: Array }, // 选中的行 key 值
|
|
26
|
-
selectDatas: { type: Array }, // 选中的行数据
|
|
27
|
-
selectStatus: { type: Function, default: () => true }, // 选择状态回调
|
|
28
|
-
|
|
29
|
-
// 分页配置
|
|
30
|
-
isShowPagination: { type: Boolean, default: true }, // 是否显示分页
|
|
31
|
-
searchParams: { type: Object, default: () => ({ page: 1, size: 20 }) }, // 查询参数
|
|
32
|
-
totalCount: { type: Number, default: 0 }, // 总数据条数
|
|
33
|
-
pageSizes: { type: Array, default: () => [10, 20, 30, 40, 50] }, // 分页可选条数
|
|
34
|
-
|
|
35
|
-
// 高级功能配置
|
|
36
|
-
defaultExpandAll: { type: Boolean, default: false }, // 是否默认展开所有行
|
|
37
|
-
virtualListProps: { type: Object, default: undefined }, // 虚拟滚动配置
|
|
38
|
-
summaryMethod: { type: Function, default: () => [] }, // 自定义合计方法
|
|
39
|
-
hideTool: { type: Boolean, default: true }, // 是否隐藏工具栏
|
|
40
|
-
hideCard: { type: Boolean, default: true }, // 是否显示卡片
|
|
41
|
-
isSetting: { type: Boolean, default: false }, // 是否显示列设置
|
|
42
|
-
saveKey: { type: String, default: '' }, // 本地存储 key,用于保存表格配置
|
|
43
|
-
draggable: { type: Object } // 是否可拖拽列配置
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
data() {
|
|
47
|
-
return {
|
|
48
|
-
// 表格基础状态
|
|
49
|
-
tableHeaders: [], // 表格列配置
|
|
50
|
-
localTableSize: this.tableSize, // 表格大小
|
|
51
|
-
|
|
52
|
-
// 列设置相关
|
|
53
|
-
checkedKeys: [], // 选中的列
|
|
54
|
-
treeData: [], // 所有列数据
|
|
55
|
-
allCheck: true, // 是否全选
|
|
56
|
-
fixNum: 0, // 固定列数量
|
|
57
|
-
|
|
58
|
-
// 选择相关
|
|
59
|
-
selectedKeysForm: [], // 选中的键
|
|
60
|
-
selectGoodsDatas: [], // 选中的数据
|
|
61
|
-
selectAllGoods: [], // 所有可选数据
|
|
62
|
-
|
|
63
|
-
// 全屏相关
|
|
64
|
-
isFullscreen: false,
|
|
65
|
-
isCard: !this.hideCard // 是否显示卡片
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
watch: {
|
|
70
|
-
tableColumns: {
|
|
71
|
-
handler() {
|
|
72
|
-
this.filterData()
|
|
73
|
-
},
|
|
74
|
-
deep: true,
|
|
75
|
-
immediate: true
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
tableData: {
|
|
79
|
-
handler(newVal) {
|
|
80
|
-
// 合并去重数据
|
|
81
|
-
const mergedData = [...newVal, ...this.selectAllGoods]
|
|
82
|
-
const uniqueData = Array.from(new Set(mergedData.map((item) => item[this.rowKey]))).map((id) => mergedData.find((item) => item[this.rowKey] === id))
|
|
83
|
-
this.selectAllGoods = uniqueData
|
|
84
|
-
},
|
|
85
|
-
deep: true,
|
|
86
|
-
immediate: true
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
selectedKeys: {
|
|
90
|
-
handler(newVal) {
|
|
91
|
-
if (!newVal) return
|
|
92
|
-
|
|
93
|
-
this.selectedKeysForm = newVal
|
|
94
|
-
this.selectGoodsDatas = []
|
|
95
|
-
|
|
96
|
-
if (this.selectAllGoods.length) {
|
|
97
|
-
const selectedData = this.selectAllGoods.filter((item) => newVal.includes(item[this.rowKey]))
|
|
98
|
-
const mergedData = [...selectedData, ...this.selectGoodsDatas]
|
|
99
|
-
const uniqueData = Array.from(new Set(mergedData.map((item) => item[this.rowKey]))).map((id) => mergedData.find((item) => item[this.rowKey] === id))
|
|
100
|
-
|
|
101
|
-
this.selectGoodsDatas = uniqueData
|
|
102
|
-
this.$emit('update:selectDatas', uniqueData)
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
deep: true,
|
|
106
|
-
immediate: true
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
created() {
|
|
111
|
-
// 监听窗口大小变化
|
|
112
|
-
window.addEventListener('resize', this.handleResize)
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
beforeDestroy() {
|
|
116
|
-
// 移除事件监听
|
|
117
|
-
window.removeEventListener('resize', this.handleResize)
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
methods: {
|
|
121
|
-
/**
|
|
122
|
-
* 过滤和处理表格列配置
|
|
123
|
-
*/
|
|
124
|
-
filterData() {
|
|
125
|
-
const columns = this.tableColumns
|
|
126
|
-
this.checkedKeys = []
|
|
127
|
-
const visibleColumns = []
|
|
128
|
-
|
|
129
|
-
columns.forEach((column) => {
|
|
130
|
-
if (!column.key) {
|
|
131
|
-
column.key = this.$tool.getUUID()
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if (column.checked === undefined || column.checked) {
|
|
135
|
-
this.checkedKeys.push(column.key)
|
|
136
|
-
visibleColumns.push(column)
|
|
137
|
-
}
|
|
138
|
-
})
|
|
139
|
-
|
|
140
|
-
this.treeData = columns
|
|
141
|
-
this.tableHeaders = visibleColumns
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* 全选/取消全选所有列
|
|
146
|
-
*/
|
|
147
|
-
checkAll(selected) {
|
|
148
|
-
if (selected) {
|
|
149
|
-
this.tableHeaders = JSON.parse(JSON.stringify(this.tableColumns))
|
|
150
|
-
this.checkedKeys = this.tableHeaders.map((col) => {
|
|
151
|
-
if (!col.key) {
|
|
152
|
-
col.key = this.$tool.getUUID()
|
|
153
|
-
}
|
|
154
|
-
return col.key
|
|
155
|
-
})
|
|
156
|
-
} else {
|
|
157
|
-
this.tableHeaders = []
|
|
158
|
-
this.checkedKeys = []
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
this.treeData.forEach((col) => {
|
|
162
|
-
col.checked = selected
|
|
163
|
-
})
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* 更新列的选中状态
|
|
168
|
-
*/
|
|
169
|
-
treeCheck() {
|
|
170
|
-
this.tableHeaders = this.treeData.filter((col) => this.checkedKeys.includes(col.key))
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* 处理行变化
|
|
175
|
-
*/
|
|
176
|
-
handleChange(currentData) {
|
|
177
|
-
this.$emit('draggable', currentData)
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* 处理选择变化
|
|
182
|
-
*/
|
|
183
|
-
handleSelectionChange(val) {
|
|
184
|
-
this.$emit('multipleSelection', val)
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* 处理当前行变化
|
|
189
|
-
*/
|
|
190
|
-
handleCurrentChange(val) {
|
|
191
|
-
this.$emit('currentChange', val)
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* 处理每页条数变化
|
|
196
|
-
*/
|
|
197
|
-
sizeChange(val) {
|
|
198
|
-
this.searchParams.size = val
|
|
199
|
-
this.$emit('getTableData')
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* 处理页码变化
|
|
204
|
-
*/
|
|
205
|
-
currentChange(page) {
|
|
206
|
-
this.searchParams.page = page - 1
|
|
207
|
-
this.$emit('getTableData', this.searchParams.page)
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* 刷新表格数据
|
|
212
|
-
*/
|
|
213
|
-
refresh() {
|
|
214
|
-
this.currentChange(1)
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* 处理表格大小变化
|
|
219
|
-
*/
|
|
220
|
-
handleSelect(v) {
|
|
221
|
-
this.localTableSize = v
|
|
222
|
-
},
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* 切换全屏显示
|
|
226
|
-
*/
|
|
227
|
-
tableToggleFullScreen() {
|
|
228
|
-
this.$bus.$emit('tableFullScreen', !this.isFullscreen)
|
|
229
|
-
this.isFullscreen = !this.isFullscreen
|
|
230
|
-
// 这里需要实现具体的全屏切换逻辑
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* 处理窗口大小变化
|
|
235
|
-
*/
|
|
236
|
-
handleResize() {
|
|
237
|
-
const isFull = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement
|
|
238
|
-
|
|
239
|
-
if (!isFull) {
|
|
240
|
-
this.$bus.$emit('tableFullScreen', false)
|
|
241
|
-
this.isFullscreen = false
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* 过滤列表操作按钮
|
|
247
|
-
*/
|
|
248
|
-
filterOperations(operations, row) {
|
|
249
|
-
return (
|
|
250
|
-
operations?.filter((o) => {
|
|
251
|
-
const hasAuth = !o.auth || this.checkAuth(o.auth)
|
|
252
|
-
const isVisible = !o.isShow || o.isShow(row)
|
|
253
|
-
return hasAuth && isVisible
|
|
254
|
-
}) || []
|
|
255
|
-
)
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* 检查权限
|
|
260
|
-
*/
|
|
261
|
-
checkAuth(auth) {
|
|
262
|
-
const { menus = [], authorities = [] } = JSON.parse(localStorage.getItem('userAuthInfo') || '{}')
|
|
263
|
-
const allPermissions = [...menus, ...authorities]
|
|
264
|
-
|
|
265
|
-
if (!auth) return true
|
|
266
|
-
if (Array.isArray(auth)) {
|
|
267
|
-
return auth.some((permission) => allPermissions.includes(permission))
|
|
268
|
-
}
|
|
269
|
-
return allPermissions.includes(auth)
|
|
270
|
-
},
|
|
271
|
-
// 拖动选中
|
|
272
|
-
onSelect({ selected }) {
|
|
273
|
-
let list = []
|
|
274
|
-
selected.forEach((node) => {
|
|
275
|
-
// 获取 data-item 属性的值
|
|
276
|
-
const item = node.getAttribute('data-item')
|
|
277
|
-
|
|
278
|
-
if (item) {
|
|
279
|
-
const itemData = JSON.parse(item)
|
|
280
|
-
list.push(itemData)
|
|
281
|
-
}
|
|
282
|
-
})
|
|
283
|
-
this.$emit('multipleSelection', list)
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
.baseTablePage-wrap {
|
|
2
|
-
position: relative;
|
|
3
|
-
user-select: none;
|
|
4
|
-
.icon-more {
|
|
5
|
-
margin-top: 3px;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
width: 20px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.tool-block {
|
|
11
|
-
display: flex;
|
|
12
|
-
gap: 10px;
|
|
13
|
-
margin-top: 10px;
|
|
14
|
-
.icon-sync {
|
|
15
|
-
font-size: 20px;
|
|
16
|
-
vertical-align: middle;
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
color: var(--color-neutral-10);
|
|
19
|
-
margin-right: 10px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.icon-line-height,
|
|
23
|
-
.icon-fullscreen,
|
|
24
|
-
.icon-fullscreen-exit {
|
|
25
|
-
font-size: 20px;
|
|
26
|
-
vertical-align: middle;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
color: var(--color-neutral-10);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.icon-interaction {
|
|
32
|
-
font-size: 20px;
|
|
33
|
-
margin: 0 10px;
|
|
34
|
-
vertical-align: middle;
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
color: var(--color-neutral-10);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.icon-settings {
|
|
40
|
-
font-size: 20px;
|
|
41
|
-
vertical-align: middle;
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
color: var(--color-neutral-10);
|
|
44
|
-
margin-right: 10px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.table-page-info {
|
|
48
|
-
display: flex;
|
|
49
|
-
justify-content: space-between;
|
|
50
|
-
padding-top: 15px;
|
|
51
|
-
|
|
52
|
-
.page-info-text {
|
|
53
|
-
font-weight: 600;
|
|
54
|
-
// color: $navBarOptionsColor;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.not-icon {
|
|
59
|
-
border: 1px solid #dcdfe6;
|
|
60
|
-
padding: 5px 12px;
|
|
61
|
-
min-height: 24px;
|
|
62
|
-
&:hover {
|
|
63
|
-
background: none;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
.el-checkbox.el-checkbox--small {
|
|
67
|
-
height: 26px;
|
|
68
|
-
}
|
|
69
|
-
.mycell .cell .el-checkbox__input {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
.cell {
|
|
73
|
-
// height: 100%;
|
|
74
|
-
}
|
|
75
|
-
.download-pic {
|
|
76
|
-
font-size: 18px;
|
|
77
|
-
color: #1890ff;
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
}
|
|
80
|
-
.table-operation {
|
|
81
|
-
display: flex;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
a {
|
|
86
|
-
font-size: 14px;
|
|
87
|
-
color: #4189d1;
|
|
88
|
-
}
|
|
89
|
-
.select-block {
|
|
90
|
-
.el-checkbox {
|
|
91
|
-
// width: 150px;
|
|
92
|
-
display: block;
|
|
93
|
-
margin-left: 10px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
.el-table__header-wrapper .cell {
|
|
97
|
-
& > div {
|
|
98
|
-
display: inline-block;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.el-table__fixed,
|
|
103
|
-
.el-table__fixed-right {
|
|
104
|
-
bottom: 20px !important;
|
|
105
|
-
&::before {
|
|
106
|
-
display: none;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/*滚动条整体部分*/
|
|
111
|
-
::-webkit-scrollbar {
|
|
112
|
-
width: 8px;
|
|
113
|
-
height: 8px;
|
|
114
|
-
}
|
|
115
|
-
/*滚动条的轨道*/
|
|
116
|
-
::-webkit-scrollbar-track {
|
|
117
|
-
background-color: #ffffff;
|
|
118
|
-
}
|
|
119
|
-
/*滚动条里面的小方块,能向上向下移动*/
|
|
120
|
-
::-webkit-scrollbar-thumb {
|
|
121
|
-
background-color: #bfbfbf;
|
|
122
|
-
border-radius: 5px;
|
|
123
|
-
border: 1px solid #f1f1f1;
|
|
124
|
-
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
125
|
-
}
|
|
126
|
-
::-webkit-scrollbar-thumb:hover {
|
|
127
|
-
background-color: #a8a8a8;
|
|
128
|
-
}
|
|
129
|
-
::-webkit-scrollbar-thumb:active {
|
|
130
|
-
background-color: #787878;
|
|
131
|
-
}
|
|
132
|
-
/*边角,即两个滚动条的交汇处*/
|
|
133
|
-
::-webkit-scrollbar-corner {
|
|
134
|
-
background-color: #ffffff;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.headers-content {
|
|
139
|
-
padding: 10px 10px 10px 0;
|
|
140
|
-
width: 400px;
|
|
141
|
-
.arco-row {
|
|
142
|
-
margin: 10px 0;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.start-span,
|
|
147
|
-
.end-span {
|
|
148
|
-
display: inline-block;
|
|
149
|
-
padding: 1px 5px;
|
|
150
|
-
color: #fff;
|
|
151
|
-
margin-right: 5px;
|
|
152
|
-
border-radius: 5px;
|
|
153
|
-
font-size: 12px;
|
|
154
|
-
font-weight: bold;
|
|
155
|
-
}
|
|
156
|
-
.start-span {
|
|
157
|
-
background: #03a715;
|
|
158
|
-
}
|
|
159
|
-
.end-span {
|
|
160
|
-
background: #f40c0c;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:deep(.el-table th.el-table__cell) {
|
|
164
|
-
background-color: #f9f9f9 !important;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.table-button {
|
|
168
|
-
color: var(--el-color-primary);
|
|
169
|
-
margin: 0 4px;
|
|
170
|
-
}
|
|
171
|
-
:deep(.table-button [class*='el-icon']) {
|
|
172
|
-
font-size: 18px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.table-button:hover {
|
|
176
|
-
background-color: #fff;
|
|
177
|
-
border-color: #f480c9;
|
|
178
|
-
color: var(--el-color-primary) !important;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.table-button-2.is-text {
|
|
182
|
-
color: var(--el-color-primary);
|
|
183
|
-
font-size: 14px;
|
|
184
|
-
// margin: 0px;
|
|
185
|
-
// border:none;
|
|
186
|
-
background: none !important;
|
|
187
|
-
padding: 2px 8px;
|
|
188
|
-
font-weight: 400;
|
|
189
|
-
height: 24px;
|
|
190
|
-
border-radius: 0;
|
|
191
|
-
}
|
|
192
|
-
.table-button-2.is-text:not(.is-disabled):hover {
|
|
193
|
-
background-color: #eeeefc;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.pagination-block {
|
|
197
|
-
clear: both;
|
|
198
|
-
width: 100%;
|
|
199
|
-
height: 35px;
|
|
200
|
-
margin-top: 10px;
|
|
201
|
-
display: flex;
|
|
202
|
-
align-items: center;
|
|
203
|
-
justify-content: space-between;
|
|
204
|
-
.total {
|
|
205
|
-
color: #6a6d73;
|
|
206
|
-
font-size: 14px;
|
|
207
|
-
line-height: 16px;
|
|
208
|
-
margin-left: 20px;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.el-pagination {
|
|
212
|
-
padding: 0;
|
|
213
|
-
|
|
214
|
-
.el-input {
|
|
215
|
-
line-height: 28px;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.el-input__inner {
|
|
219
|
-
vertical-align: inherit !important;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.more-btn {
|
|
225
|
-
padding: 0 5px;
|
|
226
|
-
width: 40px;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.fix-num {
|
|
230
|
-
display: flex;
|
|
231
|
-
align-items: center;
|
|
232
|
-
margin-top: 10px;
|
|
233
|
-
gap: 5px;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.table-card-list{
|
|
237
|
-
|
|
238
|
-
}
|