mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 20:01:06 +03:30
commit multi image
This commit is contained in:
@@ -47,14 +47,14 @@
|
||||
<v-text-field
|
||||
name="autoclave"
|
||||
v-model="formData.device_id"
|
||||
:label="form.device_label"
|
||||
:label="formData.device_label"
|
||||
color="black"
|
||||
class="pa-2"
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs12 sm4 md4>
|
||||
<v-text-field
|
||||
v-model="formData.cycle_number "
|
||||
v-model="formData.cycle_number"
|
||||
label="Cycle Number"
|
||||
color="black"
|
||||
class="pa-2"
|
||||
@@ -343,6 +343,15 @@ export default {
|
||||
);
|
||||
if (result && result.status == 200) {
|
||||
this.formData = result.data.data;
|
||||
for (const key in result.data.data.imagesPath) {
|
||||
if (result.data.data.imagesPath.hasOwnProperty(key)) {
|
||||
result.data.data.imagesPath[key] = '/' + result.data.data.imagesPath[key];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
this.formData.images = result.data.data.imagesPath;
|
||||
this.images = result.data.data.imagesPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -399,6 +408,13 @@ export default {
|
||||
} else {
|
||||
this.formData.result = "Reject";
|
||||
}
|
||||
},
|
||||
formData(value) {
|
||||
if (value.result == "Accept") {
|
||||
this.result = true;
|
||||
} else {
|
||||
this.result = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user