n20-common-lib 1.3.1 → 1.3.4
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/g6.js +5 -5
- package/package.json +1 -1
- package/src/components/ECharts/mixins/resize.js +1 -1
- package/src/components/FileImport/index.vue +1 -1
- package/src/components/NstcG6Components/Form/DatepickerCustom/index.vue +32 -32
- package/src/components/NstcG6Components/NstcBranchLazyLoad/NstcBranchLazyLoad.vue +37 -33
- package/src/components/NstcG6Components/NstcCharts/mixins/resize.js +1 -1
- package/src/components/NstcG6Components/NstcDropdownTree/NstcDropdownTree.vue +141 -137
- package/src/components/NstcG6Components/NstcExcelExport/NstcExcelExport.vue +47 -47
- package/src/components/NstcG6Components/NstcExcelImport/NstcExcelImport.vue +1 -1
- package/src/components/NstcG6Components/NstcExcelImportN/NstcExcelImportN.vue +186 -188
- package/src/components/NstcG6Components/NstcFileUpload/NstcFileUpload.vue +429 -451
- package/src/components/NstcG6Components/NstcForm/BusinessSpecific/InputMultiple.vue +66 -68
- package/src/components/NstcG6Components/NstcForm/CascaderCustom/index.vue +7 -7
- package/src/components/NstcG6Components/NstcForm/DatepickerCustom/index.vue +32 -32
- package/src/components/NstcG6Components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +1 -1
- package/src/components/NstcG6Components/NstcForm/InputCustom/index.vue +1 -1
- package/src/components/NstcG6Components/NstcForm/SelectAccount/NstcSelectAccount.vue +1 -1
- package/src/components/NstcG6Components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +1 -1
- package/src/components/NstcG6Components/NstcForm/SelectCustom/index.vue +1 -1
- package/src/components/NstcG6Components/NstcForm/SelectindialogCustom/index.vue +1 -1
- package/src/components/NstcG6Components/NstcForm/UploadCustom/index.vue +1 -1
- package/src/components/NstcG6Components/NstcSelectTree/NstcSelectTree.vue +172 -172
- package/src/components/NstcG6Components/NstcSelectTreeList/NstcSelectTreeList.vue +1 -1
- package/src/components/NstcG6Components/NstcSvgIcon/NstcSvgIcon.vue +7 -12
- package/src/components/NstcG6Components/NstcTable/NstcTable.vue +145 -145
- package/src/components/NstcG6Components/NstcTableSet/NstcTableSet.vue +4 -4
- package/src/components/NstcG6Components/NstcWorkBench/NstcWorkBench.vue +45 -36
- package/src/components/NstcG6Components/Search/NstcSearch.vue +6 -6
- package/src/components/NstcG6Components/approvelTwo/main.vue +1 -1
- package/src/components/NstcG6Components/approvelTwo/progress.vue +1 -1
- package/src/components/Search/index.vue +8 -8
- package/src/index.js +3 -3
- package/style/css/normalize.scss +726 -0
- package/style/pageDemo/demo-1.vue +131 -0
- package/style/pageDemo/demo-2.vue +35 -0
- package/style/pageDemo/demo-3.vue +22 -0
- package/style/pageDemo/seeCode.js +20 -0
- package/style/server-config.jsonc +723 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<cl-page>
|
|
3
|
+
<template slot="header">
|
|
4
|
+
<cl-secondary-tab :init.sync="name" :data="list" />
|
|
5
|
+
<div class="flex-box flex-v m-b">
|
|
6
|
+
<cl-tertiary-tab :init.sync="name" :data="list" />
|
|
7
|
+
<el-button
|
|
8
|
+
plain
|
|
9
|
+
size="mini"
|
|
10
|
+
style="margin-left: auto"
|
|
11
|
+
@click="seeCode('demo-1')"
|
|
12
|
+
>查看代码</el-button
|
|
13
|
+
>
|
|
14
|
+
<el-button class="button-4em" plain size="mini">删除</el-button>
|
|
15
|
+
<cl-filters class="m-l-s" :form="form" :filter-list="filterList" />
|
|
16
|
+
<cl-dialog title="选择名称" :visible.sync="sltV">
|
|
17
|
+
<pre>{{ form }}</pre>
|
|
18
|
+
</cl-dialog>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<cl-table
|
|
23
|
+
:border="true"
|
|
24
|
+
:data="tableData"
|
|
25
|
+
:columns="columnList"
|
|
26
|
+
height="100%"
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
<div slot="footer" class="page-footer-shadow flex-box flex-v m-t">
|
|
30
|
+
<cl-statis
|
|
31
|
+
:page-sum="page.size"
|
|
32
|
+
:page-amount="page.amount"
|
|
33
|
+
:total-sun="page.totalSize"
|
|
34
|
+
:total-amount="page.sumAmount"
|
|
35
|
+
/>
|
|
36
|
+
<cl-pagination
|
|
37
|
+
:page-obj="page"
|
|
38
|
+
:page-key="{ no: 'pageNo', size: 'pageSize', total: 'totalSize' }"
|
|
39
|
+
style="margin-left: auto"
|
|
40
|
+
@change="getList"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
43
|
+
</cl-page>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
import seeCode from './seeCode'
|
|
48
|
+
|
|
49
|
+
let tableDataItem = {
|
|
50
|
+
id: 'n1',
|
|
51
|
+
type: '001',
|
|
52
|
+
name: '信贷合同-1',
|
|
53
|
+
time: '2021-09-29 20:05:56',
|
|
54
|
+
user: '张三',
|
|
55
|
+
url: 'http://192.168.60.58:5001/bems/1.0/attach/%E6%91%B9%E5%AE%A2%E5%85%8D%E8%B4%B9100.png'
|
|
56
|
+
}
|
|
57
|
+
export default {
|
|
58
|
+
mixins: [seeCode], // 查看代码的代码
|
|
59
|
+
data() {
|
|
60
|
+
let _this = this
|
|
61
|
+
return {
|
|
62
|
+
// 二级/三级菜单
|
|
63
|
+
list: [
|
|
64
|
+
{ name: '对公转账', icon: 'el-icon-share', path: '/ibs-pay' },
|
|
65
|
+
{ name: '对私转账', disabled: true, path: '/ibs-pay1' },
|
|
66
|
+
{ name: '经销商转账', path: '/ibs-pay2' }
|
|
67
|
+
],
|
|
68
|
+
name: '对公转账',
|
|
69
|
+
// 筛选
|
|
70
|
+
form: {},
|
|
71
|
+
filterList: [
|
|
72
|
+
{ label: '名称', type: 'text', value: 'oN' },
|
|
73
|
+
{
|
|
74
|
+
label: '选择名称',
|
|
75
|
+
type: 'text',
|
|
76
|
+
value: 'oN',
|
|
77
|
+
on: {
|
|
78
|
+
focus() {
|
|
79
|
+
_this.sltV = true
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{ label: '金额', type: 'number', value: 'num' },
|
|
84
|
+
{
|
|
85
|
+
label: '金额区间',
|
|
86
|
+
type: 'numberrange',
|
|
87
|
+
startValue: 'numMin',
|
|
88
|
+
endValue: 'numMax'
|
|
89
|
+
},
|
|
90
|
+
{ label: '创建日期', type: 'date', value: 'date' },
|
|
91
|
+
{
|
|
92
|
+
label: '时间区间',
|
|
93
|
+
type: 'daterange',
|
|
94
|
+
startDate: 'startDate',
|
|
95
|
+
endDate: 'endDate'
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
// 表格
|
|
99
|
+
columnList: [
|
|
100
|
+
{ type: 'index', label: '序号', width: 50, align: 'center' },
|
|
101
|
+
{ prop: 'id', label: 'id', width: 100, align: 'center' },
|
|
102
|
+
{ prop: 'type', label: '类型', align: 'center' },
|
|
103
|
+
{ prop: 'name', label: '名称' },
|
|
104
|
+
{ prop: 'time', label: '时间' },
|
|
105
|
+
{ prop: 'user', label: '用户' },
|
|
106
|
+
{ prop: 'url', label: '地址', 'show-overflow-tooltip': true }
|
|
107
|
+
],
|
|
108
|
+
tableData: Array(100).fill(tableDataItem),
|
|
109
|
+
// 分页
|
|
110
|
+
page: {
|
|
111
|
+
pageNo: 1,
|
|
112
|
+
pageSize: 20,
|
|
113
|
+
totalSize: 100,
|
|
114
|
+
par1: 'xxx',
|
|
115
|
+
par2: 'yyy',
|
|
116
|
+
par3: 'zzz',
|
|
117
|
+
size: 8,
|
|
118
|
+
amount: 12314,
|
|
119
|
+
sumAmount: 213132
|
|
120
|
+
},
|
|
121
|
+
|
|
122
|
+
sltV: false
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
methods: {
|
|
126
|
+
getList() {
|
|
127
|
+
console.log(this.page)
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<cl-page>
|
|
3
|
+
<div slot="header" class="bd-b p-b-s">
|
|
4
|
+
<el-button type="primary">头部固定</el-button>
|
|
5
|
+
<el-button
|
|
6
|
+
class="float-right"
|
|
7
|
+
plain
|
|
8
|
+
size="mini"
|
|
9
|
+
@click="seeCode('demo-2')"
|
|
10
|
+
>查看代码</el-button
|
|
11
|
+
>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div class="flex-box" style="height: 100%">
|
|
15
|
+
<div class="p-t-s p-b-s bd-r" style="width: 240px; overflow: auto">
|
|
16
|
+
<div v-for="i in 100" :key="i">左边-宽度占240px</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="flex-item flex-column x------x p-t-s p-b-s p-l-s">
|
|
19
|
+
<div class="flex-item" style="overflow: auto">
|
|
20
|
+
<div v-for="i in 100" :key="i">右边-宽度剩下的部分</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="bd-t p-t-s text-r">
|
|
23
|
+
<el-button>右侧的底部固定</el-button>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</cl-page>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
import seeCode from './seeCode'
|
|
32
|
+
export default {
|
|
33
|
+
mixins: [seeCode] // 查看代码的代码
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<cl-page>
|
|
3
|
+
<div slot="header" class="bd-b p-b-s">
|
|
4
|
+
<el-button type="primary">头部固定</el-button>
|
|
5
|
+
<el-button
|
|
6
|
+
class="float-right"
|
|
7
|
+
plain
|
|
8
|
+
size="mini"
|
|
9
|
+
@click="seeCode('demo-3')"
|
|
10
|
+
>查看代码</el-button
|
|
11
|
+
>
|
|
12
|
+
</div>
|
|
13
|
+
<div v-for="i in 100" :key="i">内容内容内容内容</div>
|
|
14
|
+
</cl-page>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
import seeCode from './seeCode'
|
|
19
|
+
export default {
|
|
20
|
+
mixins: [seeCode] // 查看代码的代码
|
|
21
|
+
}
|
|
22
|
+
</script>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import hljs from 'highlight.js'
|
|
2
|
+
const prefix = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__ || process.env.BASE_URL || '/'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
methods: {
|
|
6
|
+
async seeCode(d) {
|
|
7
|
+
let data = await this.$axios.get(`${prefix}pageDemo/${d}.vue`)
|
|
8
|
+
this.$msgboxPor({
|
|
9
|
+
title: '页面代码',
|
|
10
|
+
message: (
|
|
11
|
+
<div class='highlight sl-y' style='width: 100%;height: 500px;overflow: auto;'>
|
|
12
|
+
<pre domPropsInnerHTML={hljs.highlightAuto(data).value}></pre>
|
|
13
|
+
</div>
|
|
14
|
+
),
|
|
15
|
+
dangerouslyUseHTMLString: true,
|
|
16
|
+
customClass: 'seecode-pop'
|
|
17
|
+
})
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|