| | |
| | | <el-input v-model="petList.sex === 1 ? '雄性':'雌性'" :disabled="true"></el-input> |
| | | </template> |
| | | <template v-else> |
| | | <el-select v-model="petList.sex" placeholder="请选择保洁/收纳" clearable :style="{width: '100%'}"> |
| | | <el-select v-model="petList.sex" placeholder="请选择性别" clearable :style="{width: '100%'}"> |
| | | <el-option label="雌性" value="0"></el-option> |
| | | <el-option label="雄性" value="1"></el-option> |
| | | </el-select> |
| | |
| | | this.loading = true; |
| | | getPetList(id).then((response) => { |
| | | this.petList = response.data; |
| | | if(this.petList.sex==1) |
| | | this.petList.sex = '雄性' |
| | | else |
| | | this.petList.sex = '雌性' |
| | | console.log(this.petList) |
| | | // alert(this.petList.headPicture) |
| | | this.loading = false; |