Commit 462faf29 authored by baiyinhao's avatar baiyinhao

修改质量任务

parent 432872ff
......@@ -186,7 +186,15 @@ export const storageManagementBasicFormSchema: FormSchema[] = [
},
{
field: 'dispatchCycle',
component: 'Input',
component: 'Select',
componentProps: {
options: [
{ label: '调度周期1', value: 1 },
{ label: '调度周期2', value: 2 },
{ label: '调度周期3', value: 3 },
{ label: '调度周期4', value: 4 },
],
},
label: '调度周期',
colProps: {
span: 12,
......
......@@ -9,11 +9,11 @@
<template #footer>
<a-button type="primary" @click="handleSubmit">关闭</a-button>
</template>
<div class="btns">
<div class="btns" style="display: flex; justify-content: flex-start">
<a-button
type="primary"
@click="handleQualityTaskService"
style="margin-right: 10px; margin-bottom: 20px; margin-left: 600px"
style="margin-right: 10px; margin-bottom: 20px"
>跳转运维</a-button
>
<a-button
......@@ -290,9 +290,6 @@
</script>
<style scoped>
.btns {
display: flex;
flex-wrap: nowrap;
margin-right: -200px;
transform: translateX(-50%);
}
</style>
......@@ -19,11 +19,15 @@
style="margin-right: 10px"
>批量下线
</a-button>
<a-button type="primary" @click="handleBusinessLabel" style="margin-right: 10px"
<!-- <a-button type="primary" @click="handleBusinessLabel" style="margin-right: 10px"
>设置业务标签
</a-button>
<a-button type="primary" @click="handleCopyTo" style="margin-right: 10px"
>复制到
</a-button> -->
<a-button
type="primary"
@click="handleCopyTo"
style="margin-right: 10px"
:disabled="getRowSelection().selectedRowKeys <= 0"
>复制
</a-button>
<a-button
:disabled="getRowSelection().selectedRowKeys <= 0"
......@@ -168,7 +172,7 @@
import { useMessage } from '@/hooks/web/useMessage';
import { useModal } from '@/components/Modal';
import { tableList } from './mock';
import { columns, searchFormSchema } from './mainBody.data';
import { columns2, searchFormSchema } from './mainBody.data';
import { useGo } from '@/hooks/web/usePage';
import { useRoute, onBeforeRouteLeave } from 'vue-router';
import { useFilterStore } from '@/store/modules/filterData';
......@@ -230,7 +234,7 @@
},
rowKey: 'businessId',
rowSelection: true,
columns,
columns: columns2,
formConfig: {
labelWidth: 10,
schemas: searchFormSchema,
......@@ -270,11 +274,18 @@
function handleAdd() {
openModal(true, {});
}
/// 移动
function handleRemove() {
openRemoveModal(true, {});
openRemoveModal(true, {
isMove: true,
});
}
/** 复制到 */
function handleCopyTo() {
openRemoveModal(true, {
isMove: false,
});
}
/** 新建质量任务文件*/
function handleAddMainBody() {
openMainModal(true, {
......@@ -366,9 +377,6 @@
/** 设置业务标签 */
function handleBusinessLabel() {}
/** 复制到 */
function handleCopyTo() {}
/** 跳转运维 未完成 应为跳转到运维界面*/
function handleQualityTaskService() {
go('/dataQuality/dataSheet/task/taskOperation');
......
......@@ -86,6 +86,33 @@ export const columns: BasicColumn[any] = [
},
},
];
export const columns2: BasicColumn[any] = [
{
title: '路径',
dataIndex: 'path',
width: 120,
},
{
title: '文件名称',
dataIndex: 'name',
width: 120,
},
{
title: '文件类型',
dataIndex: 'fileType',
width: 120,
},
{
title: '目录权属模式',
dataIndex: 'menuModal',
width: 120,
},
{
title: '权属工作组',
dataIndex: 'group',
width: 120,
},
];
export const formSchemaRemove: any = [
{
......
......@@ -19,6 +19,10 @@ export const tableList: any[] = [
ruleGroup: 'bingtest',
qualityPassRate: '100',
taskName: '指标导入',
path: '指标演示工作区/SLA明细信息',
fileType: '质量任务',
menuModal: '指标演示模式',
group: '指标演示组',
},
{
businessId: 2,
......@@ -38,6 +42,10 @@ export const tableList: any[] = [
ruleGroup: 'bingtest',
qualityPassRate: '100',
taskName: '指标导入',
path: '指标演示工作区/SLA明细信息',
fileType: '质量任务',
menuModal: '目录模式',
group: '指标修改组',
},
{
businessId: 3,
......@@ -57,6 +65,10 @@ export const tableList: any[] = [
ruleGroup: 'Trinotest',
qualityPassRate: '100',
taskName: '指标导入',
path: '指标演示工作区/SLA明细信息',
fileType: '质量任务',
menuModal: '指标权属模式',
group: '指标演示组',
},
{
businessId: 4,
......@@ -76,6 +88,10 @@ export const tableList: any[] = [
ruleGroup: 'Trinotest',
qualityPassRate: '100',
taskName: '指标导入',
path: '指标演示工作区/SLA明细信息',
fileType: '质量任务',
menuModal: '指标演示模式',
group: '指标演示组',
},
];
......
......@@ -23,6 +23,7 @@
const emit = defineEmits(['success', 'register']);
const { createMessage } = useMessage();
const isUpdate = ref(true);
const isMove = ref(false);
const rowId = ref('');
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
......@@ -41,6 +42,7 @@
resetFields();
setModalProps({ confirmLoading: false });
isUpdate.value = !!data?.isUpdate;
isMove.value = !!data?.isMove;
if (unref(isUpdate)) {
// 通过id获取行详情信息
// 塞值
......@@ -54,7 +56,7 @@
});
});
const getTitle = computed(() => '移动到');
const getTitle = computed(() => (unref(isMove) ? '移动到' : '复制到'));
async function handleSubmit() {
try {
......@@ -66,5 +68,10 @@
} finally {
setModalProps({ confirmLoading: false });
}
if (unref(isMove)) {
createMessage.success('移动成功');
} else {
createMessage.success('复制成功');
}
}
</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