Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training
Commits
aed38b94
提交
aed38b94
authored
12月 29, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
6b7e8343
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
149 行增加
和
16 行删除
+149
-16
caseDialog.vue
src/components/caseDialog.vue
+114
-0
MyUploadAdapter.js
src/components/ckeditor/MyUploadAdapter.js
+12
-12
password.vue
src/pages/account/password.vue
+2
-0
index.vue
src/pages/groupAnalysis/index.vue
+9
-2
index.vue
src/pages/userTrigger/index.vue
+9
-2
axios.js
src/utils/axios.js
+3
-0
没有找到文件。
src/components/caseDialog.vue
0 → 100644
浏览文件 @
aed38b94
<
template
>
<div
class=
"dialog-box"
>
<div
class=
"dialog-cont"
>
<div
class=
"close el-icon-circle-close"
@
click=
"$emit('dialogClose')"
></div>
<div
class=
"title"
>
提示
</div>
<div
class=
"conts"
>
<div
class=
"text"
>
您确定要进入案例背景选择界面吗?如果进入当前的操作记录可能丢失。
</div>
</div>
<div
class=
"btn-box"
>
<div
class=
"btn"
@
click=
"$emit('dialogClose')"
>
取消
</div>
<div
class=
"btn"
@
click=
"$router.push(
{ path: '/' })">确定
</div>
</div>
<!--
<img
:src=
"data.url"
alt=
""
>
-->
<!--
<slot
name=
"btn"
></slot>
-->
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
data
:
{
type
:
Object
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.btn-box
{
width
:
160px
;
display
:
flex
;
margin
:
0
auto
;
padding
:
20px
0
;
.btn
{
cursor
:
pointer
;
&
:nth-child
(
1
)
{
width
:
60px
;
height
:
32px
;
border-radius
:
4px
;
border
:
1px
solid
#999999
;
text-align
:
center
;
line-height
:
32px
;
font-size
:
14px
;
color
:
#999999
;
}
&
:nth-child
(
2
)
{
width
:
60px
;
height
:
32px
;
background
:
linear-gradient
(
312deg
,
rgba
(
192
,
21
,
64
,
0
.67
)
0%
,
#C01540
100%
);
border-radius
:
4px
;
color
:
#fff
;
text-align
:
center
;
line-height
:
32px
;
font-size
:
14px
;
margin-left
:
auto
;
}
}
}
.dialog-box
{
width
:
100%
;
height
:
100%
;
position
:
fixed
;
top
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,.
3
);
z-index
:
999
;
.dialog-cont
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
-webkit-transform
:
translate
(
-50%
,
-50%
);
width
:
480px
;
// height: 264px;
background
:
#FFFFFF
;
border-radius
:
5px
;
text-align
:
center
;
.title
{
max-width
:
250px
;
margin
:
0
auto
;
font-size
:
18px
;
color
:
#222222
;
line-height
:
20px
;
padding
:
20px
0
;
font-weight
:
bold
;
text-align
:
center
;
}
.conts
{
width
:
440px
;
border-top
:
1px
solid
#f1f1f1
;
border-bottom
:
1px
solid
#f1f1f1
;
margin
:
0
auto
;
padding
:
40px
0
;
.text
{
text-align
:
left
;
width
:
300px
;
height
:
40px
;
font-size
:
14px
;
color
:
#262626
;
line-height
:
20px
;
margin
:
0
auto
;
}
}
}
}
.close
{
cursor
:
pointer
;
position
:
absolute
;
top
:
10px
;
right
:
-50px
;
font-size
:
30px
;
color
:
#fff
;
}
</
style
>
src/components/ckeditor/MyUploadAdapter.js
浏览文件 @
aed38b94
import
{
uploadFile
}
from
'@/api/common'
//
import { uploadFile } from '@/api/common'
export
default
class
MyUploadAdapter
{
export
default
class
MyUploadAdapter
{
constructor
(
loader
)
{
constructor
(
loader
)
{
...
@@ -17,16 +17,16 @@ export default class MyUploadAdapter {
...
@@ -17,16 +17,16 @@ export default class MyUploadAdapter {
}
}
_sendRequest
(
resolve
,
reject
,
file
)
{
_sendRequest
(
resolve
,
reject
,
file
)
{
uploadFile
({
file
})
//
uploadFile({ file })
.
then
(
response
=>
{
//
.then(response => {
if
(
response
.
success
)
{
//
if (response.success) {
resolve
({
default
:
response
.
url
})
//
resolve({ default: response.url })
}
else
{
//
} else {
return
reject
(
response
.
message
)
//
return reject(response.message)
}
//
}
})
//
})
.
catch
(
response
=>
{
//
.catch(response => {
return
reject
(
response
.
message
)
//
return reject(response.message)
})
//
})
}
}
}
}
src/pages/account/password.vue
浏览文件 @
aed38b94
...
@@ -62,7 +62,9 @@ export default {
...
@@ -62,7 +62,9 @@ export default {
api
api
.
updatePassword
(
this
.
ruleForm
)
.
updatePassword
(
this
.
ruleForm
)
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
this
.
$message
({
message
:
'密码修改成功'
,
type
:
'success'
})
this
.
$message
({
message
:
'密码修改成功'
,
type
:
'success'
})
}
// 重置表单
// 重置表单
this
.
$refs
.
ruleForm
.
resetFields
()
this
.
$refs
.
ruleForm
.
resetFields
()
})
})
...
...
src/pages/groupAnalysis/index.vue
浏览文件 @
aed38b94
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<div
class=
"btn"
v-else
@
click=
"intoForm"
>
进入此用户群
</div>
<div
class=
"btn"
v-else
@
click=
"intoForm"
>
进入此用户群
</div>
<div
class=
"right-btn"
>
<div
class=
"right-btn"
>
<div
class=
"btn"
@
click=
"isCurrentCardShow = !isCurrentCardShow"
>
当前案例背景
</div>
<div
class=
"btn"
@
click=
"isCurrentCardShow = !isCurrentCardShow"
>
当前案例背景
</div>
<div
class=
"btn"
@
click=
"
goPage('/caseSelection')
"
>
切换案例背景
</div>
<div
class=
"btn"
@
click=
"
isCaseDialogs = true
"
>
切换案例背景
</div>
<div
class=
"current-card"
>
<div
class=
"current-card"
>
<currentCard
v-if=
"isCurrentCardShow"
:data=
"cardData"
/>
<currentCard
v-if=
"isCurrentCardShow"
:data=
"cardData"
/>
</div>
</div>
...
@@ -33,10 +33,12 @@
...
@@ -33,10 +33,12 @@
<div
class=
"dialogs-btn"
@
click=
"dialogEvent"
>
确定
</div>
<div
class=
"dialogs-btn"
@
click=
"dialogEvent"
>
确定
</div>
</
template
>
</
template
>
</dialogs>
</dialogs>
<caseDialogs
v-if=
"isCaseDialogs"
@
dialogClose=
"caseDialogClose"
></caseDialogs>
</app-container>
</app-container>
</template>
</template>
<
script
>
<
script
>
import
caseDialogs
from
'@/components/caseDialog'
import
AppContainer
from
'@/components/AppContainer'
import
AppContainer
from
'@/components/AppContainer'
import
dialogs
from
'@/components/dialog'
import
dialogs
from
'@/components/dialog'
import
item
from
'./components/item.vue'
import
item
from
'./components/item.vue'
...
@@ -50,10 +52,12 @@ export default {
...
@@ -50,10 +52,12 @@ export default {
item
,
item
,
currentCard
,
currentCard
,
formRadio
,
formRadio
,
dialogs
dialogs
,
caseDialogs
},
},
data
()
{
data
()
{
return
{
return
{
isCaseDialogs
:
false
,
isCurrentCardShow
:
false
,
isCurrentCardShow
:
false
,
isFormShow
:
false
,
isFormShow
:
false
,
list
:
[],
list
:
[],
...
@@ -71,6 +75,9 @@ export default {
...
@@ -71,6 +75,9 @@ export default {
this
.
getCaseList
()
this
.
getCaseList
()
},
},
methods
:
{
methods
:
{
caseDialogClose
()
{
this
.
isCaseDialogs
=
false
},
dialogClose
()
{
dialogClose
()
{
this
.
isDialog
=
false
this
.
isDialog
=
false
},
},
...
...
src/pages/userTrigger/index.vue
浏览文件 @
aed38b94
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
class=
"btn"
@
click=
"stepConfirm"
>
确定
</div>
<div
class=
"btn"
@
click=
"stepConfirm"
>
确定
</div>
<div
class=
"right-btn"
>
<div
class=
"right-btn"
>
<div
class=
"btn"
@
click=
"isCurrentCardShow = !isCurrentCardShow"
>
当前案例背景
</div>
<div
class=
"btn"
@
click=
"isCurrentCardShow = !isCurrentCardShow"
>
当前案例背景
</div>
<div
class=
"btn"
@
click=
"
goPage('/caseSelection')
"
>
切换案例背景
</div>
<div
class=
"btn"
@
click=
"
isCaseDialogs = true
"
>
切换案例背景
</div>
<div
class=
"current-card"
>
<div
class=
"current-card"
>
<currentCard
v-if=
"isCurrentCardShow"
:data=
"cardData"
/>
<currentCard
v-if=
"isCurrentCardShow"
:data=
"cardData"
/>
</div>
</div>
...
@@ -55,11 +55,13 @@
...
@@ -55,11 +55,13 @@
</div>
</div>
</
template
>
</
template
>
</dialogs>
</dialogs>
<caseDialogs
v-if=
"isCaseDialogs"
@
dialogClose=
"caseDialogClose"
></caseDialogs>
</app-container>
</app-container>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
caseDialogs
from
'@/components/caseDialog'
import
AppContainer
from
'@/components/AppContainer'
import
AppContainer
from
'@/components/AppContainer'
import
currentCard
from
'../groupAnalysis/components/currentCard'
import
currentCard
from
'../groupAnalysis/components/currentCard'
import
step1
from
'./components/step1'
import
step1
from
'./components/step1'
...
@@ -73,10 +75,12 @@ export default {
...
@@ -73,10 +75,12 @@ export default {
currentCard
,
currentCard
,
step1
,
step1
,
step2
,
step2
,
dialogs
dialogs
,
caseDialogs
},
},
data
()
{
data
()
{
return
{
return
{
isCaseDialogs
:
false
,
isCurrentCardShow
:
false
,
isCurrentCardShow
:
false
,
active
:
0
,
active
:
0
,
stepShow
:
true
,
stepShow
:
true
,
...
@@ -101,6 +105,9 @@ export default {
...
@@ -101,6 +105,9 @@ export default {
this
.
getCaseList
()
this
.
getCaseList
()
},
},
methods
:
{
methods
:
{
caseDialogClose
()
{
this
.
isCaseDialogs
=
false
},
diaEvent
()
{
diaEvent
()
{
if
(
this
.
active
===
0
)
{
if
(
this
.
active
===
0
)
{
this
.
active
=
1
this
.
active
=
1
...
...
src/utils/axios.js
浏览文件 @
aed38b94
...
@@ -36,6 +36,9 @@ httpRequest.interceptors.request.use(
...
@@ -36,6 +36,9 @@ httpRequest.interceptors.request.use(
httpRequest
.
interceptors
.
response
.
use
(
httpRequest
.
interceptors
.
response
.
use
(
function
(
response
)
{
function
(
response
)
{
const
{
data
}
=
response
const
{
data
}
=
response
if
(
parseInt
(
data
.
code
)
===
1
)
{
return
Message
.
error
(
data
.
msg
)
}
if
(
data
.
code
)
{
if
(
data
.
code
)
{
if
(
data
.
code
===
4001
)
{
if
(
data
.
code
===
4001
)
{
window
.
location
.
href
=
`
${
webConf
.
others
.
loginUrl
}
?rd=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
window
.
location
.
href
=
`
${
webConf
.
others
.
loginUrl
}
?rd=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论