Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit adf9b462
authored
Nov 14, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
代码优化
1 parent
db19ffa0
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
44 deletions
src/common/constants.js
src/views/earlyWarningManager/staff/components/detailDialog.vue
src/views/earlyWarningManager/staff/details.vue
src/views/earlyWarningManager/staff/noticeBoard.vue
src/views/earlyWarningManager/store/components/detailDialog.vue
src/views/earlyWarningManager/store/details.vue
src/views/earlyWarningManager/store/noticeBoard.vue
src/common/constants.js
View file @
adf9b46
...
@@ -935,6 +935,13 @@ export const businessOpt = [
...
@@ -935,6 +935,13 @@ export const businessOpt = [
{
confId
:
4
,
confValue
:
"延保"
}
{
confId
:
4
,
confValue
:
"延保"
}
]
]
// 预警管理 所属业务 显示文字
export
const
businessOptShowText
=
{
2
:
"轻改"
,
3
:
"权益"
,
4
:
"延保"
}
// 预警管理 优先级
// 预警管理 优先级
export
const
priorityOpt
=
[
export
const
priorityOpt
=
[
{
confId
:
1
,
confValue
:
"高"
},
{
confId
:
1
,
confValue
:
"高"
},
...
@@ -942,6 +949,13 @@ export const priorityOpt = [
...
@@ -942,6 +949,13 @@ export const priorityOpt = [
{
confId
:
3
,
confValue
:
"低"
}
{
confId
:
3
,
confValue
:
"低"
}
]
]
// 预警管理 优先级 显示文字
export
const
priorityShowText
=
{
1
:
"高"
,
2
:
"中"
,
3
:
"低"
}
// 预警管理 预警阶段
// 预警管理 预警阶段
export
const
warnStageyOpt
=
[
export
const
warnStageyOpt
=
[
{
confId
:
1
,
confValue
:
"第一阶段"
},
{
confId
:
1
,
confValue
:
"第一阶段"
},
...
...
src/views/earlyWarningManager/staff/components/detailDialog.vue
View file @
adf9b46
...
@@ -109,6 +109,7 @@
...
@@ -109,6 +109,7 @@
<
script
>
<
script
>
import
{
findByMsgId
}
from
'@api/earlyWarningManager'
import
{
findByMsgId
}
from
'@api/earlyWarningManager'
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
priorityShowText
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
"DetailDialog"
,
name
:
"DetailDialog"
,
components
:
{
components
:
{
...
@@ -206,11 +207,7 @@ export default {
...
@@ -206,11 +207,7 @@ export default {
},
},
cycleShow
:
''
,
// 预警周期显示
cycleShow
:
''
,
// 预警周期显示
createTimeShow
:
''
,
// 创建时间显示
createTimeShow
:
''
,
// 创建时间显示
priorityShowText
:
{
priorityShowText
:
deepClone
(
priorityShowText
)
1
:
'高'
,
2
:
'中'
,
3
:
'低'
}
}
}
},
},
methods
:
{
methods
:
{
...
...
src/views/earlyWarningManager/staff/details.vue
View file @
adf9b46
...
@@ -85,7 +85,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
...
@@ -85,7 +85,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
import
detailDialog
from
'./components/detailDialog'
import
detailDialog
from
'./components/detailDialog'
import
handleDialog
from
'./components/handleDialog'
import
handleDialog
from
'./components/handleDialog'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
}
from
'@/common/constants.js'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
,
priorityShowText
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'Details'
,
name
:
'Details'
,
props
:
{
props
:
{
...
@@ -345,11 +345,7 @@ export default {
...
@@ -345,11 +345,7 @@ export default {
3
:
'type-blue'
,
3
:
'type-blue'
,
4
:
'type-green'
4
:
'type-green'
},
},
priorityShowText
:
{
priorityShowText
:
deepClone
(
priorityShowText
),
1
:
'高'
,
2
:
'中'
,
3
:
'低'
},
priorityShowClass
:
{
priorityShowClass
:
{
1
:
'priority-one'
,
1
:
'priority-one'
,
2
:
'priority-two'
,
2
:
'priority-two'
,
...
...
src/views/earlyWarningManager/staff/noticeBoard.vue
View file @
adf9b46
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
staffWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
staffWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
businessOpt
}
from
'@/common/constants.js'
import
{
businessOpt
,
businessOptShowText
,
priorityShowText
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'NoticeBoard'
,
name
:
'NoticeBoard'
,
data
()
{
data
()
{
...
@@ -162,21 +162,13 @@ export default {
...
@@ -162,21 +162,13 @@ export default {
}],
}],
baseData
:
{
baseData
:
{
businessOpt
:
deepClone
(
businessOpt
),
businessOpt
:
deepClone
(
businessOpt
),
businessOptShowText
:
{
businessOptShowText
:
deepClone
(
businessOptShowText
),
2
:
'轻改'
,
3
:
'权益'
,
4
:
'延保'
},
businessOptShowClass
:
{
businessOptShowClass
:
{
2
:
'name-info-type-yellow'
,
2
:
'name-info-type-yellow'
,
3
:
'name-info-type-blue'
,
3
:
'name-info-type-blue'
,
4
:
'name-info-type-green'
4
:
'name-info-type-green'
},
},
priorityShowText
:
{
priorityShowText
:
deepClone
(
priorityShowText
),
1
:
'高'
,
2
:
'中'
,
3
:
'低'
},
priorityShowClass
:
{
priorityShowClass
:
{
1
:
'item-event-big-priority-one'
,
1
:
'item-event-big-priority-one'
,
2
:
'item-event-big-priority-two'
,
2
:
'item-event-big-priority-two'
,
...
...
src/views/earlyWarningManager/store/components/detailDialog.vue
View file @
adf9b46
...
@@ -105,6 +105,7 @@
...
@@ -105,6 +105,7 @@
<
script
>
<
script
>
import
{
findByMsgId
}
from
'@api/earlyWarningManager'
import
{
findByMsgId
}
from
'@api/earlyWarningManager'
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
priorityShowText
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
"DetailDialog"
,
name
:
"DetailDialog"
,
components
:
{
components
:
{
...
@@ -202,11 +203,7 @@ export default {
...
@@ -202,11 +203,7 @@ export default {
},
},
cycleShow
:
''
,
// 预警周期显示
cycleShow
:
''
,
// 预警周期显示
createTimeShow
:
''
,
// 创建时间显示
createTimeShow
:
''
,
// 创建时间显示
priorityShowText
:
{
priorityShowText
:
deepClone
(
priorityShowText
)
1
:
'高'
,
2
:
'中'
,
3
:
'低'
}
}
}
},
},
methods
:
{
methods
:
{
...
...
src/views/earlyWarningManager/store/details.vue
View file @
adf9b46
...
@@ -85,7 +85,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
...
@@ -85,7 +85,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
import
detailDialog
from
'./components/detailDialog'
import
detailDialog
from
'./components/detailDialog'
import
handleDialog
from
'./components/handleDialog'
import
handleDialog
from
'./components/handleDialog'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
}
from
'@/common/constants.js'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
,
priorityShowText
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'Details'
,
name
:
'Details'
,
props
:
{
props
:
{
...
@@ -326,11 +326,7 @@ export default {
...
@@ -326,11 +326,7 @@ export default {
3
:
'type-blue'
,
3
:
'type-blue'
,
4
:
'type-green'
4
:
'type-green'
},
},
priorityShowText
:
{
priorityShowText
:
deepClone
(
priorityShowText
),
1
:
'高'
,
2
:
'中'
,
3
:
'低'
},
priorityShowClass
:
{
priorityShowClass
:
{
1
:
'priority-one'
,
1
:
'priority-one'
,
2
:
'priority-two'
,
2
:
'priority-two'
,
...
...
src/views/earlyWarningManager/store/noticeBoard.vue
View file @
adf9b46
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
merchantWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
merchantWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
businessOpt
}
from
'@/common/constants.js'
import
{
businessOpt
,
businessOptShowText
,
priorityShowText
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'NoticeBoard'
,
name
:
'NoticeBoard'
,
data
()
{
data
()
{
...
@@ -135,21 +135,13 @@ export default {
...
@@ -135,21 +135,13 @@ export default {
}],
}],
baseData
:
{
baseData
:
{
businessOpt
:
deepClone
(
businessOpt
),
businessOpt
:
deepClone
(
businessOpt
),
businessOptShowText
:
{
businessOptShowText
:
deepClone
(
businessOptShowText
),
2
:
'轻改'
,
3
:
'权益'
,
4
:
'延保'
},
businessOptShowClass
:
{
businessOptShowClass
:
{
2
:
'name-info-type-yellow'
,
2
:
'name-info-type-yellow'
,
3
:
'name-info-type-blue'
,
3
:
'name-info-type-blue'
,
4
:
'name-info-type-green'
4
:
'name-info-type-green'
},
},
priorityShowText
:
{
priorityShowText
:
deepClone
(
priorityShowText
),
1
:
'高'
,
2
:
'中'
,
3
:
'低'
},
priorityShowClass
:
{
priorityShowClass
:
{
1
:
'item-event-big-priority-one'
,
1
:
'item-event-big-priority-one'
,
2
:
'item-event-big-priority-two'
,
2
:
'item-event-big-priority-two'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment