From abb72ed0fc3358620960329f6bd10c8a012a71e9 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期五, 29 十二月 2023 15:02:47 +0800 Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop --- src/views/eam/modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue | 72 ++++++++++++++++++++++++++++++++++++ 1 files changed, 72 insertions(+), 0 deletions(-) diff --git a/src/views/eam/modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue b/src/views/eam/modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue new file mode 100644 index 0000000..ecb4920 --- /dev/null +++ b/src/views/eam/modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue @@ -0,0 +1,72 @@ +<template> + <j-modal + :title="'璐ㄤ繚鏈熷彉鏇�'" + :width="1515" + :height="600" + :visible="visible" + :maskClosable="true" + :fullscreen="true" + switchFullscreen + @ok="handleOk" + :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" + @cancel="handleCancel"> + <key-equipment-update-table + ref="realForm" + @ok="submitCallback" + :disabled="disableSubmit"/> + </j-modal> +</template> +<script> +import KeyEquipmentUpdateTable from './KeyEquipmentUpdateTable.vue' + + export default { + name: 'KeyEquipmentUpdateModel', + components: { + KeyEquipmentUpdateTable + }, + props:{ + }, + data() { + return { + title:'', + width:1500, + visible: false, + disableSubmit: false + } + }, + methods:{ + add () { + this.visible=true + this.$nextTick(()=>{ + this.$refs.realForm.addBefore(); + }) + }, + edit (record) { + this.visible=true + this.$nextTick(()=>{ + this.$refs.realForm.edit(record); + }) + }, + close () { + this.$emit('close'); + this.visible = false; + this.$refs.realForm.warrantyUpdateTable.dataSource=[]; + + }, + handleOk () { + this.$refs.realForm.handleOk(); + }, + submitCallback(){ + this.$emit('ok'); + this.$bus.$emit('loadData') + this.visible = false; + }, + handleCancel () { + this.close() + } + } + } +</script> + +<style scoped> +</style> \ No newline at end of file -- Gitblit v1.9.3