gaoshp
2025-06-20 777ef56fbb5e175fb226f9c70eaa351bf4f2d763
添加页面
已添加7个文件
675 ■■■■■ 文件已修改
src/api/basesetting/dbbackup.js 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/programmgt/logquery.js 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/programmgt/returnlog.js 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basesetting/dbbackup.vue 152 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/programmgt/logquery.vue 152 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/programmgt/programstatistics.vue 165 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/programmgt/returnlog.vue 152 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,
    },
  })
};
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,
    },
  })
};
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,
    },
  })
};
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">导出到EXCEL</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>
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">导出到EXCEL</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>
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">导出到EXCEL</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>
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">导出到EXCEL</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>