xs-common-plugins 1.2.4 → 1.2.6
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/README.md +309 -299
- package/common.js +110 -110
- package/index.js +1 -1
- package/package.json +16 -16
- package/src/App.vue +12 -12
- package/src/common/common.js +551 -549
- package/src/common/createMenuId.js +7 -7
- package/src/common/uploadImgToBase64.js +12 -12
- package/src/common/utils.js +95 -95
- package/src/components/Breadcrumb/index.vue +81 -81
- package/src/components/CheckBox_Cmp/index.vue +62 -62
- package/src/components/Col_TableCell/data.js +4 -4
- package/src/components/Col_TableCell/index.scss +77 -77
- package/src/components/Col_TableCell/index.vue +43 -43
- package/src/components/Col_TableCell/methods.js +19 -19
- package/src/components/FormItem/index.vue +92 -92
- package/src/components/Hamburger/index.vue +44 -44
- package/src/components/ReportCmp/data.js +3 -3
- package/src/components/ReportCmp/index.scss +29 -29
- package/src/components/ReportCmp/index.vue +76 -76
- package/src/components/ReportCmp/methods.js +30 -30
- package/src/components/Search/cascader/data.js +3 -3
- package/src/components/Search/cascader/index.scss +17 -17
- package/src/components/Search/cascader/index.vue +96 -96
- package/src/components/Search/cascader/methods.js +41 -41
- package/src/components/Search/data.js +5 -5
- package/src/components/Search/hk_cascader/index.vue +104 -104
- package/src/components/Search/hk_cascader_qudao/index.vue +94 -94
- package/src/components/Search/index.scss +219 -219
- package/src/components/Search/index.vue +410 -410
- package/src/components/Search/methods.js +86 -86
- package/src/components/Search/product_option/data.js +3 -3
- package/src/components/Search/product_option/index.scss +68 -68
- package/src/components/Search/product_option/index.vue +412 -412
- package/src/components/Search/product_option/methods.js +58 -58
- package/src/components/Search/select/data.js +3 -3
- package/src/components/Search/select/index.scss +2 -2
- package/src/components/Search/select/index.vue +114 -114
- package/src/components/Search/select/methods.js +51 -51
- package/src/components/Search_filter/data.js +5 -5
- package/src/components/Search_filter/index.scss +104 -104
- package/src/components/Search_filter/index.vue +88 -88
- package/src/components/Search_filter/methods.js +43 -43
- package/src/components/TableCmp/data.js +3 -3
- package/src/components/TableCmp/index.scss +22 -22
- package/src/components/TableCmp/index.vue +98 -98
- package/src/components/TableCmp/methods.js +35 -35
- package/src/components/TableItem/TableItem.vue +55 -55
- package/src/components/TextOVer/index.vue +55 -55
- package/src/components/UploadImg/index.vue +177 -177
- package/src/components/home/BarChart.vue +118 -118
- package/src/components/home/LineChart.vue +146 -146
- package/src/components/home/Panel.vue +135 -135
- package/src/components/home/PanelGroup.vue +146 -146
- package/src/components/home/PieChart.vue +81 -81
- package/src/components/home/RaddarChart.vue +119 -119
- package/src/components/home/TabLayout.vue +88 -88
- package/src/components/home/TableList.vue +158 -158
- package/src/components/home/Teng.vue +248 -248
- package/src/components/home/TransactionTable.vue +49 -49
- package/src/components/home/mixins/resize.js +55 -55
- package/src/components/im/index.vue +155 -155
- package/src/components/im/methods.js +25 -25
- package/src/components/im/pages/chatList/index.vue +45 -45
- package/src/components/im/pages/chatRoom/index.vue +159 -159
- package/src/components/image-singleUpload/data.js +3 -3
- package/src/components/image-singleUpload/index.scss +26 -26
- package/src/components/image-singleUpload/index.vue +56 -56
- package/src/components/image-singleUpload/methods.js +30 -30
- package/src/components/image-upload/data.js +7 -7
- package/src/components/image-upload/index.vue +41 -41
- package/src/components/image-upload/methods.js +80 -80
- package/src/components/multiple-image-upload/data.js +11 -11
- package/src/components/multiple-image-upload/index.scss +8 -8
- package/src/components/multiple-image-upload/index.vue +63 -63
- package/src/components/multiple-image-upload/methods.js +45 -45
- package/src/components/pro-upload/data.js +3 -3
- package/src/components/pro-upload/index.scss +4 -4
- package/src/components/pro-upload/index.vue +89 -89
- package/src/components/pro-upload/methods.js +86 -86
- package/src/components/report_set/index.scss +44 -44
- package/src/components/report_set/index.vue +153 -153
- package/src/components/search-page/src/index.scss +5 -5
- package/src/components/search-page/src/index.vue +76 -76
- package/src/components/search-page/src/methods.js +36 -36
- package/src/components/xsSelect/index.vue +125 -125
- package/src/mixin/dialog.js +31 -31
- package/src/mixin/dlg.js +46 -46
- package/src/mixin/keepAlive.js +53 -53
- package/src/mixin/newDialog.js +19 -19
- package/src/mixin/report.js +82 -82
- package/src/mixin/table.js +93 -93
- package/src/mixin/tableCell/colTableCell_analysis.js +103 -103
- package/src/mixin/upload.js +22 -22
- package/src/mixin/vmodel.js +26 -26
- package/src/plugins/im/components/chat/index.scss +163 -163
- package/src/plugins/im/components/chat/index.vue +144 -144
- package/src/plugins/im/components/chat/methods.js +149 -149
- package/src/plugins/im/components/conversation-list/index.css +91 -91
- package/src/plugins/im/components/conversation-list/index.json +3 -3
- package/src/plugins/im/components/conversation-list/index.vue +89 -89
- package/src/plugins/im/components/loading/loading.css +69 -69
- package/src/plugins/im/components/loading/loading.json +3 -3
- package/src/plugins/im/components/loading/loading.vue +14 -14
- package/src/plugins/im/components/msg-image/index.json +3 -3
- package/src/plugins/im/components/msg-image/index.vue +40 -40
- package/src/plugins/im/components/msg-text/index.json +3 -3
- package/src/plugins/im/components/msg-text/index.vue +24 -24
- package/src/plugins/im/components/send-msg/index.scss +164 -164
- package/src/plugins/im/components/send-msg/index.vue +107 -107
- package/src/plugins/im/components/send-msg/methods.js +125 -125
- package/src/plugins/im/components/template-message/index.vue +76 -76
- package/src/plugins/im/components/without.vue +19 -19
- package/src/plugins/im/im-plug-in/Protobuf-2.3.7.min.js +1 -1
- package/src/plugins/im/im-plug-in/RongCallLib-3.1.5.min.js +74 -74
- package/src/plugins/im/im-plug-in/RongIMLib-4.1.0.js +17420 -17420
- package/src/plugins/im/im-plug-in/init.js +216 -216
- package/src/plugins/im/im-plug-in/qiniu.js +266 -266
- package/src/plugins/im/im-plug-in/send-data.js +431 -431
- package/src/plugins/im/im-plug-in/upload.js +232 -232
- package/src/plugins/im/index.js +31 -31
- package/src/plugins/im/lib/RongIMEmoji-2.2.6.js +332 -332
- package/src/plugins/im/lib/RongIMLib-3.0.7.2-dev.js +11635 -11635
- package/src/plugins/im/lib/RongIMLib-3.0.7.2-dev.min.js +6 -6
- package/src/plugins/im/utils/services.js +625 -625
- package/src/plugins/im/utils/underscore-1.8.3.js +1531 -1531
- package/src/plugins/im/utils/utils.js +149 -149
- package/src/plugins/index.js +60 -60
- package/src/plugins/row-col-cmp/colCmp/data.js +3 -3
- package/src/plugins/row-col-cmp/colCmp/index.scss +50 -50
- package/src/plugins/row-col-cmp/colCmp/index.vue +53 -53
- package/src/plugins/row-col-cmp/colCmp/methods.js +25 -25
- package/src/plugins/row-col-cmp/index.js +20 -20
- package/src/plugins/row-col-cmp/rowCmp/data.js +3 -3
- package/src/plugins/row-col-cmp/rowCmp/index.scss +3 -3
- package/src/plugins/row-col-cmp/rowCmp/index.vue +43 -43
- package/src/plugins/row-col-cmp/rowCmp/methods.js +29 -29
- package/src/router/index.js +58 -58
- package/src/router/permission.js +126 -126
- package/src/store/getters.js +13 -13
- package/src/store/index.js +60 -60
- package/src/store/modules/app.js +55 -55
- package/src/store/modules/dic.js +74 -74
- package/src/store/modules/oss.js +40 -40
- package/src/store/modules/settings.js +28 -28
- package/src/store/modules/tagsView.js +160 -160
- package/src/store/modules/user.js +94 -94
- package/src/store/modules/widgetdata.js +42 -42
- package/src/styles/element-ui.scss +49 -49
- package/src/styles/index.scss +91 -91
- package/src/styles/mixin.scss +28 -28
- package/src/styles/sidebar.scss +210 -210
- package/src/styles/table.scss +90 -90
- package/src/styles/transition.scss +48 -48
- package/src/styles/variables.scss +25 -25
- package/src/utils/api.js +54 -54
- package/src/utils/auth.js +38 -38
- package/src/utils/concat_batch_btns.js +88 -88
- package/src/utils/enum.js +150 -150
- package/src/utils/filter.js +5 -5
- package/src/utils/filterRules.js +55 -55
- package/src/utils/get-page-title.js +10 -10
- package/src/utils/getMenu.js +82 -82
- package/src/utils/global-config.js +15 -15
- package/src/utils/global_directive.js +10 -10
- package/src/utils/index.js +332 -332
- package/src/utils/localStorage.js +21 -21
- package/src/utils/ossService.js +55 -55
- package/src/utils/prototype.js +46 -46
- package/src/utils/search.js +33 -33
- package/src/utils/signalR.js +24 -24
- package/src/utils/validate.js +20 -20
- package/src/views/callback/index.vue +35 -35
- package/src/views/home/index.vue +25 -25
- package/src/views/layout/components/AllSearch/index.vue +44 -44
- package/src/views/layout/components/AppMain.vue +66 -66
- package/src/views/layout/components/Sidebar/FixiOSBug.js +26 -26
- package/src/views/layout/components/Sidebar/Item.vue +28 -28
- package/src/views/layout/components/Sidebar/Link.vue +34 -34
- package/src/views/layout/components/Sidebar/Logo.vue +79 -79
- package/src/views/layout/components/Sidebar/SidebarItem.vue +67 -67
- package/src/views/layout/components/Sidebar/index.vue +114 -114
- package/src/views/layout/components/TagsView/ScrollPane.vue +94 -94
- package/src/views/layout/components/TagsView/index.vue +330 -330
- package/src/views/layout/components/index.js +3 -3
- package/src/views/layout/index.vue +107 -107
- package/src/views/redirect/index.vue +12 -12
- package/src/views/slienceAuth/index.vue +42 -42
|
@@ -1,248 +1,248 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="home-wrapper">
|
|
3
|
-
<el-row v-for="(rowItem,rowIdx) in layoutlayout.rows" :key="rowIdx">
|
|
4
|
-
<el-col v-for="(colItem,colIdx) in rowItem.cols" :key="colIdx" :span="colItem.span">
|
|
5
|
-
<div v-for="(cellItem,cellIdx) in colItem.cells" :key="cellIdx">
|
|
6
|
-
<div v-if="cellItem.id=='info-box-small'">
|
|
7
|
-
<div v-for="(value,name) in widgetObj[cellItem.dataId]" :key="name">
|
|
8
|
-
<div>A: {{ value.Data }}</div>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
<div v-else-if="cellItem.id=='info-box'">{{ cellItem.dataId }}</div>
|
|
12
|
-
<div v-else-if="cellItem.id=='tab-layout'">
|
|
13
|
-
<el-tabs type="border-card">
|
|
14
|
-
<el-tab-pane v-for="(pageItem,pageIdx) in cellItem.pages" :key="pageIdx">
|
|
15
|
-
<span slot="label">
|
|
16
|
-
<i class="el-icon-date" />
|
|
17
|
-
{{ pageItem.title }}
|
|
18
|
-
</span>
|
|
19
|
-
<div v-if="pageItem.id=='info-box-small'">{{ pageItem }}</div>
|
|
20
|
-
<div v-else-if="pageItem.id=='info-box'">{{ pageItem }}</div>
|
|
21
|
-
<div v-else-if="pageItem.id=='table-list'">
|
|
22
|
-
<el-table :data="widgetObj[pageItem.dataId]" style="width: 100%">
|
|
23
|
-
<el-table-column prop="Id" label="日期" width="180" />
|
|
24
|
-
<el-table-column prop="name" label="姓名" width="180" />
|
|
25
|
-
<el-table-column prop="address" label="地址" />
|
|
26
|
-
</el-table>
|
|
27
|
-
</div>
|
|
28
|
-
<div v-else>{{ pageItem.id }}</div>
|
|
29
|
-
</el-tab-pane>
|
|
30
|
-
</el-tabs>
|
|
31
|
-
</div>
|
|
32
|
-
<div v-else>{{ cellItem.id }}</div>
|
|
33
|
-
</div>
|
|
34
|
-
</el-col>
|
|
35
|
-
</el-row>
|
|
36
|
-
|
|
37
|
-
<el-row>
|
|
38
|
-
<div id="myChart" ref="myChart" :style="{width: '300px', height: '300px'}" />
|
|
39
|
-
</el-row>
|
|
40
|
-
</div>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
<script>
|
|
44
|
-
import data from "./data";
|
|
45
|
-
import methods from "./methods";
|
|
46
|
-
|
|
47
|
-
import { mapGetters } from "vuex";
|
|
48
|
-
export default {
|
|
49
|
-
$$route: {
|
|
50
|
-
meta: {
|
|
51
|
-
title: "标题名称",
|
|
52
|
-
icon: "菜单图标"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
components: {},
|
|
56
|
-
mixins: [],
|
|
57
|
-
props: {},
|
|
58
|
-
data() {
|
|
59
|
-
return {
|
|
60
|
-
layoutlayout: {
|
|
61
|
-
id: "32ace96f9316c4f0e1608b4d9cfd55c7",
|
|
62
|
-
title: "系统管理",
|
|
63
|
-
rows: [
|
|
64
|
-
{
|
|
65
|
-
clsName: "row",
|
|
66
|
-
cols: [
|
|
67
|
-
{
|
|
68
|
-
span: 8,
|
|
69
|
-
cells: [
|
|
70
|
-
{
|
|
71
|
-
pages: [],
|
|
72
|
-
id: "panel",
|
|
73
|
-
dataId: "10000",
|
|
74
|
-
title: "用户数",
|
|
75
|
-
icon: "icon-youhuiquanguanli",
|
|
76
|
-
clsHeader: "info-box-icon bg-yellow"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
span: 8,
|
|
82
|
-
cells: [
|
|
83
|
-
{
|
|
84
|
-
pages: [],
|
|
85
|
-
id: "panel",
|
|
86
|
-
dataId: "10000",
|
|
87
|
-
title: "在线情况",
|
|
88
|
-
icon: "icon-pinglun",
|
|
89
|
-
clsHeader: "info-box-icon bg-green"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
clsName: 8,
|
|
95
|
-
cells: [
|
|
96
|
-
{
|
|
97
|
-
pages: [],
|
|
98
|
-
id: "panel",
|
|
99
|
-
dataId: "10000",
|
|
100
|
-
title: "资产负债平衡",
|
|
101
|
-
icon: "icon-dianpuguanli",
|
|
102
|
-
clsHeader: "info-box-icon bg-red"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
// {
|
|
109
|
-
// clsName: "row",
|
|
110
|
-
// cols: [
|
|
111
|
-
// {
|
|
112
|
-
// span: 16,
|
|
113
|
-
// cells: [
|
|
114
|
-
// {
|
|
115
|
-
// pages: [
|
|
116
|
-
// {id: "table-list",dataId: "10000",title: "账户余额",icon: "fa fa-gears",clsHeader: null},
|
|
117
|
-
// {id: "table-list",dataId: "10000",title: "内存账户",icon: "fa fa-gears",clsHeader: null}
|
|
118
|
-
// ],
|
|
119
|
-
// id: "tab-layout",
|
|
120
|
-
// dataId: "n",
|
|
121
|
-
// title: "财务",
|
|
122
|
-
// icon: null,
|
|
123
|
-
// clsHeader: null
|
|
124
|
-
// },
|
|
125
|
-
// {
|
|
126
|
-
// pages: [
|
|
127
|
-
// {id: "table-list",dataId: "10000",title: "提现账户",icon: "fa fa-gears",clsHeader: null}
|
|
128
|
-
// ],
|
|
129
|
-
// id: "tab-layout",
|
|
130
|
-
// dataId: "0",
|
|
131
|
-
// title: "提现账户",
|
|
132
|
-
// icon: null,
|
|
133
|
-
// clsHeader: null
|
|
134
|
-
// }
|
|
135
|
-
// ]
|
|
136
|
-
// },
|
|
137
|
-
// {
|
|
138
|
-
// span: 8,
|
|
139
|
-
// cells: [
|
|
140
|
-
// {
|
|
141
|
-
// pages: [
|
|
142
|
-
// {
|
|
143
|
-
// id: "table-list",
|
|
144
|
-
// dataId: "10000",
|
|
145
|
-
// title: "充值统计",
|
|
146
|
-
// icon: "fa fa-gears",
|
|
147
|
-
// clsHeader: null
|
|
148
|
-
// },
|
|
149
|
-
// {
|
|
150
|
-
// id: "table-list",
|
|
151
|
-
// dataId: "10000",
|
|
152
|
-
// title: "处理中",
|
|
153
|
-
// icon: "fa fa-gears",
|
|
154
|
-
// clsHeader: null
|
|
155
|
-
// }
|
|
156
|
-
// ],
|
|
157
|
-
// id: "tab-layout",
|
|
158
|
-
// dataId: null,
|
|
159
|
-
// title: "充值",
|
|
160
|
-
// icon: "fa fa-gears",
|
|
161
|
-
// clsHeader: null
|
|
162
|
-
// },
|
|
163
|
-
// {
|
|
164
|
-
// pages: [
|
|
165
|
-
// {
|
|
166
|
-
// id: "table-list",
|
|
167
|
-
// dataId: "10000",
|
|
168
|
-
// title: "用户日志",
|
|
169
|
-
// icon: "fa fa-gears",
|
|
170
|
-
// clsHeader: null
|
|
171
|
-
// }
|
|
172
|
-
// ],
|
|
173
|
-
// id: "tab-layout",
|
|
174
|
-
// dataId: null,
|
|
175
|
-
// title: "用户日志",
|
|
176
|
-
// icon: "fa fa-gears",
|
|
177
|
-
// clsHeader: null
|
|
178
|
-
// },
|
|
179
|
-
// {
|
|
180
|
-
// pages: [
|
|
181
|
-
// {
|
|
182
|
-
// id: "table-list",
|
|
183
|
-
// dataId: "10000",
|
|
184
|
-
// title: "代理api余额",
|
|
185
|
-
// icon: "fa fa-gears",
|
|
186
|
-
// clsHeader: null
|
|
187
|
-
// },
|
|
188
|
-
// {
|
|
189
|
-
// id: "table-list",
|
|
190
|
-
// dataId: "10000",
|
|
191
|
-
// title: "余额查询工号",
|
|
192
|
-
// icon: "fa fa-gears",
|
|
193
|
-
// clsHeader: null
|
|
194
|
-
// }
|
|
195
|
-
// ],
|
|
196
|
-
// id: "tab-layout",
|
|
197
|
-
// dataId: null,
|
|
198
|
-
// title: "账户余额",
|
|
199
|
-
// icon: "fa fa-gears",
|
|
200
|
-
// clsHeader: null
|
|
201
|
-
// }
|
|
202
|
-
// ]
|
|
203
|
-
// }
|
|
204
|
-
// ]
|
|
205
|
-
// }
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
},
|
|
210
|
-
watch: {
|
|
211
|
-
widgetObj(nval) {
|
|
212
|
-
console.log("up", nval);
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
methods,
|
|
216
|
-
computed: {
|
|
217
|
-
...mapGetters(["widgetObj"])
|
|
218
|
-
},
|
|
219
|
-
// ------------------------------------------------------------------
|
|
220
|
-
// pragma mark - Life Cycle(生命周期)
|
|
221
|
-
// ------------------------------------------------------------------
|
|
222
|
-
created() {
|
|
223
|
-
this.createdInit();
|
|
224
|
-
},
|
|
225
|
-
mounted() {
|
|
226
|
-
// 基于准备好的dom,初始化echarts实例
|
|
227
|
-
const myChart = this.$echarts.init(this.$refs["myChart"]);
|
|
228
|
-
// 绘制图表
|
|
229
|
-
myChart.setOption({
|
|
230
|
-
title: { text: "在Vue中使用echarts" },
|
|
231
|
-
tooltip: {},
|
|
232
|
-
xAxis: {
|
|
233
|
-
data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
|
|
234
|
-
},
|
|
235
|
-
yAxis: {},
|
|
236
|
-
series: [
|
|
237
|
-
{
|
|
238
|
-
name: "销量",
|
|
239
|
-
type: "bar",
|
|
240
|
-
data: [5, 20, 36, 10, 10, 20]
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
});
|
|
244
|
-
this.mountedInit();
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
</script>
|
|
248
|
-
<style lang="scss" src="./index.scss" scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="home-wrapper">
|
|
3
|
+
<el-row v-for="(rowItem,rowIdx) in layoutlayout.rows" :key="rowIdx">
|
|
4
|
+
<el-col v-for="(colItem,colIdx) in rowItem.cols" :key="colIdx" :span="colItem.span">
|
|
5
|
+
<div v-for="(cellItem,cellIdx) in colItem.cells" :key="cellIdx">
|
|
6
|
+
<div v-if="cellItem.id=='info-box-small'">
|
|
7
|
+
<div v-for="(value,name) in widgetObj[cellItem.dataId]" :key="name">
|
|
8
|
+
<div>A: {{ value.Data }}</div>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div v-else-if="cellItem.id=='info-box'">{{ cellItem.dataId }}</div>
|
|
12
|
+
<div v-else-if="cellItem.id=='tab-layout'">
|
|
13
|
+
<el-tabs type="border-card">
|
|
14
|
+
<el-tab-pane v-for="(pageItem,pageIdx) in cellItem.pages" :key="pageIdx">
|
|
15
|
+
<span slot="label">
|
|
16
|
+
<i class="el-icon-date" />
|
|
17
|
+
{{ pageItem.title }}
|
|
18
|
+
</span>
|
|
19
|
+
<div v-if="pageItem.id=='info-box-small'">{{ pageItem }}</div>
|
|
20
|
+
<div v-else-if="pageItem.id=='info-box'">{{ pageItem }}</div>
|
|
21
|
+
<div v-else-if="pageItem.id=='table-list'">
|
|
22
|
+
<el-table :data="widgetObj[pageItem.dataId]" style="width: 100%">
|
|
23
|
+
<el-table-column prop="Id" label="日期" width="180" />
|
|
24
|
+
<el-table-column prop="name" label="姓名" width="180" />
|
|
25
|
+
<el-table-column prop="address" label="地址" />
|
|
26
|
+
</el-table>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-else>{{ pageItem.id }}</div>
|
|
29
|
+
</el-tab-pane>
|
|
30
|
+
</el-tabs>
|
|
31
|
+
</div>
|
|
32
|
+
<div v-else>{{ cellItem.id }}</div>
|
|
33
|
+
</div>
|
|
34
|
+
</el-col>
|
|
35
|
+
</el-row>
|
|
36
|
+
|
|
37
|
+
<el-row>
|
|
38
|
+
<div id="myChart" ref="myChart" :style="{width: '300px', height: '300px'}" />
|
|
39
|
+
</el-row>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
import data from "./data";
|
|
45
|
+
import methods from "./methods";
|
|
46
|
+
|
|
47
|
+
import { mapGetters } from "vuex";
|
|
48
|
+
export default {
|
|
49
|
+
$$route: {
|
|
50
|
+
meta: {
|
|
51
|
+
title: "标题名称",
|
|
52
|
+
icon: "菜单图标"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
components: {},
|
|
56
|
+
mixins: [],
|
|
57
|
+
props: {},
|
|
58
|
+
data() {
|
|
59
|
+
return {
|
|
60
|
+
layoutlayout: {
|
|
61
|
+
id: "32ace96f9316c4f0e1608b4d9cfd55c7",
|
|
62
|
+
title: "系统管理",
|
|
63
|
+
rows: [
|
|
64
|
+
{
|
|
65
|
+
clsName: "row",
|
|
66
|
+
cols: [
|
|
67
|
+
{
|
|
68
|
+
span: 8,
|
|
69
|
+
cells: [
|
|
70
|
+
{
|
|
71
|
+
pages: [],
|
|
72
|
+
id: "panel",
|
|
73
|
+
dataId: "10000",
|
|
74
|
+
title: "用户数",
|
|
75
|
+
icon: "icon-youhuiquanguanli",
|
|
76
|
+
clsHeader: "info-box-icon bg-yellow"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
span: 8,
|
|
82
|
+
cells: [
|
|
83
|
+
{
|
|
84
|
+
pages: [],
|
|
85
|
+
id: "panel",
|
|
86
|
+
dataId: "10000",
|
|
87
|
+
title: "在线情况",
|
|
88
|
+
icon: "icon-pinglun",
|
|
89
|
+
clsHeader: "info-box-icon bg-green"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
clsName: 8,
|
|
95
|
+
cells: [
|
|
96
|
+
{
|
|
97
|
+
pages: [],
|
|
98
|
+
id: "panel",
|
|
99
|
+
dataId: "10000",
|
|
100
|
+
title: "资产负债平衡",
|
|
101
|
+
icon: "icon-dianpuguanli",
|
|
102
|
+
clsHeader: "info-box-icon bg-red"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
// {
|
|
109
|
+
// clsName: "row",
|
|
110
|
+
// cols: [
|
|
111
|
+
// {
|
|
112
|
+
// span: 16,
|
|
113
|
+
// cells: [
|
|
114
|
+
// {
|
|
115
|
+
// pages: [
|
|
116
|
+
// {id: "table-list",dataId: "10000",title: "账户余额",icon: "fa fa-gears",clsHeader: null},
|
|
117
|
+
// {id: "table-list",dataId: "10000",title: "内存账户",icon: "fa fa-gears",clsHeader: null}
|
|
118
|
+
// ],
|
|
119
|
+
// id: "tab-layout",
|
|
120
|
+
// dataId: "n",
|
|
121
|
+
// title: "财务",
|
|
122
|
+
// icon: null,
|
|
123
|
+
// clsHeader: null
|
|
124
|
+
// },
|
|
125
|
+
// {
|
|
126
|
+
// pages: [
|
|
127
|
+
// {id: "table-list",dataId: "10000",title: "提现账户",icon: "fa fa-gears",clsHeader: null}
|
|
128
|
+
// ],
|
|
129
|
+
// id: "tab-layout",
|
|
130
|
+
// dataId: "0",
|
|
131
|
+
// title: "提现账户",
|
|
132
|
+
// icon: null,
|
|
133
|
+
// clsHeader: null
|
|
134
|
+
// }
|
|
135
|
+
// ]
|
|
136
|
+
// },
|
|
137
|
+
// {
|
|
138
|
+
// span: 8,
|
|
139
|
+
// cells: [
|
|
140
|
+
// {
|
|
141
|
+
// pages: [
|
|
142
|
+
// {
|
|
143
|
+
// id: "table-list",
|
|
144
|
+
// dataId: "10000",
|
|
145
|
+
// title: "充值统计",
|
|
146
|
+
// icon: "fa fa-gears",
|
|
147
|
+
// clsHeader: null
|
|
148
|
+
// },
|
|
149
|
+
// {
|
|
150
|
+
// id: "table-list",
|
|
151
|
+
// dataId: "10000",
|
|
152
|
+
// title: "处理中",
|
|
153
|
+
// icon: "fa fa-gears",
|
|
154
|
+
// clsHeader: null
|
|
155
|
+
// }
|
|
156
|
+
// ],
|
|
157
|
+
// id: "tab-layout",
|
|
158
|
+
// dataId: null,
|
|
159
|
+
// title: "充值",
|
|
160
|
+
// icon: "fa fa-gears",
|
|
161
|
+
// clsHeader: null
|
|
162
|
+
// },
|
|
163
|
+
// {
|
|
164
|
+
// pages: [
|
|
165
|
+
// {
|
|
166
|
+
// id: "table-list",
|
|
167
|
+
// dataId: "10000",
|
|
168
|
+
// title: "用户日志",
|
|
169
|
+
// icon: "fa fa-gears",
|
|
170
|
+
// clsHeader: null
|
|
171
|
+
// }
|
|
172
|
+
// ],
|
|
173
|
+
// id: "tab-layout",
|
|
174
|
+
// dataId: null,
|
|
175
|
+
// title: "用户日志",
|
|
176
|
+
// icon: "fa fa-gears",
|
|
177
|
+
// clsHeader: null
|
|
178
|
+
// },
|
|
179
|
+
// {
|
|
180
|
+
// pages: [
|
|
181
|
+
// {
|
|
182
|
+
// id: "table-list",
|
|
183
|
+
// dataId: "10000",
|
|
184
|
+
// title: "代理api余额",
|
|
185
|
+
// icon: "fa fa-gears",
|
|
186
|
+
// clsHeader: null
|
|
187
|
+
// },
|
|
188
|
+
// {
|
|
189
|
+
// id: "table-list",
|
|
190
|
+
// dataId: "10000",
|
|
191
|
+
// title: "余额查询工号",
|
|
192
|
+
// icon: "fa fa-gears",
|
|
193
|
+
// clsHeader: null
|
|
194
|
+
// }
|
|
195
|
+
// ],
|
|
196
|
+
// id: "tab-layout",
|
|
197
|
+
// dataId: null,
|
|
198
|
+
// title: "账户余额",
|
|
199
|
+
// icon: "fa fa-gears",
|
|
200
|
+
// clsHeader: null
|
|
201
|
+
// }
|
|
202
|
+
// ]
|
|
203
|
+
// }
|
|
204
|
+
// ]
|
|
205
|
+
// }
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
watch: {
|
|
211
|
+
widgetObj(nval) {
|
|
212
|
+
console.log("up", nval);
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
methods,
|
|
216
|
+
computed: {
|
|
217
|
+
...mapGetters(["widgetObj"])
|
|
218
|
+
},
|
|
219
|
+
// ------------------------------------------------------------------
|
|
220
|
+
// pragma mark - Life Cycle(生命周期)
|
|
221
|
+
// ------------------------------------------------------------------
|
|
222
|
+
created() {
|
|
223
|
+
this.createdInit();
|
|
224
|
+
},
|
|
225
|
+
mounted() {
|
|
226
|
+
// 基于准备好的dom,初始化echarts实例
|
|
227
|
+
const myChart = this.$echarts.init(this.$refs["myChart"]);
|
|
228
|
+
// 绘制图表
|
|
229
|
+
myChart.setOption({
|
|
230
|
+
title: { text: "在Vue中使用echarts" },
|
|
231
|
+
tooltip: {},
|
|
232
|
+
xAxis: {
|
|
233
|
+
data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
|
|
234
|
+
},
|
|
235
|
+
yAxis: {},
|
|
236
|
+
series: [
|
|
237
|
+
{
|
|
238
|
+
name: "销量",
|
|
239
|
+
type: "bar",
|
|
240
|
+
data: [5, 20, 36, 10, 10, 20]
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
});
|
|
244
|
+
this.mountedInit();
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
</script>
|
|
248
|
+
<style lang="scss" src="./index.scss" scoped></style>
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-table :data="list" style="width: 100%;padding-top: 15px;">
|
|
3
|
-
<el-table-column label="Order_No" min-width="200">
|
|
4
|
-
<template slot-scope="scope">{{ scope.row.order_no | orderNoFilter }}</template>
|
|
5
|
-
</el-table-column>
|
|
6
|
-
<el-table-column label="Price" width="195" align="center">
|
|
7
|
-
<template slot-scope="scope">¥{{ scope.row.price | toThousandFilter }}</template>
|
|
8
|
-
</el-table-column>
|
|
9
|
-
<el-table-column label="Status" width="100" align="center">
|
|
10
|
-
<template slot-scope="{row}">
|
|
11
|
-
<el-tag :type="row.status | statusFilter">{{ row.status }}</el-tag>
|
|
12
|
-
</template>
|
|
13
|
-
</el-table-column>
|
|
14
|
-
</el-table>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
// import { transactionList } from '@/api/remote-search'
|
|
19
|
-
|
|
20
|
-
export default {
|
|
21
|
-
filters: {
|
|
22
|
-
statusFilter(status) {
|
|
23
|
-
const statusMap = {
|
|
24
|
-
success: "success",
|
|
25
|
-
pending: "danger"
|
|
26
|
-
};
|
|
27
|
-
return statusMap[status];
|
|
28
|
-
},
|
|
29
|
-
orderNoFilter(str) {
|
|
30
|
-
return str.substring(0, 30);
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
data() {
|
|
34
|
-
return {
|
|
35
|
-
list: null
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
created() {
|
|
39
|
-
this.fetchData();
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
fetchData() {
|
|
43
|
-
// transactionList().then(response => {
|
|
44
|
-
// this.list = response.data.items.slice(0, 8)
|
|
45
|
-
// })
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<el-table :data="list" style="width: 100%;padding-top: 15px;">
|
|
3
|
+
<el-table-column label="Order_No" min-width="200">
|
|
4
|
+
<template slot-scope="scope">{{ scope.row.order_no | orderNoFilter }}</template>
|
|
5
|
+
</el-table-column>
|
|
6
|
+
<el-table-column label="Price" width="195" align="center">
|
|
7
|
+
<template slot-scope="scope">¥{{ scope.row.price | toThousandFilter }}</template>
|
|
8
|
+
</el-table-column>
|
|
9
|
+
<el-table-column label="Status" width="100" align="center">
|
|
10
|
+
<template slot-scope="{row}">
|
|
11
|
+
<el-tag :type="row.status | statusFilter">{{ row.status }}</el-tag>
|
|
12
|
+
</template>
|
|
13
|
+
</el-table-column>
|
|
14
|
+
</el-table>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
// import { transactionList } from '@/api/remote-search'
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
filters: {
|
|
22
|
+
statusFilter(status) {
|
|
23
|
+
const statusMap = {
|
|
24
|
+
success: "success",
|
|
25
|
+
pending: "danger"
|
|
26
|
+
};
|
|
27
|
+
return statusMap[status];
|
|
28
|
+
},
|
|
29
|
+
orderNoFilter(str) {
|
|
30
|
+
return str.substring(0, 30);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
list: null
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
created() {
|
|
39
|
+
this.fetchData();
|
|
40
|
+
},
|
|
41
|
+
methods: {
|
|
42
|
+
fetchData() {
|
|
43
|
+
// transactionList().then(response => {
|
|
44
|
+
// this.list = response.data.items.slice(0, 8)
|
|
45
|
+
// })
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
</script>
|