修改角色管理

This commit is contained in:
龙运模
2024-07-16 18:34:49 +08:00
parent 6dd9d35ce3
commit 196d8cbb91
14 changed files with 495 additions and 151 deletions
+10 -4
View File
@@ -154,10 +154,16 @@ export default {
})
},
async importTemplate() {
const res = await this.$API.system.company.template.get();
if(res.code == 200){
console.log(res.data)
}
const res = await this.$API.system.company.template.post();
const blob = new Blob([res.data]);
const eLink = document.createElement('a');
eLink.download = "company_import_template_20240716093538_6695ce6a3ca1f.xlsx";
eLink.style.display = 'none';
eLink.href = URL.createObjectURL(blob);
document.body.appendChild(eLink);
eLink.click();
URL.revokeObjectURL(eLink.href); // 释放URL 对象
document.body.removeChild(eLink);
},
//编辑
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<el-dialog :title="titleMap[mode]" v-model="visible" :width="1200" destroy-on-close draggable @closed="$emit('closed')">
<el-scrollbar height="480px" style="padding: 0 20px;">
<el-scrollbar height="500px" style="padding: 0 20px;">
<el-form :model="form" :rules="rules" ref="dialogForm" label-width="140px">
<el-row justify="space-between">
<el-col :span="11">