¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * @Date: 2025-06-12 22:38:05 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2025-06-21 10:52:51 |
| | | * @FilePath: /mdmweb/src/api/programmgt/programstatistics.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, |
| | | }, |
| | | }) |
| | | }; |
| | |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog title="审æ¹" append-to-body v-model="approveBox" width="20%"> |
| | | <el-dialog title="审æ¹" append-to-body v-model="approveBox" width="30%"> |
| | | <avue-form ref="form" :option="optionApprove" v-model="formApprove" @submit="handleSubmit" /> |
| | | <!-- <template #footer> |
| | | <span class="dialog-footer"> |
| | |
| | | rules: [{ required: true, message: 'è¯·éæ©å®¡æ¹ç»æ', trigger: 'blur' }], |
| | | }, |
| | | { |
| | | label: 'ä¸ä¸å®¡æ¹ç¨æ·', |
| | | label: 'åéç»', |
| | | prop: 'assignee', |
| | | type: 'select', |
| | | // dicUrl: `/blade-mdm/flow/flow-user-list?deptId=0`, |
| | |
| | | // hide: true, |
| | | }, |
| | | { |
| | | label: 'ä¸ä¸æ¥ç¨æ·', |
| | | width: 200, |
| | | prop: '', |
| | | formatter: (val, value, label) => { |
| | | return `${val?.variables?.approveUserNickName || ''}`; |
| | | }, |
| | | }, |
| | | { |
| | | label: 'å½åèç¹', |
| | | width: 200, |
| | | prop: 'taskName', |
| | | }, |
| | | { |
| | | label: 'æä»¶', |
| | | width: 200, |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: 'å°è¾¾æ¶é´', |
| | | width: 200, |
| | | prop: 'createTime', |
| | |
| | | label: 'å°è¾¾æè¿°', |
| | | width: 200, |
| | | prop: 'comment', |
| | | }, |
| | | { |
| | | label: 'æä»¶', |
| | | width: 200, |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: 'å½åèç¹', |
| | | prop: 'taskName', |
| | | }, |
| | | |
| | | ], |
| | |
| | | <!-- |
| | | * @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, |
| | |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | viewBtn: true, |
| | | // viewBtn: true, |
| | | exportBtn: true, |
| | | columnBtn: false, |
| | | tip: false, |
| | | // simplePage: true, |
| | |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: 'ç¼å·', |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: 'åéæ¶é´', |
| | | width: 200, |
| | | prop: 'processCreateTime', |
| | |
| | | search: true, |
| | | searchRange: true, |
| | | searchSpan: 8, |
| | | // hide: true, |
| | | hide: true, |
| | | }, |
| | | { |
| | | label: 'æºåº', |
| | |
| | | search: true, |
| | | hide: true, |
| | | }, |
| | | { |
| | | { |
| | | label: 'ç»ç»', |
| | | prop: '', |
| | | type: 'tree', |
| | |
| | | }; |
| | | }, |
| | | 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; |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | </style> |
| | | <style lang="scss" scoped></style> |