vue-apps/com.actionsoft.apps.coe.pal/views/batch/create.vue
shangxiaoran@qq.com 9d8f9f0e92 初始化应用
2022-06-28 01:29:37 +08:00

60 lines
1.7 KiB
Vue

<template>
<awsui-dialog
title="批量创建"
height="700px"
width="900px"
:visible.sync="dialogVisible"
:border="false"
:before-close="handleClose"
:destroy-on-close=true>
<iframe id="batchCreateIframe" style="border: 0px;width: 100%;height: 695px;" name="batchCreateIframe" :src="src"></iframe>
</awsui-dialog>
</template>
<script>
export default {
name: "create",
props: {
visible: {
type: Boolean,
default: false
},
methodCategory: {
type: String,
default: ''
}
},
data() {
return {
dialogVisible: false,
src: wHref + '?' + 'sid=' + this.$store.state.sessionId + '&mainPage=create&cmd=com.actionsoft.apps.coe.pal.batch_main_page&methodCategory=' + this.methodCategory + '&wsId=' + this.$store.getters.getWsIdFn + '&teamId=' + this.$store.getters.getTeamIdFn,
}
},
created() {
const that = this;
// 注册关闭批量创建窗口通用方法
window.closeBatchCreateFn = function (params) {
that.closeDlalog();
that.dialogVisible = false;
}
},
methods: {
handleClose(done) {
this.closeDlalog();
done();
},
closeDlalog() {// 关闭
this.$emit('getResult');
}
},
watch: {
visible(val) {
this.dialogVisible = val;
}
}
}
</script>
<style scoped>
</style>