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
15545c98
Commit
15545c98
authored
Apr 05, 2019
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成工作日志;
parent
a5056a12
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
scheduleItem.vue
src/components/common/scheduleItem.vue
+1
-1
workLogOfClient.vue
src/components/workLog/logOfClient/workLogOfClient.vue
+3
-6
schedulePagenation.vue
src/components/workLog/schedulePagenation.vue
+8
-3
operationWorkLog.vue
src/components/workLog/work/operationWorkLog.vue
+6
-6
No files found.
src/components/common/scheduleItem.vue
View file @
15545c98
...
...
@@ -112,7 +112,7 @@
let
obj
=
{
name
:
'ofClient'
,
params
:
{
i
d
:
item
.
client_id
clientI
d
:
item
.
client_id
}
}
return
obj
...
...
src/components/workLog/logOfClient/workLogOfClient.vue
View file @
15545c98
...
...
@@ -47,8 +47,7 @@
<Pagenation
@
update:pager=
"pager =>
{updatePage(pager)}"
:pager.sync="pagenation"
:total="totalcount"
v-if="totalcount > pagenation.pagesize">
:total="totalcount">
</Pagenation>
</div>
</div>
...
...
@@ -82,8 +81,7 @@
page
:
1
},
totalcount
:
0
,
tableList
:
[],
options
:
[]
tableList
:
[]
}
},
components
:
{
...
...
@@ -96,7 +94,7 @@
this
.
$router
.
push
({
name
:
'workLogEdit'
,
params
:
{
id
:
row
.
id
}})
},
addWorkLog
()
{
this
.
$router
.
push
({
name
:
'workLogClientAdd'
,
params
:
{
i
d
:
this
.
$route
.
params
.
id
}})
this
.
$router
.
push
({
name
:
'workLogClientAdd'
,
params
:
{
clientI
d
:
this
.
$route
.
params
.
id
}})
},
updatePage
(
pager
)
{
Object
.
assign
(
this
.
pagenation
,
pager
)
...
...
@@ -126,7 +124,6 @@
id
:
this
.
$route
.
params
.
id
}
}).
then
(
res
=>
{
this
.
options
=
res
.
options
Object
.
keys
(
res
.
model
).
forEach
(
item
=>
{
this
.
$set
(
this
.
model
,
item
,
res
.
model
[
item
])
})
...
...
src/components/workLog/schedulePagenation.vue
View file @
15545c98
<
template
>
<section
class=
"pull-right"
>
<el-pagination
v-if=
"total >
0
"
class=
""
<section
class=
"pull-right
page-footer
"
>
<el-pagination
v-if=
"total >
pager.pagesize
"
class=
""
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
...
...
@@ -10,6 +10,9 @@
layout=
"total, prev, pager, next, jumper"
:total=
"total"
>
</el-pagination>
<span
v-else
>
总计
{{
total
}}
条 当前显示第1至第
{{
total
}}
条
</span>
</section>
</
template
>
<
script
>
...
...
@@ -50,5 +53,7 @@ export default {
}
</
script
>
<
style
scoped
>
.page-footer
{
padding
:
0
30px
;
}
</
style
>
src/components/workLog/work/operationWorkLog.vue
View file @
15545c98
...
...
@@ -219,25 +219,25 @@
this
.
setScenarioOption
(
this
.
WorkLogs
.
scenario_id
)
},
initAdd
()
{
if
(
this
.
$route
.
params
.
i
d
)
{
this
.
WorkLogs
.
client_id
=
this
.
$route
.
params
.
i
d
if
(
this
.
$route
.
params
.
clientI
d
)
{
this
.
WorkLogs
.
client_id
=
this
.
$route
.
params
.
clientI
d
requestAPI
(
api
.
getClient
,
{
data
:
{
id
:
this
.
$route
.
params
.
i
d
id
:
this
.
$route
.
params
.
clientI
d
}
}).
then
(
res
=>
{
this
.
searchText
=
res
.
model
.
name
})
requestAPI
(
api
.
searchContactByClientId
,
{
data
:
{
client_id
:
this
.
$route
.
params
.
i
d
client_id
:
this
.
$route
.
params
.
clientI
d
}
}).
then
(
res
=>
{
this
.
options
[
'WorkLogs[workLogContacts]'
].
value
=
res
})
requestAPI
(
api
.
searchProjectByClientId
,
{
data
:
{
client_id
:
this
.
$route
.
params
.
i
d
client_id
:
this
.
$route
.
params
.
clientI
d
}
}).
then
(
res
=>
{
this
.
options
[
'WorkLogs[project_id]'
].
value
=
res
...
...
@@ -253,6 +253,7 @@
this
.
$set
(
this
.
options
,
key
,
res
.
options
[
key
])
})
this
.
$nextTick
(()
=>
{
// 设置级联默认值
this
.
WorkLogs
.
scenario_id
=
1
this
.
setScenarioOption
(
1
)
})
...
...
@@ -265,7 +266,6 @@
}
}).
then
(
res
=>
{
Object
.
keys
(
res
.
options
).
forEach
(
item
=>
{
console
.
log
(
res
.
options
[
item
])
if
(
res
.
options
[
item
].
value
)
{
res
.
options
[
item
].
value
.
forEach
(
i
=>
{
if
(
i
.
child
)
{
...
...
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