From 4470052c3b6bdeb18e45987f8aa293d1e93d0552 Mon Sep 17 00:00:00 2001
From: Ludc <2870569285@qq.com>
Date: 星期二, 18 十一月 2025 11:59:12 +0800
Subject: [PATCH] 所有文件上传接口增加文件安全校验逻辑。
---
Source/UBCS-WEB/src/views/integration/vciAttribute.vue | 61 +++++++++++++++++++++++++++---
1 files changed, 54 insertions(+), 7 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/integration/vciAttribute.vue b/Source/UBCS-WEB/src/views/integration/vciAttribute.vue
index 24e1a38..3db4280 100644
--- a/Source/UBCS-WEB/src/views/integration/vciAttribute.vue
+++ b/Source/UBCS-WEB/src/views/integration/vciAttribute.vue
@@ -4,8 +4,21 @@
@size-change="sizeChange" @row-dblclick="handleRowClick" @row-update="handleUpdate"
@selection-change="selectChange">
<template slot="menuLeft">
- <el-button plain size="small" type="success" @click="savaHandler">淇濆瓨</el-button>
- <el-button plain size="small" type="primary" @click="syncHandler">鍚屾</el-button>
+ <el-button v-if="permissionList.saveBtn" plain size="small" type="success" @click="savaHandler">淇濆瓨</el-button>
+ <el-button v-if="permissionList.syncBtn" plain size="small" type="primary" @click="syncHandler">鍚屾</el-button>
+ <span style="width: 200px;display: inline-block">
+ <el-select slot="prepend" v-model="searchSelect" placeholder="璇烽�夋嫨" size="small">
+ <el-option v-for="item in searchData" :key="item.prop" :label="item.label" :value="item.prop"
+ ></el-option>
+ </el-select>
+ </span>
+ <span style="margin-left: 5px">
+ <el-input v-model="searchValue" class="attrSearch" clearable placeholder="璇疯緭鍏ュ唴瀹�"
+ prefix-icon="el-icon-search"
+ size="small" type="text"></el-input>
+ <el-button v-if="permissionList.searchBtn" icon="el-icon-search" plain size="small" type="primary"
+ @click="searchHandler"> 鎼滅储</el-button>
+ </span>
</template>
</avue-crud>
</basic-container>
@@ -14,11 +27,29 @@
<script>
import {getGroupAttrPoolALlList, editGroupAttr, syncGroupAttrMapping} from '@/api/vciAttrbute'
import {getPage} from "@/api/omd/OmdAttribute";
+import {mapGetters} from "vuex";
export default {
name: "vciAttribute",
data() {
return {
+ searchSelect: "groupAttrKey",
+ searchValue: '',
+ searchData: [
+ {
+ label: "闆嗗洟灞炴�х紪鍙�",
+ prop: "groupAttrKey",
+ align: "left",
+ display: false,
+ width: 200,
+ required: true
+ }, {
+ label: "闆嗗洟灞炴�у悕绉�",
+ prop: "groupAttrName",
+ align: "left",
+ display: false
+ }
+ ],
data: [],
options: {
height: 'auto',
@@ -86,9 +117,29 @@
computed: {
codeMetaColumn() {
return this.options.column.find(column => column.prop === 'codeMetaAttrName');
- }
+ },
+ ...mapGetters(["permission"]),
+ permissionList() {
+ return {
+ saveBtn: this.vaildData(this.permission.vciAttribute.attribute_save, false),
+ syncBtn: this.vaildData(this.permission.vciAttribute.attribute_sync, false),
+ searchBtn: this.vaildData(this.permission.vciAttribute.attribute_search, false),
+ }
+ },
},
methods: {
+ searchHandler() {
+ const params = {
+ [`conditionMap[${this.searchSelect}_like]`]: this.searchValue,
+ page: this.page.currentPage,
+ limit: this.page.pageSize
+ }
+ getGroupAttrPoolALlList(params).then(res => {
+ const data = res.data.data;
+ this.data = data.records;
+ this.page.total = data.total;
+ })
+ },
codeMetaDis() {
for (const item of this.data) {
if (item.codeMetaAttrOid && item.codeMetaAttrKey && item.codeMetaAttrName) {
@@ -139,12 +190,9 @@
// row.codeMetaAttrName鍥犱负涓嬫媺妗唙alue鍊煎師鍥犵粦瀹氫负codeMetaAttrOid
let updataList = []
- // console.log(this.ChangeName)
- // console.log(row.codeMetaAttrName)
// if (this.ChangeName && this.ChangeName === row.codeMetaAttrName) {
// updataList = this.codeMetaColumn.dicData.find(item => item.codeMetaAttrOid === row.codeMetaAttrOid)
// } else {
- // console.log('2')
// updataList = this.codeMetaColumn.dicData.find(item => item.codeMetaAttrOid === row.codeMetaAttrName)
// }
updataList = this.codeMetaColumn.dicData.find(item => item.codeMetaAttrOid === row.codeMetaAttrName)
@@ -214,7 +262,6 @@
this.$message.success('淇濆瓨鎴愬姛锛�')
await this.onLoad()
}
-
}
},
async syncHandler() {
--
Gitblit v1.10.0