Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
Z
zhongtai-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
chenweiping
zhongtai-ui
Commits
7d03c207
提交
7d03c207
authored
5月 05, 2022
作者:
chenweiping
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
11
上级
e1cb03ec
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
38 行增加
和
1 行删除
+38
-1
index.vue
src/views/backstage/hospital/index.vue
+32
-0
add.vue
src/views/backstage/package/add.vue
+0
-1
index.vue
src/views/backstage/package/index.vue
+6
-0
没有找到文件。
src/views/backstage/hospital/index.vue
浏览文件 @
7d03c207
...
@@ -201,6 +201,16 @@
...
@@ -201,6 +201,16 @@
<el-form-item
label=
"标签"
prop=
"lable"
>
<el-form-item
label=
"标签"
prop=
"lable"
>
<el-input
v-model=
"form.lable"
placeholder=
"请输入标签"
/>
(多个用英文逗号隔开)
<el-input
v-model=
"form.lable"
placeholder=
"请输入标签"
/>
(多个用英文逗号隔开)
</el-form-item>
</el-form-item>
<el-form-item
label=
"省市区"
>
<el-cascader
size=
"large"
:options=
"options"
v-model=
"selectedOptions"
ref=
"cascader"
@
change=
"handleChange"
>
</el-cascader>
</el-form-item>
<el-form-item
label=
"医院地址"
prop=
"addr"
>
<el-form-item
label=
"医院地址"
prop=
"addr"
>
<el-input
v-model=
"form.addr"
placeholder=
"请输入医院地址"
/>
<el-input
v-model=
"form.addr"
placeholder=
"请输入医院地址"
/>
</el-form-item>
</el-form-item>
...
@@ -245,6 +255,7 @@
...
@@ -245,6 +255,7 @@
<
script
>
<
script
>
import
{
listHospital
,
getHospital
,
delHospital
,
addHospital
,
updateHospital
,
exportHospital
,
statusOptions
,
changeStatus
,
dataTypeOptions
}
from
"@/api/backstage/hospital"
;
import
{
listHospital
,
getHospital
,
delHospital
,
addHospital
,
updateHospital
,
exportHospital
,
statusOptions
,
changeStatus
,
dataTypeOptions
}
from
"@/api/backstage/hospital"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
regionDataPlus
}
from
'element-china-area-data'
;
export
default
{
export
default
{
name
:
"Hospital"
,
name
:
"Hospital"
,
...
@@ -282,6 +293,9 @@ export default {
...
@@ -282,6 +293,9 @@ export default {
statusOptions
:
[],
statusOptions
:
[],
//医院分类数据字典
//医院分类数据字典
dataTypeOptions
:
[],
dataTypeOptions
:
[],
options
:
regionDataPlus
,
selectedOptions
:
[],
selectedLabelOptions
:
[],
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
...
@@ -354,6 +368,12 @@ export default {
...
@@ -354,6 +368,12 @@ export default {
});
});
},
},
methods
:
{
methods
:
{
handleChange
(
value
)
{
console
.
log
(
JSON
.
stringify
(
value
));
console
.
log
(
this
.
$refs
[
"cascader"
].
getCheckedNodes
()[
0
].
pathLabels
);
this
.
selectedOptions
=
value
;
this
.
selectedLabelOptions
=
this
.
$refs
[
"cascader"
].
getCheckedNodes
()[
0
].
pathLabels
;
},
/** 查询【请填写功能名称】列表 */
/** 查询【请填写功能名称】列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -455,6 +475,12 @@ export default {
...
@@ -455,6 +475,12 @@ export default {
})
})
this
.
images1
=
iList
this
.
images1
=
iList
}
}
this
.
selectedOptions
.
push
(
this
.
form
.
provinceCode
);
this
.
selectedOptions
.
push
(
this
.
form
.
cityNameCode
);
this
.
selectedOptions
.
push
(
this
.
form
.
districtCode
);
this
.
selectedLabelOptions
.
push
(
this
.
form
.
province
);
this
.
selectedLabelOptions
.
push
(
this
.
form
.
cityName
);
this
.
selectedLabelOptions
.
push
(
this
.
form
.
district
);
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"修改医院信息"
;
this
.
title
=
"修改医院信息"
;
...
@@ -509,6 +535,12 @@ export default {
...
@@ -509,6 +535,12 @@ export default {
})
})
this
.
form
.
picture
=
urls
;
this
.
form
.
picture
=
urls
;
}
}
this
.
form
.
provinceCode
=
this
.
selectedOptions
[
0
];
this
.
form
.
cityNameCode
=
this
.
selectedOptions
[
1
];
this
.
form
.
districtCode
=
this
.
selectedOptions
[
2
];
this
.
form
.
province
=
this
.
selectedLabelOptions
[
0
];
this
.
form
.
cityName
=
this
.
selectedLabelOptions
[
1
];
this
.
form
.
district
=
this
.
selectedLabelOptions
[
2
];
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateHospital
(
this
.
form
).
then
(
response
=>
{
updateHospital
(
this
.
form
).
then
(
response
=>
{
...
...
src/views/backstage/package/add.vue
浏览文件 @
7d03c207
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
<el-form-item
label=
"套餐海报"
prop=
"picture"
>
<el-form-item
label=
"套餐海报"
prop=
"picture"
>
<div>
<div>
<el-upload
<el-upload
:limit=
"1"
:action=
"upload.url"
:action=
"upload.url"
list-type=
"picture-card"
list-type=
"picture-card"
show-file-list
show-file-list
...
...
src/views/backstage/package/index.vue
浏览文件 @
7d03c207
...
@@ -360,6 +360,12 @@ export default {
...
@@ -360,6 +360,12 @@ export default {
this
.
loading
=
true
;
this
.
loading
=
true
;
listPackage
(
this
.
queryParams
).
then
(
response
=>
{
listPackage
(
this
.
queryParams
).
then
(
response
=>
{
this
.
packageList
=
response
.
rows
;
this
.
packageList
=
response
.
rows
;
this
.
packageList
.
forEach
(
row
=>
{
if
(
row
.
picture
){
let
picture
=
row
.
picture
.
split
(
','
);
row
.
picture
=
picture
[
0
];
}
});
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论