| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="时间限定" prop="timeLimit"> |
| | | <el-select v-model="formData.timeLimit" placeholder="请选择" |
| | | <el-select v-model="formData.derItem.timeLimit" placeholder="请选择" |
| | | @change="handleTimeLimitChange($event)"> |
| | | <el-option |
| | | v-for="dict in getStrDictOptions(DICT_TYPE.IND_TIME_LIMIT)" |
| | |
| | | formLoading.value = true |
| | | try { |
| | | formData.value = await ItemApi.getItem(id) |
| | | formData.value.derItem.dimension = formData.value.derItem.dimension.split(',') |
| | | if(formData.value.derItem.dimension.length > 0){ |
| | | formData.value.derItem.dimension = formData.value.derItem.dimension.split(',') |
| | | }else { |
| | | formData.value.derItem.dimension = "" |
| | | } |
| | | await handleChange(formData.value.atomItem.itemId) |
| | | } finally { |
| | | formLoading.value = false |
| | |
| | | dimension = dimension + formData.value.derItem.dimension[index] + ',' |
| | | } |
| | | formData.value.derItem.dimension = dimension.substring(0, dimension.length - 1) |
| | | }else{ |
| | | formData.value.derItem.dimension = '' |
| | | } |
| | | const data = formData.value as ItemApi.ItemVO |
| | | if (formType.value === 'create') { |