ui: set modal centered and change button icon
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-button type="primary" @click="onExport">
|
<a-button type="primary" @click="onExport">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<DownloadOutlined />
|
<ExportOutlined />
|
||||||
</template>导出</a-button>
|
</template>导出</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
</a-table>
|
</a-table>
|
||||||
<!-- 新建、编辑合同 -->
|
<!-- 新建、编辑合同 -->
|
||||||
<a-modal v-model:visible="visible" :title="title" @ok="onSave" @cancel="onCancel" cancelText="取消" okText="保存"
|
<a-modal v-model:visible="visible" :title="title" @ok="onSave" @cancel="onCancel" cancelText="取消" okText="保存"
|
||||||
width="800px" style="top: 80px">
|
width="800px" :centered="true">
|
||||||
<div style="height: 55vh;overflow-y: scroll;padding: 0 15px;">
|
<div style="height: 55vh;overflow-y: scroll;padding: 0 15px;">
|
||||||
<a-form ref="contractFormRef" :model="contract" layout="vertical" name="contract" :rules="rules">
|
<a-form ref="contractFormRef" :model="contract" layout="vertical" name="contract" :rules="rules">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref, reactive, onMounted, createVNode } from 'vue';
|
import { ref, reactive, onMounted, createVNode } from 'vue';
|
||||||
import { SearchOutlined, ExclamationCircleOutlined, UpCircleOutlined, DownCircleOutlined, DownloadOutlined } from '@ant-design/icons-vue';
|
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined } from '@ant-design/icons-vue';
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { createContract, updateContract, queryContractList, queryContractInfo, deleteContract, queryContractPlist, contractExport } from '../api/contract';
|
import { createContract, updateContract, queryContractList, queryContractInfo, deleteContract, queryContractPlist, contractExport } from '../api/contract';
|
||||||
import { queryProductList } from "../api/product";
|
import { queryProductList } from "../api/product";
|
||||||
@@ -182,9 +182,7 @@ import { message, Modal } from 'ant-design-vue';
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
SearchOutlined,
|
SearchOutlined,
|
||||||
UpCircleOutlined,
|
ExportOutlined
|
||||||
DownCircleOutlined,
|
|
||||||
DownloadOutlined
|
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-button type="primary" @click="onExport">
|
<a-button type="primary" @click="onExport">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<DownloadOutlined />
|
<ExportOutlined />
|
||||||
</template>导出</a-button>
|
</template>导出</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<!-- 新建、编辑客户 -->
|
<!-- 新建、编辑客户 -->
|
||||||
<a-modal v-model:visible="visible" :title="title" @ok="onSave" @cancel="onCancel" cancelText="取消" okText="保存"
|
<a-modal v-model:visible="visible" :title="title" @ok="onSave" @cancel="onCancel" cancelText="取消" okText="保存"
|
||||||
width="800px" style="top: 80px;">
|
width="800px" :centered="true">
|
||||||
<div style="height: 55vh;overflow-y: scroll;padding: 0 15px;">
|
<div style="height: 55vh;overflow-y: scroll;padding: 0 15px;">
|
||||||
<a-form ref="customerFormRef" :model="customer" layout="vertical" name="customer" :rules="rules">
|
<a-form ref="customerFormRef" :model="customer" layout="vertical" name="customer" :rules="rules">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref, reactive, onMounted, createVNode } from 'vue';
|
import { ref, reactive, onMounted, createVNode } from 'vue';
|
||||||
import { SearchOutlined, ExclamationCircleOutlined, DownloadOutlined } from '@ant-design/icons-vue';
|
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined } from '@ant-design/icons-vue';
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { createCustomer, updateCustomer, queryCustomerList, queryCustomerInfo, deleteCustomer, customerExport } from '../api/customer';
|
import { createCustomer, updateCustomer, queryCustomerList, queryCustomerInfo, deleteCustomer, customerExport } from '../api/customer';
|
||||||
import { message, Modal } from 'ant-design-vue';
|
import { message, Modal } from 'ant-design-vue';
|
||||||
@@ -135,7 +135,7 @@ import regionData from '../assets/region';
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
SearchOutlined,
|
SearchOutlined,
|
||||||
DownloadOutlined
|
ExportOutlined
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const columns = [{
|
const columns = [{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-button type="primary" @click="onExport">
|
<a-button type="primary" @click="onExport">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<DownloadOutlined />
|
<ExportOutlined />
|
||||||
</template>导出</a-button>
|
</template>导出</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,7 +41,8 @@
|
|||||||
</a-table>
|
</a-table>
|
||||||
<!-- 新建、编辑产品 -->
|
<!-- 新建、编辑产品 -->
|
||||||
<a-modal v-model:visible="visible" :title="title" @ok="onSave" @cancel="onCancel" cancelText="取消" okText="保存"
|
<a-modal v-model:visible="visible" :title="title" @ok="onSave" @cancel="onCancel" cancelText="取消" okText="保存"
|
||||||
width="800px" style="top: 80px">
|
width="800px" :centered="true">
|
||||||
|
<div style="height: 55vh;overflow-y: scroll;padding: 0 15px;">
|
||||||
<a-form ref="productFormRef" :model="product" layout="vertical" name="product" :rules="rules">
|
<a-form ref="productFormRef" :model="product" layout="vertical" name="product" :rules="rules">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
@@ -101,13 +102,14 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref, reactive, onMounted, createVNode } from 'vue';
|
import { ref, reactive, onMounted, createVNode } from 'vue';
|
||||||
import { SearchOutlined, ExclamationCircleOutlined, DownloadOutlined } from '@ant-design/icons-vue';
|
import { SearchOutlined, ExclamationCircleOutlined, ExportOutlined } from '@ant-design/icons-vue';
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { createProduct, updateProduct, queryProductList, deleteProduct, queryProductInfo, productExport } from '../api/product';
|
import { createProduct, updateProduct, queryProductList, deleteProduct, queryProductInfo, productExport } from '../api/product';
|
||||||
import { message, Modal } from 'ant-design-vue';
|
import { message, Modal } from 'ant-design-vue';
|
||||||
@@ -115,7 +117,7 @@ import { message, Modal } from 'ant-design-vue';
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
SearchOutlined,
|
SearchOutlined,
|
||||||
DownloadOutlined
|
ExportOutlined
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
// 表格字段
|
// 表格字段
|
||||||
|
|||||||
Reference in New Issue
Block a user