|
...
|
...
|
@@ -29,7 +29,7 @@ |
|
|
|
type="primary"
|
|
|
|
plain
|
|
|
|
icon="Plus"
|
|
|
|
v-hasPermi="['system:role:add']"
|
|
|
|
v-hasPermi="['system:vehiclebrand:add']"
|
|
|
|
@click="handleAdd"
|
|
|
|
>新增</el-button
|
|
|
|
>
|
|
...
|
...
|
@@ -40,7 +40,7 @@ |
|
|
|
plain
|
|
|
|
icon="Delete"
|
|
|
|
:disabled="multiple"
|
|
|
|
v-hasPermi="['system:role:remove']"
|
|
|
|
v-hasPermi="['system:vehiclebrand:delete']"
|
|
|
|
@click="handleDelete"
|
|
|
|
>删除</el-button
|
|
|
|
>
|
|
...
|
...
|
@@ -51,7 +51,7 @@ |
|
|
|
plain
|
|
|
|
icon="Upload"
|
|
|
|
@click="handleImport"
|
|
|
|
v-hasPermi="['system:user:import']"
|
|
|
|
v-hasPermi="['system:vehiclebrand:import']"
|
|
|
|
>导入</el-button
|
|
|
|
>
|
|
|
|
</el-col>
|
|
...
|
...
|
@@ -65,12 +65,8 @@ |
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
>
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column
|
|
|
|
label="序号"
|
|
|
|
prop="policyId"
|
|
|
|
width="120"
|
|
|
|
align="center"
|
|
|
|
/>
|
|
|
|
<el-table-column label="序号" width="55" type="index" />
|
|
|
|
<el-table-column label="品牌编号" prop="id" width="120" align="center" />
|
|
|
|
<el-table-column label="车辆品牌" prop="name" align="center" />
|
|
|
|
<el-table-column label="操作时间" align="center">
|
|
|
|
<template #default="{ row }">
|
|
...
|
...
|
@@ -117,7 +113,7 @@ |
|
|
|
</template>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 用户导入对话框 -->
|
|
|
|
<!-- 品牌导入对话框 -->
|
|
|
|
<el-dialog
|
|
|
|
:title="upload.title"
|
|
|
|
v-model="upload.open"
|
|
...
|
...
|
@@ -188,7 +184,7 @@ const upload = reactive({ |
|
|
|
// 设置上传的请求头部
|
|
|
|
headers: { Authorization: "Bearer " + getToken() },
|
|
|
|
// 上传的地址
|
|
|
|
url: import.meta.env.VITE_APP_BASE_API + "/system/user/importData",
|
|
|
|
url: import.meta.env.VITE_APP_BASE_API + "/system/vehicle/brand/importData",
|
|
|
|
});
|
|
|
|
const dataList = ref([]);
|
|
|
|
const open = ref(false);
|
|
...
|
...
|
@@ -234,19 +230,19 @@ const handleFileSuccess = (response, file, fileList) => { |
|
|
|
"导入结果",
|
|
|
|
{ dangerouslyUseHTMLString: true }
|
|
|
|
);
|
|
|
|
// getList();
|
|
|
|
getList();
|
|
|
|
};
|
|
|
|
/** 导入按钮操作 */
|
|
|
|
function handleImport() {
|
|
|
|
upload.title = "型号导入";
|
|
|
|
upload.title = "品牌导入";
|
|
|
|
upload.open = true;
|
|
|
|
}
|
|
|
|
/** 下载模板操作 */
|
|
|
|
function importTemplate() {
|
|
|
|
proxy.download(
|
|
|
|
"system/user/importTemplate",
|
|
|
|
"/system/vehicle/brand/importTemplate",
|
|
|
|
{},
|
|
|
|
`user_template_${new Date().getTime()}.xlsx`
|
|
|
|
`brand_template_${new Date().getTime()}.xlsx`
|
|
|
|
);
|
|
|
|
}
|
|
|
|
/** 添加车辆性质 */
|
...
|
...
|
|