ui: set modal centered and change button icon
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<div>
|
||||
<a-button type="primary" @click="onExport">
|
||||
<template #icon>
|
||||
<DownloadOutlined />
|
||||
<ExportOutlined />
|
||||
</template>导出</a-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,7 +39,7 @@
|
||||
</a-table>
|
||||
<!-- 新建、编辑合同 -->
|
||||
<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="contractFormRef" :model="contract" layout="vertical" name="contract" :rules="rules">
|
||||
<a-row :gutter="16">
|
||||
@@ -172,7 +172,7 @@
|
||||
|
||||
<script>
|
||||
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 { createContract, updateContract, queryContractList, queryContractInfo, deleteContract, queryContractPlist, contractExport } from '../api/contract';
|
||||
import { queryProductList } from "../api/product";
|
||||
@@ -182,9 +182,7 @@ import { message, Modal } from 'ant-design-vue';
|
||||
export default {
|
||||
components: {
|
||||
SearchOutlined,
|
||||
UpCircleOutlined,
|
||||
DownCircleOutlined,
|
||||
DownloadOutlined
|
||||
ExportOutlined
|
||||
},
|
||||
setup() {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<div>
|
||||
<a-button type="primary" @click="onExport">
|
||||
<template #icon>
|
||||
<DownloadOutlined />
|
||||
<ExportOutlined />
|
||||
</template>导出</a-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<!-- 新建、编辑客户 -->
|
||||
<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="customerFormRef" :model="customer" layout="vertical" name="customer" :rules="rules">
|
||||
<a-row :gutter="16">
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
<script>
|
||||
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 { createCustomer, updateCustomer, queryCustomerList, queryCustomerInfo, deleteCustomer, customerExport } from '../api/customer';
|
||||
import { message, Modal } from 'ant-design-vue';
|
||||
@@ -135,7 +135,7 @@ import regionData from '../assets/region';
|
||||
export default {
|
||||
components: {
|
||||
SearchOutlined,
|
||||
DownloadOutlined
|
||||
ExportOutlined
|
||||
},
|
||||
setup() {
|
||||
const columns = [{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<div>
|
||||
<a-button type="primary" @click="onExport">
|
||||
<template #icon>
|
||||
<DownloadOutlined />
|
||||
<ExportOutlined />
|
||||
</template>导出</a-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,7 +41,8 @@
|
||||
</a-table>
|
||||
<!-- 新建、编辑产品 -->
|
||||
<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-row :gutter="16">
|
||||
<a-col :span="12">
|
||||
@@ -101,13 +102,14 @@
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
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 { createProduct, updateProduct, queryProductList, deleteProduct, queryProductInfo, productExport } from '../api/product';
|
||||
import { message, Modal } from 'ant-design-vue';
|
||||
@@ -115,7 +117,7 @@ import { message, Modal } from 'ant-design-vue';
|
||||
export default {
|
||||
components: {
|
||||
SearchOutlined,
|
||||
DownloadOutlined
|
||||
ExportOutlined
|
||||
},
|
||||
setup() {
|
||||
// 表格字段
|
||||
|
||||
Reference in New Issue
Block a user