瀏覽代碼

物流数据异常管理过滤必填

cz 1 年之前
父節點
當前提交
69498adc9e

+ 0 - 1
src/components/byTable/index.vue

@@ -410,7 +410,6 @@ export default defineComponent({
         return;
       }
       i.label = item.label;
-      console.log(item, i);
       proxy.$emit(
         "getList",
         Object.assign(props.filterParams, { [i.prop]: item.value })

+ 14 - 1
src/views/WDLY/outInBound/abnormal/index.vue

@@ -3,6 +3,7 @@
     <!-- <Banner /> -->
     <div class="content">
       <byTable
+        ref="table"
         :source="sourceList.data"
         :pagination="sourceList.pagination"
         :config="config"
@@ -306,6 +307,7 @@ const statusData = [
 ];
 const selectConfig = computed(() => [
   {
+    isShowAll: false,
     label: "异常来源",
     prop: "type",
     data: typeData,
@@ -726,7 +728,18 @@ const handleClickLinkCode = (row) => {
 };
 
 getDict();
-getList();
+// getList();
+const table = ref(null);
+const searchItemSelct = () => {
+  // 默认选中的方法
+  table.value.searchItemSelct(
+    selectConfig.value[0].data[0],
+    selectConfig.value[0]
+  );
+};
+onMounted(() => {
+  searchItemSelct();
+});
 </script>
   
 <style lang="scss" scoped>

+ 13 - 1
src/views/WDLY/outInBound/logistics/index.vue

@@ -3,6 +3,7 @@
     <!-- <Banner /> -->
     <div class="content">
       <byTable
+        ref="table"
         :source="sourceList.data"
         :pagination="sourceList.pagination"
         :config="config"
@@ -289,6 +290,7 @@ const sourceList = ref({
     total: 3,
     pageNum: 1,
     pageSize: 10,
+    businessType: "1",
   },
 });
 let dialogVisible = ref(false);
@@ -380,6 +382,7 @@ const businessType = ref([
 const deptData = ref([]);
 const selectConfig = computed(() => [
   {
+    isShowAll: false,
     label: "数据来源",
     prop: "businessType",
     data: businessType.value,
@@ -824,13 +827,22 @@ getDict();
 if (route.query && route.query.keyword) {
   sourceList.value.pagination.keyword = route.query.keyword;
 }
-getList();
+const table = ref(null);
+const searchItemSelct = () => {
+  // 默认选中的方法
+  table.value.searchItemSelct(
+    selectConfig.value[0].data[0],
+    selectConfig.value[0]
+  );
+};
+
 getLogisticsData();
 onMounted(() => {
   formConfig[0].data = businessType.value.map((x) => ({
     label: x.label,
     value: x.value,
   }));
+  searchItemSelct();
 });
 </script>