Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
horse
Commits
5c3af45a
Commit
5c3af45a
authored
Nov 10, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c1f08ee4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
146 additions
and
2 deletions
+146
-2
MainLayout.vue
src/layouts/MainLayout.vue
+14
-0
customerField.vue
src/pages/customer/components/customerField.vue
+93
-0
customerSetup.vue
src/pages/customer/customerSetup.vue
+32
-0
groupingManage.vue
src/pages/drainage/groupingManage.vue
+2
-2
routes.ts
src/router/routes.ts
+5
-0
No files found.
src/layouts/MainLayout.vue
View file @
5c3af45a
...
...
@@ -72,6 +72,20 @@ const linksList = [
]
},
{
MenuId
:
11
,
MenuName
:
'客户管理'
,
MenuIcon
:
'school'
,
SubList
:
[
{
MenuId
:
11
-
1
,
MenuName
:
'客户设置'
,
MenuIcon
:
'school'
,
MenuUrl
:
'/customerSetup'
},
]
},
{
MenuId
:
2
,
MenuName
:
'数据看板'
,
...
...
src/pages/customer/components/customerField.vue
0 → 100644
View file @
5c3af45a
<
template
>
<div
class=
"q-pa-md customerField"
>
<table
class=
"payTable"
>
<thead>
<tr>
<th>
字段名称
</th>
<th>
字段类型
</th>
<th>
所属部门
</th>
<th>
是否启用
</th>
<th>
是否必填
</th>
<th
width=
"13%"
>
操作信息
</th>
<th
width=
"12%"
>
操作
</th>
<th
width=
"4%"
></th>
</tr>
</thead>
<tr
v-if=
"data && data.length==0"
>
<td
:colspan=
"8"
align=
"center"
>
暂无数据
</td>
</tr>
<!--
<tr
v-for=
"(item,index) in todos"
:key=
"index"
>
<td><span>
{{
item
.
content
}}
</span></td>
<td>
<span
v-if=
"item.IsSystem!=1"
>
{{
item
.
TypeName
}}
</span>
<span
v-if=
"item.IsSystem==1"
>
系统字段
</span>
</td>
<td><span>
{{
item
.
DeptName
}}
</span></td>
<td>
<q-toggle
v-if=
"item.IsLock==1"
v-model=
"item.Enable"
:true-value=
"1"
:false-value=
"2"
icon=
"lock"
disable
/>
<q-toggle
v-else
v-model=
"item.Enable"
:true-value=
"1"
:false-value=
"2"
@
input=
"godelete(item,1,index)"
/>
</td>
<td>
<q-toggle
v-model=
"item.Required"
:true-value=
"1"
:false-value=
"2"
@
input=
"godelete(item,2,index)"
/>
</td>
<td>
<div>
{{
item
.
UpdateByName
}}
</div>
<div>
{{
item
.
UpdateTime
}}
</div>
</td>
<td>
<q-btn
flat
size=
"xs"
icon=
"edit"
style=
"font-weight:400;color: #3FC4FF"
class=
"q-mr-xs"
label=
"编辑"
@
click=
"goedit(item)"
/>
<q-btn
v-if=
'item.IsDefault!=1'
flat
size=
"xs"
icon=
"delete"
color=
"negative"
class=
"q-mr-xs"
label=
"删除"
@
click=
"godelete(item,3,index)"
/>
</td>
<td>
<i
class=
"iconfont icon-weiyi"
style=
"font-size: 14px;color: #777;"
></i>
</td>
</tr>
-->
</table>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
reactive
,
computed
}
from
'vue'
import
{
Todo
,
Meta
}
from
'@/components/models'
export
default
defineComponent
({
setup
()
{
const
data
=
[]
return
{
data
}
}
})
</
script
>
<
style
>
.customerField
.payTable
{
width
:
100%
;
border-collapse
:
collapse
;
}
.customerField
.payTable
tr
th
{
background
:
#fff
;
height
:
40px
;
font-size
:
12px
;
font-weight
:
bold
;
color
:
#2D2D2D
;
background
:
#DDDEE0
;
}
.customerField
.payTable
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;
}
.customerField
.payTable
tr
td
{
font-size
:
13px
;
text-align
:
center
;
color
:
#2D2D2D
;
padding
:
10px
0
;
font-weight
:
bold
;
border-bottom
:
1px
solid
#E5E5E5
;
}
</
style
>
\ No newline at end of file
src/pages/customer/customerSetup.vue
0 → 100644
View file @
5c3af45a
<
template
>
<div
class=
"q-pa-md"
>
<q-page
padding
style=
"background: #FFF;border-radius: 10px;"
>
<q-tabs
v-model=
"tab"
dense
class=
"text-grey"
align=
"left"
active-color=
"primary"
indicator-color=
"primary"
narrow-indicator
>
<q-tab
name=
"yewumoshi"
label=
"业务模式"
/>
<q-tab
name=
"field"
label=
"客户字段"
/>
<q-tab
name=
"label"
label=
"标签"
/>
</q-tabs>
<div
v-if=
"tab=='field'"
>
<customerField></customerField>
</div>
</q-page>
</div>
</
template
>
<
script
lang=
"ts"
>
import
customerField
from
'./components/customerField.vue'
import
{
defineComponent
,
ref
}
from
'vue'
export
default
defineComponent
({
components
:
{
customerField
},
setup
()
{
return
{
tab
:
ref
(
'field'
)
}
}
})
</
script
>
src/pages/drainage/groupingManage.vue
View file @
5c3af45a
...
...
@@ -12,14 +12,14 @@
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:rows=
"rows"
:columns=
"columns"
row-key=
"name"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
>
<
!--
<template
v-slot:top=
"props"
>
<
template
v-slot:top=
'props'
>
<div
class=
"col-2 q-table__title"
>
分组列表
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增分组"
@
click=
"alert = true,addMsg.Name=''"
/>
</div>
</
template
>
-->
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"msg.pageCount"
:input=
"true"
@
input=
"changePage"
/>
...
...
src/router/routes.ts
View file @
5c3af45a
...
...
@@ -11,6 +11,11 @@ const routes: RouteRecordRaw[] = [
component
:
()
=>
import
(
'@/layouts/MainLayout.vue'
),
children
:
[{
path
:
''
,
component
:
()
=>
import
(
'@/pages/drainage/groupingManage.vue'
)
}]
},
{
//客户管理 客户设置
path
:
'/customerSetup'
,
component
:
()
=>
import
(
'@/layouts/MainLayout.vue'
),
children
:
[{
path
:
''
,
component
:
()
=>
import
(
'@/pages/customer/customerSetup.vue'
)
}]
},
{
path
:
'/auth/login'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment