Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
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
刘怀志
qr-consistency-vue3
Commits
48f9feda
Commit
48f9feda
authored
Apr 30, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单内容维护):新增表单内容准备就绪待新增接口
parent
e66f48a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
14 deletions
+39
-14
list.js
src/api/notificationContent/list.js
+8
-0
info.vue
...ontrolPlan/controlPlanNotice/notificationContent/info.vue
+31
-14
No files found.
src/api/notificationContent/list.js
View file @
48f9feda
...
...
@@ -24,3 +24,11 @@ export function getVehicleModelAnnouncementNumber(id) {
})
}
// 获取当前登录用户
export
function
getCurrentLoginUser
()
{
return
request
({
url
:
'/control/sysNotificationContent/getCurrentLoginUser'
,
method
:
'get'
})
}
src/views/controlPlan/controlPlanNotice/notificationContent/info.vue
View file @
48f9feda
...
...
@@ -169,7 +169,7 @@
placeholder=
"请选择"
>
<el-option
v-for=
"dict in
4
"
v-for=
"dict in
changeType
"
:label=
"dict"
:value=
"dict"
/>
...
...
@@ -188,9 +188,9 @@
>
<el-option
v-for=
"dict in
4
"
:label=
"dict"
:value=
"dict"
v-for=
"dict in
car_type
"
:label=
"dict
.label
"
:value=
"dict
.value
"
/>
</el-select>
</el-form-item>
...
...
@@ -207,7 +207,7 @@
<el-row
>
<el-col
:offset=
"1"
:span=
"22"
>
<el-form-item
label=
"RTX/TEL:"
prop=
"
rtxTel
"
>
<el-form-item
label=
"RTX/TEL:"
prop=
""
>
<el-input
placeholder=
"请输入"
v-model=
"drawerQueryParams.rtxTel"
/>
</el-form-item>
</el-col>
...
...
@@ -215,16 +215,17 @@
<el-row
>
<el-col
:offset=
"1"
:span=
"22"
>
<el-form-item
label=
"认证负责人:"
prop=
"
certificationResponsiblePerson
"
>
<el-form-item
label=
"认证负责人:"
prop=
""
>
<el-select
disabled
v-model=
"drawerQueryParams.certificationResponsiblePerson"
placeholder=
"请选择认证负责人"
clearable
>
<el-option
v-for=
"dict in
4
"
:label=
"dict"
:value=
"dict"
v-for=
"dict in
[...currentLoginInfo]
"
:label=
"dict
.userName
"
:value=
"dict
.userId
"
/>
</el-select>
</el-form-item>
...
...
@@ -232,7 +233,7 @@
<el-row
>
<el-col
:offset=
"1"
:span=
"22"
>
<el-form-item
label=
"完成日期:"
prop=
"
completionTime
"
>
<el-form-item
label=
"完成日期:"
prop=
""
>
<el-date-picker
v-model=
"drawerQueryParams.completionTime"
type=
"date"
...
...
@@ -261,7 +262,8 @@
<
script
setup
>
import
{
getTopDetailInfo
,
getVehicleModelAnnouncementNumber
getVehicleModelAnnouncementNumber
,
getCurrentLoginUser
}
from
"@/api/notificationContent/list.js"
import
{
useRoute
}
from
'vue-router'
;
const
drawerTitle
=
ref
(
''
)
...
...
@@ -274,9 +276,14 @@ const modelAnnouncementNumber = ref([])
const
drawerQueryParams
=
ref
({
})
const
changeType
=
ref
([
"扩展"
,
"新增"
])
const
{
power_type
}
=
proxy
.
useDict
(
'power_type'
)
const
{
car_type
}
=
proxy
.
useDict
(
'car_type'
)
const
{
notification_status
}
=
proxy
.
useDict
(
'notification_status'
)
const
currentLoginInfo
=
ref
([])
// 从全局字典中获取事业部 icar 才能选择的车型系列数据
const
{
vehicle_model_series_icar
}
=
proxy
.
useDict
(
'vehicle_model_series_icar'
)
// 从全局字典中获取除事业部 icar 外可选择的车型系列数据
...
...
@@ -355,8 +362,7 @@ const getLabelByKey = (key) => {
// 若两个字典都未找到,返回空字符串
return
''
;
};
getTopInfo
()
getChexing
()
function
confirmClick
()
{
...
...
@@ -368,12 +374,23 @@ function confirmClick() {
}
})
}
function
getCurrentLoginInfo
(){
getCurrentLoginUser
().
then
(
res
=>
{
console
.
log
(
res
.
data
)
currentLoginInfo
.
value
=
[
res
.
data
]
drawerQueryParams
.
value
.
certificationResponsiblePerson
=
res
.
data
.
userId
;
})
}
function
cancelClick
()
{
drawerQueryRef
.
value
.
resetFields
();
drawer
.
value
=
false
;
}
getCurrentLoginInfo
()
getTopInfo
()
getChexing
()
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
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