|
@@ -1,6 +1,12 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <a-modal class="modalBox" :title="titleText" v-model="isshow" @cancle="cancel" :width="600">
|
|
|
+ <a-modal
|
|
|
+ class="modalBox"
|
|
|
+ :footer="null"
|
|
|
+ :title="titleText"
|
|
|
+ v-model="isshow"
|
|
|
+ @cancle="cancel"
|
|
|
+ :width="600">
|
|
|
<a-form :form="form" ref="form" @submit="handleSubmit">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="20">
|
|
@@ -23,7 +29,7 @@
|
|
|
<a-button :loading="loading" id="addEvaIndexModal-submit" type="primary" @click="handleSubmit()">
|
|
|
确定
|
|
|
</a-button>
|
|
|
- <a-button id="addEvaIndexModal-cancel" :style="{ marginLeft: '8px' }" @click="handleCancel()">
|
|
|
+ <a-button id="addEvaIndexModal-cancel" :style="{ marginLeft: '8px' }" @click="cancel()">
|
|
|
取消
|
|
|
</a-button>
|
|
|
</a-form-item>
|
|
@@ -129,20 +135,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 取消
|
|
|
- handleCancel () {
|
|
|
- const _this = this
|
|
|
- this.$confirm({
|
|
|
- title: '提示',
|
|
|
- content: '确定取消吗?',
|
|
|
- okText: '确定',
|
|
|
- cancelText: '取消',
|
|
|
- onOk () {
|
|
|
- _this.clear()
|
|
|
- _this.cancel()
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
clear () {
|
|
|
this.form.resetFields()
|
|
|
}
|