Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enterprise-serevice-platform-web
Project
Project
Details
Activity
Releases
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
张伯涛
enterprise-serevice-platform-web
Commits
f95d40b2
Commit
f95d40b2
authored
Oct 28, 2022
by
YangAo
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扶持金额千分位显示
parent
7359058e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
12 deletions
+21
-12
main.js
src/main.js
+7
-2
policySearch.vue
src/views/PolicyDirect/components/policySearch.vue
+2
-3
policySearchDetails.vue
src/views/PolicyDirect/components/policySearchDetails.vue
+12
-7
No files found.
src/main.js
View file @
f95d40b2
...
@@ -17,7 +17,7 @@ import '@/icons' // icon
...
@@ -17,7 +17,7 @@ import '@/icons' // icon
import
'@/assets/icons'
// icon
import
'@/assets/icons'
// icon
// import '@/permission' // permission control
// import '@/permission' // permission control
// 千分位转换
// 千分位转换
import
thousand
from
"@/utils/thousand"
;
import
thousand
from
'@/utils/thousand'
/**
/**
* If you don't want to use mock-server
* If you don't want to use mock-server
...
@@ -48,7 +48,7 @@ Viewer.setDefaults({
...
@@ -48,7 +48,7 @@ Viewer.setDefaults({
})
})
// 全局方法挂载
// 全局方法挂载
Vue
.
prototype
.
thousand
=
thousand
;
Vue
.
prototype
.
thousand
=
thousand
Vue
.
prototype
.
getDicts
=
getDicts
Vue
.
prototype
.
getDicts
=
getDicts
Vue
.
prototype
.
getConfigKey
=
getConfigKey
Vue
.
prototype
.
getConfigKey
=
getConfigKey
Vue
.
prototype
.
parseTime
=
parseTime
Vue
.
prototype
.
parseTime
=
parseTime
...
@@ -100,3 +100,8 @@ Vue.filter('transformDateByFormat', (value, format) => {
...
@@ -100,3 +100,8 @@ Vue.filter('transformDateByFormat', (value, format) => {
}
}
return
moment
(
value
).
format
(
format
||
'YYYY-MM-DD HH:mm:ss'
)
return
moment
(
value
).
format
(
format
||
'YYYY-MM-DD HH:mm:ss'
)
})
})
// 全局千分位过滤器
Vue
.
filter
(
'numberThousandTranslate'
,
value
=>
{
return
value
.
toLocaleString
()
})
src/views/PolicyDirect/components/policySearch.vue
View file @
f95d40b2
...
@@ -199,9 +199,8 @@
...
@@ -199,9 +199,8 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<span
class=
"row-label"
>
扶持资金:
</span>
<span
class=
"row-label"
>
扶持资金:
</span>
<span
class=
"row-content"
>
{{
<span
v-if=
"item.isSupport === undefined || item.isSupport === null || item.isSupport === '0'"
class=
"row-content"
>
根据实际情况给予扶持
</span>
item.isSupport === undefined || item.isSupport === null || item.isSupport === '0' ? '根据实际情况给予扶持' : item.supportAmount + '万元'
<span
class=
"row-content"
>
{{ item.supportAmount | numberThousandTranslate }}万元
</span>
}}
</span>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<span
class=
"row-label"
>
政策标签:
</span>
<span
class=
"row-label"
>
政策标签:
</span>
...
...
src/views/PolicyDirect/components/policySearchDetails.vue
View file @
f95d40b2
...
@@ -82,9 +82,8 @@
...
@@ -82,9 +82,8 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"扶持金额 :"
>
<el-form-item
label=
"扶持金额 :"
>
<span
class=
"formValue"
>
{{
<span
v-if=
"info.isSupport === undefined ||info.isSupport === null || info.isSupport === '0'"
class=
"formValue"
>
根据实际情况给予扶持
</span>
info.isSupport === undefined ||info.isSupport === null || info.isSupport === '0' ? '根据实际情况给予扶持' : info.supportAmount + '万元'
<span
v-else
class=
"formValue"
>
{{ info.supportAmount | numberThousandTranslate }}万元
</span>
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -199,10 +198,8 @@
...
@@ -199,10 +198,8 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<span
class=
"title"
>
可能获得扶持资金:
</span>
<span
class=
"title"
>
可能获得扶持资金:
</span>
<span
v-if=
"info.isSupport === undefined ||info.isSupport === null || info.isSupport === '0'"
class=
"value"
>
{{
<span
v-if=
"info.isSupport === undefined ||info.isSupport === null || info.isSupport === '0'"
class=
"value"
>
根据实际情况给予扶持
</span>
'根据实际情况给予扶持'
<span
v-else
class=
"value"
>
{{
info
.
supportAmount
|
numberThousandTranslate
}}
万元
</span>
}}
</span>
<span
v-else
class=
"value"
>
{{
info
.
supportAmount
+
'万元'
}}
</span>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
class=
"row two-row"
>
<el-row
class=
"row two-row"
>
...
@@ -568,6 +565,14 @@ export default {
...
@@ -568,6 +565,14 @@ export default {
// 页面回滚到顶部
// 页面回滚到顶部
this
.
$root
.
$el
.
scrollIntoView
()
this
.
$root
.
$el
.
scrollIntoView
()
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
// 从完善企业跳回来, 切换到政策指标
next
(
vm
=>
{
if
(
from
.
path
===
'/personalCenter/components/AffiliatedEnterprisesUpdate'
)
{
vm
.
detailType
=
'2'
}
})
},
methods
:
{
methods
:
{
choseScanning
(
type
)
{
choseScanning
(
type
)
{
this
.
detailType
=
type
this
.
detailType
=
type
...
...
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