数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.2 KiB

2 years ago
<!-- eslint-disable vue/no-parsing-error -->
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<!--
@ 作者: 鲁智强
@ 时间: 2023-08-15 11:34:38
@ 备注:
-->
<template>
<el-dialog destroy-on-close :model-value="true" :title="title" @close="handleClose">
{{props.rowInfo}}
<el-form ref="ruleFormRef" :model="formData" label-width="50px" class="demo-ruleForm" style="width:100%">
<el-form-item label="年度">
<el-date-picker v-model="formData.time" type="year"/>
</el-form-item>
<el-form-item v-loading="isshow" label="123">
<el-card>
<template #header>
<div class="card-header">
<span>Card name</span>
</div>
</template>
</el-card>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm()">确定</el-button>
</el-form-item>
</el-form>
</el-dialog>
</template>
  <script lang="ts" setup>
  import { reactive } from "vue"
  import {ge_copy } from '@/api/opk/zxy/news/api'
  import "quill/dist/quill.snow.css";
const isshow = ref(false)
const props= defineProps( {
      title: {
        type: String,
        default: "",
      },
      edPostBox: {
        type: Boolean,
        default: false,
      },
      rowInfo: {
        type: Object,
        default() {
          return {};
        },
      },
      arrayNum: {
        type: Number,
        default: 0,
      },
    });
const orgTreeProps ={
   label: 'name',
}
const orgTreeProp = {
    label:'title',
    children:'children'
}
const emit = defineEmits(["update:edPostBox","editRow","addRow"])
const formData = reactive({
    deaprtname:"",
    year:"",
    asd:[] as string[],
})
const tablea = ref<any>([])
function ge_adds(){
    const yui = props.rowInfo.key
    ge_copy({id:yui})
        .then((data) => {
            tablea.value = data.data;
        }).finally(()=>{
            isshow.value = false
        })
    }
ge_adds()
  // 关闭弹窗
 const handleClose = ()=> {
    emit("update:edPostBox", false);
  }
  onMounted(()=>{
    Object.assign(formData,props.rowInfo);
})
 </script>