From d3ee81e33f92f23ee579f3d72c26e011523e166b Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 26 九月 2024 14:36:34 +0800 Subject: [PATCH] sche 测点配置 --- src/views/data/ind/item/DerIndDefineForm.vue | 44 ++++++++++++++++++++++---------------------- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/views/data/ind/item/DerIndDefineForm.vue b/src/views/data/ind/item/DerIndDefineForm.vue index 2d7d1d9..f16a4ea 100644 --- a/src/views/data/ind/item/DerIndDefineForm.vue +++ b/src/views/data/ind/item/DerIndDefineForm.vue @@ -64,12 +64,12 @@ </el-col> </el-row> <el-row> - <el-col :span="8"> + <el-col :span="6"> <el-form-item label="指标精度" prop="precision"> <el-input v-model="formData.precision"/> </el-form-item> </el-col> - <el-col :span="8"> + <el-col :span="6"> <el-form-item label="转换系数" prop="coefficient"> <el-input v-model="formData.coefficient"/> </el-form-item> @@ -81,14 +81,7 @@ </el-col> </el-row> <el-row> - <el-col :span="20"> - <el-form-item label="备注" prop="remark"> - <el-input v-model="formData.remark" type="textarea" maxlength="100"/> - </el-form-item> - </el-col> - </el-row> - <el-row> - <el-col :span="12"> + <el-col :span="6"> <el-form-item label="时间标识" prop="timeLabel"> <el-select v-model="formData.derItem.timeLabel" clearable placeholder="请选择时间标识"> <el-option @@ -100,12 +93,12 @@ </el-select> </el-form-item> </el-col> - <el-col :span="12"> + <el-col :span="6"> <el-form-item label="时间限定" prop="timeLimit"> <el-select v-model="formData.timeLimit" placeholder="请选择" @change="handleTimeLimitChange($event)"> <el-option - v-for="dict in getStrDictOptions(DICT_TYPE.TIME_LIMIT)" + v-for="dict in getStrDictOptions(DICT_TYPE.IND_TIME_LIMIT)" :key="dict.value" :label="dict.label" :value="dict.value" @@ -115,7 +108,7 @@ </el-col> </el-row> <el-row v-if="showTimeChange"> - <el-col :span="12"> + <el-col :span="6"> <el-form-item label="开始时间" prop="timeStart"> <el-date-picker v-model="formData.derItem.timeStart" @@ -124,7 +117,7 @@ /> </el-form-item> </el-col> - <el-col :span="8"> + <el-col :span="6"> <el-form-item label="结束时间" prop="timeEnd"> <el-date-picker v-model="formData.derItem.timeEnd" @@ -135,7 +128,7 @@ </el-col> </el-row> <el-row> - <el-col :span="12"> + <el-col :span="24"> <el-form-item label="分析维度" prop="dimension"> <el-select v-model="formData.derItem.dimension" clearable placeholder="请选择分析维度" multiple> <el-option @@ -145,6 +138,13 @@ :value="item.id + ''" /> </el-select> + </el-form-item> + </el-col> + </el-row> + <el-row> + <el-col :span="24"> + <el-form-item label="备注" prop="remark"> + <el-input v-model="formData.remark" type="textarea" maxlength="100"/> </el-form-item> </el-col> </el-row> @@ -180,8 +180,8 @@ itemName: '', itemType: '', itemCategory: '', - coefficient: '', - precision: '', + coefficient: 1, + precision: 0, businessType: '', timeRange: '', timeGranularity: '', @@ -213,9 +213,9 @@ const formRules = reactive({ itemName: [{required: true, message: '指标名称不能为空', trigger: 'blur'}], itemCategory: [{required: true, message: '指标类型不能为空', trigger: 'blur'}], - precision: [{validator: validateAsNumber, trigger: 'blur' }], - coefficient: [{validator: validateAsNumber, trigger: 'blur' }], - "atomItem.id": [{required: true, message: '原子指标不能为空', trigger: 'blur'}] + /*precision: [{validator: validateAsNumber, trigger: 'blur' }], + coefficient: [{validator: validateAsNumber, trigger: 'blur' }],*/ + /*"atomItem.id": [{required: true, message: '原子指标不能为空', trigger: 'blur'}]*/ }) const formRef = ref() // 表单 Ref const dataSourceList = ref([] as DataSourceConfigApi.DataSourceConfigVO[]) @@ -289,8 +289,8 @@ itemName: '', itemType: '', itemCategory: '', - coefficient: '', - precision: '', + coefficient: 1, + precision: 0, businessType: '', timeRange: '', timeGranularity: '', -- Gitblit v1.9.3