<template>
    <el-dialog v-model="dialogVisible" title="程序激活" width="500px" draggable>
        <el-form :model="formContent">
        <el-form-item label="程序版本号" prop="pid" :label-width="100">
         
        </el-form-item>
        <el-form-item label="模拟式模块" prop="pid" :label-width="100">
         
        </el-form-item>
        <el-form-item label="数字式模块" prop="pid" :label-width="100">
         
        </el-form-item>
        <el-form-item label="比对式模块" prop="pid" :label-width="100">
         
        </el-form-item>
        <el-form-item label="序列号" prop="pid" :label-width="100">
         
        </el-form-item>
        <el-form-item label="注册码" prop="pid" :label-width="100">
         
        </el-form-item>
        </el-form>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="dialogVisible = false">取消</el-button>
          <el-button type="primary" @click="dialogVisible = false">激活</el-button>
        </span>
      </template>
    </el-dialog>
  </template>
  
  <script setup lang="ts">
  import { ref } from "vue";
  const formContent = ref<Function.ResFunction>({
      id: '',//资源表Id
      pid:'',//节点（0为根节点）
      pids:'',//节点上层所有节点
      name: '',//名称
      code:'',//资源标识
      path:'',//路径
      component:'',
      icon:undefined as string | undefined, // 图标
      sort:100,//排序
      type:0,//资源类型0-菜单、1-按钮、2-公共资源、3-服务间调用资源
      remark: '',//权限资源描述
      state:1,//权限资源状态
    })
  const dialogVisible = ref(false);
  const openDialog = () => {
    dialogVisible.value = true;
  };
  
  defineExpose({ openDialog });
  </script>