generated from Leo_Ding/web-template
1
This commit is contained in:
parent
a71957bfe8
commit
bd5916b97e
@ -22,8 +22,7 @@
|
|||||||
|
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item :label="'添加原因'" name="reason">
|
<a-form-item :label="'添加原因'" name="reason">
|
||||||
<a-textarea v-model:value="formData.reason" placeholder="输入原因"
|
<a-textarea v-model:value="formData.reason" placeholder="输入原因" auto-size />
|
||||||
auto-size />
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
@ -41,7 +40,7 @@ import { ref, onBeforeMount } from 'vue'
|
|||||||
import { config } from '@/config'
|
import { config } from '@/config'
|
||||||
import apis from '@/apis'
|
import apis from '@/apis'
|
||||||
import { useForm, useModal, useSpining } from '@/hooks'
|
import { useForm, useModal, useSpining } from '@/hooks'
|
||||||
import { message } from 'ant-design-vue'
|
import { message,Modal } from 'ant-design-vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import GxUpload from '@/components/GxUpload/index.vue'
|
import GxUpload from '@/components/GxUpload/index.vue'
|
||||||
@ -105,6 +104,11 @@ const uploadSuccess = (data) => {
|
|||||||
* 确定
|
* 确定
|
||||||
*/
|
*/
|
||||||
function handleOk() {
|
function handleOk() {
|
||||||
|
Modal.confirm({
|
||||||
|
title: '即将添加业主,是否继续',
|
||||||
|
content: t('button.confirm'),
|
||||||
|
okText: t('button.confirm'),
|
||||||
|
onOk: () => {
|
||||||
formRef.value.validateFields().then(async (values) => {
|
formRef.value.validateFields().then(async (values) => {
|
||||||
try {
|
try {
|
||||||
showLoading()
|
showLoading()
|
||||||
@ -134,6 +138,9 @@ function handleOk() {
|
|||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
hideLoading()
|
hideLoading()
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -39,13 +39,13 @@
|
|||||||
<a-col flex="auto">
|
<a-col flex="auto">
|
||||||
<a-card type="flex">
|
<a-card type="flex">
|
||||||
<x-action-bar class="mb-8-2">
|
<x-action-bar class="mb-8-2">
|
||||||
<a-button type="primary" @click="$refs.editDialogRef.handleCreate()">
|
<!-- <a-button type="primary" @click="$refs.editDialogRef.handleCreate()">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<plus-outlined></plus-outlined>
|
<plus-outlined></plus-outlined>
|
||||||
</template>
|
</template>
|
||||||
新增客户
|
新增客户
|
||||||
</a-button>
|
</a-button> -->
|
||||||
<a-button type="primary" @click="$refs.homerDialogRef.handleCreate()" style="margin-left: 10px;">
|
<a-button type="primary" @click="$refs.homerDialogRef.handleCreate()" >
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<plus-outlined></plus-outlined>
|
<plus-outlined></plus-outlined>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user