数通智联化工云平台
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.
 
 
 
 
 

106 lines
3.8 KiB

<!--
@ 作者: 鲁智强
@ 时间: 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="120px" class="demo-ruleForm" style="width:100%">
<el-form-item label="行政组织">
                <el-table v-loading="isshow" :data="tablea">
                    <el-table-column prop="id" label="指标名称" width="1000">
                        <template #default="scope">
                            <el-table :data="scope.row.child">
                                <el-table-column prop="name" label="指标名称"/>
                                <el-table-column prop="" label="说明">
                                    <el-input v-model="scope.row"/>
                                </el-table-column>
                                <el-table-column prop="referencescore" label="指标权重">
                                    <el-input v-model="scope.row.referencescore"/>
                                </el-table-column>
                                <el-table-column prop="" label="状态">
                                    <el-select v-model="scope.row">
                                        <el-option label="使用"/>
                                        <el-option label="禁用"/>
               
                        <el-option label="观察"/>
                                    </el-select>
                                </el-table-column>
                            </el-table>
                        </template>
                    </el-table-column>              
            </el-table>
            </el-form-item>
            <el-form-item label="年度">
                <el-date-picker v-model="formData.year" type="year"/>
            </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>