| | |
| | | <!-- |
| | | * @Date: 2025-06-20 20:48:17 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2025-07-08 20:46:33 |
| | | * @LastEditors: 李喆(开发组) lzhe@yxqiche.com |
| | | * @LastEditTime: 2025-08-11 14:55:07 |
| | | * @FilePath: /mdmweb/src/views/flowmgr/programexport.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" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"> |
| | | <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">导出</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> |
| | | <el-tabs v-model="activeName" type="card" class="demo-tabs" @tab-click="tabsClick"> |
| | | <el-tab-pane label="待办" name="todo"> |
| | | <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" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"> |
| | | <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">导出</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> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="已办" name="completed"> |
| | | <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" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"> |
| | | <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">导出</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> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | name: 'programexport', |
| | | data() { |
| | | return { |
| | | activeName: "todo", |
| | | // Define your data properties here |
| | | page: { |
| | | pageSize: 10, |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | tabsClick(tab,event) { |
| | | console.log(this.activeName,'activeName') |
| | | console.log(tab,event); |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | selectionChange(list) { |
| | | this.selection = list; |
| | | }, |
| | |
| | | /** * 页面加载时获取数据 |
| | | */ |
| | | onLoad(page, params = {}) { |
| | | console.log('onLoad', page, params); |
| | | const query = { |
| | | ...this.query, |
| | | // category: params.category ? flowCategory(params.category) : null, |
| | | mode: this.mode, |
| | | }; |
| | | var status = this.activeName == 'todo'?null:2; |
| | | params.status = status; |
| | | try { |
| | | delete query.confirmTime; // 删除不必要的查询条件 |
| | | } catch (error) { |