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
be3567df
Commit
be3567df
authored
May 06, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(通知单内容维护):完成维护
parent
76becfe1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
list.js
src/api/notificationContent/list.js
+7
-0
index.vue
...ntrolPlan/controlPlanNotice/notificationContent/index.vue
+1
-1
info.vue
...ontrolPlan/controlPlanNotice/notificationContent/info.vue
+20
-3
No files found.
src/api/notificationContent/list.js
View file @
be3567df
...
@@ -59,3 +59,10 @@ export function editChangeRecord(data) {
...
@@ -59,3 +59,10 @@ export function editChangeRecord(data) {
})
})
}
}
// 完成维护-维护变更记录
export
function
completeTheMaintenance
(
id
)
{
return
request
({
url
:
'/control/sysNotificationContent/completeTheMaintenance/'
+
id
,
method
:
'get'
})
}
src/views/controlPlan/controlPlanNotice/notificationContent/index.vue
View file @
be3567df
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
<el-table-column
label=
"操作"
align=
"center"
width=
"160"
>
<el-table-column
label=
"操作"
align=
"center"
width=
"160"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleMaintain(scope.row)"
>
查看
</el-button>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"handleMaintain(scope.row)"
>
查看
</el-button>
<el-button
type=
"text"
style=
"color: rgb(0,0,255)"
@
click=
"changeRecords(scope.row)"
>
维护变更记录
</el-button>
<el-button
type=
"text"
v-if=
"scope.row.certificationStatus !== '1'"
style=
"color: rgb(0,0,255)"
@
click=
"changeRecords(scope.row)"
>
维护变更记录
</el-button>
<el-button
type=
"text"
style=
"color: rgb(255,153,0)"
@
click=
"copeAdd(scope.row)"
>
取消完成
</el-button>
<el-button
type=
"text"
style=
"color: rgb(255,153,0)"
@
click=
"copeAdd(scope.row)"
>
取消完成
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/controlPlan/controlPlanNotice/notificationContent/info.vue
View file @
be3567df
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<el-form-item
class=
"button-container right-align"
style=
"position: relative;"
>
<el-form-item
class=
"button-container right-align"
style=
"position: relative;"
>
<div
>
<div
>
<el-button
type=
"primary"
class=
"btn-C"
@
click=
"addWeiHu"
>
添加
</el-button>
<el-button
type=
"primary"
class=
"btn-C"
@
click=
"addWeiHu"
>
添加
</el-button>
<el-button
@
click=
"
resetQuery
"
class=
"btn-A"
>
完成维护
</el-button>
<el-button
@
click=
"
finishWeiHu
"
class=
"btn-A"
>
完成维护
</el-button>
</div>
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -264,12 +264,14 @@ import {
...
@@ -264,12 +264,14 @@ import {
getCurrentLoginUser
,
getCurrentLoginUser
,
addChangeRecord
,
addChangeRecord
,
getInList
,
getInList
,
editChangeRecord
editChangeRecord
,
completeTheMaintenance
}
from
"@/api/notificationContent/list.js"
}
from
"@/api/notificationContent/list.js"
import
{
useRoute
}
from
'vue-router'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
ElMessage
}
from
"element-plus"
;
// 获取当前路由实例
// 获取当前路由实例
const
route
=
useRoute
();
const
route
=
useRoute
();
const
router
=
useRouter
();
// 获取 router 实例
const
total
=
ref
(
0
)
const
total
=
ref
(
0
)
const
drawerTitle
=
ref
(
''
)
const
drawerTitle
=
ref
(
''
)
const
drawer
=
ref
(
false
)
const
drawer
=
ref
(
false
)
...
@@ -299,7 +301,8 @@ const { vehicle_model_series } = proxy.useDict('vehicle_model_series')
...
@@ -299,7 +301,8 @@ const { vehicle_model_series } = proxy.useDict('vehicle_model_series')
const
queryParams
=
ref
({
const
queryParams
=
ref
({
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
,
notificationId
:
id
})
})
// 定义表单验证规则
// 定义表单验证规则
const
rules
=
ref
({
const
rules
=
ref
({
...
@@ -356,14 +359,28 @@ function handleEdit(row){
...
@@ -356,14 +359,28 @@ function handleEdit(row){
//查询
//查询
function
handleQuery
(){
function
handleQuery
(){
queryParams
.
value
.
pageNum
=
1
queryParams
.
value
.
pageNum
=
1
queryParams
.
value
.
notificationId
=
id
getList
()
getList
()
}
}
//完成维护
function
finishWeiHu
(){
completeTheMaintenance
(
id
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
ElMessage
.
success
(
'完成维护成功'
)
// getTopInfo()
goBack
()
}
})
}
//重置
//重置
function
resetQuery
(){
function
resetQuery
(){
queryParams
.
value
=
{
queryParams
.
value
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
notificationId
:
id
,
vehicleAnnouncementNumber
:
''
,
vehicleAnnouncementNumber
:
''
,
changeType
:
''
,
changeType
:
''
,
projectResponsiblePerson
:
''
,
projectResponsiblePerson
:
''
,
...
...
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