|
|
|
|
@ -21,6 +21,7 @@ |
|
|
|
|
<el-button type="primary" @click="addFn">新增</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<!-- <el-button type="text" @click="editFn(scope.row)"> 编辑</el-button> --> |
|
|
|
|
<el-button type="text" @click="detailsFn(scope.row)"> 详情</el-button> |
|
|
|
|
<!-- 是否展示 --> |
|
|
|
|
<el-button type="text" v-if="scope.row.isSpecial == 1" @click="setCrew(scope.row)"> |
|
|
|
|
@ -420,6 +421,12 @@ export default { |
|
|
|
|
this.isAddOpen = true; |
|
|
|
|
this.rowId = row.id; |
|
|
|
|
}, |
|
|
|
|
// 编辑 |
|
|
|
|
editFn(row){ |
|
|
|
|
this.openTitle = '编辑'; |
|
|
|
|
this.isAddOpen = true; |
|
|
|
|
this.rowId = row.id; |
|
|
|
|
}, |
|
|
|
|
// 设置班组人员 |
|
|
|
|
setCrew(row) { |
|
|
|
|
this.rowId = row.id; |
|
|
|
|
|