From 3b3ac1fc72e2849eb500840fd9d61e9b8f1960e1 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期四, 17 十月 2024 16:31:45 +0800
Subject: [PATCH] 1、查询所有的action线程变量用于优化,只查一次平台。 2、新增文件柜管理的controller,servicel以及文件管理的分页查询卷、增加卷、修改卷等接口
---
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action.vue | 131 ++++++++++++++++++++++++-------------------
1 files changed, 74 insertions(+), 57 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action.vue
index 5d66a6e..20b15b6 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action.vue
@@ -1,80 +1,83 @@
<template>
- <el-container>
-
- <el-aside>
- <basic-container>
- <!-- 宸︿晶鏍� -->
- <div style="height:580px">
- <avue-tree
- ref="tree"
- v-model="treeForm"
- :data="treeData"
- :option="treeOption"
- @node-click="nodeClick">
+ <el-dialog
+ v-dialogDrag
+ :visible.sync="btnActionVisible"
+ append-to-body="true"
+ class="avue-dialog"
+ title="閫夋嫨Action"
+ width="70%"
+ @close="dialogClose">
+ <el-container>
+ <el-aside>
+ <basic-container>
+ <!-- 宸︿晶鏍� -->
+ <div>
+ <avue-tree
+ ref="tree"
+ v-model="treeForm"
+ :data="treeData"
+ :option="treeOption"
+ node-key="value"
+ @node-click="nodeClick">
<span slot-scope="{ node, data }" class="el-tree-node__label">
<span style="font-size: 15px">
<i class="el-icon-s-promotion"></i>
{{ (node || {}).label }}
</span>
</span>
- </avue-tree>
- </div>
- </basic-container>
- </el-aside>
+ </avue-tree>
+ </div>
+ </basic-container>
+ </el-aside>
- <el-main>
- <basic-container>
- <div>
- <avue-crud
- ref="crud"
- v-model="form"
- :data="data"
- :option="option"
- :page.sync="page"
- :table-loading="tableLoading"
- @search-change="handleSearch"
- @search-reset="handleReset"
- @refresh-change="handleRefresh"
- @selection-change="selectChangeHandler"
- @row-click="rowClickHandler">
- <template slot="plTypeType" slot-scope="{row}">
- <el-tag :type="row.plTypeType === 'business' ? '' : 'success'">
- {{ row.plTypeType === 'business' ? '涓氬姟绫诲瀷' : '閾炬帴绫诲瀷' }}
- </el-tag>
- </template>
+ <el-main>
+ <basic-container>
+ <div>
+ <avue-crud
+ ref="crud"
+ v-model="form"
+ :data="data"
+ :option="option"
+ :page.sync="page"
+ :table-loading="tableLoading"
+ @search-change="handleSearch"
+ @search-reset="handleReset"
+ @refresh-change="handleRefresh"
+ @selection-change="selectChangeHandler"
+ @row-click="rowClickHandler">
+ <template slot="plTypeType" slot-scope="{row}">
+ <el-tag :type="row.plTypeType === 'business' ? '' : 'success'">
+ {{ row.plTypeType === 'business' ? '涓氬姟绫诲瀷' : '閾炬帴绫诲瀷' }}
+ </el-tag>
+ </template>
- </avue-crud>
- </div>
- </basic-container>
- </el-main>
+ </avue-crud>
+ </div>
+ </basic-container>
+ </el-main>
- </el-container>
+ </el-container>
+ <span slot="footer" class="dialog-footer">
+ <el-button @click="btnActionVisible = false">鍙� 娑�</el-button>
+ <el-button type="primary" @click="actionSaveHandler">纭� 瀹�</el-button>
+ </span>
+ </el-dialog>
</template>
<script>
import {
getActionTree,
getActionTableData,
- saveAction,
- updateAction,
- exportAction,
- deleteAction,
- getPLActionParam,
- savePLActionParam,
- updatePLActionParam,
- deletePLActionParam,
- saveActionCls,
- updateActionCls,
- deleteActionCls
} from '@/api/UI/Action/api'
import func from "@/util/func";
import basicOption from "@/util/basic-option";
export default {
- name: "index",
+ name: "index",
data() {
return {
+ btnActionVisible: false,
currenRow: {}, // action褰撳墠琛屼俊鎭�
topMethodsObj: {
select: true,
@@ -126,8 +129,9 @@
option: {
...basicOption,
addBtn: false,
- height: 'auto',
+ height: 500,
highlightCurrentRow: true,
+ menu:false,
column: [
{
label: '缂栧彿',
@@ -334,9 +338,6 @@
this.selectList = [];
}
);
-
- // 璇锋眰action涓嬫柟鍙傛暟鍒楄〃鏁版嵁
- this.getBottomList(row);
},
// 鎼滅储
@@ -368,6 +369,22 @@
this.getRightTableList(this.treeNodeRow);
},
+ // 淇濆瓨action
+ actionSaveHandler() {
+ if (this.selectList.length != 1) {
+ this.$message.error('鍙兘閫夋嫨涓�鏉℃暟鎹�');
+ return;
+ }
+ this.$emit('updataAction', this.selectList[0]);
+ this.dialogClose();
+ },
+
+ dialogClose(){
+ this.btnActionVisible = false;
+ this.data = [];
+ this.$refs.tree.setCurrentKey(null);
+ }
+
}
}
</script>
--
Gitblit v1.9.3