Commit 2c3a7512 authored by baiyinhao's avatar baiyinhao

修改质量任务

parent fb3cc103
...@@ -100,9 +100,9 @@ export const storageManagementData: any[] = [ ...@@ -100,9 +100,9 @@ export const storageManagementData: any[] = [
pointNum: '5000', pointNum: '5000',
num: '2000', num: '2000',
user: '张三', user: '张三',
parameterName: 'check_date', parameterName: Math.random().toString(36).substring(2, 12),
parameterType: '字符类', parameterType: '字符类',
parameterValue: '参数值', parameterValue: Math.random().toString(36).substring(7),
}, },
{ {
id: '2', id: '2',
...@@ -114,9 +114,9 @@ export const storageManagementData: any[] = [ ...@@ -114,9 +114,9 @@ export const storageManagementData: any[] = [
pointNum: '7000', pointNum: '7000',
num: '3500', num: '3500',
user: '李四', user: '李四',
parameterName: 'check_date', parameterName: Math.random().toString(36).substring(2, 12),
parameterType: '时间类', parameterType: '时间类',
parameterValue: '参数值', parameterValue: Math.random().toString(36).substring(7),
}, },
{ {
id: '3', id: '3',
...@@ -128,9 +128,9 @@ export const storageManagementData: any[] = [ ...@@ -128,9 +128,9 @@ export const storageManagementData: any[] = [
pointNum: '6000', pointNum: '6000',
num: '3000', num: '3000',
user: '王五', user: '王五',
parameterName: 'check_date', parameterName: Math.random().toString(36).substring(2, 12),
parameterType: '数值类', parameterType: '数值类',
parameterValue: '参数值', parameterValue: Math.random().toString(36).substring(7),
}, },
{ {
id: '4', id: '4',
...@@ -142,9 +142,9 @@ export const storageManagementData: any[] = [ ...@@ -142,9 +142,9 @@ export const storageManagementData: any[] = [
pointNum: '4500', pointNum: '4500',
num: '2250', num: '2250',
user: '赵六', user: '赵六',
parameterName: 'check_date', parameterName: Math.random().toString(36).substring(2, 12),
parameterType: '自定义类', parameterType: '自定义类',
parameterValue: '参数值', parameterValue: Math.random().toString(36).substring(7),
}, },
{ {
id: '5', id: '5',
...@@ -156,9 +156,9 @@ export const storageManagementData: any[] = [ ...@@ -156,9 +156,9 @@ export const storageManagementData: any[] = [
pointNum: '5500', pointNum: '5500',
num: '2750', num: '2750',
user: '孙七', user: '孙七',
parameterName: 'check_date', parameterName: Math.random().toString(36).substring(2, 12),
parameterType: '数值类', parameterType: '数值类',
parameterValue: '参数值', parameterValue: Math.random().toString(36).substring(7),
}, },
]; ];
export const storageManagementBasicFormSchema: FormSchema[] = [ export const storageManagementBasicFormSchema: FormSchema[] = [
...@@ -216,4 +216,85 @@ export const storageManagementBasicFormSchema: FormSchema[] = [ ...@@ -216,4 +216,85 @@ export const storageManagementBasicFormSchema: FormSchema[] = [
span: 24, span: 24,
}, },
}, },
{
field: 'divider-linked',
component: 'Divider',
label: '计划逻辑正确',
colProps: {
span: 24,
},
},
{
field: 'field122',
component: 'InputTextArea',
label: '',
componentProps: {
disabled: true,
defaultValue: Math.random().toString(36).substring(2, 52),
},
colProps: {
span: 24,
},
},
{
field: 'divider-linked',
component: 'Divider',
label: '标题逻辑正确',
colProps: {
span: 24,
},
},
{
field: 'field123',
component: 'InputTextArea',
label: '',
componentProps: {
disabled: true,
defaultValue: Math.random().toString(36).substring(2, 52),
},
colProps: {
span: 24,
},
},
{
field: 'divider-linked',
component: 'Divider',
label: '名称逻辑正确',
colProps: {
span: 24,
},
},
{
field: 'field122',
component: 'InputTextArea',
label: '',
componentProps: {
disabled: true,
defaultValue: Math.random().toString(36).substring(2, 52),
},
colProps: {
span: 24,
},
},
{
field: 'divider-linked',
component: 'Divider',
label: '时刻逻辑',
colProps: {
span: 24,
},
},
{
field: 'field123',
component: 'InputTextArea',
label: '',
componentProps: {
disabled: true,
defaultValue: Math.random().toString(36).substring(2, 52),
},
colProps: {
span: 24,
},
},
]; ];
...@@ -22,7 +22,11 @@ ...@@ -22,7 +22,11 @@
style="margin-right: 10px; margin-bottom: 20px" style="margin-right: 10px; margin-bottom: 20px"
>查看报告</a-button >查看报告</a-button
> >
<a-button type="primary" style="margin-right: 10px; margin-bottom: 20px" @click="handleSave" <a-button
type="primary"
style="margin-right: 10px; margin-bottom: 20px"
@click="handleSave"
:disabled="isDisabled"
>保存</a-button >保存</a-button
> >
<a-button <a-button
...@@ -52,7 +56,7 @@ ...@@ -52,7 +56,7 @@
>运行</a-button >运行</a-button
></div ></div
> >
<BasicForm @register="registerForm" /> <BasicForm @register="registerForm" :disabled="isDisabled" />
<PageWrapper dense contentFullHeight fixedHeight contentClass="flex"> <PageWrapper dense contentFullHeight fixedHeight contentClass="flex">
<DeptTree class="w-1/4" @select="handleSelect" /> <DeptTree class="w-1/4" @select="handleSelect" />
<BasicTable @register="registerTable" class="w-3/4" :searchInfo="searchInfo" /> <BasicTable @register="registerTable" class="w-3/4" :searchInfo="searchInfo" />
...@@ -89,6 +93,7 @@ ...@@ -89,6 +93,7 @@
const tableData = ref([]); const tableData = ref([]);
const isOnline = ref(true); const isOnline = ref(true);
const isOffline = ref(false); const isOffline = ref(false);
const isDisabled = ref(false);
const rowId = ref(''); const rowId = ref('');
const searchInfo = reactive<Recordable>({}); const searchInfo = reactive<Recordable>({});
...@@ -177,15 +182,40 @@ ...@@ -177,15 +182,40 @@
go('/dataQuality/dataSheet/task/viewTaskOperation', false); go('/dataQuality/dataSheet/task/viewTaskOperation', false);
} }
/** 上线 未完成 应为弹窗*/ /** 上线 */
function handleQualityTaskOnline() { function handleQualityTaskOnline() {
Modal.confirm({
title: '确认上线',
content: '是否确认上线?',
onOk: () => {
go('/dataQuality/dataSheet/task');
isOnline.value = false; isOnline.value = false;
isOffline.value = true; isOffline.value = true;
isDisabled.value = true;
createMessage.success('上线成功!');
},
onCancel: () => {
console.log('取消上线');
},
});
} }
/** 下线 未完成 应为弹窗*/
/** 下线 */
function handleQualityTaskOffline() { function handleQualityTaskOffline() {
Modal.confirm({
title: '确认下线',
content: '是否确认下线?',
onOk: () => {
go('/dataQuality/dataSheet/task');
isOnline.value = true; isOnline.value = true;
isOffline.value = false; isOffline.value = false;
isDisabled.value = false;
createMessage.success('下线成功!');
},
onCancel: () => {
console.log('取消下线');
},
});
} }
/** 配置运行 正在做 应为弹窗*/ /** 配置运行 正在做 应为弹窗*/
......
...@@ -45,12 +45,20 @@ ...@@ -45,12 +45,20 @@
<a-button type="primary" @click="handleAddMainBody" style="margin-right: 10px" <a-button type="primary" @click="handleAddMainBody" style="margin-right: 10px"
>新增质量任务 >新增质量任务
</a-button> </a-button>
<a-button type="primary" @click="handleAddQualityRule" style="margin-right: 10px"
>新增质量规则
</a-button>
<a-button
type="primary"
@click="handleQualityTaskRunSetting"
:disabled="getRowSelection().selectedRowKeys <= 0"
>配置运行</a-button
>
<!-- <a-button type="primary" @click="handleQualityTaskSetting" style="margin-right: 10px" <!-- <a-button type="primary" @click="handleQualityTaskSetting" style="margin-right: 10px"
>配置质量任务文件 >配置质量任务文件
</a-button> --> </a-button> -->
<!-- --> <!-- -->
<!-- <a-button type="primary" @click="handleAddQualityRule" style="margin-right: 10px">新增质量规则--> <!-- -->
<!-- </a-button>-->
<!-- <a-button--> <!-- <a-button-->
<!-- type="primary"--> <!-- type="primary"-->
<!-- @click="handleAlarmSetting"--> <!-- @click="handleAlarmSetting"-->
...@@ -161,6 +169,7 @@ ...@@ -161,6 +169,7 @@
import AddFolder from '@/views/dataQuality/dataSheet/task/addFolder.vue'; import AddFolder from '@/views/dataQuality/dataSheet/task/addFolder.vue';
import RemoveModal from '@/views/dataQuality/dataSheet/task/removeModal.vue'; import RemoveModal from '@/views/dataQuality/dataSheet/task/removeModal.vue';
import MainBodyModal from '@/views/dataQuality/dataSheet/task/mainBodyModal.vue'; import MainBodyModal from '@/views/dataQuality/dataSheet/task/mainBodyModal.vue';
import QualityRunSettingModal from './QualityTaskRunSetting.vue';
import QualitySettingModal from './QualityTaskSetting.vue'; import QualitySettingModal from './QualityTaskSetting.vue';
import NewRuleModal from './QualityTaskNewRule.vue'; import NewRuleModal from './QualityTaskNewRule.vue';
import AlarmSettingModal from './QualityTaskAlarmSetting.vue'; import AlarmSettingModal from './QualityTaskAlarmSetting.vue';
...@@ -307,18 +316,38 @@ ...@@ -307,18 +316,38 @@
openCheckRangePlusModal(true, {}); openCheckRangePlusModal(true, {});
} }
/** 上线 未完成 应为弹窗*/ /** 上线 */
function handleQualityTaskOnline() { function handleQualityTaskOnline() {
Modal.confirm({
title: '确认上线',
content: '是否确认上线?',
onOk: () => {
go('/dataQuality/dataSheet/task'); go('/dataQuality/dataSheet/task');
isOnline.value = false; isOnline.value = false;
isOffline.value = true; isOffline.value = true;
createMessage.success('上线成功!');
},
onCancel: () => {
console.log('取消上线');
},
});
} }
/** 下线 未完成 应为弹窗*/ /** 下线 */
function handleQualityTaskOffline() { function handleQualityTaskOffline() {
Modal.confirm({
title: '确认下线',
content: '是否确认下线?',
onOk: () => {
go('/dataQuality/dataSheet/task'); go('/dataQuality/dataSheet/task');
isOnline.value = true; isOnline.value = true;
isOffline.value = false; isOffline.value = false;
createMessage.success('下线成功!');
},
onCancel: () => {
console.log('取消下线');
},
});
} }
/** 设置业务标签 */ /** 设置业务标签 */
...@@ -341,11 +370,11 @@ ...@@ -341,11 +370,11 @@
} }
function handleDeleteIds() { function handleDeleteIds() {
createConfirm({ Modal.confirm({
iconType: 'warning',
title: '确认删除', title: '确认删除',
content: '确认批量删除选中数据吗?', content: '确认批量删除选中数据吗?',
onOk() { onOk: () => {
// Your code to delete the selected items goes here.
createMessage.success('批量删除成功!'); createMessage.success('批量删除成功!');
}, },
}); });
......
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