main
parent
0b1882220f
commit
8132d9966c
@ -0,0 +1,81 @@ |
||||
<template> |
||||
<a-modal |
||||
:title="title" |
||||
:width="560" |
||||
:visible="visibleLook" |
||||
:isLoading="isLoading" |
||||
:confirmLoading="isLoading" |
||||
:maskClosable="false" |
||||
@cancel="handleCancel" |
||||
footer='-' |
||||
> |
||||
<a-spin :spinning="isLoading"> |
||||
<a-form :form="form"> |
||||
<a-form-item |
||||
:labelCol="labelCol" |
||||
:wrapperCol="wrapperCol" |
||||
> |
||||
<Ueditor v-decorator="['content']" /> |
||||
</a-form-item> |
||||
</a-form> |
||||
</a-spin> |
||||
</a-modal> |
||||
</template> |
||||
|
||||
<script> |
||||
import _ from 'lodash' |
||||
import { Ueditor } from '@/components' |
||||
export default { |
||||
components: { |
||||
Ueditor, |
||||
}, |
||||
data() { |
||||
return { |
||||
// 对话框标题 |
||||
title: '拒绝内容', |
||||
// 标签布局属性 |
||||
labelCol: { span: 6 }, |
||||
// 输入框布局属性 |
||||
wrapperCol: { span: 14 }, |
||||
// modal(对话框)是否可见 |
||||
visibleLook: false, |
||||
// modal(对话框)确定按钮 loading |
||||
isLoading: false, |
||||
// 当前表单元素 |
||||
form: this.$form.createForm(this), |
||||
// 当前记录 |
||||
record: {}, |
||||
} |
||||
}, |
||||
created() {}, |
||||
methods: { |
||||
// 显示对话框 |
||||
show(record) { |
||||
// 显示窗口 |
||||
this.visibleLook = true |
||||
// 当前记录 |
||||
this.record = record |
||||
// 设置默认值 |
||||
this.setFieldsValue() |
||||
}, |
||||
|
||||
// 设置默认值 |
||||
setFieldsValue() { |
||||
const { |
||||
record, |
||||
$nextTick, |
||||
form: { setFieldsValue }, |
||||
} = this |
||||
$nextTick(() => { |
||||
setFieldsValue({ content: record.refuse_desc }) |
||||
}) |
||||
}, |
||||
// 关闭对话框事件 |
||||
handleCancel() { |
||||
this.visibleLook = false |
||||
this.form.resetFields() |
||||
}, |
||||
}, |
||||
} |
||||
</script> |
||||
|
Loading…
Reference in new issue