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
dcf8f37d
Commit
dcf8f37d
authored
Dec 15, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
efa544ef
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
203 additions
and
341 deletions
+203
-341
index.js
src/api/system/index.js
+36
-0
stage-form.vue
src/components/system/stage-form.vue
+95
-0
stage.vue
src/pages/system/stage.vue
+72
-341
No files found.
src/api/system/index.js
View file @
dcf8f37d
...
...
@@ -443,3 +443,39 @@ export function GetClassPlanStatistical(data) {
});
}
/**
* 获取客户阶段管理列表
*/
export
function
GetStageList
(
data
)
{
return
request
({
url
:
'/CustomerStudent/GetStageList'
,
method
:
'post'
,
data
});
}
/**
* 新增修改客户阶段
*/
export
function
SetStage
(
data
)
{
return
request
({
url
:
'/CustomerStudent/SetStage'
,
method
:
'post'
,
data
});
}
/**
* 删除客户阶段
*/
export
function
RemoveStage
(
data
)
{
return
request
({
url
:
'/CustomerStudent/RemoveStage'
,
method
:
'post'
,
data
});
}
src/components/system/stage-form.vue
0 → 100644
View file @
dcf8f37d
<
template
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 400px;max-width:400px;"
>
<q-card-section>
<div
class=
"text-h6"
>
{{
optionTitle
}}
</div>
</q-card-section>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
maxlength=
"30"
:dense=
"false"
v-model=
"objOption.StageName"
ref=
"StageName"
class=
"col-12 q-pb-lg"
label=
"阶段名称"
:rules=
"[val => !!val || '请填写阶段名称']"
/>
</div>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.No"
ref=
"No"
class=
"col-12 q-pb-lg"
label=
"编号"
@
keyup
.
native=
"checkInteger(objOption,'No')"
/>
</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=
"closeSaveForm"
/>
<q-btn
label=
"立即提交"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveLoading"
@
click=
"saveStage"
/>
</q-card-actions>
</q-card>
</q-dialog>
</
template
>
<
script
>
import
{
SetStage
}
from
'../../api/system/index'
export
default
{
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
persistent
:
true
,
saveLoading
:
false
,
objOption
:
{
Id
:
0
,
StageName
:
''
,
//阶段名称
No
:
1
//编号
},
optionTitle
:
""
,
}
},
mounted
()
{
this
.
initObj
();
},
methods
:
{
//初始化表单
initObj
()
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
Id
>
0
)
{
this
.
objOption
.
Id
=
this
.
saveObj
.
Id
;
this
.
objOption
.
StageName
=
this
.
saveObj
.
StageName
;
this
.
objOption
.
No
=
this
.
saveObj
.
No
;
this
.
optionTitle
=
"修改客户阶段信息"
}
else
{
this
.
optionTitle
=
"新增客户阶段信息"
this
.
objOption
.
Id
=
0
;
this
.
objOption
.
StageName
=
''
;
this
.
objOption
.
No
=
1
;
}
},
//关闭弹窗
closeSaveForm
()
{
this
.
$emit
(
'close'
)
},
//保存菜单
saveStage
()
{
this
.
$refs
.
StageName
.
validate
();
if
(
!
this
.
$refs
.
StageName
.
hasError
)
{
this
.
saveLoading
=
true
SetStage
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveLoading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据保存成功!'
,
position
:
'top'
})
this
.
$emit
(
"success"
)
this
.
closeSaveForm
()
}
})
}
}
}
}
</
script
>
src/pages/system/stage.vue
View file @
dcf8f37d
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