Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
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
cfld-frontend
liyeyun
Commits
4eaaba23
Commit
4eaaba23
authored
Dec 15, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 详情页建设周期格式化修正
parent
58de4fb5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
DetailInfo.vue
src/components/detail/DetailInfo.vue
+3
-2
useJoinRequired.ts
src/composable/useJoinRequired.ts
+2
-0
MyDevelopDetail.vue
src/views/user/MyDevelopDetail.vue
+2
-0
MyIndustrialDetail.vue
src/views/user/MyIndustrialDetail.vue
+2
-0
No files found.
src/components/detail/DetailInfo.vue
View file @
4eaaba23
...
...
@@ -45,6 +45,7 @@ export interface Info {
isFile
?:
boolean
;
/** 文件名 */
fileName
?:
string
;
format
?:
(
value
:
any
)
=>
string
;
}
export
type
Infos
=
Info
[][]
|
[];
withDefaults
(
...
...
@@ -57,8 +58,8 @@ withDefaults(
);
const
handleValue
=
(
col
:
Info
)
=>
{
const
{
value
,
unit
=
''
}
=
col
;
return
haveValue
(
value
)
?
format
Number
(
value
)
+
unit
:
'--'
;
const
{
value
,
unit
=
''
,
format
=
formatNumber
}
=
col
;
return
haveValue
(
value
)
?
format
(
value
)
+
unit
:
'--'
;
};
const
getValueClass
=
(
col
:
Info
,
line
:
Info
[])
=>
{
...
...
src/composable/useJoinRequired.ts
View file @
4eaaba23
import
type
{
Infos
}
from
'@/components/detail/DetailInfo.vue'
;
import
{
computed
,
type
ComputedRef
}
from
'vue'
;
import
{
identity
}
from
'lodash-es'
;
export
interface
JoinRequiredParams
{
[
index
:
string
]:
any
;
...
...
@@ -81,6 +82,7 @@ export function useJoinRequired<T extends JoinRequiredParams>(
name
:
'建设周期'
,
value
:
buildingPeriod
,
unit
:
'月'
,
format
:
identity
,
},
{
name
:
'能评要求'
,
...
...
src/views/user/MyDevelopDetail.vue
View file @
4eaaba23
...
...
@@ -137,6 +137,7 @@ import { useJump } from '@/composable/useJump.ts';
import
{
RouteName
}
from
'@/router/router.ts'
;
import
{
useIndustryBase
}
from
'@/composable/useIndustryBase.ts'
;
import
{
handleNoAuth
}
from
'@/utils/tools.ts'
;
import
{
identity
}
from
'lodash-es'
;
const
{
detail
,
initDetail
}
=
useDetail
<
MyParkDevelopDetailResp
>
(
RequestUrl
.
myParkDevelopDetail
);
const
{
router
}
=
useJump
();
...
...
@@ -271,6 +272,7 @@ const joinRequired = computed(() => {
name
:
'建设周期'
,
value
:
buildingPeriod
,
unit
:
'月'
,
format
:
identity
,
},
{
name
:
'能评要求'
,
...
...
src/views/user/MyIndustrialDetail.vue
View file @
4eaaba23
...
...
@@ -139,6 +139,7 @@ import { useJump } from '@/composable/useJump.ts';
import
{
RouteName
}
from
'@/router/router.ts'
;
import
{
useIndustryBase
}
from
'@/composable/useIndustryBase.ts'
;
import
{
handleNoAuth
}
from
'@/utils/tools.ts'
;
import
{
identity
}
from
'lodash-es'
;
const
{
detail
,
initDetail
}
=
useDetail
<
MyParkIndustrialDetailResp
>
(
RequestUrl
.
myParkIndustrialDetail
,
...
...
@@ -296,6 +297,7 @@ const joinRequired = computed(() => {
name
:
'建设周期'
,
value
:
buildingPeriod
,
unit
:
'月'
,
format
:
identity
,
},
{
name
:
'其他入驻要求'
,
...
...
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