feat:修复只读回滚

wuyanfu
吴延福 2023-07-03 11:50:11 +08:00
parent fa4040e98c
commit 13add5a58d
2 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@
<el-table-column label="操作" fixed="right" width="100" v-if="!isReadonly"> <el-table-column label="操作" fixed="right" width="100" v-if="!isReadonly">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="showSubUpdateModel(scope.row)">修改</el-button> <el-button type="text" @click="showSubUpdateModel(scope.row)">修改</el-button>
<el-button type="text" @click="doSubDelete([scope.row.index])">删除</el-button> <el-button type="text" @click="doSubDelete([scope.row.index - 1])">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@ -440,6 +440,8 @@ export default class WorkManagerComponent extends BaseRecordComponent<any> {
if (row) { if (row) {
this.stepUpdateParams = JSON.parse(JSON.stringify(row)); this.stepUpdateParams = JSON.parse(JSON.stringify(row));
} }
this.buildUpdateForm()
this.showSubUpdate = true; this.showSubUpdate = true;
} }