反馈设置为已解决后,统计数量刷新
parent
6e72825dff
commit
2e56e069d2
|
@ -3,7 +3,7 @@ import FEEDBACKCOMP from "./index.vue";
|
|||
const FBConstructor = Vue.extend(FEEDBACKCOMP);
|
||||
|
||||
const FBT = (options = {}) => {
|
||||
const { data = {} } = options;
|
||||
const { data = {}, callBack } = options;
|
||||
// if (!UserId) throw `UserId is requred.but ${UserId}`
|
||||
const id = `FB${new Date().getTime()}`;
|
||||
const instance = new FBConstructor();
|
||||
|
@ -13,6 +13,7 @@ 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);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<div slot="title">
|
||||
{{ title }}
|
||||
</div>
|
||||
<feedBackTable :trialId="trialId" />
|
||||
<feedBackTable :trialId="trialId" @success="success" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -46,6 +46,9 @@ export default {
|
|||
return `${this.$t("feedBack:table:title")}`;
|
||||
}
|
||||
},
|
||||
success() {
|
||||
this.$emit("success");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -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,6 +445,7 @@ export default {
|
|||
Id: row.Id,
|
||||
callBack: () => {
|
||||
this.getList();
|
||||
this.$emit("success");
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
|
@ -179,6 +179,9 @@ export default {
|
|||
name: this.$route.query.researchProgramNo,
|
||||
trialId: this.trialId,
|
||||
},
|
||||
callBack: () => {
|
||||
this.initForm();
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue