| | |
| | | <el-input v-model="form.locationCode" disabled></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="è´§ä½ç¶æ"> |
| | | <el-select v-model="form.locationStatus" placeholder="è¯·éæ©è´§ä½ç¶æ"> |
| | | <el-select v-model="form.locationStatus" placeholder="è¯·éæ©è´§ä½ç¶æ" @change="showStatus"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> </el-select |
| | | ></el-form-item> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | <template #footer> |
| | | <el-button type="primary" size="small" @click="updateLocationStatus" |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | showStatus(){ |
| | | console.log(this.form.locationStatus); |
| | | }, |
| | | open(row) { |
| | | this.row = row; |
| | | this.showDetialBox = true; |
| | |
| | | .post("/api/LocationInfo/GetLocationStatusDic", {}, true) |
| | | .then((x) => { |
| | | if (!x.status) return this.$message.error(x.message); |
| | | |
| | | this.options = x.data; |
| | | console.log(this.options); |
| | | }); |
| | | }, |
| | | updateLocationStatus() { |
| | |
| | | "/api/LocationInfo/UpdateLocationStatus?key=" + |
| | | this.row.id + |
| | | "&locationStatus=" + |
| | | this.row.locationStatus, |
| | | this.form.locationStatus, |
| | | {}, |
| | | "æ°æ®å¤çä¸" |
| | | ) |
| | |
| | | if (!x.status) return this.$message.error(x.message); |
| | | this.$message.success("æä½æå"); |
| | | this.showDetialBox = false; |
| | | this.form.locationStatus=''; |
| | | this.$parent.refresh() |
| | | }); |
| | | }, |
| | | }, |