Selaa lähdekoodia

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

huangbin 4 vuotta sitten
vanhempi
commit
b03ef5d0f5

+ 26 - 0
src/common/constants/enumsName.ts

@@ -378,3 +378,29 @@ export function getOrderStatusName(type: number): string {
     }
     return result
 }
+
+/**
+ * 中文weekday
+ * @param type
+ */
+export function getWeekName(type: string): string {
+    let result = "--";
+    switch (type) {
+        case "1":
+            result = "周一";
+            break
+        case "2":
+            result = "周二";
+            break
+        case "3":
+            result = "周三";
+            break
+        case "4":
+            result = "周四";
+            break
+        case "5":
+            result = "周五";
+            break
+    }
+    return result
+}

+ 6 - 1
src/views/platinum/platinum_fixed_investment_query/list/plan/index.vue

@@ -21,6 +21,10 @@
         <template #regularlystrategystatus="{ record }">
           <a>{{ getRegularStateName(record.regularlystrategystatus)}}</a>
         </template>
+
+          <template #regularlycycle="{ record }">
+              <a>{{ record.regularlycycle === 1 ?  "每周" + getWeekName(record.regularlycyclevalue) : "每月" + record.regularlycyclevalue + "日"}}</a>
+          </template>
       </a-table>
     </contextMenu>
   </div>
@@ -30,7 +34,7 @@
 import { defineComponent, initData, getTableColumns, getTableEvent, queryTableList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
 import { QhjRStrategy } from '@/services/go/ermcp/qhj/interface';
 import Filter from './compoments/filter/index.vue';
-import { getRegularStateName } from '@/common/constants/enumsName';
+import {getRegularStateName, getWeekName} from '@/common/constants/enumsName';
 import { queryRStrategy } from '@/services/go/ermcp/qhj';
 
 export default defineComponent({
@@ -61,6 +65,7 @@ export default defineComponent({
             firstBtn,
             loading,
             getRegularStateName,
+            getWeekName,
             tableList,
             updateColumn,
             queryTable,