Commit a1103c36 authored by 陈刚's avatar 陈刚

Merge branch 'cli' into 'master'

Cli

See merge request !3
parents f2f0e737 b6a96b8e
...@@ -31,9 +31,9 @@ export function deleteDict(id) { ...@@ -31,9 +31,9 @@ export function deleteDict(id) {
method: 'DELETE', method: 'DELETE',
}); });
} }
export function viewDict(id) { export function viewDict(id, groupId) {
return request({ return request({
url: Api.viewDictUrl + id, url: Api.viewDictUrl + id + '/' + groupId,
method: 'GET', method: 'GET',
}); });
} }
......
...@@ -10,7 +10,9 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{ ...@@ -10,7 +10,9 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{
title: '任务名称', title: '任务名称',
field: 'name', field: 'name',
query: true, query: true,
width: 100, minWidth: 120,
resizable: true,
showOverflow: "ellipsis",
renderCustom: ({ row }) => { renderCustom: ({ row }) => {
return createOpenTitle(showDetail,row,'name'); return createOpenTitle(showDetail,row,'name');
} }
...@@ -52,13 +54,8 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{ ...@@ -52,13 +54,8 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{
{ {
title: '执行结果', title: '执行结果',
field: 'result', field: 'result',
width: 120, minWidth: 120,
showOverflow: "ellipsis" resizable: true,
},
{
title: '错误日志',
field: 'errMsg',
width: 120,
showOverflow: "ellipsis" showOverflow: "ellipsis"
}, },
{ {
...@@ -70,8 +67,7 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{ ...@@ -70,8 +67,7 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{
queryType: 'BETWEEN', queryType: 'BETWEEN',
componentProps:{ componentProps:{
type: 'daterange' type: 'daterange'
}, }
queryType: 'BETWEEN'
}, },
width: 170, width: 170,
}, },
...@@ -80,6 +76,12 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{ ...@@ -80,6 +76,12 @@ export function listColumns(showDetail: Function): TableColumnSchema[]{
field: 'endTime', field: 'endTime',
sortable: true, sortable: true,
width: 170, width: 170,
},
{
title: '错误日志',
field: 'errMsg',
minWidth: 120,
showOverflow: "ellipsis"
} }
]; ];
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
let isIdDisabled = true; let isIdDisabled = true;
try { try {
if (data && data.id) { if (data && data.id) {
const billData = (await viewDict(data.id)).data; const billData = (await viewDict(data.id, data.groupId)).data;
billData.code = billData.id; billData.code = billData.id;
await setProps({ conentLoading: false }); await setProps({ conentLoading: false });
setFieldsValue(billData, true); setFieldsValue(billData, true);
......
...@@ -95,7 +95,7 @@ export default defineComponent({ ...@@ -95,7 +95,7 @@ export default defineComponent({
}) })
}; };
function handleChangeStatus(record: any) { function handleChangeStatus(record: any) {
changeEnable({ id: record.id, isEnable: record.isEnable === 1 ? 0 : 1 }).then((res: Result<any>) => { changeEnable({ id: `${record.id}|${record.groupId}`, isEnable: record.isEnable === 1 ? 0 : 1 }).then((res: Result<any>) => {
handleSuccess(); handleSuccess();
ElMessage.success(res.msg); ElMessage.success(res.msg);
}); });
......
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