tangning 1 éve
szülő
commit
3590c0be9b
2 módosított fájl, 10 hozzáadás és 28 törlés
  1. 7 25
      src/views/customer/device.vue
  2. 3 3
      src/views/dealer/finance.vue

+ 7 - 25
src/views/customer/device.vue

@@ -44,7 +44,7 @@
   import { useModal } from '/@/components/Modal';
   import { useRouter } from 'vue-router';
   import { useI18n } from '/@/hooks/web/useI18n';
-  import { UnbindCameraApi } from '/@/api/account';
+  import { UnbindCameraApi, cameraAllType } from '/@/api/account';
   import { isBoolean } from 'lodash';
   const { t } = useI18n();
   export default defineComponent({
@@ -154,31 +154,13 @@
           {
             field: 'type',
             label: '设备类型',
-            component: 'Select',
+            component: 'ApiSelect',
             componentProps: {
-              maxLength: 100,
-              options: [
-                {
-                  label: '旧双目相机',
-                  value: '0',
-                },
-                {
-                  label: '四维看看',
-                  value: '1',
-                },
-                {
-                  label: '四维看看lite',
-                  value: '2',
-                },
-                {
-                  label: '四维看见',
-                  value: '9',
-                },
-                {
-                  label: '四维深时',
-                  value: '10',
-                },
-              ],
+              api: cameraAllType,
+              numberToString: true,
+              labelField: 'name',
+              valueField: 'cameraType',
+              immediate: true,
             },
             colProps: {
               xl: 4,

+ 3 - 3
src/views/dealer/finance.vue

@@ -125,9 +125,9 @@
           totalField: 'total',
         },
         beforeFetch: (T) => {
-          if (T.ctivated) {
-            T.publicTimeStart = T.ctivated[0] + ' 00:00:00';
-            T.publicTimeEnd = T.ctivated[1] + ' 23:59:59';
+          if (T.timeList) {
+            T.timeList[0] = dayjs(T.timeList[0]).format('YYYY-MM-DD');
+            T.timeList[1] = dayjs(T.timeList[1]).format('YYYY-MM-DD');
           }
           return T;
         },