|
|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
- <scTable ref="xGridTable" :apiObj="hasAPI && $API.system.todoTask" :formConfig="formConfig" :paramsColums="paramsColums" :toolbarConfig="toolbarConfig" :columns="columns" :pagerConfig="pagerConfig">
|
|
|
+ <scTable ref="xGridTable" :apiObj="hasAPI && $API.milestone.matters" :formConfig="formConfig" :paramsColums="paramsColums" :toolbarConfig="toolbarConfig" :columns="columns" :pagerConfig="pagerConfig">
|
|
|
<template #action="{ row }">
|
|
|
+ <el-button type="success" link @click="table_done(row)">
|
|
|
+ <template #icon><sc-iconify icon="ant-design:check-outlined"></sc-iconify></template>完成
|
|
|
+ </el-button>
|
|
|
<el-button type="primary" link @click="table_bind(row)">
|
|
|
<template #icon><sc-iconify icon="mdi:relation-only-one-to-one"></sc-iconify></template>关联里程碑
|
|
|
</el-button>
|
|
|
@@ -36,7 +39,6 @@ const proConfig = reactive({
|
|
|
})
|
|
|
|
|
|
const selectConfig = reactive({
|
|
|
- span: 5,
|
|
|
visible,
|
|
|
options: objectToArray(nodeStatusDic),
|
|
|
events: {
|
|
|
@@ -44,18 +46,6 @@ const selectConfig = reactive({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const datetimerangeConfig = reactive({
|
|
|
- visible,
|
|
|
- span: 7,
|
|
|
- resetValue: () => [],
|
|
|
- props: {
|
|
|
- type: "datetimerange",
|
|
|
- startPlaceholder: "开始时间",
|
|
|
- endPlaceholder: "结束时间",
|
|
|
- format: "YYYY-MM-DD HH:mm"
|
|
|
- }
|
|
|
-})
|
|
|
-
|
|
|
const toolbarConfig = reactive({
|
|
|
enabled: true,
|
|
|
print: false
|
|
|
@@ -70,8 +60,7 @@ const formConfig = reactive({
|
|
|
items: [
|
|
|
mapFormItemSelect("projectId", "所属项目", proConfig),
|
|
|
mapFormItemInput("content", "事项内容"),
|
|
|
- mapFormItemSelect("status", "事项状态", selectConfig),
|
|
|
- mapFormItemDatePicker("finishTime", "完成时间", datetimerangeConfig),
|
|
|
+ mapFormItemSelect("status", "事项状态", selectConfig)
|
|
|
]
|
|
|
})
|
|
|
|
|
|
@@ -80,9 +69,7 @@ const paramsColums = reactive([
|
|
|
{ column: "projectId", field: visible.value ? "" : "projectIdNot" },
|
|
|
visible.value ? { column: "projectIdNot" } : {},
|
|
|
{ column: "content" },
|
|
|
- { column: "status" },
|
|
|
- { column: "finishTimeBegin", field: "finishTime[0]" },
|
|
|
- { column: "finishTimeEnd", field: "finishTime[1]" }
|
|
|
+ { column: "status" }
|
|
|
])
|
|
|
|
|
|
const columns = reactive([
|
|
|
@@ -91,8 +78,7 @@ const columns = reactive([
|
|
|
{ type: "html", field: "content", title: "事项内容", minWidth: 200, sortable: true },
|
|
|
{ visible, field: "status", title: "事项状态", minWidth: 100, align: "center", editRender: { name: "$cell-tag" }, formatter: ({ cellValue }) => XEUtils.get(nodeStatusDic, cellValue, cellValue) },
|
|
|
{ visible, type: "html", field: "finishTime", title: "完成时间", minWidth: 160, sortable: true },
|
|
|
- { visible, type: "html", field: "deadlineTime", title: "截止时间", minWidth: 160, sortable: true },
|
|
|
- { title: "操作", fixed: "right", width: 140, align: "center", slots: { default: "action" } }
|
|
|
+ { visible, title: "操作", fixed: "right", width: 170, align: "center", slots: { default: "action" } }
|
|
|
])
|
|
|
|
|
|
// 显示隐藏 筛选表单
|
|
|
@@ -110,6 +96,9 @@ const table_bind = row => {
|
|
|
nextTick(() => recordRef.value?.setData(row));
|
|
|
}
|
|
|
|
|
|
+const table_done = row => {
|
|
|
+}
|
|
|
+
|
|
|
defineExpose({
|
|
|
refreshTable
|
|
|
})
|