|
@@ -61,7 +61,7 @@
|
|
|
border
|
|
|
:summary-method="getSummaries"
|
|
|
show-summary
|
|
|
-
|
|
|
+ @row-click="handleRowClick"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column :selectable='selectInit' type="selection" width="55"></el-table-column>
|
|
@@ -319,6 +319,19 @@ export default {
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleRowClick(row){
|
|
|
+ if(row.approveStatus==null){
|
|
|
+ this.$refs.warehouseList.toggleRowSelection(row);
|
|
|
+ return true
|
|
|
+ }else if(row.approveStatus!=null){
|
|
|
+ if(row.taskId==null){
|
|
|
+ return false
|
|
|
+ }else{
|
|
|
+ this.$refs.warehouseList.toggleRowSelection(row);
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
selectInit(row){
|
|
|
//在这里一定要记得类型匹配的上。
|
|
|
if(row.approveStatus==null){
|