From 2b5ef02510cffc0cdbe74ed53b53fd9826d0bacf Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 30 一月 2024 17:12:04 +0800
Subject: [PATCH] 首页布局更改
---
Source/UBCS-WEB/src/components/template/FlowPath.vue | 23 ++++++++++-------------
1 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/template/FlowPath.vue b/Source/UBCS-WEB/src/components/template/FlowPath.vue
index 5b24017..1ffafd7 100644
--- a/Source/UBCS-WEB/src/components/template/FlowPath.vue
+++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue
@@ -1,9 +1,12 @@
<template>
- <avue-crud v-if="Formlist.length>0" ref="crud" v-model="form" :data="data" :option="option" :page.sync="page"
- :search.sync="search" :table-loading="loading" @on-load="getDataList" @row-save="handleSave"
- @row-del="handleDelete" @row-update="handleEdit" @refresh-change="handleRefresh"
- @size-change="handleSizePage" @current-change="handleCurrentPage">
- </avue-crud>
+ <div>
+ <avue-crud v-if="Formlist.length>0" ref="crud" v-model="form" :data="data" :option="option" :page.sync="page"
+ :search.sync="search" :table-loading="loading" @on-load="getDataList" @row-save="handleSave"
+ @row-del="handleDelete" @row-update="handleEdit" @refresh-change="handleRefresh"
+ @size-change="handleSizePage" @current-change="handleCurrentPage">
+ </avue-crud>
+ </div>
+
</template>
<script>
@@ -44,7 +47,8 @@
startData: [],
form: {},
option: {
- height: 340,
+ height: 'auto',
+ calcHeight: 20,
border: true,
align: 'center',
menu: !this.checkStatus || this.crudLCStatus == 'Editing',
@@ -80,7 +84,6 @@
trigger: 'blur'
}],
nodeClick: (data) => {
- console.log(data)
// 鑺傜偣鐐瑰嚮鐨勬椂鍊欎細鑾峰彇鍒版暟鎹�
this.form.modelName = data.name
}
@@ -141,7 +144,6 @@
async getStart() {
const response = await getStartList()
if (response.status === 200) {
- console.log(response.data.data.records)
const data = response.data.data.records
let newData = data.map(item => {
const {key, name, version} = item
@@ -171,10 +173,8 @@
},
// 鏂板
async handleSave(row, done, loading) {
- console.log(row)
await flowpathSave({...row, ...{templateId: this.code}}).then(response => {
if (response.status === 200) {
- console.log(response)
this.$message({
type: 'success',
message: '鏂板鏁版嵁鎴愬姛锛�'
@@ -189,7 +189,6 @@
},
// 缂栬緫
async handleEdit(row, index, done, loading) {
- console.log(row)
const {modelName, modelKey, buttonTypeKey, id, description} = row
let param = {modelName, modelKey, buttonTypeKey, id, description}
await flowpathSave({...param, ...{templateId: this.code}}).then(response => {
@@ -209,7 +208,6 @@
},
// 鍒犻櫎鍗曟潯
handleDelete(row) {
- console.log(row)
const {id} = row
this.deleteSysInfo({id: id})
},
@@ -223,7 +221,6 @@
// 鎺ュ彛
const response = await flowpathDelete(param)
if (response.status === 200) {
- console.log(response)
this.$message({
type: 'success',
message: '鍒犻櫎鎴愬姛!'
--
Gitblit v1.9.3