From 2781142ab67deba83925da706ca26b7f8ea1a759 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期四, 04 九月 2025 15:42:24 +0800
Subject: [PATCH] 审批用户列表改为树形
---
src/views/flowmgr/backImport.vue | 177 ++++++++++++----------------------------------------------
1 files changed, 38 insertions(+), 139 deletions(-)
diff --git a/src/views/flowmgr/backImport.vue b/src/views/flowmgr/backImport.vue
index 64a2d08..5f3d4ad 100644
--- a/src/views/flowmgr/backImport.vue
+++ b/src/views/flowmgr/backImport.vue
@@ -1,146 +1,45 @@
+<!--
+ * @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">
+ <keep-alive>
+ <backImport1 v-if="activeName==='todo'"></backImport1>
+ </keep-alive>
+ </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>
\ No newline at end of file
+ },
+}
+</script>
\ No newline at end of file
--
Gitblit v1.9.3