fix:冷热源对接接口
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
<div
|
||||
:style="{
|
||||
color: {
|
||||
'0': '#ccc',
|
||||
'1': 'rgba(255, 165, 0, 1)',
|
||||
'2': 'rgb(57, 215, 187)',
|
||||
'3': 'rgb(255, 0, 0)',
|
||||
'4': '#ccc',
|
||||
}[record.executeStatus.value],
|
||||
}">
|
||||
{{ record.executeStatus.label }}</div
|
||||
@@ -36,7 +36,7 @@
|
||||
import { NsMessage } from '/nerv-lib/component';
|
||||
import { getEnum } from '/@/api';
|
||||
import { http } from '/nerv-lib/util';
|
||||
|
||||
import dayjs, { Dayjs } from 'dayjs';
|
||||
//页面 创建
|
||||
const orgId = ref('');
|
||||
const projectId = ref('');
|
||||
@@ -46,6 +46,7 @@
|
||||
projectId.value = results.projectId;
|
||||
const mainRef = ref(null);
|
||||
const modalFormRef = ref(null);
|
||||
|
||||
const addPlan = () => {
|
||||
if (mainRef.value.nsTableRef.treeElRef.selectedRow.node.planLib) {
|
||||
http
|
||||
@@ -69,6 +70,10 @@
|
||||
? record.startTime.substring(0, 10) + ' - ' + record.endTime.substring(0, 10)
|
||||
: '未配置时间';
|
||||
};
|
||||
const disabledDate = (current: Dayjs) => {
|
||||
// Can not select days before today and today
|
||||
return current && current < dayjs().endOf('day');
|
||||
};
|
||||
const nsModalFormConfig = ref({
|
||||
api: planToAddApi.updPlan,
|
||||
data: {},
|
||||
@@ -92,6 +97,7 @@
|
||||
componentProps: {
|
||||
valueFormat: 'YYYY-MM-DD hh:mm:ss',
|
||||
placeholder: ['开始日期', '结束日期'],
|
||||
disabledDate: disabledDate,
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user