Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
f554af2a
Commit
f554af2a
authored
Oct 24, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ldx' into dev
parents
71b09883
adc8c9f9
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1721 additions
and
1168 deletions
+1721
-1168
src/assets/imgs/tool_ic_wenda.png
src/assets/imgs/tool_ic_wenda.png
+0
-0
src/components/new-com/apassTable.vue
src/components/new-com/apassTable.vue
+7
-2
src/components/new-com/inlineForm.vue
src/components/new-com/inlineForm.vue
+23
-0
src/components/new-com/tableBtn.vue
src/components/new-com/tableBtn.vue
+0
-8
src/pages/user/questions-answers/community.vue
src/pages/user/questions-answers/community.vue
+236
-67
src/pages/user/questions-answers/my-qa.vue
src/pages/user/questions-answers/my-qa.vue
+210
-27
src/pages/user/questions-answers/qa.vue
src/pages/user/questions-answers/qa.vue
+88
-0
src/request/api/user.js
src/request/api/user.js
+21
-1
src/router/index.js
src/router/index.js
+13
-5
yarn.lock
yarn.lock
+1123
-1058
No files found.
src/assets/imgs/tool_ic_wenda.png
0 → 100644
View file @
f554af2a
1.23 KB
src/components/new-com/apassTable.vue
View file @
f554af2a
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
>
</span>
>
</span>
<a
<a
v-else
v-else
class=
"
btn
"
class=
"
del_btn_a
"
:class=
"v.class || ''"
:class=
"v.class || ''"
:key=
"'btn_' + index + '_' + i"
:key=
"'btn_' + index + '_' + i"
@
click.stop=
"v.callback && v.callback(scope.row)"
@
click.stop=
"v.callback && v.callback(scope.row)"
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</div>
</div>
<div
v-else-if=
"item.type === 'button'"
class=
"row_action"
>
<div
v-else-if=
"item.type === 'button'"
class=
"row_action"
>
<a
<a
class=
"btn
warn
"
class=
"btn"
v-text=
"scope.row[item.prop]"
v-text=
"scope.row[item.prop]"
@
click.stop=
"item.callback && item.callback(scope.row)"
@
click.stop=
"item.callback && item.callback(scope.row)"
></a>
></a>
...
@@ -529,4 +529,9 @@ export default {
...
@@ -529,4 +529,9 @@ export default {
border-radius
:
10px
;
border-radius
:
10px
;
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.del_btn_a
{
font-weight
:
bold
;
color
:
#830f53
;
cursor
:
pointer
;
}
</
style
>
</
style
>
src/components/new-com/inlineForm.vue
View file @
f554af2a
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:clearable=
"false"
></el-date-picker>
></el-date-picker>
<el-select
<el-select
v-if=
"item.type == 'select'"
v-if=
"item.type == 'select'"
...
@@ -101,3 +103,24 @@ export default {
...
@@ -101,3 +103,24 @@ export default {
width
:
calc
(
100%
-
220px
);
width
:
calc
(
100%
-
220px
);
}
}
</
style
>
</
style
>
<
style
>
.from_content1
.el-input__inner
{
background-color
:
#f7f8f9
;
}
.el-date-editor.el-range-editor
.el-range-input
{
background-color
:
#f7f8f9
;
width
:
80px
;
}
.el-date-editor.el-range-editor
.el-range-separator
{
width
:
40px
;
position
:
relative
;
top
:
2px
;
}
.el-date-editor.el-range-editor
{
width
:
260px
;
padding
:
3px
10px
3px
15px
;
}
.el-date-editor
.el-range__icon
{
margin-right
:
8px
;
}
</
style
>
\ No newline at end of file
src/components/new-com/tableBtn.vue
View file @
f554af2a
...
@@ -85,11 +85,3 @@ export default {
...
@@ -85,11 +85,3 @@ export default {
bottom
:
-20px
;
bottom
:
-20px
;
}
}
</
style
>
</
style
>
<
style
>
.from_content1
.el-input__inner
{
background-color
:
#f7f8f9
;
}
.el-date-editor.el-range-editor
.el-range-input
{
background-color
:
#f7f8f9
;
}
</
style
>
\ No newline at end of file
src/pages/user/questions-answers/community.vue
View file @
f554af2a
This diff is collapsed.
Click to expand it.
src/pages/user/questions-answers/my-qa.vue
View file @
f554af2a
This diff is collapsed.
Click to expand it.
src/pages/user/questions-answers/qa.vue
0 → 100644
View file @
f554af2a
<
template
>
<div
class=
"fwgl_container"
>
<side-nav-bar
v-if=
"showNavbar"
title=
"问答中心管理"
:title-icon=
"require('@/assets/imgs/tool_ic_wenda.png')"
:nav-list=
"navList"
:title-path=
"navList[0] && navList[0].path"
></side-nav-bar>
<div
class=
"main_container"
>
<router-view
:key=
"'type_' + $route.params.type"
></router-view>
</div>
</div>
</
template
>
<
script
>
import
sideNavBar
from
"
@/components/side-nav-bar
"
;
export
default
{
components
:
{
sideNavBar
,
},
data
:
()
=>
({
userNav
:
[
{
name
:
"
提问列表
"
,
path
:
`/qa/questions`
,
},
{
name
:
"
回答列表
"
,
path
:
`/qa/answers`
,
},
],
navList
:
[],
showNavbar
:
false
,
}),
watch
:
{
"
$route.fullPath
"
(
path
)
{
this
.
initNavList
();
},
},
methods
:
{
initNavList
()
{
this
.
navList
=
this
.
userNav
;
},
},
mounted
()
{
this
.
$api
.
user
.
getNowUser
().
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
this
.
$store
.
commit
(
"
userInfofun
"
,
data
.
data
);
const
userLevel
=
this
.
$store
.
getters
.
level
;
if
(
userLevel
==
0
)
{
this
.
$message
({
message
:
`您没有问答中心管理模块的权限.`
,
type
:
"
warning
"
,
});
this
.
$router
.
push
(
`/index`
);
}
else
{
this
.
showNavbar
=
true
;
this
.
initNavList
();
}
}
});
},
};
</
script
>
<
style
scoped
>
.fwgl_container
{
height
:
calc
(
100vh
-
58px
);
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
stretch
;
}
.side_nav_bar
{
width
:
180px
;
flex-shrink
:
0
;
}
.main_container
{
width
:
calc
(
100%
-
180px
);
flex-grow
:
1
;
flex-shrink
:
1
;
background-color
:
#f6f7fb
;
overflow
:
auto
;
}
</
style
>
src/request/api/user.js
View file @
f554af2a
...
@@ -48,6 +48,26 @@ const user = {
...
@@ -48,6 +48,26 @@ const user = {
editUserPassword
(
params
)
{
editUserPassword
(
params
)
{
return
axios
.
post
(
`/apaas/backmgt/user/password/
${
params
.
id
}
`
,
qs
.
stringify
(
params
.
form
));
return
axios
.
post
(
`/apaas/backmgt/user/password/
${
params
.
id
}
`
,
qs
.
stringify
(
params
.
form
));
},
},
// QA
getQuestionList
(
params
)
{
return
axios
.
get
(
`/apaas/support/qa/question/list?search=
${
params
.
search
}
&style=
${
params
.
style
}
&create_user=
${
params
.
create_user
}
&start=
${
params
.
start
}
&end=
${
params
.
end
}
&limit=
${
params
.
limit
}
&page=
${
params
.
page
}
&order=
${
params
.
order
}
`
);
},
getAnswerList
(
params
)
{
return
axios
.
get
(
`/apaas/support/qa/answer/list?search=
${
params
.
search
}
&style=
${
params
.
style
}
&create_user=
${
params
.
create_user
}
&start=
${
params
.
start
}
&end=
${
params
.
end
}
&limit=
${
params
.
limit
}
&page=
${
params
.
page
}
`
);
},
getDeleteList
()
{
return
axios
.
get
(
`/apaas/support/qa/deleted`
);
},
delQuestions
(
params
)
{
return
axios
.
delete
(
`/apaas/support/qa/question/delete`
,
params
);
},
delAnswers
(
params
)
{
return
axios
.
delete
(
`/apaas/support/qa/answer/delete`
,
params
);
},
getUserQA
()
{
return
axios
.
get
(
`/apaas/support/qa/info`
)
}
}
}
export
default
user
;
export
default
user
;
\ No newline at end of file
src/router/index.js
View file @
f554af2a
...
@@ -419,22 +419,30 @@ export default new Router({
...
@@ -419,22 +419,30 @@ export default new Router({
component
:
()
=>
import
(
"
@/pages/user/order/order_detail
"
),
component
:
()
=>
import
(
"
@/pages/user/order/order_detail
"
),
},
},
{
{
path
:
"
/
user
/my_qa
"
,
// 我的问答
path
:
"
/
qa
/my_qa
"
,
// 我的问答
name
:
"
myQA
"
,
name
:
"
myQA
"
,
component
:
()
=>
import
(
"
@/pages/user/questions-answers/my-qa
"
),
component
:
()
=>
import
(
"
@/pages/user/questions-answers/my-qa
"
),
},
},
],
},
// 个人中心
{
path
:
"
/qa_management
"
,
// 问答中心管理
name
:
"
qaManagement
"
,
redirect
:
"
/qa/questions
"
,
component
:
()
=>
import
(
"
@/pages/user/questions-answers/qa
"
),
children
:
[
{
{
path
:
"
/
user
/questions
"
,
// 提问列表
path
:
"
/
qa
/questions
"
,
// 提问列表
name
:
"
questions
"
,
name
:
"
questions
"
,
component
:
()
=>
import
(
"
@/pages/user/questions-answers/community
"
),
component
:
()
=>
import
(
"
@/pages/user/questions-answers/community
"
),
},
},
{
{
path
:
"
/
user
/answers
"
,
// 回答列表
path
:
"
/
qa
/answers
"
,
// 回答列表
name
:
"
answers
"
,
name
:
"
answers
"
,
component
:
()
=>
import
(
"
@/pages/user/questions-answers/community
"
),
component
:
()
=>
import
(
"
@/pages/user/questions-answers/community
"
),
},
},
]
,
]
},
// 个人中心
},
{
{
path
:
"
/authority
"
,
// 权限管理
path
:
"
/authority
"
,
// 权限管理
name
:
"
authority
"
,
name
:
"
authority
"
,
...
...
yarn.lock
View file @
f554af2a
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