|
@@ -24,7 +24,8 @@
|
|
</a-space>
|
|
</a-space>
|
|
</div>
|
|
</div>
|
|
<div class="part-box">
|
|
<div class="part-box">
|
|
- <a-space v-if="userStore.isAdmin" class="part-action" :size="6">
|
|
|
|
|
|
+ <!-- <a-space v-if="userStore.isAdmin" class="part-action" :size="6"> -->
|
|
|
|
+ <a-space class="part-action" :size="6">
|
|
<a-button type="text" @click="toAdd">
|
|
<a-button type="text" @click="toAdd">
|
|
<template #icon>
|
|
<template #icon>
|
|
<svg-icon name="icon-add" />
|
|
<svg-icon name="icon-add" />
|
|
@@ -51,19 +52,28 @@
|
|
<status-tag type="enable" :value="record.enable" />
|
|
<status-tag type="enable" :value="record.enable" />
|
|
</template>
|
|
</template>
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
- <a-button
|
|
|
|
|
|
+ <!-- <a-button
|
|
v-if="userStore.isAdmin"
|
|
v-if="userStore.isAdmin"
|
|
type="text"
|
|
type="text"
|
|
class="btn-primary"
|
|
class="btn-primary"
|
|
@click="toEdit(record)"
|
|
@click="toEdit(record)"
|
|
>编辑</a-button
|
|
>编辑</a-button
|
|
|
|
+ > -->
|
|
|
|
+ <a-button type="text" class="btn-primary" @click="toEdit(record)"
|
|
|
|
+ >编辑</a-button
|
|
>
|
|
>
|
|
- <a-button
|
|
|
|
|
|
+ <!-- <a-button
|
|
v-if="userStore.isAdmin"
|
|
v-if="userStore.isAdmin"
|
|
:class="record.enable ? 'btn-danger' : 'btn-primary'"
|
|
:class="record.enable ? 'btn-danger' : 'btn-primary'"
|
|
type="text"
|
|
type="text"
|
|
@click="toEnable(record)"
|
|
@click="toEnable(record)"
|
|
>{{ record.enable ? '禁用' : '启用' }}</a-button
|
|
>{{ record.enable ? '禁用' : '启用' }}</a-button
|
|
|
|
+ > -->
|
|
|
|
+ <a-button
|
|
|
|
+ :class="record.enable ? 'btn-danger' : 'btn-primary'"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="toEnable(record)"
|
|
|
|
+ >{{ record.enable ? '禁用' : '启用' }}</a-button
|
|
>
|
|
>
|
|
<a-button type="text" class="btn-primary" @click="toGuide(record)"
|
|
<a-button type="text" class="btn-primary" @click="toGuide(record)"
|
|
>考点指引</a-button
|
|
>考点指引</a-button
|
|
@@ -78,7 +88,7 @@
|
|
</a-table>
|
|
</a-table>
|
|
|
|
|
|
<!-- ImportDialog -->
|
|
<!-- ImportDialog -->
|
|
- <ImportDialog
|
|
|
|
|
|
+ <!-- <ImportDialog
|
|
v-if="userStore.isAdmin"
|
|
v-if="userStore.isAdmin"
|
|
ref="importDialogRef"
|
|
ref="importDialogRef"
|
|
title="导入考点"
|
|
title="导入考点"
|
|
@@ -88,14 +98,25 @@
|
|
download-filename="考点导入模板.xlsx"
|
|
download-filename="考点导入模板.xlsx"
|
|
:auto-upload="false"
|
|
:auto-upload="false"
|
|
@upload-success="getList"
|
|
@upload-success="getList"
|
|
|
|
+ /> -->
|
|
|
|
+ <ImportDialog
|
|
|
|
+ ref="importDialogRef"
|
|
|
|
+ title="导入考点"
|
|
|
|
+ upload-url="/api/admin/site/import"
|
|
|
|
+ :format="['xls', 'xlsx']"
|
|
|
|
+ :download-handle="downloadTemplate"
|
|
|
|
+ download-filename="考点导入模板.xlsx"
|
|
|
|
+ :auto-upload="false"
|
|
|
|
+ @upload-success="getList"
|
|
/>
|
|
/>
|
|
<!-- ModifyAgent -->
|
|
<!-- ModifyAgent -->
|
|
- <ModifyAgent
|
|
|
|
|
|
+ <!-- <ModifyAgent
|
|
v-if="userStore.isAdmin"
|
|
v-if="userStore.isAdmin"
|
|
ref="modifyAgentRef"
|
|
ref="modifyAgentRef"
|
|
:row-data="curRow"
|
|
:row-data="curRow"
|
|
@modified="getList"
|
|
@modified="getList"
|
|
- />
|
|
|
|
|
|
+ /> -->
|
|
|
|
+ <ModifyAgent ref="modifyAgentRef" :row-data="curRow" @modified="getList" />
|
|
<!-- ModifyGuide -->
|
|
<!-- ModifyGuide -->
|
|
<ModifyGuide ref="modifyGuideRef" :row-data="curRow" />
|
|
<ModifyGuide ref="modifyGuideRef" :row-data="curRow" />
|
|
</div>
|
|
</div>
|