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/integrationIndex.vue | 44 ++++++++++++++++++++++++++------------------
1 files changed, 26 insertions(+), 18 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/integration/integrationIndex.vue b/Source/UBCS-WEB/src/views/integration/integrationIndex.vue
index 5cb52d3..9f9d493 100644
--- a/Source/UBCS-WEB/src/views/integration/integrationIndex.vue
+++ b/Source/UBCS-WEB/src/views/integration/integrationIndex.vue
@@ -59,16 +59,17 @@
<!-- <el-button :disabled="disabledPush" icon="el-icon-plus" size="small" type="primary"-->
<!-- @click="dialogPush = true">鏂� 澧�-->
<!-- </el-button>-->
- <el-button icon="el-icon-check" size="small" type="primary" @click="handleSave">淇� 瀛�
+ <el-button v-if="permissionList.saveBtn" icon="el-icon-check" size="small" type="primary"
+ @click="handleSave">淇� 瀛�
</el-button>
- <el-button icon="el-icon-connection" size="small" type="primary"
- @click="handleSync('all')">鍚屾涓绘ā鍨�
+ <el-button v-if="permissionList.allSyncBtn" icon="el-icon-connection" size="small"
+ type="primary" @click="handleSync('all')">鍚屾涓绘ā鍨�
</el-button>
- <el-button icon="el-icon-connection" size="small" type="primary"
- @click="handleSync('one')">鍚屾璇︾粏妯″瀷
+ <el-button v-if="permissionList.oneSyncBtn" icon="el-icon-connection" size="small"
+ type="primary" @click="handleSync('one')">鍚屾璇︾粏妯″瀷
</el-button>
- <el-button icon="el-icon-coordinate" size="small" type="primary"
- @click="handlerAuto">鑷姩濉厖
+ <el-button v-if="permissionList.autoBtn" icon="el-icon-coordinate" size="small"
+ type="primary" @click="handlerAuto">鑷姩濉厖
</el-button>
</template>
</avue-crud>
@@ -78,8 +79,8 @@
@row-update="handleUpdate"
@row-dblclick="handleRowClick">
<template slot="menuLeft">
- <el-button icon="el-icon-coordinate" size="small" type="primary"
- @click="handlerBottomAuto">鑷姩濉厖
+ <el-button v-if="permissionList.bottomAutoBtn" icon="el-icon-coordinate" size="small"
+ type="primary" @click="handlerBottomAuto">鑷姩濉厖
</el-button>
</template>
</avue-crud>
@@ -94,6 +95,7 @@
<script>
import integrationTransfer from './integrationTransfer.vue'
import pinyin from 'js-pinyin'
+import {mapGetters} from "vuex";
import {
referCodeClassifyTree,
referTree,
@@ -281,7 +283,17 @@
},
targetColumn() {
return this.optionMapping.column.find(column => column.prop === 'targetAttrName');
- }
+ },
+ ...mapGetters(["permission"]),
+ permissionList() {
+ return {
+ allSyncBtn: this.vaildData(this.permission.integration.integration_allSync, false),
+ autoBtn: this.vaildData(this.permission.integration.integration_auto, false),
+ bottomAutoBtn: this.vaildData(this.permission.integration.integration_bottomAuto, false),
+ oneSyncBtn: this.vaildData(this.permission.integration.integration_oneSync, false),
+ saveBtn: this.vaildData(this.permission.integration.integration_save, false),
+ }
+ },
},
methods: {
handlerAuto() {
@@ -297,7 +309,6 @@
// const groupReturnData = res.data && res.data.data ? res.data.data.map(item => item.groupAttrKey) : [];
const groupReturnData = res.data.data;
// 杩囨护鍖归厤
- // console.log(groupReturnData)
this.mappingData.forEach(mappingItem => {
groupReturnData.forEach(groupItem => {
if (mappingItem.sourceAttrKey === groupItem.groupAttrKey) {
@@ -314,10 +325,9 @@
}
})
})
- this.$message.success('濉厖鎴愬姛锛�');
+ this.$message.success('鑷姩濉厖鎴愬姛锛岃纭灞炴�у悗鐐瑰嚮淇濆瓨锛�');
})
.catch(error => {
- console.log(error)
this.$message.error('濉厖澶辫触锛岃绋嶅悗鍐嶈瘯锛�');
});
},
@@ -337,7 +347,7 @@
}
})
})
-
+ this.$message.success('鑷姩濉厖鎴愬姛锛岃纭灞炴�у悗鐐瑰嚮淇濆瓨锛�')
})
},
calculateSimilarity(str1, str2) {
@@ -428,7 +438,6 @@
this.rangeData = []
const response = await gridAttrRanges({meatId: oid})
if (response.status === 200) {
- // console.log(response.data)
this.rangeData = response.data.data
}
},
@@ -569,7 +578,6 @@
}
},
handelTransferSave(event) {
- // console.log(event)
let that = this
const transferValue = event.value
if (Object.keys(that.mappingForm).length == 0) {
@@ -681,7 +689,7 @@
});
}
} catch (error) {
- console.error('澶勭悊鏄犲皠鏇存柊鏃跺嚭閿欙細', error);
+ this.$message.error(error)
} finally {
done();
}
@@ -698,7 +706,7 @@
}
},
setCurrentRow(selection, row) {
- console.log(selection, row)
+
this.mappingForm = row
this.disabledPush = false
},
--
Gitblit v1.10.0