Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
56658a22
authored
Sep 07, 2019
by
hanjixin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list
parent
3ac7aa89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
9 deletions
+26
-9
src/views/template/template-list.vue
+26
-9
No files found.
src/views/template/template-list.vue
View file @
56658a22
...
@@ -102,17 +102,36 @@
...
@@ -102,17 +102,36 @@
<el-dialog :title="
textMap
[
dialogStatus
]
" :visible.sync="
dialogFormVisible
">
<el-dialog :title="
textMap
[
dialogStatus
]
" :visible.sync="
dialogFormVisible
">
<el-form ref="
dataForm
" :rules="
rules
" :model="
temp
" label-position="
left
" label-width="
70
px
" style="
width
:
400
px
;
margin
-
left
:
50
px
;
">
<el-form ref="
dataForm
" :rules="
rules
" :model="
temp
" label-position="
left
" label-width="
70
px
" style="
width
:
400
px
;
margin
-
left
:
50
px
;
">
<el-form-item label="
Type
" prop="
type
">
<el-form-item label="
模板类型
" prop="
type
">
<el-select v-model="
temp
.
type
" class="
filter
-
item
" placeholder="
Please
select
">
<el-select v-model="
temp
.
type
" class="
filter
-
item
" placeholder="
Please
select
">
<el-option v-for="
item
in
calendarTypeOptions
" :key="
item
.
key
" :label="
item
.
display_name
" :value="
item
.
key
" />
<el-option v-for="
item
in
calendarTypeOptions
" :key="
item
.
key
" :label="
item
.
display_name
" :value="
item
.
key
" />
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item label="
Date
" prop="
timestamp
">
<el-form-item label="
模板标签
" prop="
type
">
<el-date-picker v-model="
temp
.
timestamp
" type="
datetime
" placeholder="
Please
pick
a
date
" />
<el-select v-model="
temp
.
type
" class="
filter
-
item
" placeholder="
Please
select
">
<el-option v-for="
item
in
calendarTypeOptions
" :key="
item
.
key
" :label="
item
.
display_name
" :value="
item
.
key
" />
</el-select>
</el-form-item>
</el-form-item>
<el-form-item label="
Title
" prop="
title
">
<el-form-item label="
模板名称
" prop="
title
">
<el-input v-model="
temp
.
title
" />
<el-input v-model="
temp
.
title
" />
</el-form-item>
</el-form-item>
<el-form-item label="
模板详情
">
<el-input v-model="
temp
.
remark
" :autosize="
{
minRows
:
2
,
maxRows
:
4
}
" type="
textarea
" placeholder="
Please
input
" />
</el-form-item>
<el-form-item label="
适用设备
" prop="
type
">
<el-select v-model="
temp
.
type
" class="
filter
-
item
" placeholder="
Please
select
">
<el-option v-for="
item
in
calendarTypeOptions
" :key="
item
.
key
" :label="
item
.
display_name
" :value="
item
.
key
" />
</el-select>
</el-form-item>
<el-form-item label="
显示方式
" prop="
type
">
<el-select v-model="
temp
.
type
" class="
filter
-
item
" placeholder="
Please
select
">
<el-option v-for="
item
in
calendarTypeOptions
" :key="
item
.
key
" :label="
item
.
display_name
" :value="
item
.
key
" />
</el-select>
</el-form-item>
<el-form-item label="
Date
" prop="
timestamp
">
<el-date-picker v-model="
temp
.
timestamp
" type="
datetime
" placeholder="
Please
pick
a
date
" />
</el-form-item>
<el-form-item label="
Status
">
<el-form-item label="
Status
">
<el-select v-model="
temp
.
status
" class="
filter
-
item
" placeholder="
Please
select
">
<el-select v-model="
temp
.
status
" class="
filter
-
item
" placeholder="
Please
select
">
<el-option v-for="
item
in
statusOptions
" :key="
item
" :label="
item
" :value="
item
" />
<el-option v-for="
item
in
statusOptions
" :key="
item
" :label="
item
" :value="
item
" />
...
@@ -121,16 +140,14 @@
...
@@ -121,16 +140,14 @@
<el-form-item label="
Imp
">
<el-form-item label="
Imp
">
<el-rate v-model="
temp
.
importance
" :colors="
[
'#99A9BF'
,
'#F7BA2A'
,
'#FF9900'
]
" :max="
3
" style="
margin
-
top
:
8
px
;
" />
<el-rate v-model="
temp
.
importance
" :colors="
[
'#99A9BF'
,
'#F7BA2A'
,
'#FF9900'
]
" :max="
3
" style="
margin
-
top
:
8
px
;
" />
</el-form-item>
</el-form-item>
<el-form-item label="
Remark
">
<el-input v-model="
temp
.
remark
" :autosize="
{
minRows
:
2
,
maxRows
:
4
}
" type="
textarea
" placeholder="
Please
input
" />
</el-form-item>
</el-form>
</el-form>
<div slot="
footer
" class="
dialog
-
footer
">
<div slot="
footer
" class="
dialog
-
footer
">
<el-button @click="
dialogFormVisible
=
false
">
<el-button @click="
dialogFormVisible
=
false
">
Cancel
取消
</el-button>
</el-button>
<el-button type="
primary
" @click="
dialogStatus
===
'create'
?
createData
():
updateData
()
">
<el-button type="
primary
" @click="
dialogStatus
===
'create'
?
createData
():
updateData
()
">
Confirm
确定
</el-button>
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
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