Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
meet
Project
Project
Details
Activity
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
wangqinghua
meet
Commits
6e350e02
Commit
6e350e02
authored
Mar 19, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
0864042e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
11 deletions
+65
-11
intentionDialog.vue
src/components/intentionDialog.vue
+34
-1
router.js
src/router.js
+1
-1
attend.vue
src/views/attend.vue
+1
-2
intention.vue
src/views/intention.vue
+10
-3
meetList.vue
src/views/meetList.vue
+14
-4
meetManage.vue
src/views/meetManage.vue
+5
-0
No files found.
src/components/intentionDialog.vue
View file @
6e350e02
<!--编辑意向-->
<
template
>
<div
class=
"intentionDialog"
>
<el-dialog
:title=
"dialogTitle"
:visible
.
sync=
"dialogFormVisible"
>
...
...
@@ -9,7 +10,19 @@
<el-input
v-model=
"form.name2"
autocomplete=
"off"
></el-input>
</el-form-item>
<el-form-item
label=
"相关附件"
:label-width=
"formLabelWidth"
>
<el-input
v-model=
"form.name5"
autocomplete=
"off"
></el-input>
<el-upload
class=
"upload-demo"
action=
"https://jsonplaceholder.typicode.com/posts/"
:on-preview=
"handlePreview"
:on-remove=
"handleRemove"
:before-remove=
"beforeRemove"
multiple
:limit=
"3"
:on-exceed=
"handleExceed"
:file-list=
"fileList"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
</el-upload>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -25,11 +38,31 @@
name
:
"intention-dialog"
,
data
(){
return
{
fileList
:[],
form
:{
name1
:
""
,
name2
:
""
,
name3
:
""
,
},
dialogTitle
:
''
,
dialogFormVisible
:
false
,
formLabelWidth
:
"120px"
}
},
methods
:{
handleRemove
(
file
,
fileList
)
{
const
form
=
new
FormData
()
console
.
log
(
file
,
fileList
);
},
handlePreview
(
file
)
{
console
.
log
(
file
);
},
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
`当前限制选择 3 个文件,本次选择了
${
files
.
length
}
个文件,共选择了
${
files
.
length
+
fileList
.
length
}
个文件`
);
},
beforeRemove
(
file
,
fileList
)
{
return
this
.
$confirm
(
`确定移除
${
file
.
name
}
?`
);
},
showDialog
(){
this
.
dialogTitle
=
"添加意向"
this
.
dialogFormVisible
=
true
...
...
src/router.js
View file @
6e350e02
...
...
@@ -52,7 +52,7 @@ router.beforeEach((to,from,next)=>{
next
();
}
else
{
next
({
path
:
'/
login
'
,
path
:
'/
meetList
'
,
query
:{
redirect
:
to
.
fullPath
}
})
}
...
...
src/views/attend.vue
View file @
6e350e02
...
...
@@ -12,8 +12,7 @@
<el-table-column
type=
"index"
label=
"代码显示顺序"
width=
"200"
:index=
"index"
>
width=
"200"
>
</el-table-column>
<el-table-column
prop=
"name"
...
...
src/views/intention.vue
View file @
6e350e02
...
...
@@ -57,9 +57,9 @@
prop=
"address"
label=
"操作"
>
<template
slot-scope=
"scope"
>
<span
class=
"font-size-20"
>
<i
class=
"el-icon-edit-outline margin-right-10"
></i>
<i
class=
"el-icon-view margin-right-10"
></i>
<span
class=
"font-size-20
pointer
"
>
<i
@
click=
"handleEdit(scope.row)"
class=
"el-icon-edit-outline margin-right-10"
></i>
<i
@
click=
"handleDelete(scope.row)"
class=
"el-icon-view margin-right-10"
></i>
<i
class=
"el-icon-delete"
></i>
</span>
</
template
>
...
...
@@ -77,11 +77,15 @@
</el-pagination>
</div>
</div>
<intention-dialog
ref=
"intentionDialog"
></intention-dialog>
</div>
</template>
<
script
>
import
IntentionDialog
from
"../components/intentionDialog"
;
export
default
{
components
:
{
IntentionDialog
},
name
:
"intention"
,
data
()
{
return
{
...
...
@@ -129,6 +133,9 @@
},
handleCurrentChange
()
{
},
handleEdit
(
row
){
this
.
$refs
.
intentionDialog
.
showDialog
()
}
}
}
...
...
src/views/meetList.vue
View file @
6e350e02
...
...
@@ -47,11 +47,9 @@
label=
"操作"
>
<template
slot-scope=
"scope"
>
<span
class=
"font-size-20"
>
<router-link
to=
"/meetManage"
>
<i
class=
"el-icon-edit-outline margin-right-10"
></i>
</router-link>
<i
@
click=
"handleEdit(scope.row)"
class=
"el-icon-edit-outline margin-right-10"
></i>
<i
class=
"el-icon-view margin-right-10"
></i>
<i
class=
"el-icon-delete"
></i>
<i
@
click=
"handleDelete(scope.row)"
class=
"el-icon-delete"
></i>
</span>
</
template
>
</el-table-column>
...
...
@@ -121,9 +119,21 @@
},
handleCurrentChange
(){},
//去编辑页面
handleEdit
(
row
){
this
.
$router
.
push
({
path
:
'/meetManage'
,
query
:{
item
:
row
}
})
},
//删除
handleDelete
(
row
){
}
}
}
</
script
>
<
style
scoped
>
...
...
src/views/meetManage.vue
View file @
6e350e02
...
...
@@ -154,6 +154,7 @@
data
(){
return
{
input1
:
""
,
item
:
""
,
options
:[
{
label
:
"绝密"
,
value
:
"1"
},
{
label
:
"机密"
,
value
:
"2"
},
...
...
@@ -196,6 +197,10 @@
}],
}
},
created
(){
this
.
item
=
this
.
$route
.
query
.
item
console
.
log
(
this
.
item
)
},
methods
:{
showDialog
(){
this
.
$refs
.
selectIntentionDialog
.
showDialog
()
...
...
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