Compare commits

..

No commits in common. "7f462a8b1887583c07fce4e8882d56ba5a204a05" and "e26d40f885560c8ca97f47cb6d0b806e62830cb2" have entirely different histories.

4 changed files with 4 additions and 12 deletions

View File

@ -3,7 +3,7 @@ import FEEDBACKCOMP from "./index.vue";
const FBConstructor = Vue.extend(FEEDBACKCOMP);
const FBT = (options = {}) => {
const { data = {}, callBack } = options;
const { data = {} } = options;
// if (!UserId) throw `UserId is requred.but ${UserId}`
const id = `FB${new Date().getTime()}`;
const instance = new FBConstructor();
@ -13,7 +13,6 @@ const FBT = (options = {}) => {
document.body.appendChild(instance.vm.$el);
instance.vm.open({ ...data });
instance.vm.$on("success", (Id) => {
if (callBack) callBack();
});
instance.vm.$on("closed", () => {
document.body.removeChild(instance.vm.$el);

View File

@ -10,7 +10,7 @@
<div slot="title">
{{ title }}
</div>
<feedBackTable :trialId="trialId" @success="success" />
<feedBackTable :trialId="trialId" />
</el-dialog>
</div>
</template>
@ -46,9 +46,6 @@ export default {
return `${this.$t("feedBack:table:title")}`;
}
},
success() {
this.$emit("success");
},
},
};
</script>

View File

@ -116,14 +116,14 @@
>
{{ $t("common:button:reset") }}
</el-button>
<!-- <el-button
<el-button
type="primary"
size="mini"
@click="report"
v-if="level > 7"
>
{{ $t("common:button:export") }}
</el-button> -->
</el-button>
</el-form-item>
<el-button
type="primary"
@ -445,7 +445,6 @@ export default {
Id: row.Id,
callBack: () => {
this.getList();
this.$emit("success");
},
});
},

View File

@ -179,9 +179,6 @@ export default {
name: this.$route.query.researchProgramNo,
trialId: this.trialId,
},
callBack: () => {
this.initForm();
},
});
},
},