|
@@ -79,7 +79,7 @@
|
|
|
<el-dialog :title="formTitle" :visible.sync="dialogFormVisible" append-to-body :show-close="false">
|
|
|
<el-form :model="form" ref="formRef" label-width="120" :rules="rules" label-position="right" size="small">
|
|
|
<el-form-item label="费用类型:" prop="feestype">
|
|
|
- <el-select v-model="form.feestype" placeholder="请选择营销费用类型" style="width: 85%">
|
|
|
+ <el-select v-model="form.feestype" placeholder="请选择营销费用类型" style="width: 85%" filterable>
|
|
|
<el-option v-for="item in feestype" :key="item.index" :label="item.value + item.remarks" :value="item.value"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -88,7 +88,7 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogFormVisible = false" size="small">取 消</el-button>
|
|
|
+ <el-button @click="onCloseType" size="small">取 消</el-button>
|
|
|
<el-button type="primary" @click="onSubmit" size="small">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -198,6 +198,7 @@ export default {
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.dialogFormVisible = false
|
|
|
+ this.$refs.formRef.resetFields()
|
|
|
this.listData(this.param.content.pageNumber = 1)
|
|
|
})
|
|
|
}else {
|
|
@@ -219,6 +220,7 @@ export default {
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.dialogFormVisible = false
|
|
|
+ this.$refs.formRef.resetFields()
|
|
|
this.listData(this.param.content.pageNumber = 1)
|
|
|
})
|
|
|
}
|
|
@@ -229,6 +231,10 @@ export default {
|
|
|
this.dialogVisible = false
|
|
|
this.$emit('onSuccess')
|
|
|
},
|
|
|
+ onCloseType(){
|
|
|
+ this.dialogFormVisible = false
|
|
|
+ this.$refs.formRef.resetFields()
|
|
|
+ },
|
|
|
delClick(data) {
|
|
|
this.$confirm('是否删除该数据?', '提示', {
|
|
|
confirmButtonText: '删除',
|