|
|
@@ -53,17 +53,17 @@
|
|
|
</BasicTable>
|
|
|
</div>
|
|
|
|
|
|
- <VersionDrawer v-if="ifShowDialog" @closeDialog="ifShowDialog = false" :formData="formData"
|
|
|
+ <!-- <VersionDrawer v-if="ifShowDialog" @closeDialog="ifShowDialog = false" :formData="formData"
|
|
|
:drawerTitle="drawerTitle" @onSubmit="onSubmit" ref="drawerRef">
|
|
|
</VersionDrawer>
|
|
|
<VersionModal v-if="ifShowModal" @closeModal="ifShowModal = false" :width="modalWidth" :title="sourcesTableTitle">
|
|
|
<template #modalContent>
|
|
|
<div class="sources-body" style="padding: 20px;">
|
|
|
- <!-- <div class="sources-title" style="margin-bottom: 20px;font-size: 16px;">资源列表</div> -->
|
|
|
+ <div class="sources-title" style="margin-bottom: 20px;font-size: 16px;">资源列表</div>
|
|
|
<a-table :columns="sourcesColumns" :data-source="sourcesTableData"></a-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
- </VersionModal>
|
|
|
+ </VersionModal> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -73,9 +73,9 @@ import { defineComponent, reactive, ref, toRefs, computed, onMounted, watch, cre
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
|
|
import { Button, notification } from 'ant-design-vue';
|
|
|
|
|
|
-import VersionDrawer from './VersionDrawer.vue';
|
|
|
-import VersionModal from './VersionModal.vue';
|
|
|
-import { getVersionList, delVersionByIds, getVersionDetail } from '/@/api/sys/version';
|
|
|
+// import VersionDrawer from './VersionDrawer.vue';
|
|
|
+// import VersionModal from './VersionModal.vue';
|
|
|
+// import { getVersionList, delVersionByIds, getVersionDetail } from '/@/api/sys/version';
|
|
|
import { message, Modal } from 'ant-design-vue';
|
|
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
|
|
import moment from 'moment'
|
|
|
@@ -94,7 +94,8 @@ for (let i = 0; i < 20; i++) {
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'backup',
|
|
|
- components: { VersionDrawer, ExclamationCircleOutlined, VersionModal, BasicTable, TableAction, Button },
|
|
|
+ // components: { VersionDrawer, ExclamationCircleOutlined, VersionModal, BasicTable, TableAction, Button },
|
|
|
+ components: { ExclamationCircleOutlined, BasicTable, TableAction, Button },
|
|
|
setup() {
|
|
|
const drawerRef = ref(null)
|
|
|
const data = reactive({
|
|
|
@@ -193,21 +194,21 @@ export default defineComponent({
|
|
|
wrapClassName: "sources-body"
|
|
|
})
|
|
|
//获取所有标签
|
|
|
- const getVersionData = () => {
|
|
|
- return new Promise((resolve, reject) => {
|
|
|
- let param = {
|
|
|
- 1: session.getItem('tokenV2'),
|
|
|
- 2: JSON.stringify({}),
|
|
|
- 3: 1,
|
|
|
- 4: 10000000
|
|
|
- }
|
|
|
- getVersionList(param).then(res => {
|
|
|
- let resData = JSON.parse(res.result)
|
|
|
- resolve(resData)
|
|
|
- })
|
|
|
- })
|
|
|
+ // const getVersionData = () => {
|
|
|
+ // return new Promise((resolve, reject) => {
|
|
|
+ // let param = {
|
|
|
+ // 1: session.getItem('tokenV2'),
|
|
|
+ // 2: JSON.stringify({}),
|
|
|
+ // 3: 1,
|
|
|
+ // 4: 10000000
|
|
|
+ // }
|
|
|
+ // getVersionList(param).then(res => {
|
|
|
+ // let resData = JSON.parse(res.result)
|
|
|
+ // resolve(resData)
|
|
|
+ // })
|
|
|
+ // })
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
//筛选数据,用于表格
|
|
|
// const filteredInfo = ref({
|
|
|
@@ -273,19 +274,19 @@ export default defineComponent({
|
|
|
okType: 'danger',
|
|
|
cancelText: '取消',
|
|
|
onOk: (() => {
|
|
|
- const rowKeys = getSelectRowKeys();
|
|
|
- let ids = rowKeys.toString()
|
|
|
- let param = {
|
|
|
- 1: session.getItem('tokenV2'),
|
|
|
- 2: ids,
|
|
|
- }
|
|
|
- delVersionByIds(param).then(res => {
|
|
|
- if (res.status === "0") {
|
|
|
- message.success('操作成功');
|
|
|
- reload();
|
|
|
- setSelectedRowKeys([])
|
|
|
- }
|
|
|
- })
|
|
|
+ // const rowKeys = getSelectRowKeys();
|
|
|
+ // let ids = rowKeys.toString()
|
|
|
+ // let param = {
|
|
|
+ // 1: session.getItem('tokenV2'),
|
|
|
+ // 2: ids,
|
|
|
+ // }
|
|
|
+ // delVersionByIds(param).then(res => {
|
|
|
+ // if (res.status === "0") {
|
|
|
+ // message.success('操作成功');
|
|
|
+ // reload();
|
|
|
+ // setSelectedRowKeys([])
|
|
|
+ // }
|
|
|
+ // })
|
|
|
})
|
|
|
});
|
|
|
};
|
|
|
@@ -328,16 +329,16 @@ export default defineComponent({
|
|
|
okType: 'danger',
|
|
|
cancelText: '取消',
|
|
|
onOk: (() => {
|
|
|
- let param = {
|
|
|
- 1: session.getItem('tokenV2'),
|
|
|
- 2: id,
|
|
|
- }
|
|
|
- delVersionByIds(param).then(res => {
|
|
|
- if (res.status === "0") {
|
|
|
- message.success('操作成功');
|
|
|
- reload();
|
|
|
- }
|
|
|
- })
|
|
|
+ // let param = {
|
|
|
+ // 1: session.getItem('tokenV2'),
|
|
|
+ // 2: id,
|
|
|
+ // }
|
|
|
+ // delVersionByIds(param).then(res => {
|
|
|
+ // if (res.status === "0") {
|
|
|
+ // message.success('操作成功');
|
|
|
+ // reload();
|
|
|
+ // }
|
|
|
+ // })
|
|
|
})
|
|
|
});
|
|
|
|
|
|
@@ -418,7 +419,7 @@ export default defineComponent({
|
|
|
...toRefs(sourcesData),
|
|
|
// func
|
|
|
registerTable,
|
|
|
- getVersionData,
|
|
|
+ // getVersionData,
|
|
|
searchTable,
|
|
|
delAllData,
|
|
|
onDelete,
|