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

修改与取消基础功能

parent e3fd3a80
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">完成修改</el-button> <el-button type="primary" @click="onSubmit">完成修改</el-button>
<el-button>取消</el-button> <el-button @click="onCancel">取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</template> </template>
...@@ -44,7 +44,10 @@ export default { ...@@ -44,7 +44,10 @@ export default {
}, },
methods: { methods: {
onSubmit() { onSubmit() {
console.log('submit!') this.$emit('changeIsShowEditDailog', false)
},
onCancel() {
this.$emit('changeIsShowEditDailog', false)
} }
} }
} }
......
...@@ -379,7 +379,10 @@ ...@@ -379,7 +379,10 @@
:visible.sync="isShowEditDailog" :visible.sync="isShowEditDailog"
width="40%" width="40%"
> >
<showEditDailog :showDailogData="showDailogData" /> <showEditDailog
:showDailogData="showDailogData"
@changeIsShowEditDailog="changeIsShowEditDailog(false)"
/>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -651,6 +654,9 @@ export default { ...@@ -651,6 +654,9 @@ export default {
} }
} }
}, },
changeIsShowEditDailog(condition) {
this.isShowEditDailog = condition
},
// 表格操作,弹出框 // 表格操作,弹出框
handleDailog(row) { handleDailog(row) {
console.log('row', row) console.log('row', row)
...@@ -684,7 +690,7 @@ export default { ...@@ -684,7 +690,7 @@ export default {
if (res.status === '200') { if (res.status === '200') {
// vm.currentRow = res.data.list[0] // vm.currentRow = res.data.list[0]
// vm.type = 'flow' // vm.type = 'flow'
vm.handleDailog(row.ftype) vm.handleDailog(row)
} }
}) })
break break
...@@ -693,7 +699,7 @@ export default { ...@@ -693,7 +699,7 @@ export default {
if (res.status === '200') { if (res.status === '200') {
// vm.currentRow = res.data.list[0] // vm.currentRow = res.data.list[0]
// vm.type = 'agency' // vm.type = 'agency'
vm.handleDailog(row.ftype) vm.handleDailog(row)
} }
}) })
break 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