| | |
| | | <!-- |
| | | * @Date: 2025-08-10 14:14:58 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2025-08-18 18:47:02 |
| | | * @FilePath: /mdmweb/src/views/flowmgr/backImport.vue |
| | | --> |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud |
| | | :addBtn="false" |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | ref="crud" |
| | | v-model:search="search" |
| | | v-model:page="mypage" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <template #menu-left> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">导入</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">入库</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | <basic-container> |
| | | <el-tabs |
| | | v-model="activeName" |
| | | type="card" |
| | | class="demo-tabs" |
| | | > |
| | | <el-tab-pane label="导入" name="todo"> |
| | | <backImport1 v-if="activeName==='todo'"></backImport1> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="回传记录" name="done"> |
| | | <backImport2 v-if="activeName==='done'"> </backImport2> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import backImport1 from './backImport1.vue'; |
| | | import backImport2 from './backImport2.vue'; |
| | | export default { |
| | | data() { |
| | | return { |
| | | search: {}, |
| | | loading: true, |
| | | mypage: { |
| | | size: 10, |
| | | current: 1, |
| | | total: 0, |
| | | }, |
| | | option: { |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | labelWidth: 120, |
| | | emptyBtn: false, |
| | | searchSpan: 8, |
| | | menu: false, |
| | | column: [ |
| | | { |
| | | label: '文件路径', |
| | | type: 'input', |
| | | prop: 'keyword', |
| | | search: true, |
| | | hide: true |
| | | }, |
| | | { |
| | | label: '任务编号', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '程序名称', |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: '文件到达时间', |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: '文件数据库编号', |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: '处理状态', |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: '处理方式', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '处理时间', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '处理人', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: 'MD5值', |
| | | prop: '' |
| | | } |
| | | ], |
| | | }, |
| | | data: [], |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleEdit(row,index) { |
| | | |
| | | components: { |
| | | backImport1, |
| | | backImport2 |
| | | }, |
| | | searchReset() { |
| | | //this.onLoad(this.mypage); |
| | | data() { |
| | | return { |
| | | activeName: 'todo', |
| | | }; |
| | | }, |
| | | searchChange(params, done) { |
| | | this.mypage.current = 1; |
| | | this.onLoad(); |
| | | done(); |
| | | }, |
| | | currentChange(current) { |
| | | this.mypage.current = current; |
| | | }, |
| | | sizeChange(size) { |
| | | this.mypage.size = size; |
| | | }, |
| | | refreshChange() { |
| | | |
| | | }, |
| | | onLoad() { |
| | | this.loading = true; |
| | | var obj = { |
| | | keyword: this.search.keyword, |
| | | machineSpec: "", |
| | | current: this.mypage.current, |
| | | size: this.mypage.size, |
| | | } |
| | | axios({ |
| | | url: '/program/dncsendback/page', |
| | | method: 'get', |
| | | params: obj, |
| | | }).then( |
| | | res => { |
| | | const data = res.data.data; |
| | | this.mypage.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | methods: { |
| | | handleTabClick(tab, event) { |
| | | console.log(tab, event); |
| | | }, |
| | | error => { |
| | | |
| | | } |
| | | ); |
| | | |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | |
| | | </style> |
| | | }, |
| | | } |
| | | </script> |