浏览代码

feat 代码优化,解决一些代码提示

Funny 3 年之前
父节点
当前提交
7293ef624d

+ 1 - 2
src/views/management/account/flowDetail.vue

@@ -135,8 +135,7 @@ onMounted(() => {
       <a-button class="ml-20px" type="primary" @click="search">查 询</a-button>
     </a-form-item>
   </a-form>
-  <a-table :columns="columns" :data-source="data.arr" :pagination="pagination" bordered :scroll="true"
-    @change="handleTableChange">
+  <a-table :columns="columns" :data-source="data.arr" :pagination="pagination" bordered @change="handleTableChange">
     <template #bodyCell="{ column, text, record }">
       <template v-if="column.dataIndex === 'amount' && column.key === '1'">
         <div>{{ record.type === 1 ? record.amount : '--' }}</div>

+ 1 - 2
src/views/management/account/rechargeRecord.vue

@@ -108,8 +108,7 @@ onMounted(() => {
       <a-button class="ml-20px" type="primary" @click="search">查 询</a-button>
     </a-form-item>
   </a-form>
-  <a-table :columns="columns" :data-source="data" :pagination="pagination" bordered :scroll="true"
-    @change="handleTableChange">
+  <a-table :columns="columns" :data-source="data" :pagination="pagination" bordered @change="handleTableChange">
     <template #bodyCell="{ column, text, record }">
       <template v-if="column.dataIndex === 'paymentType'">
         <div>{{ showPayType(record.paymentType) }}</div>

+ 7 - 4
src/views/management/order/order.vue

@@ -214,14 +214,14 @@ onMounted(() => {
         <a-select-option v-for="(v, i) in statusList.arr" :key="i" :value="v.status">{{ v.name }}</a-select-option>
       </a-select>
     </a-form-item>
-    <a-form-item label="" name="searchKey">
+    <a-form-item-rest>
       <a-input-group compact>
         <a-select v-model:value="formState.type" style="width: 130px">
           <a-select-option v-for="(v, i) in searchKeyType.arr" :key="i" :value="v.type">{{ v.name }}</a-select-option>
         </a-select>
         <a-input style="width: 200px" v-model:value="formState.searchKey" placeholder="请输入要查询的数据" allowClear />
       </a-input-group>
-    </a-form-item>
+    </a-form-item-rest>
     <a-form-item label="日期" name="time">
       <a-range-picker v-model:value="time.arr" valueFormat="YYYY/MM/DD" />
     </a-form-item>
@@ -230,7 +230,7 @@ onMounted(() => {
       <!-- <a-button class="ml-20px" type="primary" ghost html-type="submit">导 出</a-button> -->
     </a-form-item>
   </a-form>
-  <a-table :columns="columns" rowKey="id" :data-source="data.arr" :pagination="pagination" bordered :scroll="true"
+  <a-table :columns="columns" rowKey="id" :data-source="data.arr" :pagination="pagination" bordered
     @change="handleTableChange">
     <template #bodyCell="{ column, text, record }">
       <template v-if="column.dataIndex === 'outOrderSn'">
@@ -363,7 +363,10 @@ onMounted(() => {
 .ant-form-inline :deep(.ant-form-item) {
   margin-bottom: 10px;
 }
-
+:deep(.ant-input-group){
+  width: inherit;
+  margin-right: 16px
+}
 .modal {
   @apply mt-20px;
 

+ 2 - 2
src/views/management/shop/shop.vue

@@ -277,7 +277,7 @@ onMounted(() => {
       <a-button class="ml-20px" type="primary" ghost @click="addShop">+新增门店</a-button>
     </a-form-item>
   </a-form>
-  <a-table :columns="columns" :data-source="data.arr" :pagination="false" bordered :scroll="true">
+  <a-table :columns="columns" :data-source="data.arr" :pagination="false" bordered>
     <template #bodyCell="{ column, text, record }">
       <template v-if="column.dataIndex === 'deliveries'">
         <div class="flex flex-wrap justify-center">
@@ -348,7 +348,7 @@ onMounted(() => {
       </a-form-item>
     </a-form>
   </a-modal>
-  <a-modal bodyStyle="{padding: 0 !important;}" v-model:visible="showMap" title="选择地址" :footer="null" width="1400px"
+  <a-modal v-model:visible="showMap" title="选择地址" :footer="null" width="1400px"
     style="top:20px;">
     <MapContainer @getMapData="getMapData"></MapContainer>
   </a-modal>