wangrong
8 天以前 72ceaa81f556c6519c97b2391871ba84729a9a6c
src/modules/report/views/dailyvehicle.vue
@@ -208,7 +208,7 @@
         sortable: "custom"
      },
      { label: t('平均行驶车速'), prop: "avgSpeed", minWidth: 140, sortable: "custom" },
      {
      /*{
         label: t('超速告警次数'),
         prop: "overspeedCount",
         minWidth: 140,
@@ -243,7 +243,7 @@
         prop: "offHoursMoveCount",
         minWidth: 140,
         sortable: "custom"
      },
      },*/
      {
         label: t('创建时间'),
         prop: "createTime",
@@ -271,8 +271,30 @@
   if (index >= 0) items?.splice(index, 1);
}
function deptSearch({ exposed }: { exposed: any }) {
   const items = exposed.config?.items as { prop?: string }[] | undefined;
   if (!items) return;
   for (let i = items.length - 1; i >= 0; i--) {
      if (items[i].prop === "departmentId") items.splice(i, 1);
   }
   items.unshift({
      label: t("按单位筛选"),
      prop: "departmentId",
      component: {
         name: "cl-dept-select",
         props: {
            placeholder: t("请选择单位"),
            checkStrictly: true,
            immediate: true,
            clearable: true,
         },
         style: { width: "180px" },
      },
   });
}
const Search = useSearch({
   plugins: [hideDateSearch]
   plugins: [hideDateSearch, deptSearch]
});
// cl-crud