From 9503c595d3508c80cbbacf6e69dca459771d250e Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期三, 15 一月 2025 11:01:54 +0800
Subject: [PATCH] 头像上传获取等接口上传
---
Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue | 61 ++++++++++++++++++++++++------
1 files changed, 48 insertions(+), 13 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue
index 6c677e5..d8a1f23 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue
@@ -13,14 +13,26 @@
@selection-change="selectChangeHandler"
@row-click="rowClickHandler">
<template slot="menuLeft">
- <el-button icon="el-icon-plus" size="small" type="primary" @click="addHandler">鍒涘缓</el-button>
+ <el-button v-if="permissionChildrenList.UiTabAddBtn" class="button-custom-icon" size="small" type="primary" @click="addHandler">
+ <icon-show :name="permissionChildrenList.UiTabAddBtn.source"></icon-show>
+ 鍒涘缓
+ </el-button>
<!--<el-button icon="el-icon-edit" plain size="small" type="primary" @click="editHandler">淇敼</el-button>
<el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">鍒犻櫎</el-button>-->
</template>
<template slot="menu" slot-scope="scope">
- <el-button icon="el-icon-edit" size="small" type="text" @click="rowEditBtnClick(scope.row)">缂栬緫
+ <el-button v-if="permissionChildrenList.UiTabEditBtn" size="small" type="text"
+ @click="rowEditBtnClick(scope.row)">
+ <icon-show :name="permissionChildrenList.UiTabEditBtn.source"></icon-show>
+ 缂栬緫
</el-button>
- <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">鍒犻櫎
+ <el-button v-if="permissionChildrenList.UiTabDelBtn" size="small" type="text" @click="rowDeleteHandler(scope.row)">
+ <icon-show :name="permissionChildrenList.UiTabDelBtn.source"></icon-show>
+ 鍒犻櫎
+ </el-button>
+ <el-button v-if="permissionChildrenList.UiTabCloneBtn" size="small" type="text" @click="rowCloneHandler(scope.row)">
+ <icon-show :name="permissionChildrenList.UiTabCloneBtn.source"></icon-show>
+ 鍏嬮殕
</el-button>
</template>
<template slot="plIsOpen" slot-scope="{row}">
@@ -41,7 +53,7 @@
width="800px"
@close="dialogClose"
>
- <el-form ref="form" :model="form" :rules="rules" label-width="100px" size="small">
+ <el-form ref="form" :model="form" :rules="rules" label-width="100px" size="small" style="margin-bottom: 30px;">
<el-row>
<el-col :span="12">
<el-form-item label="椤甸潰缂栫爜锛�" prop="plCode">
@@ -55,7 +67,8 @@
</el-col>
<el-col :span="12">
<el-form-item label="搴忓彿锛�" prop="plSeq">
- <el-input v-model="form.plSeq"></el-input>
+ <el-input-number v-model="form.plSeq" :max="9999" :min="1"
+ controls-position="right"></el-input-number >
</el-form-item>
</el-col>
<el-col :span="12">
@@ -94,11 +107,12 @@
<div>4銆佽緭鍏ユ椂锛屼笉瑕佹暡鍥炶溅鎹㈣銆�</div>
</div>
</el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogClose">鍙� 娑�</el-button>
- <el-button type="primary" @click="saveHandler">纭� 瀹�</el-button>
+ <span slot="footer" class="dialog-footer avue-dialog__footer">
+ <el-button size="small" type="primary" @click="saveHandler">淇� 瀛�</el-button>
+ <el-button size="small" @click="dialogClose">鍙� 娑�</el-button>
</span>
</el-dialog>
+ <clone-dialog ref="cloneDialog" :fromOid="fromOid" :sourceOId="sourceOId" type="tabPage" paramsType="ui"></clone-dialog>
</div>
</template>
@@ -112,6 +126,8 @@
} from "@/api/UI/uiDefine";
import func from "@/util/func";
import bottomTable from "./bottomTable/index";
+import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog";
+import {mapGetters} from "vuex";
export default {
name: "plShow",
@@ -121,9 +137,11 @@
default: {}
},
},
- components:{bottomTable},
+ components:{bottomTable,cloneDialog},
data() {
return {
+ fromOid:'',
+ sourceOId:'',
uiDefineOid:'',
areaType: '',
tableLoading: false,
@@ -135,7 +153,7 @@
editBtn: false,
delBtn: false,
index:false,
- menuWidth:160,
+ menuWidth:220,
align:'left',
column: [{
label: '搴忓彿',
@@ -204,6 +222,17 @@
},
}
},
+ computed:{
+ ...mapGetters(["permission"]),
+ permissionChildrenList() {
+ return {
+ UiTabAddBtn: this.vaildData(this.permission[this.$route.query.id].BATCHAPPLY, false),
+ UiTabEditBtn: this.vaildData(this.permission[this.$route.query.id].BATCHUPDATE, false),
+ UiTabDelBtn: this.vaildData(this.permission[this.$route.query.id].DOWNLOADFILE, false),
+ UiTabCloneBtn: this.vaildData(this.permission[this.$route.query.id].CLONE, false),
+ }
+ }
+ },
watch: {
uiDefineData:{
handler(val) {
@@ -235,9 +264,9 @@
areaType:this.areaType
}
getTabByContextIdAndType( params).then(res => {
+ this.$refs.crud.clearSelection();
this.data = res.data.data;
this.selectList=[];
- this.$refs.crud.clearSelection();
this.tableLoading = false;
})
},
@@ -254,7 +283,7 @@
this.lastIndex = newIndex;
},
() => {
- this.selectList = [];
+ this.selectList = [row];
}
);
},
@@ -309,7 +338,7 @@
},
// 缂栬緫鎸夐挳
rowEditBtnClick(row) {
- this.form=row;
+ this.form=JSON.parse(JSON.stringify(row));
this.dialogType = 'edit';
this.dialogVisible = true;
},
@@ -373,8 +402,14 @@
} else {
return false;
}
+ done();
});
},
+ rowCloneHandler(row) {
+ this.fromOid = this.uiDefineData.plOId;
+ this.sourceOId = row.plOId;
+ this.$refs.cloneDialog.openDialog(row);
+ },
}
}
</script>
--
Gitblit v1.9.3