Compare commits
No commits in common. "7f462a8b1887583c07fce4e8882d56ba5a204a05" and "e26d40f885560c8ca97f47cb6d0b806e62830cb2" have entirely different histories.
7f462a8b18
...
e26d40f885
|
@ -3,7 +3,7 @@ import FEEDBACKCOMP from "./index.vue";
|
||||||
const FBConstructor = Vue.extend(FEEDBACKCOMP);
|
const FBConstructor = Vue.extend(FEEDBACKCOMP);
|
||||||
|
|
||||||
const FBT = (options = {}) => {
|
const FBT = (options = {}) => {
|
||||||
const { data = {}, callBack } = options;
|
const { data = {} } = options;
|
||||||
// if (!UserId) throw `UserId is requred.but ${UserId}`
|
// if (!UserId) throw `UserId is requred.but ${UserId}`
|
||||||
const id = `FB${new Date().getTime()}`;
|
const id = `FB${new Date().getTime()}`;
|
||||||
const instance = new FBConstructor();
|
const instance = new FBConstructor();
|
||||||
|
@ -13,7 +13,6 @@ const FBT = (options = {}) => {
|
||||||
document.body.appendChild(instance.vm.$el);
|
document.body.appendChild(instance.vm.$el);
|
||||||
instance.vm.open({ ...data });
|
instance.vm.open({ ...data });
|
||||||
instance.vm.$on("success", (Id) => {
|
instance.vm.$on("success", (Id) => {
|
||||||
if (callBack) callBack();
|
|
||||||
});
|
});
|
||||||
instance.vm.$on("closed", () => {
|
instance.vm.$on("closed", () => {
|
||||||
document.body.removeChild(instance.vm.$el);
|
document.body.removeChild(instance.vm.$el);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div slot="title">
|
<div slot="title">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</div>
|
</div>
|
||||||
<feedBackTable :trialId="trialId" @success="success" />
|
<feedBackTable :trialId="trialId" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -46,9 +46,6 @@ export default {
|
||||||
return `${this.$t("feedBack:table:title")}`;
|
return `${this.$t("feedBack:table:title")}`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
success() {
|
|
||||||
this.$emit("success");
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -116,14 +116,14 @@
|
||||||
>
|
>
|
||||||
{{ $t("common:button:reset") }}
|
{{ $t("common:button:reset") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="report"
|
@click="report"
|
||||||
v-if="level > 7"
|
v-if="level > 7"
|
||||||
>
|
>
|
||||||
{{ $t("common:button:export") }}
|
{{ $t("common:button:export") }}
|
||||||
</el-button> -->
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -445,7 +445,6 @@ export default {
|
||||||
Id: row.Id,
|
Id: row.Id,
|
||||||
callBack: () => {
|
callBack: () => {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$emit("success");
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -179,9 +179,6 @@ export default {
|
||||||
name: this.$route.query.researchProgramNo,
|
name: this.$route.query.researchProgramNo,
|
||||||
trialId: this.trialId,
|
trialId: this.trialId,
|
||||||
},
|
},
|
||||||
callBack: () => {
|
|
||||||
this.initForm();
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue