1
李喆(开发组)
2025-06-24 616f3c388e528c7cd9052f635fc4e581c9dbe37b
src/views/programmgt/programstatistics.vue
@@ -1,33 +1,107 @@
<!--
 * @Date: 2025-06-20 20:48:17
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-06-20 22:46:35
 * @LastEditTime: 2025-06-21 11:09:12
 * @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">
        <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> -->
                <el-button type="primary" text size="default" @click.stop="handleAction(scope.row, scope.index)">详情
                </el-button>
            </template>
        </avue-crud>
        <el-dialog title="详情" append-to-body v-model="viewBox" width="80%">
            <avue-crud :option="optionView" :table-loading="loading" :data="dataView"
                ref="crud"
                @on-load="onLoadView">
            </avue-crud>
            <!-- <template #footer>
                <span class="dialog-footer">
                    <el-button @click="deployBox = false">取 消</el-button>
                    <el-button type="primary" @click="handleDoDeploy" :loading="deployLoading">确 定</el-button>
                </span>
            </template> -->
        </el-dialog>
    </basic-container>
</template>
<script>
    import { getList } from '@/api/tasks/machinereturnfileop.js';
    export default {
import { getList } from '@/api/programmgt/programstatistics.js';
export default {
    name: 'Timeouts',
    data() {
        return {
        dataView: [],
            optionView: {
                addBtn: false,
                editBtn: false,
                delBtn: false,
                printBtn: false,
                exportBtn: true,
                filterBtn: false,
                refreshBtn: false,
                columnBtn: false,
                gridBtn: false,
                // viewBtn: true,
                // columnBtn: false,
                tip: false,
                simplePage: true,
                // searchShow: true,
                // searchMenuSpan: 4,
                // dialogWidth: '60%',
                tree: true,
                border: true,
                index: true,
                // selection: true,
                // menuWidth: 200,
                menu: false,
                // dialogClickModal: false,
                column: [
                    {
                        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: '',
                    }
                ]
            },
            viewBox: false,
            // Define your data properties here
            page: {
                pageSize: 10,
@@ -42,7 +116,8 @@
                addBtn: false,
                editBtn: false,
                delBtn: false,
                viewBtn: true,
                // viewBtn: true,
                exportBtn: true,
                columnBtn: false,
                tip: false,
                // simplePage: true,
@@ -59,10 +134,6 @@
                dialogClickModal: false,
                column: [
                    {
                        label: '编号',
                        prop: '',
                    },
                    {
                        label: '发送时间',
                        width: 200,
                        prop: 'processCreateTime',
@@ -72,7 +143,7 @@
                        search: true,
                        searchRange: true,
                        searchSpan: 8,
                        // hide: true,
                        hide: true,
                    },
                    {
                        label: '机床',
@@ -81,7 +152,7 @@
                        search: true,
                        hide: true,
                    },
                     {
                    {
                        label: '组织',
                        prop: '',
                        type: 'tree',
@@ -113,6 +184,11 @@
        };
    },
    methods: {
        handleAction() {
            this.viewBox = true;
            // console.log('handleAction', row, index);
            // this.$refs.crud.handleView(row, index);
        },
        // Define your methods here
        currentChange(currentPage) {
            this.page.currentPage = currentPage;
@@ -160,6 +236,4 @@
}
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>