Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-admin-protocol-center
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-admin-protocol-center
提交
10e3d9e3
提交
10e3d9e3
编写于
8月 11, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化font-size
上级
284b7985
流水线
#37075
已失败 于阶段
变更
2
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
4 行删除
+12
-4
env-config.js
src/utils/env-config.js
+1
-1
create-protocol.vue
src/views/protocol/create-protocol.vue
+11
-3
未找到文件。
src/utils/env-config.js
浏览文件 @
10e3d9e3
...
...
@@ -9,7 +9,7 @@ export const envConfig = {
// baseUrl: 'https://test1-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'https://
uat
-sc.yunqueyi.com/'
,
baseUrl
:
'https://
dev
-sc.yunqueyi.com/'
,
qiniuFileUrl
:
"https://dev-sc.yunqueyi.com/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
...
...
src/views/protocol/create-protocol.vue
浏览文件 @
10e3d9e3
...
...
@@ -116,7 +116,7 @@ export default {
height
:
400
}
);
if
(
this
.
isUpdate
)
{
// 只在修改时监听富文本的Ready事件
CKEDITOR
.
on
(
'instanceReady'
,
function
(
event
)
{
CKEDITOR
.
on
ce
(
'instanceReady'
,
function
(
event
)
{
editor
=
event
.
editor
;
// editor.execCommand("toolbarCollapse");
// editor.setReadOnly(true); //只读
...
...
@@ -153,11 +153,12 @@ export default {
}
if
(
valid
)
{
this
.
ruleForm
.
content
=
val
;
this
.
ruleForm
.
content
=
this
.
setContent
(
val
)
;
if
(
this
.
isUpdate
)
{
// 修改协议时传协议ID(protocolId)
this
.
ruleForm
.
protocolId
=
this
.
protocolId
this
.
ruleForm
.
protocolType
=
this
.
protocolType
}
this
.
addOrUpdateProtocol
(
this
.
ruleForm
)
}
else
{
console
.
log
(
'error submit!!'
);
...
...
@@ -165,7 +166,14 @@ export default {
}
});
},
// 设置上传的协议样式
setContent
(
content
)
{
if
(
content
.
trim
().
startsWith
(
'<html>'
))
{
return
content
}
else
{
return
`<html><body style="font-size:36px;margin:40px;padding-bottom:40px;text-align:justfy;word-break:break-all;">
${
content
}
</body></html>`
}
},
// 新增或修改协议
addOrUpdateProtocol
(
params
)
{
openLoading
(
this
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录