| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="统计方式" prop="statFunc"> |
| | | <el-form-item label="统计方式" prop="atomItem.statFunc"> |
| | | <el-select v-model="formData.atomItem.statFunc" clearable placeholder="请选择"> |
| | | <el-option |
| | | v-for="dict in getStrDictOptions(DICT_TYPE.DATA_STAT_FUNC)" |
| | |
| | | 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' }], |
| | | statFunc: [{required: true, message: '统计方式不能为空', trigger: 'blur'}], |
| | | timeGranularity: [{required: true, message: '时间粒度不能为空', trigger: 'blur'}], |
| | | "atomItem.dataSet": [{required: true, message: '数据集不能为空', trigger: 'blur'}], |
| | | "atomItem.usingField":[{required: true, message: '使用字段不能为空', trigger: 'blur'}]*/ |
| | | "atomItem.usingField": [{required: true, message: '使用字段不能为空', trigger: 'blur'}], |
| | | "atomItem.statFunc": [{required: true, message: '统计方式不能为空', trigger: 'blur'}], |
| | | }) |
| | | const formRef = ref() // 表单 Ref |
| | | const dataSetList = ref([] as DataSetApi.DataSetVO[]) |