|
@@ -4,7 +4,7 @@
|
|
|
<el-form-item label="节点名称:" prop="nodeName">
|
|
|
<el-input v-model="formModel.nodeName" clearable class="is-right-btn">
|
|
|
<template #append>
|
|
|
- <el-button hc-btn type="primary">添加别名</el-button>
|
|
|
+ <el-button hc-btn type="primary" @click="aliasShowClick">添加别名</el-button>
|
|
|
</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -55,6 +55,23 @@
|
|
|
<el-button hc-btn type="primary" :loading="submitLoading" @click="dialogSubmit">提交</el-button>
|
|
|
</template>
|
|
|
</hc-new-dialog>
|
|
|
+
|
|
|
+ <!-- 节点别名 -->
|
|
|
+ <hc-new-dialog v-model="isAliasShow" widths="26rem" title="节点别名" is-footer-center @close="aliasDialogClose">
|
|
|
+ <el-form ref="formAliasRef" :model="formAliasModel" :rules="formAliasRules" label-position="top" label-width="auto">
|
|
|
+ <el-form-item label="节点别名:" prop="aliasName">
|
|
|
+ <el-input v-model="formAliasModel.aliasName" clearable class="is-right-btn">
|
|
|
+ <template #append>
|
|
|
+ <el-button hc-btn type="primary">添加</el-button>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <template #footer>
|
|
|
+ <el-button hc-btn @click="aliasDialogClose">取消</el-button>
|
|
|
+ <el-button hc-btn type="primary" :loading="submitAliasLoading" @click="aliasSubmit">提交</el-button>
|
|
|
+ </template>
|
|
|
+ </hc-new-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -143,12 +160,43 @@ watch(isShow, (val) => {
|
|
|
//获取数据
|
|
|
const getDataInfo = () => {
|
|
|
const { nodeType } = formModel.value
|
|
|
- console.log(formModel.value)
|
|
|
if (nodeType === 53) {
|
|
|
getTestTreeData()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//节点别名
|
|
|
+const isAliasShow = ref(false)
|
|
|
+
|
|
|
+//节点别名
|
|
|
+const formAliasRef = ref(null)
|
|
|
+const formAliasModel = ref({})
|
|
|
+const formAliasRules = {
|
|
|
+ aliasName: {
|
|
|
+ required: true,
|
|
|
+ trigger: 'blur',
|
|
|
+ message: '请输入节点别名',
|
|
|
+ },
|
|
|
+}
|
|
|
+
|
|
|
+//显示节点别名弹窗
|
|
|
+const aliasShowClick = () => {
|
|
|
+ isAliasShow.value = true
|
|
|
+}
|
|
|
+
|
|
|
+//提交别名
|
|
|
+const submitAliasLoading = ref(false)
|
|
|
+const aliasSubmit = async () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+//关闭节点别名弹窗
|
|
|
+const aliasDialogClose = () => {
|
|
|
+ isAliasShow.value = false
|
|
|
+ formAliasModel.value = {}
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
//获取实验树的数据
|
|
|
const testData = ref([])
|
|
|
const mixRatioTestIds = ref([])
|