|
@@ -70,39 +70,37 @@
|
|
>
|
|
>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-form>
|
|
</a-form>
|
|
- <div class="import-btns">
|
|
|
|
- <a-button
|
|
|
|
- type="primary"
|
|
|
|
- class="tw-flex tw-items-center operation-button"
|
|
|
|
- @click="showImportModalType('subject')"
|
|
|
|
- >
|
|
|
|
- 导入科目
|
|
|
|
- </a-button>
|
|
|
|
- <br />
|
|
|
|
- <a-button
|
|
|
|
- type="primary"
|
|
|
|
- class="tw-flex tw-items-center operation-button"
|
|
|
|
- @click="showImportModalType('struct')"
|
|
|
|
- >
|
|
|
|
- 导入主观题结构
|
|
|
|
- </a-button>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-<!-- <a-dropdown-button type="primary">-->
|
|
|
|
-<!-- <template #overlay>-->
|
|
|
|
-<!-- <a-menu>-->
|
|
|
|
-<!-- <a-menu-item key="1" @click="showImportModalType('subject')"-->
|
|
|
|
-<!-- >导入科目</a-menu-item-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- <a-menu-item key="2" @click="showImportModalType('struct')"-->
|
|
|
|
-<!-- >导入主观题</a-menu-item-->
|
|
|
|
-<!-- >-->
|
|
|
|
-<!-- </a-menu>-->
|
|
|
|
-<!-- </template>-->
|
|
|
|
-<!-- <template #icon><DownOutlined /></template>-->
|
|
|
|
-<!-- 导入-->
|
|
|
|
-<!-- </a-dropdown-button>-->
|
|
|
|
|
|
+ <div class="import-btns">
|
|
|
|
+ <a-button
|
|
|
|
+ type="primary"
|
|
|
|
+ class="tw-flex tw-items-center operation-button"
|
|
|
|
+ @click="showImportModalType('subject')"
|
|
|
|
+ >
|
|
|
|
+ 导入科目
|
|
|
|
+ </a-button>
|
|
|
|
+ <br />
|
|
|
|
+ <a-button
|
|
|
|
+ type="primary"
|
|
|
|
+ class="tw-flex tw-items-center operation-button"
|
|
|
|
+ @click="showImportModalType('struct')"
|
|
|
|
+ >
|
|
|
|
+ 导入主观题结构
|
|
|
|
+ </a-button>
|
|
|
|
+
|
|
|
|
+ <!-- <a-dropdown-button type="primary">-->
|
|
|
|
+ <!-- <template #overlay>-->
|
|
|
|
+ <!-- <a-menu>-->
|
|
|
|
+ <!-- <a-menu-item key="1" @click="showImportModalType('subject')"-->
|
|
|
|
+ <!-- >导入科目</a-menu-item-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- <a-menu-item key="2" @click="showImportModalType('struct')"-->
|
|
|
|
+ <!-- >导入主观题</a-menu-item-->
|
|
|
|
+ <!-- >-->
|
|
|
|
+ <!-- </a-menu>-->
|
|
|
|
+ <!-- </template>-->
|
|
|
|
+ <!-- <template #icon><DownOutlined /></template>-->
|
|
|
|
+ <!-- 导入-->
|
|
|
|
+ <!-- </a-dropdown-button>-->
|
|
</div>
|
|
</div>
|
|
<div class="export-btns">
|
|
<div class="export-btns">
|
|
<a-button
|
|
<a-button
|
|
@@ -124,6 +122,7 @@
|
|
:pagination="{
|
|
:pagination="{
|
|
total: subjectsTableData.totalCount,
|
|
total: subjectsTableData.totalCount,
|
|
pageSize: query.pageSize,
|
|
pageSize: query.pageSize,
|
|
|
|
+ showTotal: (total) => `共 ${total} 条`,
|
|
}"
|
|
}"
|
|
@change="currentPageChange"
|
|
@change="currentPageChange"
|
|
:row-class-name="
|
|
:row-class-name="
|
|
@@ -500,7 +499,7 @@ const downloadTemplate = async () => {
|
|
const showImportModalType = async (type: ImportType) => {
|
|
const showImportModalType = async (type: ImportType) => {
|
|
uploadQuery.type = type;
|
|
uploadQuery.type = type;
|
|
// uploadQuery.schoolId = query.schoolId || mainStore.systemUserInfo?.schoolId;
|
|
// uploadQuery.schoolId = query.schoolId || mainStore.systemUserInfo?.schoolId;
|
|
- uploadQuery.schoolId = '';
|
|
|
|
|
|
+ uploadQuery.schoolId = "";
|
|
showImportModal.value = true;
|
|
showImportModal.value = true;
|
|
querySchoolList("", "form");
|
|
querySchoolList("", "form");
|
|
};
|
|
};
|
|
@@ -544,8 +543,8 @@ onBeforeMount(async () => {
|
|
<style scoped lang="less">
|
|
<style scoped lang="less">
|
|
.subjects-manage {
|
|
.subjects-manage {
|
|
.header-block {
|
|
.header-block {
|
|
- .export-btns{
|
|
|
|
- padding-left:6px;
|
|
|
|
|
|
+ .export-btns {
|
|
|
|
+ padding-left: 6px;
|
|
}
|
|
}
|
|
.ant-input {
|
|
.ant-input {
|
|
width: 160px;
|
|
width: 160px;
|
|
@@ -575,9 +574,9 @@ onBeforeMount(async () => {
|
|
|
|
|
|
.operation-button {
|
|
.operation-button {
|
|
//width: 72px;
|
|
//width: 72px;
|
|
- padding:0 9px;
|
|
|
|
|
|
+ padding: 0 9px;
|
|
//padding: 0;
|
|
//padding: 0;
|
|
- margin-bottom:10px;
|
|
|
|
|
|
+ margin-bottom: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.subjects-table {
|
|
.subjects-table {
|