|
@@ -59,12 +59,7 @@
|
|
|
<el-button @click="resetForm()">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table
|
|
|
- :data="tableData"
|
|
|
- style="width: calc(100% - 20px); padding: 0 10px"
|
|
|
- height="calc(80vh - 400px)"
|
|
|
- stripe
|
|
|
- >
|
|
|
+ <el-table :data="tableData" style="width: calc(100% - 20px);padding:0 10px;" height="calc(80vh - 400px)" stripe :row-class-name="tableRowClassName" @row-click="rowClick">
|
|
|
<el-table-column type="index" width="50"> </el-table-column>
|
|
|
<el-table-column prop="taskId" label="任务编号"> </el-table-column>
|
|
|
<el-table-column prop="taskName" label="任务名称"> </el-table-column>
|
|
@@ -79,7 +74,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="taskType" label="任务类型"> </el-table-column>
|
|
|
- <el-table-column fixed="right" label="操作">
|
|
|
+ <!-- <el-table-column fixed="right" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -88,7 +83,7 @@
|
|
|
>查看</el-button
|
|
|
>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
<div id="WholeProcessManagement-footer">
|
|
|
<Pagination :paginationData="paginationData" />
|
|
@@ -261,12 +256,21 @@ export default {
|
|
|
};
|
|
|
this.onSubmit();
|
|
|
},
|
|
|
+ // 给每一行row的数据对象里添加index属性
|
|
|
+ tableRowClassName({ row,rowIndex }) {
|
|
|
+ row.index = rowIndex;
|
|
|
+ },
|
|
|
+ // 用户单击某行时触发操作
|
|
|
+ rowClick(row,column,event){
|
|
|
+ // console.log(row,column,event);
|
|
|
+ this.ToView(row.index)
|
|
|
+ },
|
|
|
// 查看
|
|
|
- ToView(index, rows) {
|
|
|
+ ToView(index) {
|
|
|
this.StepsMyBoxShowState = true;
|
|
|
- console.log(rows, index);
|
|
|
- },
|
|
|
- },
|
|
|
+ console.log("选中的历史项目的index:",index);
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|