Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
008e24c5
提交
008e24c5
authored
12月 31, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
51248155
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
15 行删除
+20
-15
edit.vue
src/modules/offices/src/reportPaper/edit.vue
+9
-2
edit.vue
src/modules/offices/src/retake/edit.vue
+0
-2
mainsite.vue
src/pages/mainsite.vue
+11
-11
没有找到文件。
src/modules/offices/src/reportPaper/edit.vue
浏览文件 @
008e24c5
...
@@ -118,6 +118,14 @@ export default {
...
@@ -118,6 +118,14 @@ export default {
payVisible
:
false
payVisible
:
false
}
}
},
},
watch
:
{
'$route.query'
:
{
immediate
:
true
,
handler
(
query
)
{
this
.
payVisible
=
query
.
pay
===
'1'
}
}
},
computed
:
{
computed
:
{
productId
()
{
productId
()
{
const
found
=
this
.
productList
.
find
(
item
=>
item
.
value
===
this
.
ruleForm
.
number
)
const
found
=
this
.
productList
.
find
(
item
=>
item
.
value
===
this
.
ruleForm
.
number
)
...
@@ -128,7 +136,7 @@ export default {
...
@@ -128,7 +136,7 @@ export default {
handleSubmitSuccess
(
response
)
{
handleSubmitSuccess
(
response
)
{
if
(
!
this
.
isEdit
)
{
if
(
!
this
.
isEdit
)
{
this
.
$router
this
.
$router
.
replace
({
name
:
'pareportEdit'
,
params
:
{
id
:
response
.
data
.
id
},
query
:
{
id
:
this
.
affairId
}
})
.
replace
({
name
:
'pareportEdit'
,
params
:
{
id
:
response
.
data
.
id
},
query
:
{
id
:
this
.
affairId
,
pay
:
'1'
}
})
.
then
(
this
.
getDetail
)
.
then
(
this
.
getDetail
)
}
}
this
.
handlePay
()
this
.
handlePay
()
...
@@ -140,7 +148,6 @@ export default {
...
@@ -140,7 +148,6 @@ export default {
// 支付成功
// 支付成功
handlePaySuccess
()
{
handlePaySuccess
()
{
api
.
paySuccess
(
this
.
pid
).
then
(
response
=>
{
api
.
paySuccess
(
this
.
pid
).
then
(
response
=>
{
// this.$router.replace({ name: 'pareportView', params: { id: this.pid }, query: { id: this.affairId } })
this
.
getDetail
()
this
.
getDetail
()
this
.
payVisible
=
false
this
.
payVisible
=
false
})
})
...
...
src/modules/offices/src/retake/edit.vue
浏览文件 @
008e24c5
...
@@ -202,8 +202,6 @@ export default {
...
@@ -202,8 +202,6 @@ export default {
handlePaySuccess
()
{
handlePaySuccess
()
{
api
.
paySuccess
(
this
.
pid
).
then
(
response
=>
{
api
.
paySuccess
(
this
.
pid
).
then
(
response
=>
{
this
.
$router
.
replace
({
name
:
'retakeView'
,
params
:
{
id
:
this
.
pid
},
query
:
{
id
:
this
.
affairId
}
})
this
.
$router
.
replace
({
name
:
'retakeView'
,
params
:
{
id
:
this
.
pid
},
query
:
{
id
:
this
.
affairId
}
})
this
.
getDetail
()
this
.
payVisible
=
false
})
})
}
}
},
},
...
...
src/pages/mainsite.vue
浏览文件 @
008e24c5
<
template
>
<
template
>
<!-- // 整体网站结构 -->
<!-- // 整体网站结构 -->
<el-container
:style=
"
{height: containerStyle.height}">
<el-container
:style=
"
{ height: containerStyle.height }">
<el-header><navigation
/></el-header>
<el-header><navigation
/></el-header>
<el-container>
<el-container>
<sidebar
:obj=
"sidebar"
/>
<sidebar
:obj=
"sidebar"
/>
<el-main><router-view></router-view></el-main>
<el-main><router-view
:key=
"$route.fullPath"
></router-view></el-main>
</el-container>
</el-container>
</el-container>
</el-container>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -15,7 +15,7 @@ import Sidebar from '@/components/learnSysLayout/sidebar.vue'
...
@@ -15,7 +15,7 @@ import Sidebar from '@/components/learnSysLayout/sidebar.vue'
export
default
{
export
default
{
components
:
{
Navigation
,
Sidebar
},
components
:
{
Navigation
,
Sidebar
},
data
()
{
data
()
{
const
clientHeight
=
document
.
documentElement
.
clientHeight
-
1
+
'px'
const
clientHeight
=
document
.
documentElement
.
clientHeight
-
1
+
'px'
const
clientWidth
=
document
.
documentElement
.
clientWidth
+
'px'
const
clientWidth
=
document
.
documentElement
.
clientWidth
+
'px'
return
{
return
{
...
@@ -42,12 +42,12 @@ export default {
...
@@ -42,12 +42,12 @@ export default {
}
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
sidebar
.
containerStyle
=
this
.
containerStyle
this
.
sidebar
.
containerStyle
=
this
.
containerStyle
/* 监听侧边栏的当前状态 */
/* 监听侧边栏的当前状态 */
this
.
$root
.
$on
(
'updateStatus'
,
(
status
)
=>
{
this
.
$root
.
$on
(
'updateStatus'
,
status
=>
{
this
.
sidebar
.
status
=
status
this
.
sidebar
.
status
=
status
this
.
sidebar
.
sidebarStyle
.
width
=
(
status
?
'auto'
:
'200px'
)
this
.
sidebar
.
sidebarStyle
.
width
=
status
?
'auto'
:
'200px'
})
})
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论