| | |
| | | :rules="formRules" label-width="100px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="指标编码" prop="itemNo"> |
| | | <el-input v-model="formData.itemNo" disabled/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="指标名称" prop="itemName"> |
| | | <el-input v-model="formData.itemName"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="原子指标" prop="atomItem.itemId"> |
| | | <el-select v-model="formData.atomItem.itemId" clearable placeholder="请选择原子指标" |
| | | @change="handleChange($event)"> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="原子指标名称" prop="atomItem.itemName"> |
| | | <el-input v-model="formData.atomItem.itemName" disabled/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="指标编码" prop="itemNo"> |
| | | <el-input v-model="formData.itemNo" disabled/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="指标名称" prop="itemName"> |
| | | <el-input v-model="formData.itemName"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | v-for="item in dataSetFieldList" |
| | | :key="item.id" |
| | | :label="item.fieldCode" |
| | | :value="item.id + ''" |
| | | :value="item.fieldCode" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | v-for="item in dataSetFieldList" |
| | | :key="item.id" |
| | | :label="item.fieldCode" |
| | | :value="item.id + ''" |
| | | :value="item.fieldCode" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | }else { |
| | | formData.value.derItem.dimension = "" |
| | | } |
| | | await handleChange(formData.value.atomItem.itemId) |
| | | showTimeChange.value = formData.value.derItem.timeLimit === 'CUSTOM' |
| | | await handleChange(formData.value.derItem.atomItemId) |
| | | } finally { |
| | | formLoading.value = false |
| | | } |
| | |
| | | async function handleChange(event) { |
| | | if (event !== null && event !== undefined) { |
| | | const itemData = await ItemApi.getItem(event) |
| | | let a = itemData.atomItem.id |
| | | formData.value.atomItem.id = a |
| | | formData.value.atomItem.itemName = itemData.itemName |
| | | formData.value.atomItem.id = itemData.atomItem.id |
| | | formData.value.atomItem.itemId = itemData.atomItem.itemId |
| | | const queryParams = reactive({ |
| | | dataSetId: itemData.atomItem.dataSet, |