From c216b78be4f9c2628333980ece55b1c135e1602a Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期五, 10 十一月 2023 11:29:13 +0800 Subject: [PATCH] 修改Trre.js的请求头header信息 --- src/views/eam/modules/team/TeamModal.vue | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/src/views/eam/modules/team/TeamModal.vue b/src/views/eam/modules/team/TeamModal.vue new file mode 100644 index 0000000..c6740b5 --- /dev/null +++ b/src/views/eam/modules/team/TeamModal.vue @@ -0,0 +1,60 @@ +<template> + <j-modal + :title="title" + :width="width" + :visible="visible" + switchFullscreen + @ok="handleOk" + :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" + @cancel="handleCancel" + cancelText="鍏抽棴"> + <team-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></team-form> + </j-modal> +</template> + +<script> + + import TeamForm from './TeamForm' + export default { + name: 'TeamModal', + components: { + TeamForm + }, + data () { + return { + title:'', + width:800, + visible: false, + disableSubmit: false + } + }, + methods: { + add () { + this.visible=true + this.$nextTick(()=>{ + this.$refs.realForm.add(); + }) + }, + edit (record) { + this.visible=true + this.$nextTick(()=>{ + this.$refs.realForm.edit(record); + }) + }, + close () { + this.$emit('close'); + this.visible = false; + }, + handleOk () { + this.$refs.realForm.submitForm(); + }, + submitCallback(){ + this.$emit('ok'); + this.visible = false; + }, + handleCancel () { + this.close() + } + } + } +</script> \ No newline at end of file -- Gitblit v1.9.3