fix: 首页工单跳转
							parent
							
								
									59b0c799d1
								
							
						
					
					
						commit
						4aeb7fdc62
					
				| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <ItemCard title="待办工单" v-bind="$attrs">
 | 
					  <ItemCard title="待办工单" v-bind="$attrs">
 | 
				
			||||||
    <el-button slot="operate" type="primary" plain>查看更多</el-button>
 | 
					    <el-button slot="operate" type="primary" plain @click="goPage()">查看更多</el-button>
 | 
				
			||||||
    <cb-table :data="tableList" :params="params" :get-list="getItemList" :total="total" :pageSizes="[15]">
 | 
					    <cb-table :data="tableList" :params="params" :get-list="getItemList" :total="total" :pageSizes="[15]">
 | 
				
			||||||
      <el-table-column type="index" width="50" label="序号"> </el-table-column>
 | 
					      <el-table-column type="index" width="50" label="序号"> </el-table-column>
 | 
				
			||||||
      <el-table-column show-overflow-tooltip label="标题" prop="task_name">
 | 
					      <el-table-column show-overflow-tooltip label="标题" prop="task_name">
 | 
				
			||||||
| 
						 | 
					@ -19,7 +19,7 @@
 | 
				
			||||||
      <el-table-column show-overflow-tooltip label="时间" prop="create_time"></el-table-column>
 | 
					      <el-table-column show-overflow-tooltip label="时间" prop="create_time"></el-table-column>
 | 
				
			||||||
      <el-table-column show-overflow-tooltip label="操作" width="60px">
 | 
					      <el-table-column show-overflow-tooltip label="操作" width="60px">
 | 
				
			||||||
        <template slot-scope="scope">
 | 
					        <template slot-scope="scope">
 | 
				
			||||||
          <cb-link @click="handleOperation(scope.row)" style="font-size: 14px">审批</cb-link>
 | 
					          <cb-link @click="goPage(scope.row)" style="font-size: 14px">审批</cb-link>
 | 
				
			||||||
        </template>
 | 
					        </template>
 | 
				
			||||||
      </el-table-column>
 | 
					      </el-table-column>
 | 
				
			||||||
    </cb-table>
 | 
					    </cb-table>
 | 
				
			||||||
| 
						 | 
					@ -70,8 +70,10 @@ export default {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    handleOperation(row) {
 | 
					    goPage(row) {
 | 
				
			||||||
      console.log('操作任务', row)
 | 
					      // TODO 替换为动态链接
 | 
				
			||||||
 | 
					      const url = row ? `http://36.111.150.83:9527/taskManageFlow?taskCode=${row.task_code}&src=fromYW` : 'http://36.111.150.83:9527/faultRepairsList'
 | 
				
			||||||
 | 
					      window.location.href = url
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue