@@ -433,10 +433,15 @@ export default {
methods: {
async open(type, row) {
this.type = type;
+ this.visible = true;
if (row) {
this.getDetail(row.id)
+ } else {
+ this.$nextTick(() => {
+ this.$refs.table.setData([]);
+ })
}
- this.visible = true;
+
},
@@ -543,6 +548,7 @@ export default {
this.$nextTick(() => {
this.$refs.table.toggleRowExpansionAll()
+ this.$forceUpdate()
})
@@ -37,8 +37,8 @@
删除
</el-link>
- <el-link type="primary" :underline="false" @click="todo(row)">
- 提交
+ <el-link type="primary" :underline="false" @click="todo(row)" v-if="row.approvalStatus == 0 || row.approvalStatus == 3">
+ 提交
</template>
</ele-pro-table>