| | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="指标分类" prop="itemCategory"> |
| | | <el-select v-model="formData.itemCategory" clearable placeholder="请选择指标分类"> |
| | | <el-select v-model="formData.itemCategory" clearable filterable |
| | | allow-create placeholder="请选择指标分类"> |
| | | <el-option |
| | | v-for="item in dataCategoryList" |
| | | :key="item.id" |
| | |
| | | const operatorList = ref(['+', '-', '*', '/', '&', '|', '!', '>', '<']) |
| | | 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' }], |
| | | itemCategory: [{required: true, message: '指标类型不能为空', trigger: 'blur'}] |
| | | // precision: [{validator: validateAsNumber, trigger: 'blur' }], |
| | | // coefficient: [{validator: validateAsNumber, trigger: 'blur' }], |
| | | }) |
| | | const formRef = ref() // 表单 Ref |
| | | const dataSourceList = ref([] as DataSourceConfigApi.DataSourceConfigVO[]) |