|
@@ -0,0 +1,59 @@
|
|
|
+<template>
|
|
|
+ <hc-dialog
|
|
|
+ v-model="isShow"
|
|
|
+ is-footer-center
|
|
|
+ title="编辑元素表单信息"
|
|
|
+ @close="dialogClose"
|
|
|
+ widths="56rem"
|
|
|
+ >
|
|
|
+ <hc-table :column="tableColumn" :datas="tableData"> </hc-table>
|
|
|
+ </hc-dialog>
|
|
|
+</template>
|
|
|
+<script setup>
|
|
|
+import { ref, watch } from "vue";
|
|
|
+import mainApi from "~api/wbs/wbsforelement";
|
|
|
+import treeApi from "~api/wbs/tree";
|
|
|
+
|
|
|
+const props = defineProps({
|
|
|
+ info: {
|
|
|
+ type: Array,
|
|
|
+ default: () => {},
|
|
|
+ },
|
|
|
+});
|
|
|
+//事件
|
|
|
+const emit = defineEmits(["close"]);
|
|
|
+//双向绑定
|
|
|
+// eslint-disable-next-line no-undef
|
|
|
+const isShow = defineModel("modelValue", {
|
|
|
+ default: false,
|
|
|
+});
|
|
|
+//监听显示
|
|
|
+watch(isShow, (val) => {
|
|
|
+ if (val) {
|
|
|
+ // getDataTypelist();
|
|
|
+ }
|
|
|
+});
|
|
|
+const info = ref(props.info);
|
|
|
+watch(
|
|
|
+ () => [props.info],
|
|
|
+ ([inf]) => {
|
|
|
+ info.value = inf;
|
|
|
+ },
|
|
|
+ { deep: true }
|
|
|
+);
|
|
|
+
|
|
|
+//关闭弹窗
|
|
|
+const dialogClose = () => {
|
|
|
+ isShow.value = false;
|
|
|
+ emit("close");
|
|
|
+};
|
|
|
+const tableData = ref([]);
|
|
|
+
|
|
|
+const tableColumn = ref([
|
|
|
+ { key: "eName", name: "字段信息" },
|
|
|
+ { key: "eType", name: "数据类型" },
|
|
|
+ { key: "eLength", name: "长度" },
|
|
|
+ { key: "eAllowDeviation", name: "允许偏差值" },
|
|
|
+ { key: "eInspectionMethod", name: "检查方法和频率" },
|
|
|
+]);
|
|
|
+</script>
|