7/30 限制前端输入字数
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<div class="bodyBox">
|
||||
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px" label-position="right">
|
||||
<el-form-item label="巡检计划名称" prop="planName">
|
||||
<el-input v-model="form.planName" placeholder="请输入"></el-input>
|
||||
<el-input maxlength="20" v-model.trim="form.planName" placeholder="请输入"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="任务时间">
|
||||
@@ -30,9 +30,6 @@
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务时间段">
|
||||
<!-- <el-select v-model="form.taskTime" placeholder="选择任务时间段" style="width: 100%">
|
||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select> -->
|
||||
<div v-for="(_, index) in taskTime" :key="index" style="display: flex; align-items: center; margin-top: 10px">
|
||||
<el-time-picker
|
||||
v-model="taskTime[index]"
|
||||
@@ -44,14 +41,6 @@
|
||||
end-placeholder="结束时间"
|
||||
style="width: 100%"
|
||||
/>
|
||||
<!-- <el-button v-if="taskTime.length > 1" icon="Minus" circle style="margin-left: 10px" @click="removeTaskTime(index)"></el-button>
|
||||
<el-button
|
||||
v-if="taskTime.length === index + 1 && taskTime.length <= 8"
|
||||
icon="Plus"
|
||||
circle
|
||||
style="margin-left: 10px"
|
||||
@click="addTaskTime"
|
||||
></el-button> -->
|
||||
</div>
|
||||
</el-form-item>
|
||||
|
||||
@@ -84,9 +73,7 @@ import { ref } from 'vue';
|
||||
import { addPlan, getPlan, updatePlan } from '@/api/system/InspectionPlan';
|
||||
import { Check } from '@element-plus/icons-vue';
|
||||
import MapWrapper from '@/components/Map/index.vue';
|
||||
import { PointVO } from '@/api/system/InspectionPoint/type';
|
||||
import { LngLat } from '@/components/Map/type';
|
||||
import { PlanVO } from '@/api/system/InspectionPlan/type';
|
||||
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
const { com_inspection_remind_tiime } = toRefs<any>(proxy?.useDict('com_inspection_remind_tiime'));
|
||||
@@ -186,7 +173,7 @@ function handleChangeMap(val: string) {
|
||||
const find = playlist.value.find((item) => item.id === val);
|
||||
if (!find) return;
|
||||
if (find.points && find.points.length > 0) {
|
||||
const pointMap = new Map(find.points.map((p) => [p.id, p]));
|
||||
const pointMap = new Map<string, { location: string; pointName: string; id: string }>(find.points.map((p) => [p.id, p]));
|
||||
const totalPointsList = find.totalPoints.split(',').filter(Boolean);
|
||||
if (totalPointsList.length > 0) {
|
||||
totalPointsList.forEach((item) => {
|
||||
|
||||
Reference in New Issue
Block a user