From 8d6a17ecf85faed505a5f8a95210a6b78bba2a64 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 29 一月 2026 14:31:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 admin/src/views/business/importRecord.vue |  134 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 134 insertions(+), 0 deletions(-)

diff --git a/admin/src/views/business/importRecord.vue b/admin/src/views/business/importRecord.vue
new file mode 100644
index 0000000..2cd48c9
--- /dev/null
+++ b/admin/src/views/business/importRecord.vue
@@ -0,0 +1,134 @@
+<template>
+  <TableLayout :permissions="['business:importrecord:query']">
+    <!-- 鎼滅储琛ㄥ崟 -->
+    <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
+      <el-form-item label="鎿嶄綔浜�" prop="name">
+        <el-input v-model="searchForm.updateUserName" placeholder="璇疯緭鍏ユ搷浣滀汉濮撳悕" @keypress.enter.native="search"></el-input>
+      </el-form-item>
+      <el-form-item label="涓氬姟绫诲瀷" prop="type">
+        <el-select v-model="searchForm.type"    placeholder="璇烽�夋嫨涓氬姟绫诲瀷" clearable   @change="search" >
+          <el-option :key="0" :value="0" label="鑰佸笀瀵煎叆"></el-option>
+          <el-option :key="1" :value="1" label="妗堜緥瀵煎叆"></el-option>
+        </el-select>
+      </el-form-item>
+      <div class="date-style" style="display: inline">
+        <el-form-item label="瀵煎叆鏃堕棿" prop="starttime" >
+          <el-date-picker
+              style="width: 160px"
+              clearable
+              @change="search"
+              v-model="searchForm.starttime"
+              type="datetime"
+              value-format="yyyy-MM-dd HH:mm:ss"
+              format="yyyy-MM-dd HH:mm:ss"
+              range-separator="鑷�"
+              placeholder="寮�濮嬫椂闂�"
+          ></el-date-picker>
+        </el-form-item>
+        <el-form-item label="-" label-width="10px" prop="endtime" >
+          <el-date-picker
+              style="width: 160px"
+              clearable
+              v-model="searchForm.endtime"
+              type="datetime"
+              @change="search"
+              value-format="yyyy-MM-dd HH:mm:ss"
+              format="yyyy-MM-dd HH:mm:ss"
+              range-separator="鑷�"
+              placeholder="鎴鏃堕棿"
+          ></el-date-picker>
+        </el-form-item>
+      </div>
+      <section>
+        <el-button type="primary" @click="search">鎼滅储</el-button>
+        <el-button @click="reset">閲嶇疆</el-button>
+      </section>
+    </el-form>
+    <!-- 琛ㄦ牸鍜屽垎椤� -->
+    <template v-slot:table-wrap>
+      <el-table
+          :height="tableHeightNew"
+        v-loading="isWorking.search"
+        :data="tableData.list"
+        stripe
+        @selection-change="handleSelectionChange"
+      >
+        <el-table-column prop="title" label="鍐呭" min-width="200px" show-overflow-tooltip></el-table-column>
+        <el-table-column label="涓氬姟绫诲瀷">
+          <template slot-scope="{row}">
+            <span v-if="row.type ==0 " >鑰佸笀瀵煎叆</span>
+            <span v-if="row.type == 1"  >妗堜緥瀵煎叆</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="鐘舵��">
+          <template slot-scope="{row}">
+            <span v-if="row.status ==0 " class="blue">鏈鐞�</span>
+            <span v-if="row.status == 1" class="red">澶勭悊涓�</span>
+            <span v-if="row.status == 2" class="grey">宸插鐞�</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="totalNum" label="鎬昏褰曟暟" min-width="100px"></el-table-column>
+        <el-table-column prop="doneNum" label="鎴愬姛褰曞叆鏁伴噺" min-width="100px"></el-table-column>
+        <el-table-column prop="errorNum" label="褰曞叆澶辫触鏁伴噺" min-width="100px"></el-table-column>
+        <el-table-column prop="updateUserName" label="鎿嶄綔浜�" min-width="100px"></el-table-column>
+        <el-table-column prop="updateTime" label="鏈�杩戞搷浣滄椂闂�" min-width="150px"></el-table-column>
+      </el-table>
+      <pagination
+        @size-change="handleSizeChange"
+        @current-change="handlePageChange"
+        :pagination="tableData.pagination"
+      >
+      </pagination>
+    </template>
+    <!-- 鏂板缓/淇敼 -->
+    <OperaCategoryWindow ref="operaCategoryWindow" @success="handlePageChange"/>
+  </TableLayout>
+</template>
+
+<script>
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+import OperaCategoryWindow from '@/components/business/OperaCategoryWindow'
+export default {
+  name: 'Category',
+  extends: BaseTable,
+  components: { TableLayout, Pagination, OperaCategoryWindow },
+  data () {
+    return {
+      // 鎼滅储
+      searchForm: {
+        updateUserName: '',
+        starttime: null,
+        endtime: null,
+        type: ''
+      }
+    }
+  },
+  created () {
+    this.config({
+      module: '鍒嗙被淇℃伅琛�',
+      api: '/business/importRecord',
+      'field.id': 'id',
+      'field.main': 'id'
+    })
+    this.search()
+  },
+  methods: {
+    changeStatus (e, row) {
+      this.working = true
+      this.api.updateStatus({ id: row.id, status: e })
+        .then(res => {
+          this.$tip.apiSuccess(res || '鎿嶄綔鎴愬姛')
+          this.search()
+        })
+        .catch(e => {
+          this.$tip.apiFailed(e)
+        })
+        .finally(() => {
+          this.working = false
+        })
+    }
+  }
+}
+</script>

--
Gitblit v1.9.3