修改角色管理
This commit is contained in:
@@ -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,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">
|
||||
|
||||
Reference in New Issue
Block a user