Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
aad7f7c8
Commit
aad7f7c8
authored
Apr 30, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加模板修改
parent
6e20d99b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
4 deletions
+100
-4
templateEdit.vue
src/components/sallCenter/templateEdit.vue
+23
-0
templateManage.vue
src/components/sallCenter/templateManage.vue
+72
-3
index.js
src/router/index.js
+5
-1
No files found.
src/components/sallCenter/templateEdit.vue
0 → 100644
View file @
aad7f7c8
<
template
>
<div>
123
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
};
},
created
()
{
},
methods
:
{
},
mounted
()
{
}
};
</
script
>
src/components/sallCenter/templateManage.vue
View file @
aad7f7c8
<
style
>
.templateManage
.template_comheader
{
padding
:
13px
20px
;
border-bottom
:
1px
solid
#EBEEF5
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
background
:
#fff
;
}
.templateManage
.template_comheader
>
div
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
flex-direction
:
row
;
}
.templateManage
.temp_content
{
margin-top
:
10px
;
background
:
#fff
;
padding
:
20px
;
}
.templateManage
.temp_imgStyle
{
display
:
inline-block
;
margin-right
:
10px
;
}
</
style
>
<
template
>
<div>
123
<div
class=
"templateManage"
>
<div
class=
"template_comheader"
>
<div>
<span>
模板管理
</span>
<el-button
type=
"primary"
size=
"small"
@
click=
"CommonJump('templateEdit')"
>
添加模板
</el-button>
</div>
</div>
<div
class=
"temp_content"
>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"ID"
label=
"ID"
></el-table-column>
<el-table-column
prop=
"name"
label=
"模板名称"
></el-table-column>
<el-table-column
prop=
"date"
label=
"创建时间"
></el-table-column>
<el-table-column
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
src=
"../../assets/img/setup/edit.png"
alt=
""
class=
"temp_imgStyle"
@
click=
"edit(scope.row)"
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
src=
"../../assets/img/setup/del.png"
alt=
""
class=
"temp_imgStyle"
@
click=
"delRow(scope.row)"
>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
</
template
>
\ No newline at end of file
</template>
<
script
>
export
default
{
data
()
{
return
{
tableData
:
[{
ID
:
'3542'
,
name
:
'微途测试'
,
date
:
'2020-04-27 19:20:08'
,
}]
};
},
created
()
{
},
methods
:
{
},
mounted
()
{
}
};
</
script
>
src/router/index.js
View file @
aad7f7c8
...
...
@@ -66,10 +66,14 @@ export default new Router({
path
:
'/Ftemplate'
,
//DIY装修
name
:
'Ftemplate'
,
component
:
resolve
=>
require
([
'@/components/Ftemplate'
],
resolve
),
children
:[{
children
:[{
//模板管理
path
:
'/templateManage'
,
name
:
'templateManage'
,
component
:
resolve
=>
require
([
'@/components/sallCenter/templateManage'
],
resolve
),
},{
//添加 修改模板
path
:
'/templateEdit'
,
name
:
'templateEdit'
,
component
:
resolve
=>
require
([
'@/components/sallCenter/templateEdit'
],
resolve
),
}]
},
{
...
...
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