From 02dbaaa04bc443e860a715cf907bc0fb5c1a7da4 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 11 七月 2023 09:09:34 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
---
Source/UBCS-WEB/src/components/template/FlowPath.vue | 32 ++++++++++++--------------------
1 files changed, 12 insertions(+), 20 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/template/FlowPath.vue b/Source/UBCS-WEB/src/components/template/FlowPath.vue
index 290afc3..24ccf03 100644
--- a/Source/UBCS-WEB/src/components/template/FlowPath.vue
+++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue
@@ -1,11 +1,9 @@
<template>
- <el-dialog title="妯℃澘娴佺▼" width="90%" append-to-body="true" :visible.sync="dialogVisible">
<avue-crud ref="crud" :table-loading="loading" :data="data" v-model="form" :option="option" :page.sync="page"
:search.sync="search" @on-load="getDataList" @row-save="handleSave" @row-del="handleDelete"
@row-update="handleEdit" @refresh-change="handleRefresh" @size-change="handleSizePage"
@current-change="handleCurrentPage">
</avue-crud>
- </el-dialog>
</template>
<script>
@@ -13,28 +11,14 @@
export default {
name: 'FlowPath',
props: {
- // 鏄惁鎵撳紑
- visible: {
- typeof: Boolean,
- default: false
- },
code: {
typeof: String,
required: true,
default: ""
}
},
- watch: {
- visible(n) {
- this.dialogVisible = n;
- },
- dialogVisible(n) {
- this.$emit('update:visible', n)
- },
- },
data() {
return {
- dialogVisible: this.visible,
loading: false,
page: {
currentPage: 1,
@@ -64,6 +48,7 @@
{
label: '妯℃澘key',
prop: 'modelKey',
+ width:120,
sortable: true,
type: 'tree',
dicData: [],
@@ -85,19 +70,26 @@
label: '妯℃澘鍚嶇О',
prop: 'modelName',
sortable: true,
+ width:220,
addDisabled: true,
editDisabled: true,
},
{
- label: '娴佺▼妯℃澘鐢ㄩ��',
+ label: '妯℃澘鐢ㄩ��',
prop: 'buttonTypeKey',
type: 'tree',
+ width:120,
dicUrl: '/api/ubcs-flow/processTS/tt',
dicMethod: 'post',
props: {
value: "codee",
label: "namee",
},
+ },
+ {
+ label: '妯℃澘鎻忚堪',
+ prop: 'description',
+ type:'textarea'
},
]
},
@@ -154,8 +146,8 @@
// 缂栬緫
async handleEdit(row, index, done, loading) {
console.log(row)
- const { modelName, modelKey, buttonTypeKey, id } = row
- let param = { modelName, modelKey, buttonTypeKey, id }
+ const { modelName, modelKey, buttonTypeKey, id ,description} = row
+ let param = { modelName, modelKey, buttonTypeKey, id,description }
const response = await flowpathSave({ ...param, ...{ templateId: this.code } })
if (response.status === 200) {
loading()
@@ -214,4 +206,4 @@
},
}
}
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.3