Commit b5e04af4 authored by 罗林杰's avatar 罗林杰

修改我创建的文件

parent 9ff61fe8
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</template> </template>
</BasicTable> </BasicTable>
</div> </div>
<span style="font-weight: bold ;font-size: 16px; margin-left: 35px">推送记录</span> <span style="font-weight: bold; font-size: 16px; margin-left: 35px">推送记录</span>
<div class="flex"> <div class="flex">
<div style="width: 45%"> <div style="width: 45%">
<BasicTable @register="registerPushTypeTable" /> <BasicTable @register="registerPushTypeTable" />
......
...@@ -10,9 +10,25 @@ ...@@ -10,9 +10,25 @@
<span class="path">我创建的</span> <span class="path">我创建的</span>
</div> </div>
</div> </div>
<a-button style="margin-left: 550px" type="primary" @click="deleteButton">删除</a-button> <a-button
<a-button style="margin-left: 10px" type="primary" @click="handleMove(1)">移动</a-button> style="margin-left: 550px"
<a-button style="margin-left: 10px" type="primary" @click="batchUploading" type="primary"
:disabled="isDisabled === true"
@click="deleteButton"
>删除</a-button
>
<a-button
style="margin-left: 10px"
type="primary"
:disabled="isDisabled === true"
@click="handleMove(1)"
>移动</a-button
>
<a-button
style="margin-left: 10px"
type="primary"
:disabled="isDisabled === true"
@click="batchUploading"
>批量上架</a-button >批量上架</a-button
> >
<a-button style="margin-left: 10px" type="primary" @click="handleNewFolder" <a-button style="margin-left: 10px" type="primary" @click="handleNewFolder"
...@@ -88,7 +104,7 @@ ...@@ -88,7 +104,7 @@
</PageWrapper> </PageWrapper>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted } from 'vue'; import { onMounted, ref } from 'vue';
import { BasicTable, useTable, TableAction } from '@/components/Table'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import { PageWrapper } from '@/components/Page'; import { PageWrapper } from '@/components/Page';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
...@@ -103,6 +119,8 @@ ...@@ -103,6 +119,8 @@
import { router } from '@/router'; import { router } from '@/router';
import EditFileModal from '@/views/mallResourceDevelopment/dataSet/datasetByCreate/editFileModal.vue'; import EditFileModal from '@/views/mallResourceDevelopment/dataSet/datasetByCreate/editFileModal.vue';
const isDisabled = ref();
const { createMessage, createConfirm } = useMessage(); const { createMessage, createConfirm } = useMessage();
const [registerMoveFile, { openModal: openMoveFileModal }] = useModal(); const [registerMoveFile, { openModal: openMoveFileModal }] = useModal();
const [registerNewFolder, { openModal: openNewFolderModal }] = useModal(); const [registerNewFolder, { openModal: openNewFolderModal }] = useModal();
...@@ -123,7 +141,10 @@ ...@@ -123,7 +141,10 @@
return { ...response }; return { ...response };
}, },
rowKey: 'businessId', rowKey: 'businessId',
rowSelection: true, rowSelection: {
type: 'checkbox',
onChange: onSelectionChange,
},
columns, columns,
formConfig: { formConfig: {
labelWidth: 10, labelWidth: 10,
...@@ -180,9 +201,14 @@ ...@@ -180,9 +201,14 @@
}); });
} }
function onSelectionChange() {
isDisabled.value = getRowSelection().selectedRowKeys <= 0;
}
function handleUpload() { function handleUpload() {
createMessage.success('上架成功!'); createMessage.success('上架成功!');
} }
function handDelete() { function handDelete() {
createMessage.success('删除成功!'); createMessage.success('删除成功!');
} }
...@@ -213,7 +239,9 @@ ...@@ -213,7 +239,9 @@
reload(); reload();
} }
onMounted(() => {}); onMounted(() => {
isDisabled.value = true;
});
</script> </script>
<style scoped> <style scoped>
.title { .title {
......
...@@ -481,6 +481,38 @@ export const pushTypeData: any[] = [ ...@@ -481,6 +481,38 @@ export const pushTypeData: any[] = [
target: 'admin-个人工作区/inceptor/db-001/table1', target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量', pushType: '增量',
}, },
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
]; ];
export const dataRangeData = { export const dataRangeData = {
custom: 'id>200', custom: 'id>200',
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
:schema="permissionsInfo" :schema="permissionsInfo"
/> />
<div class="mianBodyEditContainer"> <div class="mianBodyEditContainer">
<Tabs v-model:activeKey="page" size="large"> <Tabs style="padding-left: 20px" v-model:activeKey="page" size="large">
<a-tab-pane key="1" tab="采样数据"> <a-tab-pane key="1" tab="采样数据">
<div v-if="page === '1'"> <div v-if="page === '1'">
<BasicTable @register="registerColumnInformationDataTable"> <BasicTable @register="registerColumnInformationDataTable">
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</template> </template>
</BasicTable> </BasicTable>
</div> </div>
<span style="font-size: 16px; margin-left: 35px">推送记录</span> <span style="font-weight: bold; font-size: 16px; margin-left: 35px">推送记录</span>
<div class="flex"> <div class="flex">
<div style="width: 45%"> <div style="width: 45%">
<BasicTable @register="registerPushTypeTable" /> <BasicTable @register="registerPushTypeTable" />
......
...@@ -10,9 +10,25 @@ ...@@ -10,9 +10,25 @@
<span class="path">我创建的</span> <span class="path">我创建的</span>
</div> </div>
</div> </div>
<a-button style="margin-left: 550px" type="primary" @click="deleteButton">删除</a-button> <a-button
<a-button style="margin-left: 10px" type="primary" @click="handleMove(1)">移动</a-button> style="margin-left: 550px"
<a-button style="margin-left: 10px" type="primary" @click="batchUploading" type="primary"
:disabled="isDisabled === true"
@click="deleteButton"
>删除</a-button
>
<a-button
style="margin-left: 10px"
type="primary"
:disabled="isDisabled === true"
@click="handleMove(1)"
>移动</a-button
>
<a-button
style="margin-left: 10px"
type="primary"
:disabled="isDisabled === true"
@click="batchUploading"
>批量上架</a-button >批量上架</a-button
> >
<a-button style="margin-left: 10px" type="primary" @click="handleNewFolder" <a-button style="margin-left: 10px" type="primary" @click="handleNewFolder"
...@@ -88,7 +104,7 @@ ...@@ -88,7 +104,7 @@
</PageWrapper> </PageWrapper>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted } from 'vue'; import { onMounted, ref } from 'vue';
import { BasicTable, useTable, TableAction } from '@/components/Table'; import { BasicTable, useTable, TableAction } from '@/components/Table';
import { PageWrapper } from '@/components/Page'; import { PageWrapper } from '@/components/Page';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
...@@ -103,6 +119,8 @@ ...@@ -103,6 +119,8 @@
import EditFileModal from './editFileModal.vue'; import EditFileModal from './editFileModal.vue';
import { router } from '@/router'; import { router } from '@/router';
const isDisabled = ref();
const { createMessage, createConfirm } = useMessage(); const { createMessage, createConfirm } = useMessage();
const [registerMoveFile, { openModal: openMoveFileModal }] = useModal(); const [registerMoveFile, { openModal: openMoveFileModal }] = useModal();
const [registerNewFolder, { openModal: openNewFolderModal }] = useModal(); const [registerNewFolder, { openModal: openNewFolderModal }] = useModal();
...@@ -123,7 +141,10 @@ ...@@ -123,7 +141,10 @@
return { ...response }; return { ...response };
}, },
rowKey: 'businessId', rowKey: 'businessId',
rowSelection: true, rowSelection: {
type: 'checkbox',
onChange: onSelectionChange,
},
columns, columns,
formConfig: { formConfig: {
labelWidth: 10, labelWidth: 10,
...@@ -204,6 +225,10 @@ ...@@ -204,6 +225,10 @@
}); });
} }
function onSelectionChange() {
isDisabled.value = getRowSelection().selectedRowKeys <= 0;
}
function handleDetail() { function handleDetail() {
router.push({ router.push({
path: '/file/fileByCreate/fileByCreateDetail', path: '/file/fileByCreate/fileByCreateDetail',
...@@ -214,5 +239,7 @@ ...@@ -214,5 +239,7 @@
reload(); reload();
} }
onMounted(() => {}); onMounted(() => {
isDisabled.value = true;
});
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment