Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-insurance
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.frontend
pica-insurance
提交
cb9dabc2
提交
cb9dabc2
编写于
5月 09, 2023
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init
上级
b76d43c2
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
6 行增加
和
7 行删除
+6
-7
appoint.js
src/api/appoint.js
+1
-3
detection.js
src/api/detection.js
+1
-1
loading.js
src/components/loading/loading.js
+0
-1
httpExtension.js
src/plugins/httpExtension.js
+2
-2
insurance-detection-detail.vue
...insurance-detection-detail/insurance-detection-detail.vue
+2
-0
未找到文件。
src/api/appoint.js
浏览文件 @
cb9dabc2
...
@@ -35,9 +35,7 @@ export const getDetailByYunOrderNo = async (yunOrderNo) => {
...
@@ -35,9 +35,7 @@ export const getDetailByYunOrderNo = async (yunOrderNo) => {
method
:
'get'
,
method
:
'get'
,
url
:
`/tis/insurance/getDetailByYunOrderNo?yunOrderNo=
${
yunOrderNo
}
`
,
url
:
`/tis/insurance/getDetailByYunOrderNo?yunOrderNo=
${
yunOrderNo
}
`
,
withCredentials
:
true
,
withCredentials
:
true
,
headers
:
{
hasLoading
:
false
,
noLoading
:
true
,
},
});
});
};
};
export
const
getHospitalList
=
async
(
data
)
=>
{
export
const
getHospitalList
=
async
(
data
)
=>
{
...
...
src/api/detection.js
浏览文件 @
cb9dabc2
...
@@ -104,7 +104,7 @@ export const detectionRecordInfo = (data) => {
...
@@ -104,7 +104,7 @@ export const detectionRecordInfo = (data) => {
url
:
`/trade/detection/record/record/infoV2?detectionRecordId=
${
data
.
detectionRecordId
}
&detectionKind=
${
data
.
detectionKind
}
`
,
url
:
`/trade/detection/record/record/infoV2?detectionRecordId=
${
data
.
detectionRecordId
}
&detectionKind=
${
data
.
detectionKind
}
`
,
withCredentials
:
true
,
withCredentials
:
true
,
headers
:
{
headers
:
{
noLoading
:
tru
e
,
hasLoading
:
fals
e
,
},
},
});
});
};
};
...
...
src/components/loading/loading.js
浏览文件 @
cb9dabc2
...
@@ -13,7 +13,6 @@ const loading = {
...
@@ -13,7 +13,6 @@ const loading = {
document
.
body
.
appendChild
(
instance
.
$el
);
document
.
body
.
appendChild
(
instance
.
$el
);
// 在Vue的原型链上注册方法,控制组件
// 在Vue的原型链上注册方法,控制组件
Vue
.
prototype
.
$loading
=
{
Vue
.
prototype
.
$loading
=
{
show
:
(
text
)
=>
{
show
:
(
text
)
=>
{
instance
.
show
=
true
;
instance
.
show
=
true
;
...
...
src/plugins/httpExtension.js
浏览文件 @
cb9dabc2
...
@@ -12,7 +12,7 @@ $http.setOptions({
...
@@ -12,7 +12,7 @@ $http.setOptions({
console
.
log
(
'我重写了默认的loading1'
,
opt
);
console
.
log
(
'我重写了默认的loading1'
,
opt
);
const
globalLoading
=
document
.
getElementById
(
'globalLoading'
);
const
globalLoading
=
document
.
getElementById
(
'globalLoading'
);
if
(
!
globalLoading
&&
!
noLoading
)
{
if
(
!
globalLoading
&&
!
noLoading
)
{
vueApp
.
$loading
.
show
();
//
vueApp.$loading.show();
}
}
}
}
});
});
...
@@ -22,7 +22,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
...
@@ -22,7 +22,7 @@ $http.addBeforeHook(config => console.log('我是新增的前置钩子', config)
// 新增后置钩子
// 新增后置钩子
$http
.
addAfterHook
(
response
=>
{
$http
.
addAfterHook
(
response
=>
{
vueApp
.
$loading
.
hide
();
//
vueApp.$loading.hide();
if
(
response
.
data
.
code
!==
'000000'
)
{
if
(
response
.
data
.
code
!==
'000000'
)
{
console
.
log
(
'我是新增的后置钩子111'
,
response
);
console
.
log
(
'我是新增的后置钩子111'
,
response
);
vueApp
.
$toast
(
response
.
data
.
message
);
vueApp
.
$toast
(
response
.
data
.
message
);
...
...
src/views/insurance-detection-detail/insurance-detection-detail.vue
浏览文件 @
cb9dabc2
...
@@ -487,6 +487,8 @@ export default {
...
@@ -487,6 +487,8 @@ export default {
this
.
$toast
(
errorMessage
);
this
.
$toast
(
errorMessage
);
this
.
init
();
this
.
init
();
});
});
}
else
{
this
.
$loading
.
hide
();
}
}
console
.
log
(
'--showFlagForReport'
,
showFlagForReport
);
console
.
log
(
'--showFlagForReport'
,
showFlagForReport
);
});
});
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录