Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aec1ff52
authored
Nov 13, 2021
by
limin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.1.7
1 parent
4bc0a0ce
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
58 deletions
package.json
src/App.vue
src/main.js
src/packages/Table/src/index.vue
src/packages/index.js
src/plugins/element.js
package.json
View file @
aec1ff5
{
{
"name"
:
"glsx-components"
,
"name"
:
"glsx-components"
,
"description"
:
"glsx vue components"
,
"description"
:
"glsx vue components"
,
"version"
:
"1.1.
5
"
,
"version"
:
"1.1.
7
"
,
"author"
:
"limin <17653212@qq.com>"
,
"author"
:
"limin <17653212@qq.com>"
,
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"main"
:
"dist/glsx-components.common.js"
,
"main"
:
"dist/glsx-components.common.js"
,
...
...
src/App.vue
View file @
aec1ff5
...
@@ -24,6 +24,32 @@
...
@@ -24,6 +24,32 @@
<el-button
v-if=
"scope.scope.liveStatus != '101'"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
<el-button
v-if=
"scope.scope.liveStatus != '101'"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
</span>
</span>
</GLTable>
</GLTable>
<el-table
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"date"
label=
"序号"
align=
"center"
></el-table-column>
<el-table-column
label=
"订单信息"
align=
"center"
>
<el-table-column
prop=
"name"
label=
"支付订单编号"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"交易参考号"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"商品名称"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"商品编号"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"商品成本"
></el-table-column>
</el-table-column>
<el-table-column
label=
"支付信息"
align=
"center"
>
<el-table-column
prop=
"name"
align=
"center"
label=
"客户手机号"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"转化员"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"转销售顾问"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"支付时间"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"支付方式"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"支付金额"
></el-table-column>
</el-table-column>
<el-table-column
label=
"导流方利润"
align=
"center"
>
<el-table-column
prop=
"name"
align=
"center"
label=
"总分账金额"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"分润对象"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"分润规则"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"分润金额"
></el-table-column>
<el-table-column
prop=
"name"
align=
"center"
label=
"分账类型"
></el-table-column>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
align=
"center"
width=
"120"
></el-table-column>
</el-table>
</div>
</div>
</
template
>
</
template
>
...
@@ -79,58 +105,7 @@ export default {
...
@@ -79,58 +105,7 @@ export default {
}
}
]
]
},
},
tableData
:
[
tableData
:
[]
{
id
:
3
,
name
:
'直播测试1'
,
startTime
:
'2021-09-23 21:26:44'
,
endTime
:
'2021-09-23 21:34:35'
,
anchorName
:
'hexy1996'
,
shareImgUrl
:
'http://qcimg01.glsx.net:7060/group1/M00/00/31/wKgD3mFDEMKAa2T8AAAuTgJxhBQ998.jpg'
,
roomId
:
26
,
liveStatus
:
103
},
{
id
:
5
,
name
:
'直播测试1'
,
startTime
:
'2021-09-27 11:00:00'
,
endTime
:
'2021-09-27 13:10:00'
,
anchorName
:
'hexy1996'
,
shareImgUrl
:
'http://qcimg01.glsx.net:7060/group1/M00/00/31/wKgD3mFDEMKAa2T8AAAuTgJxhBQ998.jpg'
,
roomId
:
28
,
liveStatus
:
107
},
{
id
:
9
,
name
:
'直播测试1'
,
startTime
:
'2021-10-07 12:00:00'
,
endTime
:
'2021-10-07 14:00:00'
,
anchorName
:
'hexy1996'
,
shareImgUrl
:
'http://qcimg01.glsx.net:7060/group1/M00/00/31/wKgD3mFDEMKAa2T8AAAuTgJxhBQ998.jpg'
,
roomId
:
32
,
liveStatus
:
107
},
{
id
:
11
,
name
:
'直播间新增1-编辑啦啦啦'
,
startTime
:
'2021-10-26 20:00:00'
,
endTime
:
'2021-10-26 23:30:08'
,
anchorName
:
'啦啦999'
,
shareImgUrl
:
'http://qcimg01.glsx.net:7060/group1/M00/00/3F/wKgD3mF3cs-AeeV8AAA8sjTg54U855.jpg'
,
roomId
:
34
,
liveStatus
:
107
},
{
id
:
12
,
name
:
'新增直播间咯00'
,
startTime
:
'2021-10-29 09:13:18'
,
endTime
:
'2021-10-29 15:08:19'
,
anchorName
:
'啦啦'
,
shareImgUrl
:
'http://qcimg01.glsx.net:7060/group1/M00/00/40/wKgD3mF5BJiAAWQgAABFn4xd9nI261.jpg'
,
roomId
:
37
,
liveStatus
:
102
}
]
}
}
},
},
methods
:
{
methods
:
{
...
...
src/main.js
View file @
aec1ff5
import
Vue
from
'vue'
import
Vue
from
'vue'
import
App
from
'./App.vue'
import
App
from
'./App.vue'
import
{
GLExternal
,
GLButton
,
GLDialog
,
GLTable
}
from
'./packages/index'
import
{
GLExternal
,
GLButton
,
GLDialog
,
GLTable
,
Table
,
TableColumn
}
from
'./packages/index'
import
'../dist/glsx-components.css'
import
'../dist/glsx-components.css'
import
'element-ui/lib/theme-chalk/index.css'
import
'element-ui/lib/theme-chalk/index.css'
Vue
.
use
(
GLExternal
)
Vue
.
use
(
GLExternal
)
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
Table
)
Vue
.
use
(
TableColumn
)
Vue
.
use
(
GLButton
,
{
permissions
:
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
],
a
:
'1111'
})
Vue
.
use
(
GLButton
,
{
permissions
:
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
],
a
:
'1111'
})
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
...
...
src/packages/Table/src/index.vue
View file @
aec1ff5
...
@@ -289,6 +289,8 @@ export default {
...
@@ -289,6 +289,8 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
if
(
this
.
data
.
length
)
{
if
(
this
.
data
.
length
)
{
this
.
$emit
(
'setTableFinishFun'
,
this
.
data
)
//表格请求到数据
this
.
$emit
(
'setTableFinishFun'
,
this
.
data
)
//表格请求到数据
}
else
{
this
.
setTableHeightFun
()
}
}
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
...
@@ -341,6 +343,8 @@ export default {
...
@@ -341,6 +343,8 @@ export default {
margin
:
10px
0
;
margin
:
10px
0
;
}
}
.glsx-table
.line-ellipsis
{
.glsx-table
.line-ellipsis
{
display
:
-webkit-box
;
width
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
/* -webkit-line-clamp: 2; */
/* -webkit-line-clamp: 2; */
...
...
src/packages/index.js
View file @
aec1ff5
...
@@ -5,8 +5,9 @@ import GLDialog from './Dialog'
...
@@ -5,8 +5,9 @@ import GLDialog from './Dialog'
import
GLTable
from
'./Table'
import
GLTable
from
'./Table'
import
'@/theme/theme.scss'
import
'@/theme/theme.scss'
import
'@/plugins/element.js'
import
'@/plugins/element.js'
import
{
Table
,
TableColumn
}
from
'element-ui'
// 存储组件列表
// 存储组件列表
const
components
=
[
GLExternal
,
GLButton
,
GLDialog
,
GLTable
]
const
components
=
[
GLExternal
,
GLButton
,
GLDialog
,
GLTable
,
Table
,
TableColumn
]
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
const
install
=
function
(
Vue
)
{
const
install
=
function
(
Vue
)
{
// 判断是否安装
// 判断是否安装
...
@@ -18,7 +19,7 @@ const install = function(Vue) {
...
@@ -18,7 +19,7 @@ const install = function(Vue) {
if
(
typeof
window
!==
'undefined'
&&
window
.
Vue
)
{
if
(
typeof
window
!==
'undefined'
&&
window
.
Vue
)
{
install
(
window
.
Vue
)
install
(
window
.
Vue
)
}
}
export
{
GLExternal
,
GLButton
,
GLDialog
,
GLTable
}
export
{
GLExternal
,
GLButton
,
GLDialog
,
GLTable
,
Table
,
TableColumn
}
export
default
{
export
default
{
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
install
install
...
...
src/plugins/element.js
View file @
aec1ff5
import
Vue
from
'vue'
import
Vue
from
'vue'
// import 'element-ui/lib/theme-chalk/index.css'
// import 'element-ui/lib/theme-chalk/index.css'
import
{
Button
,
ButtonGroup
,
Loading
,
Table
,
Input
,
Form
,
FormItem
}
from
'element-ui'
import
{
Button
,
ButtonGroup
,
Loading
,
Input
,
Form
,
FormItem
}
from
'element-ui'
Vue
.
use
(
Loading
)
Vue
.
use
(
Loading
)
Vue
.
use
(
Button
)
Vue
.
use
(
Button
)
Vue
.
use
(
ButtonGroup
)
Vue
.
use
(
ButtonGroup
)
Vue
.
use
(
Table
)
//
Vue.use(Table)
Vue
.
use
(
Input
)
Vue
.
use
(
Input
)
Vue
.
use
(
Form
)
Vue
.
use
(
Form
)
Vue
.
use
(
FormItem
)
Vue
.
use
(
FormItem
)
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment