Commit 4f9d6815 authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(bug fix devicemap combobox): edit bindings of code in pacs and hisname

parent c6e11e77
Pipeline #744 passed with stages
in 50 minutes and 44 seconds
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
} }
}, },
openNewDialog() { openNewDialog() {
debugger;
for (let prop in this.ClientForm) { for (let prop in this.ClientForm) {
this.$set(this.ClientForm, prop, ""); this.$set(this.ClientForm, prop, "");
} }
......
...@@ -192,10 +192,12 @@ export default { ...@@ -192,10 +192,12 @@ export default {
} }
}, },
openNewDialog() { openNewDialog() {
debugger; ;
for (let prop in this.DevicemapForm) { for (let prop in this.DevicemapForm) {
this.$set(this.DevicemapForm, prop, ""); this.$set(this.DevicemapForm, prop, "");
} }
this.selectedClient = undefined;
this.selectedHisLink = undefined;
this.$set(this.DevicemapForm, "_id", ""); this.$set(this.DevicemapForm, "_id", "");
this.newOrEdit = "new"; this.newOrEdit = "new";
this.dialog = true; this.dialog = true;
...@@ -214,6 +216,21 @@ export default { ...@@ -214,6 +216,21 @@ export default {
); );
} }
} }
this.selectedClient = undefined;
this.selectedHisLink = undefined;
let me = this;
this.selectedClient = this.clients.filter(client => {
return client.Caption == me.DevicemapForm.CodeInPacs;
})[0];
this.selectedHisLink = this.hislink.filter(hislink => {
return hislink.Name == me.DevicemapForm.HisName;
})[0];
this.$set(this.DevicemapForm, "_id", this.selectedItemInTable[0]["_id"]); this.$set(this.DevicemapForm, "_id", this.selectedItemInTable[0]["_id"]);
this.newOrEdit = "edit"; this.newOrEdit = "edit";
this.dialog = true; this.dialog = true;
...@@ -222,7 +239,7 @@ export default { ...@@ -222,7 +239,7 @@ export default {
this.loading = true; this.loading = true;
let me = this; let me = this;
if (this.newOrEdit == "new") { if (this.newOrEdit == "new") {
debugger
if (this.selectedClient != undefined && this.selectedClient != null) if (this.selectedClient != undefined && this.selectedClient != null)
this.DevicemapForm.CodeInPacs = this.selectedClient.Caption; this.DevicemapForm.CodeInPacs = this.selectedClient.Caption;
...@@ -236,7 +253,7 @@ export default { ...@@ -236,7 +253,7 @@ export default {
}); });
} }
if (this.newOrEdit == "edit") { if (this.newOrEdit == "edit") {
debugger
if (this.selectedClient != undefined && this.selectedClient != null) if (this.selectedClient != undefined && this.selectedClient != null)
this.DevicemapForm.CodeInPacs = this.selectedClient.Caption; this.DevicemapForm.CodeInPacs = this.selectedClient.Caption;
......
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next(vm => { next(vm => {
debugger;
// if (Meteor.userId()) { // if (Meteor.userId()) {
// vm.$router.push("/main/worklist"); // vm.$router.push("/main/worklist");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment