Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
folacin-front
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ynby
folacin-front
Commits
7dee496f
Commit
7dee496f
authored
Jun 20, 2022
by
罗成兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码整合
parent
6d13f0d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
132 additions
and
75 deletions
+132
-75
.env.dev
.env.dev
+3
-3
.gitignore
.gitignore
+0
-23
package.json
package.json
+1
-1
index.html
public/index.html
+1
-1
main.js
src/main.js
+4
-2
ApiUtils.js
src/utils/ApiUtils.js
+55
-0
Home.vue
src/views/Home.vue
+1
-3
allAreaCascader.vue
src/views/components/allAreaCascader.vue
+11
-3
folviteApply.vue
src/views/indexComponent/folviteApply/folviteApply.vue
+7
-0
addFolviteDistribution.vue
...folviteDistribution/components/addFolviteDistribution.vue
+0
-0
folviteDistributionDetail.vue
...viteDistribution/components/folviteDistributionDetail.vue
+3
-0
folviteDistribution.vue
...ndexComponent/folviteDistribution/folviteDistribution.vue
+46
-39
No files found.
.env.dev
View file @
7dee496f
NODE_ENV = dev
VUE_APP_BASE_URL
2222
= https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL
1
= https://ys-service.yiboshi.com
VUE_APP_BASE_URL
111
= http://59.230.237.90:8115
VUE_APP_BASE_URL
111
= https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL
2
= https://ys-service.yiboshi.com
VUE_APP_BASE_URL
4
= http://59.230.237.90:8115
VUE_APP_BASE_URL = http://127.0.0.1:8083
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
...
...
.gitignore
deleted
100644 → 0
View file @
6d13f0d7
.DS_Store
node_modules
/dist
dist.zip
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
package.json
View file @
7dee496f
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"
serve
-dev"
:
"vue-cli-service serve --mode dev"
,
"
pc
-dev"
:
"vue-cli-service serve --mode dev"
,
"serve-yy"
:
"vue-cli-service serve --mode yueyang"
,
"build:test"
:
"vue-cli-service build --mode test"
,
"build:prod"
:
"vue-cli-service build --mode production --report"
,
...
...
public/index.html
View file @
7dee496f
...
...
@@ -10,7 +10,7 @@
<!--<script src="https://webapi.amap.com/maps?v=1.4.4&key=34bb7ed1b21bfcc5a3ed0b9a66a587ff"></script>-->
<!-- <script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>-->
<script
src=
"https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.js"
></script
>
<!-- <script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.js"></script>--
>
</head>
<body>
<noscript>
...
...
src/main.js
View file @
7dee496f
...
...
@@ -13,7 +13,8 @@ import 'ant-design-vue/dist/antd.less'
// import 'nprogress/nprogress.css'
import
Print
from
'vue-print-nb'
import
'./antd/register'
import
api
from
'./api'
import
api
from
'./api'
;
// import {optionalChaining} from "./views/utils/common";
import
Moment
from
'moment'
;
import
'./views/utils/directives/debounce'
...
...
@@ -23,8 +24,9 @@ import './views/utils/directives/price'
import
'./views/utils/directives/remarkNum'
import
'./views/utils/directives/inputNum'
import
{
message
,
modal
}
from
'ant-design-vue'
import
{
ApiUtils
}
from
"./utils/ApiUtils"
const
{
confirm
}
=
modal
Vue
.
prototype
.
ApiUtils
=
ApiUtils
;
Vue
.
prototype
.
$api
=
api
;
// Vue.prototype.$isNot = optionalChaining; // 非空判断,为空返回 "未知"
Vue
.
prototype
.
$message
=
message
...
...
src/utils/ApiUtils.js
0 → 100644
View file @
7dee496f
import
md5
from
'js-md5'
//常用工具方法
export
const
ApiUtils
=
{
isBlank
:
function
(
obj
)
{
if
(
obj
==
null
||
obj
==
undefined
||
obj
==
""
||
obj
==
{}
||
obj
==
[])
{
return
true
;
}
if
(
obj
===
null
||
obj
===
undefined
||
obj
===
""
||
obj
===
{}
||
obj
===
[])
{
return
true
;
}
return
false
;
},
isNotBlank
:
function
(
obj
)
{
return
!
this
.
isBlank
(
obj
);
},
copyObject
:
function
(
obj
)
{
if
(
this
.
isBlank
(
obj
))
{
return
null
;
}
let
jsonData
=
JSON
.
stringify
(
obj
);
let
newObj
=
JSON
.
parse
(
jsonData
);
return
newObj
;
},
getLoginInfo
:
function
()
{
let
info
=
sessionStorage
.
getItem
(
'loginInfo'
);
let
newObj
=
JSON
.
parse
(
info
);
return
newObj
;
},
getAddDayDate
(
tempDate
,
dayCount
)
{
let
resultDate
=
new
Date
((
tempDate
/
1000
+
(
86400
*
dayCount
))
*
1000
);
//增加n天后的日期
let
mouth
=
resultDate
.
getMonth
()
+
1
;
let
day
=
resultDate
.
getDate
();
if
(
mouth
<
10
)
{
mouth
=
"0"
+
mouth
;
}
if
(
day
<
10
)
{
day
=
"0"
+
day
;
}
let
resultDateStr
=
resultDate
.
getFullYear
()
+
"-"
+
mouth
+
"-"
+
day
;
//将日期转化为字符串格式
return
resultDateStr
;
},
getDateStr
(
date
)
{
let
mouth
=
date
.
getMonth
()
+
1
;
let
day
=
date
.
getDate
();
if
(
mouth
<
10
)
{
mouth
=
"0"
+
mouth
;
}
if
(
day
<
10
)
{
day
=
"0"
+
day
;
}
let
resultDateStr
=
date
.
getFullYear
()
+
"-"
+
mouth
+
"-"
+
day
;
//将日期转化为字符串格式
return
resultDateStr
;
}
}
\ No newline at end of file
src/views/Home.vue
View file @
7dee496f
...
...
@@ -57,14 +57,12 @@
//document.cookie = 'bGNnd3lwdF9hdA=6a84c8f3-86b3-42dc-835c-95e8b26ce568;'
let
cookieToken
=
getCookie
(
'bGNnd3lwdF9hdA'
);
console
.
log
(
'tokenInfo'
,
cookieToken
)
if
(
cookieToken
)
{
//根据cookie获取token并调用接口获取菜单并设置初始选中菜单
if
(
cookieToken
)
{
window
.
sessionStorage
.
setItem
(
'token'
,
'bearer'
+
' '
+
cookieToken
);
let
query
=
this
.
$route
.
query
;
let
par
=
{
menuId
:
query
.
menuId
};
console
.
log
(
"query"
,
query
);
this
.
$api
.
fyManage
.
fetchFYLoginUser
(
par
).
then
(({
data
})
=>
{
this
.
unitInfo
=
data
.
unitInfo
;
// window.sessionStorage.setItem('menuList', JSON.stringify(data.menuList));
window
.
sessionStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
data
.
userInfo
));
window
.
sessionStorage
.
setItem
(
'allEnum'
,
JSON
.
stringify
(
data
.
enumValueList
));
window
.
sessionStorage
.
setItem
(
'unitInfo'
,
JSON
.
stringify
(
data
.
unitInfo
));
...
...
src/views/components/allAreaCascader.vue
View file @
7dee496f
<
template
>
<div>
<a-cascader
v-model=
"areaCode"
ref=
"cascader"
:style=
"
{width:width}"
change-on-select
:disabled="disabled"
...
...
@@ -20,7 +21,7 @@
<
script
>
export
default
{
name
:
"allAreaCascader"
,
props
:
[
"disabled"
,
"value"
,
"width"
],
props
:
[
"disabled"
,
"value"
,
"width"
],
created
()
{
this
.
loadAreaData
([{
areaCode
:
0
}]);
},
...
...
@@ -52,7 +53,7 @@ export default {
methods
:
{
handleAreaCode
(
areaCode
)
{
if
(
this
.
$api
.
utils
.
isBlank
(
areaCode
))
{
this
.
areaCode
=
[];
this
.
areaCode
=
[];
return
;
}
let
level
=
1
;
...
...
@@ -186,9 +187,16 @@ export default {
return
this
.
areaCode
;
},
areaChange
(
areaCode
)
{
if
(
areaCode
.
length
==
0
)
{
this
.
$emit
(
"input"
,
""
);
return
;
}
this
.
$emit
(
"input"
,
areaCode
[
areaCode
.
length
-
1
])
},
focus
()
{
let
input
=
this
.
$refs
[
"cascader"
];
input
.
focus
();
}
}
}
</
script
>
...
...
src/views/indexComponent/folviteApply/folviteApply.vue
View file @
7dee496f
...
...
@@ -117,6 +117,7 @@ const columns = [
},
]
export
default
{
name
:
"folviteApply"
,
components
:
{},
data
()
{
return
{
...
...
@@ -138,6 +139,12 @@ export default {
menuId
:
undefined
}
},
mounted
()
{
let
that
=
this
;
window
.
addEventListener
(
"message"
,
function
(
data
)
{
that
.
getFolviteApplyList
();
});
},
created
()
{
this
.
routerParams
=
this
.
$route
.
query
;
if
(
this
.
routerParams
.
menuId
)
{
...
...
src/views/indexComponent/folviteDistribution/components/addFolviteDistribution.vue
View file @
7dee496f
This diff is collapsed.
Click to expand it.
src/views/indexComponent/folviteDistribution/components/folviteDistributionDetail.vue
View file @
7dee496f
...
...
@@ -36,6 +36,9 @@
<a-descriptions-item
label=
"体重"
>
{{
detailInfo
.
weight
?
detailInfo
.
weight
+
"kg"
:
'--'
}}
</a-descriptions-item>
<a-descriptions-item
label=
"BMI"
>
{{
detailInfo
.
bmi
?
detailInfo
.
bmi
:
'--'
}}
</a-descriptions-item>
</a-descriptions>
<div
class=
"detail_title"
style=
"border-top: 0px"
>
<div
class=
"divider_my_dashed"
>
...
...
src/views/indexComponent/folviteDistribution/folviteDistribution.vue
View file @
7dee496f
...
...
@@ -26,7 +26,7 @@
<div
style=
"clear: both"
></div>
</a-form>
<div
style=
"margin-top: 16px;margin-bottom: 10px"
></div>
<a-table
:dataSource=
"tableData"
:columns=
"columns"
rowKey=
"id"
...
...
@@ -69,17 +69,17 @@
width=
"600px"
>
<span>
上传知情同意书:
</span>
<a-upload
style=
"display: inline"
name=
"file"
list-type=
"picture-card"
accept=
".jpg,.png"
:multiple=
"true"
:action=
"uploadAction"
:headers=
"headers"
@
reject=
"handleReject"
@
preview=
"preview"
@
change=
"handleChange"
:file-list=
"fileList"
style=
"display: inline"
name=
"file"
list-type=
"picture-card"
accept=
".jpg,.png"
:multiple=
"true"
:action=
"uploadAction"
:headers=
"headers"
@
reject=
"handleReject"
@
preview=
"preview"
@
change=
"handleChange"
:file-list=
"fileList"
>
<div>
<!--<a-icon type="plus"/>-->
...
...
@@ -92,7 +92,7 @@
<br/>
温馨提示:请上传JPG、PNG格式图片,图片大小不超过5M
<br/>
</div>
</a-modal>
<!--:getContainer="getContainer"-->
...
...
@@ -109,8 +109,8 @@
</div>
<div
style=
"float: right;margin-right: 50px"
>
<div
style=
""
>
签名:
<img
style=
"width:50px;height: 120px;transform: rotate(-90deg);margin-left: 60px"
:src=
"applySignUrl"
/></div>
style=
"width:50px;height: 120px;transform: rotate(-90deg);margin-left: 60px"
:src=
"applySignUrl"
/></div>
<div>
签署日期:
<span
style=
"margin-left: 8px"
>
{{ currentRow.parentDate }}
</span></div>
</div>
<div
style=
"clear: both"
></div>
...
...
@@ -121,18 +121,18 @@
<br>
</a-modal>
<a-pagination
v-if=
"pagination.total > 0"
:total=
"pagination.total"
show-size-changer
show-quick-jumper
v-model=
"pagination.pageIndex"
:page-size=
"pagination.pageSize"
:page-size-options=
"pagination.pageSizeOptions"
@
showSizeChange=
"showSizeChange"
@
change=
"change"
:showTotal=
"() => `共 ${pagination.total} 条`"
v-if=
"pagination.total > 0"
:total=
"pagination.total"
show-size-changer
show-quick-jumper
v-model=
"pagination.pageIndex"
:page-size=
"pagination.pageSize"
:page-size-options=
"pagination.pageSizeOptions"
@
showSizeChange=
"showSizeChange"
@
change=
"change"
:showTotal=
"() => `共 ${pagination.total} 条`"
/>
<a-modal
title=
""
:visible=
"qrCodeShow"
@
cancel=
"qrCodeShow = false"
cancelText=
"关闭"
:footer=
"null"
loading=
"true"
...
...
@@ -148,7 +148,7 @@
<center
@
click=
"qrCodePrint"
style=
"cursor: pointer"
>
<a-button>
打印
</a-button>
</center>
</a-modal>
</div>
</template>
...
...
@@ -251,7 +251,7 @@ export default {
menuId
:
undefined
,
qrCodeShow
:
false
,
qrCodeUrl
:
""
,
unitInfo
:
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'unitInfo'
))
,
unitInfo
:
{
unitName
:
""
}
,
printDisplay
:
'none'
}
},
...
...
@@ -440,7 +440,7 @@ export default {
this
.
visible
=
false
;
}
})
},
share
()
{
this
.
qrCodeShow
=
true
;
...
...
@@ -462,23 +462,30 @@ export default {
window
.
addEventListener
(
"message"
,
function
(
data
)
{
that
.
getDataList
();
});
let
timer
=
setInterval
(
res
=>
{
let
unitInfo
=
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'unitInfo'
));
if
(
unitInfo
)
{
that
.
unitInfo
=
unitInfo
;
clearInterval
(
timer
)
}
},
500
)
}
}
</
script
>
<
style
lang=
"less"
scoped
>
// 文件上传样式
.ant-upload-select-picture-card i {
font-size: 32px;
color: #999;
font-size: 32px;
color: #999;
}
.ant-upload-select-picture-card .ant-upload-text {
margin-top: 6px;
color: #666;
margin-top: 6px;
color: #666;
}
.btn_space {
margin-right: 5px;
margin-right: 5px;
}
/* .search_form {
...
...
@@ -488,11 +495,11 @@ export default {
padding: 30px;
}*/
.ellipsis {
display: block;
width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
display: block;
width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
///deep/ .ant-table-tbody{
...
...
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