From 54e14bff397221b5b0d64720f77217f4d34ebf98 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 14 七月 2023 09:50:53 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
---
Source/UBCS-WEB/src/views/flow/model.vue | 39 ++++++++++++++++++++++++---------------
1 files changed, 24 insertions(+), 15 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/flow/model.vue b/Source/UBCS-WEB/src/views/flow/model.vue
index 9efc65a..2002b18 100644
--- a/Source/UBCS-WEB/src/views/flow/model.vue
+++ b/Source/UBCS-WEB/src/views/flow/model.vue
@@ -1,18 +1,19 @@
<template>
<basic-container>
<avue-crud :option="option"
- :table-loading="loading"
- :data="data"
- ref="crud"
- v-model="form"
- :page.sync="page"
- @search-change="searchChange"
- @search-reset="searchReset"
- @selection-change="selectionChange"
- @current-change="currentChange"
- @size-change="sizeChange"
- @refresh-change="refreshChange"
- @on-load="onLoad">
+ :table-loading="loading"
+ :data="data"
+ ref="crud"
+ v-model="form"
+ :page.sync="page"
+ @search-change="searchChange"
+ @search-reset="searchReset"
+ @selection-change="selectionChange"
+ @current-change="currentChange"
+ @size-change="sizeChange"
+ @refresh-change="refreshChange"
+ @row-click="clickRowChange"
+ @on-load="onLoad">
<template slot="menuLeft">
<el-button type="primary"
size="mini"
@@ -125,7 +126,7 @@
{
label: "娴佺▼绫诲瀷",
type: "select",
- dicUrl: "/api/blade-system/dict/dictionary?code=flow",
+ dicUrl: "/api/ubcs-system/dict/dictionary?code=flow",
props: {
label: "dictValue",
value: "dictKey"
@@ -170,7 +171,7 @@
prop: "tenantId",
type: "tree",
multiple: true,
- dicUrl: "/api/blade-system/tenant/select",
+ dicUrl: "/api/ubcs-system/tenant/select",
props: {
label: "tenantName",
value: "tenantId"
@@ -215,6 +216,7 @@
dialogWidth: 900,
menuWidth: 200,
dialogClickModal: false,
+ highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜�
size: 'mini',
searchSize: 'mini',
column: [
@@ -347,7 +349,7 @@
deployModel({
modelId: this.selectionId,
category: flowCategory(form.categoryValue),
- tenantIds: form.tenantId.join(",")
+ tenantIds: form.tenantId?form.tenantId.join(","):""
}).then(res => {
const data = res.data;
if (data.success) {
@@ -381,6 +383,13 @@
},
selectionChange(list) {
this.selectionList = list;
+ this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]);
+ },
+ clickRowChange(row){
+ this.$refs.crud.toggleSelection();
+ this.selectionList = row;
+ this.$refs.crud.setCurrentRow(row);
+ this.$refs.crud.toggleRowSelection(row); //閫変腑褰撳墠琛�
},
selectionClear() {
this.selectionList = [];
--
Gitblit v1.9.3