Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-composition-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
vue-composition-api
Commits
de1ebb16
Commit
de1ebb16
authored
Oct 11, 2024
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
68c4e055
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
11 deletions
+20
-11
src/utils/http.js
+3
-5
src/views/outClinicalpathway.vue
+0
-0
src/views/relationMapping.vue
+17
-6
No files found.
src/utils/http.js
View file @
de1ebb16
...
...
@@ -63,8 +63,9 @@ axios.interceptors.response.use(
export
default
{
post
(
url
,
params
,
option
)
{
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
if
(
!
url
.
includes
(
"/ClinicalRoute/ClinicalRoute/GetTCMDiseases"
))
{
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
}
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
.
post
(
domain
+
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
...
...
@@ -74,9 +75,7 @@ export default {
reject
(
res
.
data
);
return
;
}
loadingInstance
.
close
();
resolve
(
res
.
data
.
data
||
res
.
data
);
})
.
catch
((
error
)
=>
{
...
...
@@ -89,7 +88,6 @@ export default {
},
//医院的接口数据用
postFn
(
url
,
params
,
option
)
{
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
.
post
(
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
...
...
src/views/outClinicalpathway.vue
View file @
de1ebb16
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/views/relationMapping.vue
View file @
de1ebb16
...
...
@@ -69,9 +69,13 @@
<span></span>
<div
style=
"color: red"
v-show=
"show"
>
有未保存排序内容!
</div>
<div
class=
""
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"rightadd()"
>
添加
</el-button>
<el-checkbox
v-mode=
"isZY"
@
change=
"checkAl"
>
中医
</el-checkbox>
<el-button
size=
"mini"
type=
"primary"
class=
"mar-left-15"
@
click=
"rightadd()"
>
添加
</el-button>
<el-button
size=
"mini"
type=
"danger"
@
click=
"rightdelarr()"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"success"
@
click=
"saveSort(2, righttableData, '/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject')"
<el-button
size=
"mini"
type=
"success"
@
click=
"saveSort(2, righttableData, `/ClinicalRoute/ClinicalRoute/UpdateMapCRAProject?isZY=${isZY}`)"
>
保存排序
</el-button
>
</div>
...
...
@@ -438,6 +442,7 @@ export default {
medicUseModeoptionsLise
:
[],
medicUsePlanoptions
:
[],
//频率
medicUsePlanoptionsList
:
[],
isZY
:
false
,
};
},
mounted
()
{
...
...
@@ -459,6 +464,10 @@ export default {
cridChange
(
e
)
{
this
.
ruleForm
.
crid
=
e
;
},
checkAl
(
e
)
{
this
.
isZY
=
e
;
this
.
getRightList
();
},
GetCopyGetCRInfo
(
query
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/CopyGetCRInfo?searchQuery=
${
query
}
`
,
{}).
then
((
data
)
=>
{
this
.
options
=
data
;
...
...
@@ -647,7 +656,7 @@ export default {
arr
.
push
(
item
);
});
http
.
post
(
`/ClinicalRoute/ClinicalRoute/CreateMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
`
,
arr
)
http
.
post
(
`/ClinicalRoute/ClinicalRoute/CreateMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
&isZY=
${
this
.
isZY
}
`
,
arr
)
.
then
((
data
)
=>
{
Message
.
success
({
message
:
"添加成功!"
,
...
...
@@ -664,7 +673,7 @@ export default {
},
rightselectbtn
()
{
if
(
this
.
rightnameinput
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetProjectInfo?searchQuery=
${
this
.
rightnameinput
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetProjectInfo?searchQuery=
${
this
.
rightnameinput
}
&isZY=
${
this
.
isZY
}
`
,
{})
.
then
((
data
)
=>
{
if
(
data
&&
data
.
length
)
{
data
.
map
((
item
)
=>
{
...
...
@@ -684,7 +693,7 @@ export default {
//获取左侧 初始化数据
getRightList
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetMapCRAProjectInfo?adviceid=
${
this
.
adviceid
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetMapCRAProjectInfo?adviceid=
${
this
.
adviceid
}
&isZY=
${
this
.
isZY
}
`
,
{})
.
then
((
data
)
=>
{
this
.
show
=
false
;
this
.
righttableData
=
data
;
...
...
@@ -788,6 +797,8 @@ export default {
},
rightadd
()
{
if
(
this
.
adviceid
)
{
this
.
rightdialogData
=
[];
this
.
rightnameinput
=
""
;
this
.
RightdialogTableVisible
=
true
;
}
else
{
Message
.
warning
({
...
...
@@ -815,7 +826,7 @@ export default {
newarr
.
push
(
this
.
rightarr
[
key
].
id
);
});
if
(
newarr
.
length
>
0
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/RemoveMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
`
,
newarr
)
http
.
post
(
`/ClinicalRoute/ClinicalRoute/RemoveMapCRAProject?ApplyDoctor=
${
this
.
$route
.
query
.
ApplyDoctor
*
1
}
&isZY=
${
this
.
isZY
}
`
,
newarr
)
.
then
((
data
)
=>
{
Message
.
success
({
message
:
`
${
data
.
message
}
`
,
...
...
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