Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
work-log
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
高宇
work-log
Commits
ca18ced2
Commit
ca18ced2
authored
Apr 24, 2019
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 bug;
parent
7e6a265a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
9 deletions
+19
-9
list.vue
src/components/workLog/list.vue
+5
-2
workLogOfClient.vue
src/components/workLog/logOfClient/workLogOfClient.vue
+6
-2
addLog.vue
src/components/workLog/work/addLog.vue
+1
-1
editLog.vue
src/components/workLog/work/editLog.vue
+1
-1
workLogListForm.vue
src/components/workLog/workLogListForm.vue
+6
-3
No files found.
src/components/workLog/list.vue
View file @
ca18ced2
...
...
@@ -68,7 +68,7 @@
<img
v-for=
"(source, index) in images"
:key=
"index"
:src=
"source"
class=
"image"
>
</div>
<side-popup
ref=
"sidePopup"
:title=
"operationTitle"
>
<component
:is=
"operationPage"
:ref=
"operationPage"
@
close=
"
close
"
></component>
<component
:is=
"operationPage"
:ref=
"operationPage"
@
close=
"
getList =>
{close(getList)}
">
</component>
</side-popup>
</section>
</
template
>
...
...
@@ -200,8 +200,11 @@
this
.
$refs
.
sidePopup
.
show
(
this
.
$refs
[
this
.
operationPage
].
init
(
row
.
id
))
})
},
close
()
{
close
(
getList
)
{
this
.
$refs
.
sidePopup
.
close
()
if
(
getList
)
{
this
.
getList
()
}
},
delLog
(
id
)
{
this
.
$confirm
(
'确认删除吗?'
,
'提示'
).
then
(()
=>
{
...
...
src/components/workLog/logOfClient/workLogOfClient.vue
View file @
ca18ced2
...
...
@@ -58,7 +58,7 @@
</div>
</div>
<side-popup
ref=
"sidePopup"
:title=
"operationTitle"
>
<component
:is=
"operationPage"
:ref=
"operationPage"
@
close=
"
close
"
></component>
<component
:is=
"operationPage"
:ref=
"operationPage"
@
close=
"
getList =>
{close(getList)}
">
</component>
</side-popup>
</section>
</
template
>
...
...
@@ -74,6 +74,7 @@
import
clickOutside
from
'@/lib/bind'
import
addLog
from
'../work/addLog'
import
editLog
from
'../work/editLog'
export
default
{
name
:
''
,
data
()
{
...
...
@@ -171,8 +172,11 @@
this
.
$refs
.
sidePopup
.
show
(
this
.
$refs
[
this
.
operationPage
].
init
(
row
.
id
))
})
},
close
()
{
close
(
getList
)
{
this
.
$refs
.
sidePopup
.
close
()
if
(
getList
)
{
this
.
getList
()
}
},
delLog
(
id
)
{
this
.
$confirm
(
'确认删除吗?'
,
'提示'
).
then
(()
=>
{
...
...
src/components/workLog/work/addLog.vue
View file @
ca18ced2
...
...
@@ -53,7 +53,7 @@
}).
then
(()
=>
{
this
.
saveFun
(
Object
.
assign
({},
subData
,
{
'WorkLogs[is_draft]'
:
1
}))
}).
catch
(
_
=>
{
this
.
saveFun
(
subData
)
this
.
saveFun
(
Object
.
assign
({},
subData
,
{
'WorkLogs[is_draft]'
:
0
})
)
})
}
else
{
this
.
saveFun
(
subData
)
...
...
src/components/workLog/work/editLog.vue
View file @
ca18ced2
...
...
@@ -52,7 +52,7 @@
}).
then
(()
=>
{
this
.
saveFun
(
Object
.
assign
({},
subData
,
{
'WorkLogs[is_draft]'
:
1
}))
}).
catch
(
_
=>
{
this
.
saveFun
(
subData
)
this
.
saveFun
(
Object
.
assign
({},
subData
,
{
'WorkLogs[is_draft]'
:
0
})
)
})
}
else
{
this
.
saveFun
(
subData
)
...
...
src/components/workLog/workLogListForm.vue
View file @
ca18ced2
...
...
@@ -62,12 +62,13 @@
// this.$refs['elCasc' + key][0].menuVisible = false
},
setCascader
(
item
,
key
)
{
console
.
log
(
item
.
cascader
)
if
(
item
.
cascader
.
length
===
1
)
{
this
.
clientForm
[
item
.
key
]
=
item
.
cascader
[
0
]
this
.
clientForm
[
item
.
itemKey
]
=
''
}
else
if
(
item
.
cascader
.
length
===
2
)
{
this
.
clientForm
[
item
.
itemKey
]
=
item
.
cascader
[
0
]
this
.
clientForm
[
item
.
key
]
=
item
.
cascader
[
1
]
this
.
clientForm
[
item
.
itemKey
]
=
item
.
cascader
[
1
]
this
.
clientForm
[
item
.
key
]
=
item
.
cascader
[
0
]
}
else
{
this
.
clientForm
[
item
.
itemKey
]
=
''
this
.
clientForm
[
item
.
key
]
=
''
...
...
@@ -99,7 +100,9 @@
$
(
document
).
ready
(()
=>
{
$
(
document
).
on
(
'mouseleave'
,
'.el-cascader-menus'
,
()
=>
{
Object
.
keys
(
_this
.
$refs
).
forEach
(
item
=>
{
if
(
_this
.
$refs
[
item
])
{
_this
.
$refs
[
item
][
0
].
menuVisible
=
false
}
})
})
})
...
...
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