|
@@ -14,7 +14,9 @@ |
|
@@ -14,7 +14,9 @@ |
14
|
<template #importType="{ model }">
|
14
|
<template #importType="{ model }">
|
15
|
<RadioGroup v-model:value="model.importType">
|
15
|
<RadioGroup v-model:value="model.importType">
|
16
|
<Radio value="2">JSON导入</Radio>
|
16
|
<Radio value="2">JSON导入</Radio>
|
17
|
- <Radio value="1">Excel导入</Radio>
|
17
|
+ <Authority :value="['api:yt:things_model:excel_import']">
|
|
|
18
|
+ <Radio value="1">Excel导入</Radio>
|
|
|
19
|
+ </Authority>
|
18
|
</RadioGroup>
|
20
|
</RadioGroup>
|
19
|
<div v-if="model.importType === '1'" class="absolute -left-28">
|
21
|
<div v-if="model.importType === '1'" class="absolute -left-28">
|
20
|
<Button @click="handleTemplateDownload" type="link">excel模板下载</Button>
|
22
|
<Button @click="handleTemplateDownload" type="link">excel模板下载</Button>
|
|
@@ -39,6 +41,7 @@ |
|
@@ -39,6 +41,7 @@ |
39
|
} from '/@/api/device/modelOfMatter';
|
41
|
} from '/@/api/device/modelOfMatter';
|
40
|
import { useLoading } from '/@/components/Loading';
|
42
|
import { useLoading } from '/@/components/Loading';
|
41
|
import { BasicForm, useForm } from '/@/components/Form';
|
43
|
import { BasicForm, useForm } from '/@/components/Form';
|
|
|
44
|
+ import { Authority } from '/@/components/Authority';
|
42
|
|
45
|
|
43
|
const emits = defineEmits(['register', 'handleImportCSV', 'handleReload']);
|
46
|
const emits = defineEmits(['register', 'handleImportCSV', 'handleReload']);
|
44
|
|
47
|
|