From 4aa86b1ec441c4e358e1cc488d8f021fb80f1355 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 17 九月 2025 17:34:35 +0800
Subject: [PATCH] 2025.9.17 数据产品(待完成)

---
 src/views/fysp/data-product/base-data-product/components/ProdQueryOpt.vue |   66 +++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/src/views/fysp/data-product/base-data-product/components/ProdQueryOpt.vue b/src/views/fysp/data-product/base-data-product/components/ProdQueryOpt.vue
new file mode 100644
index 0000000..8f9618d
--- /dev/null
+++ b/src/views/fysp/data-product/base-data-product/components/ProdQueryOpt.vue
@@ -0,0 +1,66 @@
+<template>
+  <el-card shadow="never">
+    <template #header>
+      <div><el-text tag="b" size="large">浜у搧鐢熸垚閫夐」</el-text></div>
+    </template>
+    <SearchBar
+      v-show="active"
+      ref="refSearchBar"
+      :btn-show="false"
+      :init="false"
+      @on-submit="search"
+    >
+    </SearchBar>
+    <template #footer>
+      <el-row v-show="active" justify="space-around">
+        <el-button
+          type="primary"
+          size="default"
+          :loading="loading"
+          @click="submit"
+          >鐢熸垚</el-button
+        >
+      </el-row>
+    </template>
+  </el-card>
+</template>
+<script setup>
+import { ref, computed } from 'vue';
+import dayjs from 'dayjs';
+
+const props = defineProps({
+  loading: {
+    type: Boolean,
+    default: false
+  },
+  active:{
+    type: Boolean,
+    default: true
+  }
+});
+const emit = defineEmits(['submit']);
+
+const refSearchBar = ref(null);
+
+const submit = () => {
+  refSearchBar.value.onSubmit();
+};
+
+const search = (options) => {
+  const opt = {
+    topTaskId: options.topTask.tguid,
+    provinceCode: options.topTask.provincecode,
+    cityCode: options.topTask.citycode,
+    districtCode: options.topTask.districtcode,
+    townCode: options.topTask.towncode,
+    startTime: dayjs(options.topTask.starttime).format('YYYY-MM-DD HH:mm:ss'),
+    endTime: dayjs(options.topTask.endtime)
+      .add(1, 'day')
+      .add(-1, 'second')
+      .format('YYYY-MM-DD HH:mm:ss'),
+    sceneTypeId: options.sceneTypeId,
+    needCache: true
+  };
+  emit('submit', opt);
+};
+</script>

--
Gitblit v1.9.3