From 05420281915def51fc33964ddcc9b0130f4daf45 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 27 七月 2023 20:15:40 +0800
Subject: [PATCH] 错误文件删除
---
Source/UBCS-WEB/src/components/Tree/classifyTrees.vue | 48 +++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
index 50f38a3..2347599 100644
--- a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue
@@ -83,9 +83,12 @@
@row-save="CrudRowSave"
@row-del="CrudRowDel"
@row-update="CrudRowUpdata"
- :before-close="beforeClose"
- @select="selectHandle"
+ @row-click="rowHandle"
>
+ <template slot="radio" slot-scope="{row}">
+ <el-radio v-model="selectRow" :label="row.$index" style="padding-left: 10px !important;">{{''}}</el-radio>
+ </template>
+
<template slot="menuLeft">
<el-button plain size="small" type="primary" @click="FindeHanler">鏌ヨ</el-button>
<el-button plain size="small" type="primary" @click="TemRefresh">鍒锋柊</el-button>
@@ -210,7 +213,6 @@
>
</template>
</avue-crud>
-
</basic-container>
<templatePro :ProData="this.ProData" :crudOid="this.crudOid" :crudLCStatus="this.crudLCStatus" :crudArray="this.crudArray" :Formlist="this.Formlist" :codeClassifyOid="this.codeClassifyOid"></templatePro>
</span>
@@ -344,6 +346,7 @@
inject: ["crudTreeData"],
data() {
return {
+ selectRow:'',
//鏍戣妭鐐规樉绀洪殣钘�
TreeFlagCode:false,
//缂栫爜瑙勫垯
@@ -666,11 +669,16 @@
index: true,
border: true,
height:180,
- selection:true,
addBtn:this.Formlist.length<=0 && this.nodeClickList != "",
editBtn:false,
delBtn:false,
column: [
+ {
+ label: '',
+ prop: 'radio',
+ width: 60,
+ hide: false,
+ },
{
label: "妯℃澘缂栧彿",
prop: "id",
@@ -708,6 +716,14 @@
}
},
methods: {
+ /** 瀵煎叆 */
+ ImportExcel(){
+
+ },
+ /** 瀵煎嚭 */
+ ExportExcel(){
+
+ },
//妯℃澘绠$悊宸插彂甯冪紪杈�
// checkShowEditBtn() {
// this.showEditBtn = this.Formlist.some(item => item.lcStatus === 'Released');
@@ -924,13 +940,31 @@
MasterHandler(val){
this.TreeList=val;
},
- //琛屽崟閫変簨浠�
- selectHandle(selection,row){
+ rowHandle(row, column){
+ this.selectRow=row.$index;
this.crudOid=row.oid;
this.crudLCStatus=row.lcStatus;
- this.crudArray=selection;
+ this.crudArray.push(row);
gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': row.oid}).then(res => {
this.ProData = res.data.data;
+ //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡
+ this.ProData = res.data.data.map((item) => {
+ //濡傛灉鍒嗙被娉ㄥ叆classifyInvokeAttr涓虹┖璇存槑鏄垵濮嬬姸鎬�
+ if(item.classifyInvokeAttr !== ''){
+ if (!item.hasOwnProperty('classifyInvokeText')) { // 妫�鏌lassifyInvokeText灞炴�ф槸鍚﹀瓨鍦�
+ item = {
+ ...item,
+ classifyInvokeText: {
+ "娉ㄥ叆绫诲瀷": item.classifyInvokeAttr,
+ "娉ㄥ叆绫诲瀷鍚嶇О": item.classifyInvokeAttrName,
+ "灞傜骇璁剧疆": item.classifyInvokeLevel,
+ "鏄惁鍙慨鏀�": item.classifyInvokeEditFlag
+ }
+ };
+ }
+ }
+ return item;
+ });
}).catch(res => {
this.$message.error(res)
})
--
Gitblit v1.9.3