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

修改我创建的文件

parent 9ff61fe8
......@@ -120,7 +120,7 @@
</template>
</BasicTable>
</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 style="width: 45%">
<BasicTable @register="registerPushTypeTable" />
......
......@@ -10,9 +10,25 @@
<span class="path">我创建的</span>
</div>
</div>
<a-button style="margin-left: 550px" type="primary" @click="deleteButton">删除</a-button>
<a-button style="margin-left: 10px" type="primary" @click="handleMove(1)">移动</a-button>
<a-button style="margin-left: 10px" type="primary" @click="batchUploading"
<a-button
style="margin-left: 550px"
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 style="margin-left: 10px" type="primary" @click="handleNewFolder"
......@@ -88,7 +104,7 @@
</PageWrapper>
</template>
<script lang="ts" setup>
import { onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import { BasicTable, useTable, TableAction } from '@/components/Table';
import { PageWrapper } from '@/components/Page';
import { useMessage } from '@/hooks/web/useMessage';
......@@ -103,6 +119,8 @@
import { router } from '@/router';
import EditFileModal from '@/views/mallResourceDevelopment/dataSet/datasetByCreate/editFileModal.vue';
const isDisabled = ref();
const { createMessage, createConfirm } = useMessage();
const [registerMoveFile, { openModal: openMoveFileModal }] = useModal();
const [registerNewFolder, { openModal: openNewFolderModal }] = useModal();
......@@ -123,7 +141,10 @@
return { ...response };
},
rowKey: 'businessId',
rowSelection: true,
rowSelection: {
type: 'checkbox',
onChange: onSelectionChange,
},
columns,
formConfig: {
labelWidth: 10,
......@@ -180,9 +201,14 @@
});
}
function onSelectionChange() {
isDisabled.value = getRowSelection().selectedRowKeys <= 0;
}
function handleUpload() {
createMessage.success('上架成功!');
}
function handDelete() {
createMessage.success('删除成功!');
}
......@@ -213,7 +239,9 @@
reload();
}
onMounted(() => {});
onMounted(() => {
isDisabled.value = true;
});
</script>
<style scoped>
.title {
......
......@@ -481,6 +481,38 @@ export const pushTypeData: any[] = [
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: '增量',
},
{
target: 'admin-个人工作区/inceptor/db-001/table1',
pushType: '增量',
},
];
export const dataRangeData = {
custom: 'id>200',
......
......@@ -47,7 +47,7 @@
:schema="permissionsInfo"
/>
<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="采样数据">
<div v-if="page === '1'">
<BasicTable @register="registerColumnInformationDataTable">
......@@ -120,7 +120,7 @@
</template>
</BasicTable>
</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 style="width: 45%">
<BasicTable @register="registerPushTypeTable" />
......
......@@ -10,9 +10,25 @@
<span class="path">我创建的</span>
</div>
</div>
<a-button style="margin-left: 550px" type="primary" @click="deleteButton">删除</a-button>
<a-button style="margin-left: 10px" type="primary" @click="handleMove(1)">移动</a-button>
<a-button style="margin-left: 10px" type="primary" @click="batchUploading"
<a-button
style="margin-left: 550px"
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 style="margin-left: 10px" type="primary" @click="handleNewFolder"
......@@ -88,7 +104,7 @@
</PageWrapper>
</template>
<script lang="ts" setup>
import { onMounted } from 'vue';
import { onMounted, ref } from 'vue';
import { BasicTable, useTable, TableAction } from '@/components/Table';
import { PageWrapper } from '@/components/Page';
import { useMessage } from '@/hooks/web/useMessage';
......@@ -103,6 +119,8 @@
import EditFileModal from './editFileModal.vue';
import { router } from '@/router';
const isDisabled = ref();
const { createMessage, createConfirm } = useMessage();
const [registerMoveFile, { openModal: openMoveFileModal }] = useModal();
const [registerNewFolder, { openModal: openNewFolderModal }] = useModal();
......@@ -123,7 +141,10 @@
return { ...response };
},
rowKey: 'businessId',
rowSelection: true,
rowSelection: {
type: 'checkbox',
onChange: onSelectionChange,
},
columns,
formConfig: {
labelWidth: 10,
......@@ -204,6 +225,10 @@
});
}
function onSelectionChange() {
isDisabled.value = getRowSelection().selectedRowKeys <= 0;
}
function handleDetail() {
router.push({
path: '/file/fileByCreate/fileByCreateDetail',
......@@ -214,5 +239,7 @@
reload();
}
onMounted(() => {});
onMounted(() => {
isDisabled.value = true;
});
</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