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
71b09883
Commit
71b09883
authored
Oct 24, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev
parents
b361dc6b
d8accb64
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
45 deletions
+179
-45
src/components/wangE.vue
src/components/wangE.vue
+5
-5
src/components/wangEBd.vue
src/components/wangEBd.vue
+5
-5
src/pages/technical-support/answer-center/detail.vue
src/pages/technical-support/answer-center/detail.vue
+130
-33
src/pages/technical-support/answer-center/edit.vue
src/pages/technical-support/answer-center/edit.vue
+39
-2
No files found.
src/components/wangE.vue
View file @
71b09883
...
@@ -66,13 +66,13 @@ export default {
...
@@ -66,13 +66,13 @@ export default {
this
.
editor
=
new
E
(
this
.
$refs
.
toolbar
);
this
.
editor
=
new
E
(
this
.
$refs
.
toolbar
);
this
.
editor
.
config
.
uploadImgShowBase64
=
false
;
// base 64 存储图片
this
.
editor
.
config
.
uploadImgShowBase64
=
false
;
// base 64 存储图片
this
.
editor
.
config
.
uploadImgServer
=
this
.
editor
.
config
.
uploadImgServer
=
"
/
tp-jiwei-pcsvc/display/cigApi/common/uploadFile
"
;
// 配置服务器端地址
"
/
apaas/static/image/upload
"
;
// 配置服务器端地址
this
.
editor
.
config
.
uploadImgHeaders
=
{};
// 自定义 header
this
.
editor
.
config
.
uploadImgHeaders
=
{};
// 自定义 header
this
.
editor
.
config
.
uploadFileName
=
"
file
"
;
// 后端接受上传文件的参数名
this
.
editor
.
config
.
uploadFileName
=
"
file
"
;
// 后端接受上传文件的参数名
//
this.editor.config.uploadImgMaxSize = 2 * 1024 * 1024; // 将图片大小限制为 2M
this
.
editor
.
config
.
uploadImgMaxSize
=
2
*
1024
*
1024
;
// 将图片大小限制为 2M
this
.
editor
.
config
.
uploadImgMaxLength
=
6
;
// 限制一次最多上传 3 张图片
this
.
editor
.
config
.
uploadImgMaxLength
=
6
;
// 限制一次最多上传 3 张图片
this
.
editor
.
config
.
uploadImgTimeout
=
3
*
60
*
1000
;
// 设置超时时间
this
.
editor
.
config
.
uploadImgTimeout
=
3
*
60
*
1000
;
// 设置超时时间
this
.
editor
.
config
.
uploadImgParams
=
{
category
:
"
图片
"
};
this
.
editor
.
config
.
uploadImgParams
=
{
directory
:
"
image
"
};
this
.
editor
.
config
.
uploadImgHooks
=
{
this
.
editor
.
config
.
uploadImgHooks
=
{
fail
:
(
xhr
,
editor
,
result
)
=>
{
fail
:
(
xhr
,
editor
,
result
)
=>
{
...
@@ -95,13 +95,13 @@ export default {
...
@@ -95,13 +95,13 @@ export default {
//循环插入图片
//循环插入图片
// for (let i = 0; i
<
1
;
i
++
)
{
// for (let i = 0; i
<
1
;
i
++
)
{
console
.
log
(
result
);
console
.
log
(
result
);
let
imgUrl
=
"
/tp-jiwei-pcsvc/display
"
+
result
.
data
.
visitPath
;
let
imgUrl
=
result
.
data
;
console
.
log
(
imgUrl
);
console
.
log
(
imgUrl
);
insertImg
(
imgUrl
);
insertImg
(
imgUrl
);
// }
// }
}
}
};
};
this
.
editor
.
config
.
on
change
=
html
=>
{
this
.
editor
.
config
.
on
blur
=
html
=>
{
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
};
};
...
...
src/components/wangEBd.vue
View file @
71b09883
...
@@ -74,13 +74,13 @@ export default {
...
@@ -74,13 +74,13 @@ export default {
this
.
editor
=
new
E
(
this
.
$refs
.
toolbar
);
this
.
editor
=
new
E
(
this
.
$refs
.
toolbar
);
this
.
editor
.
config
.
uploadImgShowBase64
=
false
;
// base 64 存储图片
this
.
editor
.
config
.
uploadImgShowBase64
=
false
;
// base 64 存储图片
this
.
editor
.
config
.
uploadImgServer
=
this
.
editor
.
config
.
uploadImgServer
=
"
/
tp-jiwei-pcsvc/display/cigApi/common/uploadFile
"
;
// 配置服务器端地址
"
/
apaas/static/image/upload
"
;
// 配置服务器端地址
this
.
editor
.
config
.
uploadImgHeaders
=
{};
// 自定义 header
this
.
editor
.
config
.
uploadImgHeaders
=
{};
// 自定义 header
this
.
editor
.
config
.
uploadFileName
=
"
file
"
;
// 后端接受上传文件的参数名
this
.
editor
.
config
.
uploadFileName
=
"
file
"
;
// 后端接受上传文件的参数名
//
this.editor.config.uploadImgMaxSize = 2 * 1024 * 1024; // 将图片大小限制为 2M
this
.
editor
.
config
.
uploadImgMaxSize
=
2
*
1024
*
1024
;
// 将图片大小限制为 2M
this
.
editor
.
config
.
uploadImgMaxLength
=
6
;
// 限制一次最多上传 3 张图片
this
.
editor
.
config
.
uploadImgMaxLength
=
6
;
// 限制一次最多上传 3 张图片
this
.
editor
.
config
.
uploadImgTimeout
=
3
*
60
*
1000
;
// 设置超时时间
this
.
editor
.
config
.
uploadImgTimeout
=
3
*
60
*
1000
;
// 设置超时时间
this
.
editor
.
config
.
uploadImgParams
=
{
category
:
"
图片
"
};
this
.
editor
.
config
.
uploadImgParams
=
{
directory
:
"
image
"
};
this
.
editor
.
config
.
uploadImgHooks
=
{
this
.
editor
.
config
.
uploadImgHooks
=
{
fail
:
(
xhr
,
editor
,
result
)
=>
{
fail
:
(
xhr
,
editor
,
result
)
=>
{
...
@@ -103,7 +103,7 @@ export default {
...
@@ -103,7 +103,7 @@ export default {
//循环插入图片
//循环插入图片
// for (let i = 0; i
<
1
;
i
++
)
{
// for (let i = 0; i
<
1
;
i
++
)
{
console
.
log
(
result
);
console
.
log
(
result
);
let
imgUrl
=
"
/tp-jiwei-pcsvc/display
"
+
result
.
data
.
visitPath
;
let
imgUrl
=
result
.
data
;
console
.
log
(
imgUrl
);
console
.
log
(
imgUrl
);
insertImg
(
imgUrl
);
insertImg
(
imgUrl
);
// }
// }
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
this
.
editor
.
config
.
menus
=
this
.
menu
this
.
editor
.
config
.
menus
=
this
.
menu
}
}
this
.
editor
.
config
.
showFullScreen
=
this
.
full
this
.
editor
.
config
.
showFullScreen
=
this
.
full
this
.
editor
.
config
.
on
change
=
html
=>
{
this
.
editor
.
config
.
on
blur
=
html
=>
{
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
info_
=
html
;
// 绑定当前逐渐地值
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
this
.
$emit
(
"
change
"
,
this
.
info_
);
// 将内容同步到父组件中
};
};
...
...
src/pages/technical-support/answer-center/detail.vue
View file @
71b09883
This diff is collapsed.
Click to expand it.
src/pages/technical-support/answer-center/edit.vue
View file @
71b09883
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</div>
</div>
<div
class=
"detail_edit"
>
<div
class=
"detail_edit"
>
<wang-e-bd
class=
"editbox"
v-model=
"editstr"
:menu=
"menu"
:full=
"false"
></wang-e-bd>
<wang-e-bd
class=
"editbox"
v-model=
"editstr"
:menu=
"menu"
:full=
"false"
></wang-e-bd>
<div
class=
"pubilc"
><img
src=
"../../../assets/imgs/jszc_ic_fabu.png"
alt=
""
>
发表
</div>
<div
class=
"pubilc"
@
click=
"add_question"
><img
src=
"../../../assets/imgs/jszc_ic_fabu.png"
alt=
""
>
发表
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -35,6 +35,7 @@ export default {
...
@@ -35,6 +35,7 @@ export default {
'
video
'
'
video
'
],
],
editstr
:
''
,
editstr
:
''
,
click_flag
:
true
,
};
};
},
},
watch
:
{
watch
:
{
...
@@ -50,7 +51,43 @@ export default {
...
@@ -50,7 +51,43 @@ export default {
},
},
methods
:
{
methods
:
{
add_question
(){
if
(
!
this
.
click_flag
){
return
}
setTimeout
(()
=>
{
if
(
this
.
title
){
}
else
{
this
.
$message
.
error
(
'
请填写标题
'
)
return
}
if
(
this
.
editstr
){
}
else
{
this
.
$message
.
error
(
'
请填写内容
'
)
return
}
this
.
click_flag
=
false
this
.
$http
.
post
(
`/apaas/support/qa/question/create`
,{
title
:
this
.
title
,
content
:
this
.
editstr
}
).
then
((
res
)
=>
{
this
.
click_flag
=
true
this
.
title
=
''
this
.
editstr
=
''
if
(
res
.
data
.
success
){
this
.
$message
.
success
(
'
添加成功
'
)
this
.
$router
.
push
(
'
/technical_support/answer_center/list
'
)
}
else
{
this
.
$message
.
error
(
'
添加失败
'
)
}
})
},
100
)
}
},
},
};
};
</
script
>
</
script
>
...
...
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