Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
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
李苏
sgaqgl-vue
Commits
281b4076
Commit
281b4076
authored
Jan 04, 2023
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
bac62f25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
18 deletions
+52
-18
enterTV.js
src/api/threeViolations/enterTV.js
+16
-10
index.vue
src/views/threeViolations/enterTV/index.vue
+36
-8
No files found.
src/api/threeViolations/enterTV.js
View file @
281b4076
...
...
@@ -31,16 +31,6 @@ export function doDelete(query) {
})
}
/* 提交 */
export
function
doCommit
(
query
)
{
return
request
({
url
:
'/aqgl/swgl/swjl/doCommit'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 曝光 */
export
function
doPg
(
query
)
{
return
request
({
...
...
@@ -113,3 +103,19 @@ export function doQueryCfbz(query) {
data
:
query
||
{}
})
}
export
function
doCommit
(
query
)
{
return
request
({
url
:
`/aqgl/swgl/swjl/doCommit`
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doCancel
(
query
)
{
return
request
({
url
:
`/aqgl/swgl/swjl/doCancel`
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/threeViolations/enterTV/index.vue
View file @
281b4076
...
...
@@ -20,9 +20,13 @@
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileShow
:params=
"
{childPath:'SWXX'}" :app='app'>
</AttachFileShow>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<el-button
@
click=
"doSwCommit"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"doSwCancel"
size=
'mini'
type=
"primary"
>
取消
</el-button>
<!-- 表头设置 -->
<!-- 权限-->
...
...
@@ -44,7 +48,9 @@
doAdd
,
doUpdate
,
doDelete
,
doQueryCfbz
doQueryCfbz
,
doCommit
,
doCancel
}
from
'@/api/threeViolations/enterTV.js'
;
/* edit页面*/
/* edit页面*/
...
...
@@ -72,8 +78,8 @@
baseUrl
:
'/aqgl/swgl/swjl'
,
/* 查询参数*/
queryParams
:
{
ryxx
:
''
,
zt
:
'I'
ryxx
:
''
//
zt:'I'
},
/* 表格标题对应参数*/
tableTitle
:
[
...
...
@@ -88,6 +94,7 @@
{
label
:
"违章行为"
,
prop
:
"wzxw"
,
fieldType
:
"ftString"
,
width
:
280
},
{
label
:
"三违等级"
,
prop
:
"swdjName"
,
fieldType
:
"ftString"
,
width
:
280
},
{
label
:
"三违类型"
,
prop
:
"wglxName"
,
fieldType
:
"ftString"
,
width
:
280
},
{
label
:
"处理状态"
,
prop
:
"ztName"
,
fieldType
:
"ftString"
,
width
:
280
},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
...
...
@@ -132,9 +139,30 @@
init
()
{
},
/* 启用停用*/
doSwCommit
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
singleItem
.
id
&&
doCommit
(
this
.
singleItem
).
then
(
e
=>
{
if
(
e
.
success
){
this
.
$success
(
'操作成功'
)
this
.
$refs
[
'TablePager'
].
reLoad
()
}
})
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
doSwCancel
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
singleItem
.
id
&&
doCancel
(
this
.
singleItem
).
then
(
e
=>
{
if
(
e
.
success
){
this
.
$success
(
'操作成功'
)
this
.
$refs
[
'TablePager'
].
reLoad
()
}
})
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
}
},
components
:
{
Edit
,
...
...
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