@@ -163,7 +163,10 @@ export default {
await this.root
.useAlteration(prop)
.then(() => {
+ const [{ id }] = prop;
+ const { fetchItem } = this.root.$refs.SeeModel;
this.hide();
+ fetchItem(id);
})
.catch(() => {});
},
@@ -101,7 +101,6 @@ export default {
await open(id);
hasPowerEdit(prop) {
- return true;
if (prop.length === 1) {
const [{ status }] = prop;
if (status !== "2") return true;
@@ -98,6 +98,19 @@ export default {
></el-button>
</el-tooltip>
<el-tooltip
+ v-if="root.hasPowerAlteration([params])"
+ effect="dark"
+ content="变 更"
+ placement="bottom-end"
+ >
+ <el-button
+ :size="size"
+ circle
+ icon="el-icon-edit"
+ @click="root.useEdit([params])"
+ ></el-button>
+ </el-tooltip>
+ <el-tooltip
v-if="root.hasPowerEdit([params])"
effect="dark"
content="编 辑"