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
206c638f
Commit
206c638f
authored
Dec 21, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8fd1e616
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
299 additions
and
0 deletions
+299
-0
index.js
src/api/system/index.js
+44
-0
customneed-form.vue
src/components/system/customneed-form.vue
+93
-0
customneed.vue
src/pages/system/customneed.vue
+158
-0
stuManageConfig.vue
src/pages/system/stuManageConfig.vue
+4
-0
No files found.
src/api/system/index.js
View file @
206c638f
...
...
@@ -600,4 +600,48 @@ export function RemoveChannel(data) {
method
:
'post'
,
data
});
}
/**
* 获取客户需求分页
*/
export
function
GetNeedsPage
(
data
)
{
return
request
({
url
:
'/CustomerStudent/GetNeedsPage'
,
method
:
'post'
,
data
});
}
/**
* 新增修改
*/
export
function
SetNeeds
(
data
)
{
return
request
({
url
:
'/CustomerStudent/SetNeeds'
,
method
:
'post'
,
data
});
}
/**
* 根据编号获取
*/
export
function
GetNeeds
(
data
)
{
return
request
({
url
:
'/CustomerStudent/GetNeeds'
,
method
:
'post'
,
data
});
}
/**
* 根据编号删除
*/
export
function
RemoveNeeds
(
data
)
{
return
request
({
url
:
'/CustomerStudent/RemoveNeeds'
,
method
:
'post'
,
data
});
}
\ No newline at end of file
src/components/system/customneed-form.vue
0 → 100644
View file @
206c638f
<
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.Name"
ref=
"Name"
class=
"col-12 q-pb-lg"
label=
"需求"
:rules=
"[val => !!val || '请填写需求']"
/>
</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=
"saveNeed"
/>
</q-card-actions>
</q-card>
</q-dialog>
</
template
>
<
script
>
import
{
SetNeeds
,
GetNeeds
}
from
'../../api/system/index'
export
default
{
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
persistent
:
true
,
saveLoading
:
false
,
objOption
:
{
Id
:
0
,
Name
:
''
,
},
optionTitle
:
""
,
}
},
mounted
()
{
this
.
initObj
();
},
methods
:
{
//初始化表单
initObj
()
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
Id
>
0
)
{
GetNeeds
({
Id
:
this
.
saveObj
.
Id
}).
then
(
res
=>
{
this
.
objOption
.
Id
=
this
.
saveObj
.
Id
;
this
.
objOption
.
Name
=
this
.
saveObj
.
Name
;
})
this
.
optionTitle
=
"修改客户需求"
}
else
{
this
.
optionTitle
=
"新增客户需求"
this
.
objOption
.
Id
=
0
;
this
.
objOption
.
Name
=
''
;
}
},
//关闭弹窗
closeSaveForm
()
{
this
.
$emit
(
'close'
)
},
//保存菜单
saveNeed
()
{
this
.
$refs
.
Name
.
validate
();
if
(
!
this
.
$refs
.
Name
.
hasError
)
{
this
.
saveLoading
=
true
SetNeeds
(
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/customneed.vue
0 → 100644
View file @
206c638f
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
客户需求
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增阶段"
@
click=
"addObj(null)"
/>
</div>
</
template
>
<
template
v-slot:body-cell-Group_Id=
"props"
>
<q-td
:props=
"props"
>
<div>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"addObj(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
class=
"q-mr-xs"
label=
"删除"
@
click=
"deletNeed(props.row.Id)"
/>
</div>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</div>
<customneed-form
v-if=
"isShowNeedForm"
:save-obj=
"customObj"
@
close=
"closestageForm"
@
success=
"refreshPage"
>
</customneed-form>
</div>
</template>
<
script
>
import
{
GetNeedsPage
,
RemoveNeeds
}
from
'../../api/system/index'
import
customneedForm
from
'../../components/system/customneed-form'
export
default
{
meta
:
{
title
:
"客户需求"
},
components
:
{
customneedForm
},
data
()
{
return
{
columns
:
[{
name
:
'Id'
,
label
:
'Id'
,
field
:
row
=>
row
.
Id
,
align
:
'left'
},{
name
:
'Name'
,
label
:
'需求'
,
field
:
'Name'
,
align
:
'left'
},{
name
:
'CreateByName'
,
label
:
'创建人'
,
align
:
'left'
,
field
:
'CreateByName'
},{
name
:
'CreateTime'
,
label
:
'创建时间'
,
align
:
'left'
,
field
:
'CreateTime'
},{
name
:
'Group_Id'
,
label
:
'操作'
,
field
:
'Group_Id'
}
],
msg
:{
pageIndex
:
1
,
pageSize
:
12
,
Name
:
""
,
rowsPerPage
:
12
},
dataList
:
[],
pageCount
:
0
,
loading
:
true
,
isShowNeedForm
:
false
,
customObj
:
{}
}
},
mounted
()
{
this
.
getList
()
},
methods
:
{
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
()
},
deletNeed
(
Id
)
{
let
delMsg
=
{
Id
:
Id
};
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
'是否确定该需求?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
RemoveNeeds
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'删除成功!'
,
position
:
'top'
})
this
.
getList
();
}
})
}).
onCancel
(()
=>
{
});
},
getList
()
{
this
.
loading
=
true
;
GetNeedsPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
Code
==
1
){
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}
})
},
closestageForm
()
{
this
.
isShowNeedForm
=
false
},
refreshPage
(){
this
.
getList
();
},
addObj
(
obj
){
if
(
obj
)
{
this
.
customObj
=
obj
}
else
{
this
.
customObj
=
null
}
this
.
isShowNeedForm
=
true
;
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
src/pages/system/stuManageConfig.vue
View file @
206c638f
...
...
@@ -11,11 +11,13 @@
<q-tab
:ripple=
"false"
:name=
"2"
label=
"客户类型"
/>
<q-tab
:ripple=
"false"
:name=
"3"
label=
"学习目的"
/>
<q-tab
:ripple=
"false"
:name=
"4"
label=
"收客渠道"
/>
<q-tab
:ripple=
"false"
:name=
"5"
label=
"客户需求"
></q-tab>
</q-tabs>
<stage
v-if=
"tabCheck==1"
></stage>
<cusType
v-if=
"tabCheck==2"
></cusType>
<aim
v-if=
"tabCheck==3"
></aim>
<channel
v-if=
"tabCheck==4"
></channel>
<customneed
v-if=
"tabCheck==5"
></customneed>
</div>
</
template
>
<
script
>
...
...
@@ -23,12 +25,14 @@ import stage from "./stage";
import
cusType
from
"./customType"
import
aim
from
'./studyAim'
import
channel
from
'./stuReceiveChannel'
import
customneed
from
'./customneed'
export
default
{
components
:
{
stage
,
cusType
,
aim
,
channel
,
customneed
},
data
()
{
return
{
...
...
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