Commit cdd4b055 authored by wenju-zhu's avatar wenju-zhu

修改与取消基础功能

parent e3fd3a80
......@@ -24,7 +24,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">完成修改</el-button>
<el-button>取消</el-button>
<el-button @click="onCancel">取消</el-button>
</el-form-item>
</el-form>
</template>
......@@ -44,7 +44,10 @@ export default {
},
methods: {
onSubmit() {
console.log('submit!')
this.$emit('changeIsShowEditDailog', false)
},
onCancel() {
this.$emit('changeIsShowEditDailog', false)
}
}
}
......
......@@ -379,7 +379,10 @@
:visible.sync="isShowEditDailog"
width="40%"
>
<showEditDailog :showDailogData="showDailogData" />
<showEditDailog
:showDailogData="showDailogData"
@changeIsShowEditDailog="changeIsShowEditDailog(false)"
/>
</el-dialog>
</div>
</template>
......@@ -651,6 +654,9 @@ export default {
}
}
},
changeIsShowEditDailog(condition) {
this.isShowEditDailog = condition
},
// 表格操作,弹出框
handleDailog(row) {
console.log('row', row)
......@@ -684,7 +690,7 @@ export default {
if (res.status === '200') {
// vm.currentRow = res.data.list[0]
// vm.type = 'flow'
vm.handleDailog(row.ftype)
vm.handleDailog(row)
}
})
break
......@@ -693,7 +699,7 @@ export default {
if (res.status === '200') {
// vm.currentRow = res.data.list[0]
// vm.type = 'agency'
vm.handleDailog(row.ftype)
vm.handleDailog(row)
}
})
break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment