From 777ef56fbb5e175fb226f9c70eaa351bf4f2d763 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期五, 20 六月 2025 22:51:58 +0800
Subject: [PATCH] 添加页面
---
src/views/programmgt/logquery.vue | 152 ++++++++++++
src/views/basesetting/dbbackup.vue | 152 ++++++++++++
src/views/programmgt/programstatistics.vue | 165 +++++++++++++
src/api/programmgt/returnlog.js | 18 +
src/views/programmgt/returnlog.vue | 152 ++++++++++++
src/api/programmgt/logquery.js | 18 +
src/api/basesetting/dbbackup.js | 18 +
7 files changed, 675 insertions(+), 0 deletions(-)
diff --git a/src/api/basesetting/dbbackup.js b/src/api/basesetting/dbbackup.js
new file mode 100644
index 0000000..51cea9b
--- /dev/null
+++ b/src/api/basesetting/dbbackup.js
@@ -0,0 +1,18 @@
+/*
+ * @Date: 2025-06-12 22:38:05
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-06-20 21:11:25
+ * @FilePath: /mdmweb/src/api/tasks/timeouts.js
+ */
+import request from '@/axios';
+export const getList = (current, size, params) => {
+ return request({
+ url: '/blade-mdm/machineback/filehandle/page',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ },
+ })
+};
\ No newline at end of file
diff --git a/src/api/programmgt/logquery.js b/src/api/programmgt/logquery.js
new file mode 100644
index 0000000..51cea9b
--- /dev/null
+++ b/src/api/programmgt/logquery.js
@@ -0,0 +1,18 @@
+/*
+ * @Date: 2025-06-12 22:38:05
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-06-20 21:11:25
+ * @FilePath: /mdmweb/src/api/tasks/timeouts.js
+ */
+import request from '@/axios';
+export const getList = (current, size, params) => {
+ return request({
+ url: '/blade-mdm/machineback/filehandle/page',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ },
+ })
+};
\ No newline at end of file
diff --git a/src/api/programmgt/returnlog.js b/src/api/programmgt/returnlog.js
new file mode 100644
index 0000000..51cea9b
--- /dev/null
+++ b/src/api/programmgt/returnlog.js
@@ -0,0 +1,18 @@
+/*
+ * @Date: 2025-06-12 22:38:05
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-06-20 21:11:25
+ * @FilePath: /mdmweb/src/api/tasks/timeouts.js
+ */
+import request from '@/axios';
+export const getList = (current, size, params) => {
+ return request({
+ url: '/blade-mdm/machineback/filehandle/page',
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ },
+ })
+};
\ No newline at end of file
diff --git a/src/views/basesetting/dbbackup.vue b/src/views/basesetting/dbbackup.vue
new file mode 100644
index 0000000..5667615
--- /dev/null
+++ b/src/views/basesetting/dbbackup.vue
@@ -0,0 +1,152 @@
+<!--
+ * @Date: 2025-06-20 20:48:17
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-06-20 22:00:54
+ * @FilePath: /mdmweb/src/views/programmgt/logquery.vue
+-->
+<template>
+ <basic-container>
+ <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
+ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+ <template #menu-left>
+ <!-- <el-button type="primary" plain @click="exportWebSite">瀵煎嚭鍥炰紶娑夊瘑缃�</el-button> -->
+ <!-- <el-button type="primary" plain @click="reassign">鎸傝浇杞﹀簥绋嬪簭搴�</el-button> -->
+ <el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
+ </template>
+ <template #menu="scope">
+ <!-- <el-button type="primary" text size="default"
+ @click.stop="handleAction(scope.row, scope.index)">澶勭悊鎰忚
+ </el-button> -->
+ </template>
+ </avue-crud>
+ </basic-container>
+</template>
+
+<script>
+ import { getList } from '@/api/tasks/machinereturnfileop.js';
+ export default {
+ name: 'Timeouts',
+ data() {
+ return {
+ // Define your data properties here
+ page: {
+ pageSize: 10,
+ currentPage: 1,
+ total: 0,
+ },
+ form: {},
+ query: {},
+ loading: true,
+ data: [],
+ option: {
+ addBtn: false,
+ editBtn: false,
+ delBtn: false,
+ viewBtn: true,
+ columnBtn: false,
+ tip: false,
+ // simplePage: true,
+ searchShow: true,
+ searchMenuSpan: 6,
+ dialogWidth: '60%',
+ // tree: true,
+ border: true,
+ index: true,
+ selection: true,
+ // viewBtn: true,
+ menuWidth: 200,
+ menu: false,
+ dialogClickModal: false,
+ column: [
+ {
+ label: '缂栧彿',
+ prop: '',
+ },
+ {
+ label: '绫诲瀷',
+ prop: '',
+ },
+ {
+ label: '瀵硅薄',
+ prop: '',
+ },
+ {
+ label: '鎿嶄綔',
+ prop: '',
+ },
+ {
+ label: '鐢ㄦ埛璐﹀彿',
+ prop: '',
+ },
+ {
+ label: '鐢ㄦ埛濮撳悕',
+ prop: '',
+ },
+ {
+ label: '鎿嶄綔璇︽儏',
+ prop: '',
+ },
+
+ {
+ label: '鎿嶄綔鏃堕棿',
+ prop: '',
+ search: true,
+ type: 'datetime',
+ format: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ },
+ ],
+ }
+ };
+ },
+ methods: {
+ // Define your methods here
+ currentChange(currentPage) {
+ this.page.currentPage = currentPage;
+ // this.onLoad();
+ },
+ sizeChange(pageSize) {
+ this.page.pageSize = pageSize;
+ },
+ refreshChange() {
+ this.onLoad(this.page, this.query);
+ },
+ /** * 椤甸潰鍔犺浇鏃惰幏鍙栨暟鎹�
+ */
+ onLoad(page, params = {}) {
+ console.log('onLoad', page, params);
+ const query = {
+ ...this.query,
+ // category: params.category ? flowCategory(params.category) : null,
+ mode: this.mode,
+ };
+ try {
+ delete query.confirmTime; // 鍒犻櫎涓嶅繀瑕佺殑鏌ヨ鏉′欢
+ } catch (error) {
+ console.error('鏃ユ湡鏍煎紡鍖栭敊璇�', error);
+ }
+
+ this.loading = true;
+ getList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
+ const data = res.data.data;
+ this.page.total = data.total;
+ this.data = data.records;
+ this.loading = false;
+ }, () => {
+ this.data = [];
+ this.loading = false;
+ }).catch(err => {
+ this.data = [];
+ this.loading = false;
+ });
+ }
+ },
+ mounted() {
+
+ }
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/programmgt/logquery.vue b/src/views/programmgt/logquery.vue
new file mode 100644
index 0000000..5667615
--- /dev/null
+++ b/src/views/programmgt/logquery.vue
@@ -0,0 +1,152 @@
+<!--
+ * @Date: 2025-06-20 20:48:17
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-06-20 22:00:54
+ * @FilePath: /mdmweb/src/views/programmgt/logquery.vue
+-->
+<template>
+ <basic-container>
+ <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
+ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+ <template #menu-left>
+ <!-- <el-button type="primary" plain @click="exportWebSite">瀵煎嚭鍥炰紶娑夊瘑缃�</el-button> -->
+ <!-- <el-button type="primary" plain @click="reassign">鎸傝浇杞﹀簥绋嬪簭搴�</el-button> -->
+ <el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
+ </template>
+ <template #menu="scope">
+ <!-- <el-button type="primary" text size="default"
+ @click.stop="handleAction(scope.row, scope.index)">澶勭悊鎰忚
+ </el-button> -->
+ </template>
+ </avue-crud>
+ </basic-container>
+</template>
+
+<script>
+ import { getList } from '@/api/tasks/machinereturnfileop.js';
+ export default {
+ name: 'Timeouts',
+ data() {
+ return {
+ // Define your data properties here
+ page: {
+ pageSize: 10,
+ currentPage: 1,
+ total: 0,
+ },
+ form: {},
+ query: {},
+ loading: true,
+ data: [],
+ option: {
+ addBtn: false,
+ editBtn: false,
+ delBtn: false,
+ viewBtn: true,
+ columnBtn: false,
+ tip: false,
+ // simplePage: true,
+ searchShow: true,
+ searchMenuSpan: 6,
+ dialogWidth: '60%',
+ // tree: true,
+ border: true,
+ index: true,
+ selection: true,
+ // viewBtn: true,
+ menuWidth: 200,
+ menu: false,
+ dialogClickModal: false,
+ column: [
+ {
+ label: '缂栧彿',
+ prop: '',
+ },
+ {
+ label: '绫诲瀷',
+ prop: '',
+ },
+ {
+ label: '瀵硅薄',
+ prop: '',
+ },
+ {
+ label: '鎿嶄綔',
+ prop: '',
+ },
+ {
+ label: '鐢ㄦ埛璐﹀彿',
+ prop: '',
+ },
+ {
+ label: '鐢ㄦ埛濮撳悕',
+ prop: '',
+ },
+ {
+ label: '鎿嶄綔璇︽儏',
+ prop: '',
+ },
+
+ {
+ label: '鎿嶄綔鏃堕棿',
+ prop: '',
+ search: true,
+ type: 'datetime',
+ format: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ },
+ ],
+ }
+ };
+ },
+ methods: {
+ // Define your methods here
+ currentChange(currentPage) {
+ this.page.currentPage = currentPage;
+ // this.onLoad();
+ },
+ sizeChange(pageSize) {
+ this.page.pageSize = pageSize;
+ },
+ refreshChange() {
+ this.onLoad(this.page, this.query);
+ },
+ /** * 椤甸潰鍔犺浇鏃惰幏鍙栨暟鎹�
+ */
+ onLoad(page, params = {}) {
+ console.log('onLoad', page, params);
+ const query = {
+ ...this.query,
+ // category: params.category ? flowCategory(params.category) : null,
+ mode: this.mode,
+ };
+ try {
+ delete query.confirmTime; // 鍒犻櫎涓嶅繀瑕佺殑鏌ヨ鏉′欢
+ } catch (error) {
+ console.error('鏃ユ湡鏍煎紡鍖栭敊璇�', error);
+ }
+
+ this.loading = true;
+ getList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
+ const data = res.data.data;
+ this.page.total = data.total;
+ this.data = data.records;
+ this.loading = false;
+ }, () => {
+ this.data = [];
+ this.loading = false;
+ }).catch(err => {
+ this.data = [];
+ this.loading = false;
+ });
+ }
+ },
+ mounted() {
+
+ }
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/programmgt/programstatistics.vue b/src/views/programmgt/programstatistics.vue
new file mode 100644
index 0000000..bf57dee
--- /dev/null
+++ b/src/views/programmgt/programstatistics.vue
@@ -0,0 +1,165 @@
+<!--
+ * @Date: 2025-06-20 20:48:17
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-06-20 22:46:35
+ * @FilePath: /mdmweb/src/views/programmgt/programstatistics.vue
+-->
+<template>
+ <basic-container>
+ <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
+ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+ <template #menu-left>
+ <!-- <el-button type="primary" plain @click="exportWebSite">瀵煎嚭鍥炰紶娑夊瘑缃�</el-button> -->
+ <!-- <el-button type="primary" plain @click="reassign">鎸傝浇杞﹀簥绋嬪簭搴�</el-button> -->
+ <el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
+ </template>
+ <template #menu="scope">
+ <!-- <el-button type="primary" text size="default"
+ @click.stop="handleAction(scope.row, scope.index)">澶勭悊鎰忚
+ </el-button> -->
+ </template>
+ </avue-crud>
+ </basic-container>
+</template>
+
+<script>
+ import { getList } from '@/api/tasks/machinereturnfileop.js';
+ export default {
+ name: 'Timeouts',
+ data() {
+ return {
+ // Define your data properties here
+ page: {
+ pageSize: 10,
+ currentPage: 1,
+ total: 0,
+ },
+ form: {},
+ query: {},
+ loading: true,
+ data: [],
+ option: {
+ addBtn: false,
+ editBtn: false,
+ delBtn: false,
+ viewBtn: true,
+ columnBtn: false,
+ tip: false,
+ // simplePage: true,
+ searchShow: true,
+ searchMenuSpan: 4,
+ dialogWidth: '60%',
+ // tree: true,
+ border: true,
+ index: true,
+ selection: true,
+ // viewBtn: true,
+ menuWidth: 200,
+ // menu: false,
+ dialogClickModal: false,
+ column: [
+ {
+ label: '缂栧彿',
+ prop: '',
+ },
+ {
+ label: '鍙戦�佹椂闂�',
+ width: 200,
+ prop: 'processCreateTime',
+ type: 'datetime',
+ format: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ search: true,
+ searchRange: true,
+ searchSpan: 8,
+ // hide: true,
+ },
+ {
+ label: '鏈哄簥',
+ prop: '',
+ type: 'tree',
+ search: true,
+ hide: true,
+ },
+ {
+ label: '缁勭粐',
+ prop: '',
+ type: 'tree',
+ search: true,
+ hide: true,
+ },
+ {
+ label: '鏈哄簥缂栧彿',
+ prop: '',
+ },
+ {
+ label: '璇曞垏鏁伴噺',
+ prop: '',
+ },
+ {
+ label: '褰掓。鏁伴噺',
+ prop: '',
+ },
+ {
+ label: '璇曞垏绋嬪簭鍗犳瘮',
+ prop: '',
+ },
+ {
+ label: '褰掓。绋嬪簭鍗犳瘮',
+ prop: '',
+ },
+ ],
+ }
+ };
+ },
+ methods: {
+ // Define your methods here
+ currentChange(currentPage) {
+ this.page.currentPage = currentPage;
+ // this.onLoad();
+ },
+ sizeChange(pageSize) {
+ this.page.pageSize = pageSize;
+ },
+ refreshChange() {
+ this.onLoad(this.page, this.query);
+ },
+ /** * 椤甸潰鍔犺浇鏃惰幏鍙栨暟鎹�
+ */
+ onLoad(page, params = {}) {
+ console.log('onLoad', page, params);
+ const query = {
+ ...this.query,
+ // category: params.category ? flowCategory(params.category) : null,
+ mode: this.mode,
+ };
+ try {
+ delete query.confirmTime; // 鍒犻櫎涓嶅繀瑕佺殑鏌ヨ鏉′欢
+ } catch (error) {
+ console.error('鏃ユ湡鏍煎紡鍖栭敊璇�', error);
+ }
+
+ this.loading = true;
+ getList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
+ const data = res.data.data;
+ this.page.total = data.total;
+ this.data = data.records;
+ this.loading = false;
+ }, () => {
+ this.data = [];
+ this.loading = false;
+ }).catch(err => {
+ this.data = [];
+ this.loading = false;
+ });
+ }
+ },
+ mounted() {
+
+ }
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>
\ No newline at end of file
diff --git a/src/views/programmgt/returnlog.vue b/src/views/programmgt/returnlog.vue
new file mode 100644
index 0000000..5667615
--- /dev/null
+++ b/src/views/programmgt/returnlog.vue
@@ -0,0 +1,152 @@
+<!--
+ * @Date: 2025-06-20 20:48:17
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2025-06-20 22:00:54
+ * @FilePath: /mdmweb/src/views/programmgt/logquery.vue
+-->
+<template>
+ <basic-container>
+ <avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud" @current-change="currentChange"
+ @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
+ <template #menu-left>
+ <!-- <el-button type="primary" plain @click="exportWebSite">瀵煎嚭鍥炰紶娑夊瘑缃�</el-button> -->
+ <!-- <el-button type="primary" plain @click="reassign">鎸傝浇杞﹀簥绋嬪簭搴�</el-button> -->
+ <el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
+ </template>
+ <template #menu="scope">
+ <!-- <el-button type="primary" text size="default"
+ @click.stop="handleAction(scope.row, scope.index)">澶勭悊鎰忚
+ </el-button> -->
+ </template>
+ </avue-crud>
+ </basic-container>
+</template>
+
+<script>
+ import { getList } from '@/api/tasks/machinereturnfileop.js';
+ export default {
+ name: 'Timeouts',
+ data() {
+ return {
+ // Define your data properties here
+ page: {
+ pageSize: 10,
+ currentPage: 1,
+ total: 0,
+ },
+ form: {},
+ query: {},
+ loading: true,
+ data: [],
+ option: {
+ addBtn: false,
+ editBtn: false,
+ delBtn: false,
+ viewBtn: true,
+ columnBtn: false,
+ tip: false,
+ // simplePage: true,
+ searchShow: true,
+ searchMenuSpan: 6,
+ dialogWidth: '60%',
+ // tree: true,
+ border: true,
+ index: true,
+ selection: true,
+ // viewBtn: true,
+ menuWidth: 200,
+ menu: false,
+ dialogClickModal: false,
+ column: [
+ {
+ label: '缂栧彿',
+ prop: '',
+ },
+ {
+ label: '绫诲瀷',
+ prop: '',
+ },
+ {
+ label: '瀵硅薄',
+ prop: '',
+ },
+ {
+ label: '鎿嶄綔',
+ prop: '',
+ },
+ {
+ label: '鐢ㄦ埛璐﹀彿',
+ prop: '',
+ },
+ {
+ label: '鐢ㄦ埛濮撳悕',
+ prop: '',
+ },
+ {
+ label: '鎿嶄綔璇︽儏',
+ prop: '',
+ },
+
+ {
+ label: '鎿嶄綔鏃堕棿',
+ prop: '',
+ search: true,
+ type: 'datetime',
+ format: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ },
+ ],
+ }
+ };
+ },
+ methods: {
+ // Define your methods here
+ currentChange(currentPage) {
+ this.page.currentPage = currentPage;
+ // this.onLoad();
+ },
+ sizeChange(pageSize) {
+ this.page.pageSize = pageSize;
+ },
+ refreshChange() {
+ this.onLoad(this.page, this.query);
+ },
+ /** * 椤甸潰鍔犺浇鏃惰幏鍙栨暟鎹�
+ */
+ onLoad(page, params = {}) {
+ console.log('onLoad', page, params);
+ const query = {
+ ...this.query,
+ // category: params.category ? flowCategory(params.category) : null,
+ mode: this.mode,
+ };
+ try {
+ delete query.confirmTime; // 鍒犻櫎涓嶅繀瑕佺殑鏌ヨ鏉′欢
+ } catch (error) {
+ console.error('鏃ユ湡鏍煎紡鍖栭敊璇�', error);
+ }
+
+ this.loading = true;
+ getList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
+ const data = res.data.data;
+ this.page.total = data.total;
+ this.data = data.records;
+ this.loading = false;
+ }, () => {
+ this.data = [];
+ this.loading = false;
+ }).catch(err => {
+ this.data = [];
+ this.loading = false;
+ });
+ }
+ },
+ mounted() {
+
+ }
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>
\ No newline at end of file
--
Gitblit v1.9.3