|
@@ -0,0 +1,95 @@
|
|
|
+<template>
|
|
|
+ <a-drawer
|
|
|
+ :title="title"
|
|
|
+ :width="width"
|
|
|
+ placement="right"
|
|
|
+ :closable="true"
|
|
|
+ @close="close"
|
|
|
+ destroyOnClose
|
|
|
+ :visible="visible">
|
|
|
+ <!-- <div class="drawer-footer">
|
|
|
+ <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
|
|
|
+ <a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
|
|
|
+ </div> -->
|
|
|
+ </a-drawer>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+import {getAction, httpAction} from "@api/manage";
|
|
|
+
|
|
|
+ export default {
|
|
|
+ name: 'handleDetailXq',
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ title:"",
|
|
|
+ width:800,
|
|
|
+ visible: false,
|
|
|
+ disableSubmit: false,
|
|
|
+ url: {
|
|
|
+ queryById: "/cmmsSubmission/cmmsSubmission/queryById",
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ findHandle(id){
|
|
|
+ // 获取送检详情
|
|
|
+ getAction(this.url.queryById, {id:id}).then((res) => {
|
|
|
+ console.log(77,res)
|
|
|
+ // this.formModel.submissionEquipmentList = res.result.submissionEquipmentList
|
|
|
+ // const b = res.result.uploadFileList.map((res) => {
|
|
|
+ // return res.url
|
|
|
+ // })
|
|
|
+ // this.formModel.uploadFileList = b.join(',')
|
|
|
+ })
|
|
|
+ this.visible = true
|
|
|
+ },
|
|
|
+ // 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;
|
|
|
+ },
|
|
|
+ submitCallback(){
|
|
|
+ // this.$emit('ok');
|
|
|
+ this.visible = false;
|
|
|
+ },
|
|
|
+ handleOk () {
|
|
|
+ // this.$refs.realForm.submitForm();
|
|
|
+ },
|
|
|
+ handleCancel () {
|
|
|
+ this.close()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+/** Button按钮间距 */
|
|
|
+ .ant-btn {
|
|
|
+ margin-left: 30px;
|
|
|
+ margin-bottom: 30px;
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
+ .drawer-footer{
|
|
|
+ position: absolute;
|
|
|
+ bottom: -8px;
|
|
|
+ width: 100%;
|
|
|
+ border-top: 1px solid #e8e8e8;
|
|
|
+ padding: 10px 16px;
|
|
|
+ text-align: right;
|
|
|
+ left: 0;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 0 0 2px 2px;
|
|
|
+ }
|
|
|
+</style>
|