用户导入优化

This commit is contained in:
不做码农 2023-05-07 08:57:02 +08:00
parent 4d8270b458
commit 21d73048e1

View File

@ -513,10 +513,11 @@ const handleFileUploadProgress = (event, file, fileList) => {
} }
/** 文件上传成功处理 */ /** 文件上传成功处理 */
const handleFileSuccess = (response, file, fileList) => { const handleFileSuccess = (response, file, fileList) => {
const { code, msg, data } = response
upload.open = false upload.open = false
upload.isUploading = false upload.isUploading = false
proxy.$refs['uploadRef'].clearFiles() proxy.$refs['uploadRef'].clearFiles()
proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + '</div>', '导入结果', { proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + data.item1 + '</div>', '导入结果', {
dangerouslyUseHTMLString: true dangerouslyUseHTMLString: true
}) })
getList() getList()
@ -622,7 +623,6 @@ function submitForm() {
* 解决编辑时角色选中不了问题 * 解决编辑时角色选中不了问题
*/ */
function selectRole(e) { function selectRole(e) {
console.log(e, JSON.stringify(this.form))
proxy.$forceUpdate() proxy.$forceUpdate()
} }
getTreeselect() getTreeselect()