瀏覽代碼

汇率-字段修改

jingbb 6 月之前
父節點
當前提交
86bb5af6eb

+ 22 - 22
src/views/baseCode/ExchangeRate/BaseExchangeRate.data.ts

@@ -6,58 +6,58 @@ import { getWeekMonthQuarterYear } from '/@/utils';
 //列表数据
 export const columns: BasicColumn[] = [
    {
-    title: '状态(1-启用,0-停用)',
-    align:"center",
-    dataIndex: 'status'
-   },
-   {
-    title: '币种',
+    title: '币种(currency)',
     align:"center",
     dataIndex: 'currency'
    },
    {
-    title: '年度',
+    title: '年度(year)',
     align:"center",
     dataIndex: 'year'
    },
    {
-    title: '月度',
+    title: '月度(month)',
     align:"center",
     dataIndex: 'month'
    },
    {
-    title: '汇率',
+    title: '汇率(exchangeRate)',
     align:"center",
     dataIndex: 'exchangeRate'
    },
 ];
 //查询数据
 export const searchFormSchema: FormSchema[] = [
+  {
+    label: '币种(currency)',
+    field:"currency",
+    component: 'Input'
+   },
+   {
+    label: '年度(year)',
+    field: 'year',
+    component: 'Input'
+   },
+   {
+    label: '月度(month)',
+    field: 'month',
+    component: 'Input'
+   },
 ];
 //表单数据
 export const formSchema: FormSchema[] = [
   {
-    label: '状态(1-启用,0-停用)',
-    field: 'status',
-    component: 'InputNumber',
-  },
-  {
-    label: '币种',
+    label: '币种(currency)',
     field: 'currency',
     component: 'Input',
   },
   {
-    label: '年度',
+    label: '年度(year)',
     field: 'year',
     component: 'Input',
   },
   {
-    label: '月度',
-    field: 'month',
-    component: 'Input',
-  },
-  {
-    label: '汇率',
+    label: '汇率(exchangeRate)',
     field: 'exchangeRate',
     component: 'InputNumber',
   },

+ 7 - 7
src/views/baseCode/ExchangeRate/BaseExchangeRateList.vue

@@ -4,9 +4,9 @@
    <BasicTable @register="registerTable" :rowSelection="rowSelection">
      <!--插槽:table标题-->
       <template #tableTitle>
-          <a-button type="primary" v-auth="'baseCode:base_exchange_rate:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
-          <a-button  type="primary" v-auth="'baseCode:base_exchange_rate:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
-          <j-upload-button type="primary" v-auth="'baseCode:base_exchange_rate:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
+          <a-button type="primary" v-auth="'baseCode:base_exchange_rate:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
+          <a-button  type="primary" v-auth="'baseCode:base_exchange_rate:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
+          <!-- <j-upload-button type="primary" v-auth="'baseCode:base_exchange_rate:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入(Import)</j-upload-button> -->
           <a-dropdown v-if="selectedRowKeys.length > 0">
               <template #overlay>
                 <a-menu>
@@ -69,7 +69,7 @@
               ],
             },
            actionColumn: {
-               width: 120,
+               width: 200,
                fixed:'right'
             },
             beforeFetch: (params) => {
@@ -154,7 +154,7 @@
   function getTableAction(record){
        return [
          {
-           label: '编辑',
+           label: '编辑(edit)',
            onClick: handleEdit.bind(null, record),
            auth: 'baseCode:base_exchange_rate:edit'
          }
@@ -166,10 +166,10 @@
   function getDropDownAction(record){
        return [
          {
-           label: '详情',
+           label: '详情(detail)',
            onClick: handleDetail.bind(null, record),
          }, {
-           label: '删除',
+           label: '删除(delete)',
            popConfirm: {
              title: '是否确认删除',
              confirm: handleDelete.bind(null, record),