From 1d91a31301494b9f0b7e17b3eef280f8d54e2806 Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期二, 23 五月 2023 14:24:04 +0800
Subject: [PATCH] 新增状态池管理和版本规则管理

---
 Source/UBCS-WEB/src/views/modeling/original.vue |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/modeling/original.vue b/Source/UBCS-WEB/src/views/modeling/original.vue
index 72a86fc..0521748 100644
--- a/Source/UBCS-WEB/src/views/modeling/original.vue
+++ b/Source/UBCS-WEB/src/views/modeling/original.vue
@@ -4,14 +4,19 @@
       <basic-container>
         <avue-crud v-model="form" :option="option" :data="data" ref="crud" @on-load="onLoad" @row-save="rowSave"
           @row-update="rowUpdate" :before-open="beforeOpen" @row-del="rowDel" :page.sync="page"
-          @refresh-change="refreshChange" @row-click="rowClick">
+          @refresh-change="refreshChange" @row-click="rowClick"
+          @selection-change="selectChange">
           <template slot-scope="{row,index,type}" slot="selInputForm">
           <div style="margin-left: 75px">
             <el-input v-model="form.text" :size="size" style="width: 210px" :readonly="true" @focus="selectBtmType" :disabled="referType.disable"></el-input>
-            <!-- <el-button type="primary" style="margin-left: 10px" @click="addHandle">閫夋嫨</el-button> -->
-            <!-- <el-button type="info">鍙栨秷</el-button> -->
           </div>
         </template>
+        <template slot="radio"
+                slot-scope="{row}">
+                    <el-radio v-model="selectRow"
+                        :label="row.$index">&nbsp;
+                    </el-radio>
+                </template>
         </avue-crud>
         <el-dialog :visible.sync="referType.display" append-to-body :title="referType.title" width="1000px">
           <original-range @rowchange="rowchange"></original-range>
@@ -136,18 +141,24 @@
         currentPage: 1,
         total: 100
       },
+      selectRow: '',
       data: [
 
       ],
       option: {
         height: "550px",
-        selection: true,
         headerAlign: 'center',
         border: true,
         index: true,
         rowKey: 'id',
         tabs: true,
-        column: [
+        highlightCurrentRow: true,
+        column: [{
+            label: '閫夋嫨',
+            prop: 'radio',
+            width: 60,
+            hide: false
+          },
           {
             label: '灞炴�х紪鍙�',
             prop: 'key',
@@ -544,12 +555,14 @@
       })
     },
     rowClick(row) {
-      this.itemData = row
+      this.itemData = row;
+      this.selectRow = row.$index;
+
     }
     ,selectBtmType(){
         this.referType.display = true;
         this.referType.title = "璇烽�夋嫨" + this.referType.value
-    }
+    },
   },
 }
 </script>

--
Gitblit v1.9.3