Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
6b19bab5
Commit
6b19bab5
authored
Sep 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
65df7e45
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
282 additions
and
133 deletions
+282
-133
schedu.js
src/api/scheduling/schedu.js
+9
-3
visitorcreate-form.vue
src/components/schedul/visitorcreate-form.vue
+125
-0
visitorRecord.vue
src/pages/stuMan/visitorRecord.vue
+148
-130
No files found.
src/api/scheduling/schedu.js
View file @
6b19bab5
...
...
@@ -94,9 +94,6 @@ export function queryDutyWork_V2(data) {
})
}
//获取访客列表
export
function
queryVisitorPage
(
data
)
{
return
request
({
...
...
@@ -115,6 +112,15 @@ export function setVisitor(data) {
})
}
//修改访客创建人员
export
function
setVisitorCreateBy
(
data
)
{
return
request
({
url
:
'/DutyPlan/UpdateVisitorCreateBy'
,
method
:
'post'
,
data
})
}
//根据编号查询访客信息
export
function
queryVisitor
(
data
)
{
return
request
({
...
...
src/components/schedul/visitorcreate-form.vue
0 → 100644
View file @
6b19bab5
<
template
>
<q-dialog
v-model=
"persistent"
persistent
content-class=
"bg-grey-1"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 600px;max-width:600px;"
>
<q-card-section>
<div
class=
"text-h6"
>
{{
objOption
.
Id
>
0
?
"修改业务员"
:
"修改业务员"
}}
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"row wrap"
>
<q-select
filled
stack-label
:dense=
"false"
v-model=
"objOption.CreateBy"
:options=
"EmployeeList"
option-value=
"Id"
option-label=
"EmployeeName"
emit-value
map-options
label=
"业务员"
clearable
use-input
:rules=
"[(val) => !!val || '请选择业务员']"
@
filter=
"filterFn"
class=
"col-12"
>
<template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeVisitCreateForm"
/>
<q-btn
label=
"保存"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveVisitorCreateLoading"
@
click=
"saveVisitoryCreateBy"
/>
</q-card-actions>
</q-card>
</q-dialog>
</template>
<
script
>
import
{
setVisitorCreateBy
}
from
'../../api/scheduling/schedu'
import
{
queryEmployee
}
from
'../../api/users/user'
import
{
format
}
from
'quasar'
;
export
default
{
components
:
{},
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
persistent
:
true
,
objOption
:
{
Id
:
0
,
//编号
CreateBy
:
0
,
//创建人
},
EmployeeList
:
[],
allEmployeeListOption
:
[],
//
saveVisitorCreateLoading
:
false
};
},
created
()
{
this
.
getEmployeeList
();
},
mounted
()
{
console
.
log
(
"this.saveObj"
,
this
.
saveObj
)
if
(
this
.
saveObj
&&
this
.
saveObj
.
Id
>
0
)
{
this
.
objOption
.
Id
=
this
.
saveObj
.
Id
;
this
.
objOption
.
CreateBy
=
this
.
saveObj
.
CreateBy
;
}
},
methods
:
{
//获取员工列表
getEmployeeList
()
{
var
qMsg
=
{
Dept_Id
:
0
}
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
EmployeeList
=
res
.
Data
;
this
.
allEmployeeListOption
=
res
.
Data
;
}
})
},
//筛选员工
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
""
)
{
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
EmployeeList
)
);
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
EmployeeList
=
this
.
allEmployeeListOption
.
filter
(
(
v
)
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
});
},
//关闭弹窗
closeVisitCreateForm
()
{
this
.
$emit
(
"close"
);
this
.
persistent
=
false
;
},
//保存业务员
saveVisitoryCreateBy
()
{
this
.
saveVisitorCreateLoading
=
true
;
setVisitorCreateBy
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveVisitorCreateLoading
=
false
;
this
.
closeVisitCreateForm
();
this
.
$emit
(
'success'
);
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
})
})
},
}
};
</
script
>
src/pages/stuMan/visitorRecord.vue
View file @
6b19bab5
This diff is collapsed.
Click to expand it.
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