Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
蔡永松
/
fontweb-dc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5315656b
authored
2020-08-03 16:00:38 +0800
by
焦小希
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加过滤器,添加删除之前的校验
1 parent
e4f8b31e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
src/main/webapp/view/PHJG/PHGL/daiban/js/widget.js
src/main/webapp/view/PHJG/PHGL/daiban/widget.html
src/main/webapp/view/PHJG/PHGL/yiban/js/widget.js
src/main/webapp/view/PHJG/PHGL/yiban/widget.html
src/main/webapp/view/PHJG/PHGL/daiban/js/widget.js
View file @
5315656
...
...
@@ -14,7 +14,8 @@ var self = new Vue({
rwListIndex
:
0
},
// 表格数据
tabaledata
:[]
tabaledata
:[],
multipleSelection
:
[]
}
},
mounted
(){
...
...
@@ -41,6 +42,15 @@ var self = new Vue({
clickData
(
row
){
this
.
jumpdetailPage
(
row
)
},
handlclick
(){
if
(
this
.
multipleSelection
.
length
!=
1
){
this
.
$message
.
warning
(
'请先选择需要删除的数据'
)
return
false
}
},
handleSelectionChange
(
val
){
this
.
multipleSelection
=
val
},
openHandleJumpUrl
(
flowId
,
itemTypeId
,
_stats
=
'create'
)
{
// debugger
var
unique
=
this
.
uuid
();
...
...
src/main/webapp/view/PHJG/PHGL/daiban/widget.html
View file @
5315656
...
...
@@ -96,7 +96,7 @@
<el-col
:span=
"4"
>
<!-- <button class="btns">查询</button>-->
<button
class=
"btns"
@
click=
"openHandleJumpUrl('t1001_8a8610d86117e3b401611848a8690000')"
>
添加
</button>
<button
class=
"btns"
>
删除
</button>
<button
class=
"btns"
@
click=
"handlclick"
>
删除
</button>
</el-col>
<el-col
:span=
"6"
>
<div
class=
"div-search"
>
...
...
@@ -113,6 +113,7 @@
border
stripe
@
row-click=
"clickData"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
...
...
src/main/webapp/view/PHJG/PHGL/yiban/js/widget.js
View file @
5315656
...
...
@@ -95,7 +95,8 @@ var self = new Vue({
ssqy
:
'碑林分局'
,
cjsj
:
'2020-07-05'
},
]
],
multipleSelection
:[]
}
},
mounted
(){
...
...
@@ -120,6 +121,15 @@ var self = new Vue({
clickData
(
row
){
this
.
jumpdetailPage
(
row
)
},
handlclick
(){
if
(
this
.
multipleSelection
.
length
!=
1
){
this
.
$message
.
warning
(
'请先选择需要删除的数据'
)
return
false
}
},
handleSelectionChange
(
val
){
this
.
multipleSelection
=
val
},
jumpdetailPage
(
data
)
{
var
taskid
=
data
.
TASKID
;
var
detailType
=
data
.
detailType
;
...
...
src/main/webapp/view/PHJG/PHGL/yiban/widget.html
View file @
5315656
...
...
@@ -96,7 +96,7 @@
<el-col
:span=
"4"
>
<!-- <button class="btns">查询</button>-->
<!-- <button class="btns" @click="openHandleJumpUrl('t1001_8a8610de737b99270173937337e00133','1')">添加</button>-->
<button
class=
"btns"
>
删除
</button>
<button
class=
"btns"
@
click=
"handlclick"
>
删除
</button>
</el-col>
<el-col
:span=
"6"
>
<div
class=
"div-search"
>
...
...
@@ -113,6 +113,7 @@
border
stripe
@
row-click=
"clickData"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
...
...
Please
register
or
sign in
to post a comment