wangyx 3 months ago
parent
commit
7818eebf88
  1. 10
      src/views/mz/housetype_facilities/index.vue
  2. 7
      src/views/residence/checkIn/index.vue

10
src/views/mz/housetype_facilities/index.vue

@ -115,7 +115,7 @@
<el-form-item label="图标" prop="icon"> <el-form-item label="图标" prop="icon">
<el-upload class="upload-video" :headers="$getElUploadHeaders()" :action="uploadUlr" :on-remove="handleRemove" <el-upload class="upload-video" :headers="$getElUploadHeaders()" :action="uploadUlr" :on-remove="handleRemove"
:on-success="(response, file, fileList) => onSuccessImage(response, file, fileList, index)" :on-success="(response, file, fileList) => onSuccessImage(response, file, fileList, index)"
:limit="1" :file-list="images" accept="image/*"> :limit="1" :file-list="images" accept="image/*" >
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
@ -230,6 +230,14 @@ export default {
const id = row.id || this.ids const id = row.id || this.ids
getFacilities(id).then(response => { getFacilities(id).then(response => {
this.form = response.data; this.form = response.data;
const match = response.data.icon.match(/\/([^\/]+)$/);
const fileName = match ? match[1] : response.data.icon;
this.images = [
{
url: response.data.icon,
name: fileName,
}
]
this.open = true; this.open = true;
this.title = "修改室内配套设施"; this.title = "修改室内配套设施";
}); });

7
src/views/residence/checkIn/index.vue

@ -319,7 +319,7 @@ export default {
} }
}, },
// //
handleNextStep() { async handleNextStep() {
if (this.currentStep < this.dataList.length) { if (this.currentStep < this.dataList.length) {
if(this.currentStep === 1){ if(this.currentStep === 1){
if(!this.userInfo.checkInTime || !this.userInfo.checkOutTime){ if(!this.userInfo.checkInTime || !this.userInfo.checkOutTime){
@ -328,8 +328,9 @@ export default {
} }
this.updateMzGraduateInfo(); // this.updateMzGraduateInfo(); //
this.currentStep++; this.currentStep++;
await this.createMzGraduateInfo()
this.handleQuery()
this.stepCompleted[0] = true; this.stepCompleted[0] = true;
this.createMzGraduateInfo()
return; return;
} }
if (this.currentStep == 2) { if (this.currentStep == 2) {
@ -427,7 +428,7 @@ export default {
// //
$route:{ $route:{
handler: function (newVal, oldVal) { handler: function (newVal, oldVal) {
if (newVal.query) { if (newVal.query.idCard) {
this.$nextTick(()=>{ this.$nextTick(()=>{
this.checnInForm.idCard = newVal.query.idCard; this.checnInForm.idCard = newVal.query.idCard;
this.handleQuery() this.handleQuery()

Loading…
Cancel
Save