2024-07-14 22:25:26 +08:00
|
|
|
<!-- 算子管理 -->
|
2024-06-21 00:19:54 +08:00
|
|
|
<template>
|
2024-06-21 00:50:41 +08:00
|
|
|
<div class="app-container model-detail">
|
2024-07-14 22:25:26 +08:00
|
|
|
<!-- 算子管理详情 -->
|
2024-06-21 00:50:41 +08:00
|
|
|
<el-card>
|
2024-07-14 22:25:26 +08:00
|
|
|
<template #header
|
|
|
|
><svg-icon
|
|
|
|
icon-class="pause"
|
|
|
|
style="width: 20px; height: 20px"
|
|
|
|
/>算子基本信息</template
|
|
|
|
>
|
2024-06-21 00:19:54 +08:00
|
|
|
<el-row>
|
|
|
|
<el-col :lg="12" :xs="24">
|
2024-07-14 22:25:26 +08:00
|
|
|
<el-form ref="formRef" v-loading="loading" label-width="100px" size="small">
|
|
|
|
<el-form-item label="算子名称">{{ dataInfo.operator_name }}</el-form-item>
|
2024-07-11 01:27:21 +08:00
|
|
|
<el-form-item label="算子主类型">
|
2024-07-14 22:25:26 +08:00
|
|
|
{{ dataInfo.oper_main_type_name }}</el-form-item
|
2024-06-24 23:18:47 +08:00
|
|
|
>
|
2024-07-11 01:27:21 +08:00
|
|
|
<el-form-item label="算子子类型">
|
2024-07-14 22:25:26 +08:00
|
|
|
{{ dataInfo.oper_sub_type_name }}</el-form-item
|
2024-06-24 23:18:47 +08:00
|
|
|
>
|
2024-07-11 01:27:21 +08:00
|
|
|
<el-form-item label="算子说明">
|
2024-06-21 00:19:54 +08:00
|
|
|
<el-input
|
2024-07-11 01:27:21 +08:00
|
|
|
v-model="dataInfo.operator_desc"
|
2024-06-21 00:19:54 +08:00
|
|
|
:disabled="true"
|
|
|
|
placeholder="请输入数据集名称"
|
|
|
|
:rows="3"
|
|
|
|
type="textarea"
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
2024-07-14 22:25:26 +08:00
|
|
|
<el-form-item label="创建人"> {{ dataInfo.user_name }}</el-form-item>
|
|
|
|
<el-form-item label="创建时间"> {{ dataInfo.create_time }}</el-form-item>
|
2024-07-11 01:27:21 +08:00
|
|
|
<el-form-item label="算子参数">
|
2024-06-21 00:19:54 +08:00
|
|
|
<el-input
|
2024-07-11 01:27:21 +08:00
|
|
|
v-model="dataInfo.parametersJson"
|
2024-06-21 00:19:54 +08:00
|
|
|
:disabled="true"
|
2024-07-11 01:27:21 +08:00
|
|
|
placeholder="请输入算子参数"
|
|
|
|
:rows="10"
|
2024-06-21 00:19:54 +08:00
|
|
|
type="textarea"
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
2024-07-11 01:27:21 +08:00
|
|
|
<!-- <el-form-item label="输出参数" prop="nickname33">
|
2024-06-21 00:19:54 +08:00
|
|
|
<el-input
|
2024-07-11 01:27:21 +08:00
|
|
|
v-model="dataInfo.usernamedd3"
|
2024-06-21 00:19:54 +08:00
|
|
|
:disabled="true"
|
|
|
|
placeholder="请输入数据集名称"
|
|
|
|
:rows="3"
|
|
|
|
type="textarea"
|
|
|
|
/>
|
2024-07-11 01:27:21 +08:00
|
|
|
</el-form-item> -->
|
2024-06-21 00:19:54 +08:00
|
|
|
</el-form>
|
|
|
|
</el-col>
|
|
|
|
<el-col :lg="12" :xs="24"> </el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-card>
|
2024-06-21 00:50:41 +08:00
|
|
|
<el-card class="card-footer">
|
2024-07-14 22:25:26 +08:00
|
|
|
<el-button @click="closeBack"><i-ep-close />取 消</el-button>
|
2024-06-21 00:19:54 +08:00
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-07-14 22:25:26 +08:00
|
|
|
import OperatorApi from "@/api/operator";
|
2024-06-21 00:19:54 +08:00
|
|
|
|
2024-07-14 22:25:26 +08:00
|
|
|
const route = useRoute();
|
2024-06-21 00:19:54 +08:00
|
|
|
const router = useRouter();
|
|
|
|
const loading = ref(false); // 加载状态
|
2024-07-11 01:27:21 +08:00
|
|
|
// 算子表单数据
|
|
|
|
const dataInfo = ref({});
|
2024-06-21 00:19:54 +08:00
|
|
|
|
|
|
|
/** 返回默认页面 */
|
|
|
|
function closeBack() {
|
2024-07-14 22:48:26 +08:00
|
|
|
router.push({ path: "/operatorLibrary/calculate" });
|
2024-06-21 00:19:54 +08:00
|
|
|
}
|
|
|
|
|
2024-07-11 01:27:21 +08:00
|
|
|
/** 初始化数据 */
|
2024-07-14 22:26:43 +08:00
|
|
|
funcrouter.push) {
|
2024-07-14 22:25:26 +08:00
|
|
|
let id = route.query.id;
|
2024-07-11 01:27:21 +08:00
|
|
|
loading.value = true;
|
2024-07-14 22:25:26 +08:00
|
|
|
OperatorApi.findOne(id)
|
|
|
|
.then((res) => {
|
|
|
|
//JSON转换
|
|
|
|
res.data.data.parametersJson = JSON.stringify(res.data.data.parameters);
|
|
|
|
dataInfo.value = res.data.data;
|
|
|
|
})
|
|
|
|
.finally(() => {
|
|
|
|
loading.value = false;
|
|
|
|
});
|
2024-07-11 01:27:21 +08:00
|
|
|
}
|
|
|
|
|
2024-06-21 00:19:54 +08:00
|
|
|
onMounted(() => {
|
2024-07-11 01:27:21 +08:00
|
|
|
initData();
|
2024-06-21 00:19:54 +08:00
|
|
|
});
|
|
|
|
</script>
|
2024-07-14 22:25:26 +08:00
|
|
|
<style scoped lang="scss">
|
|
|
|
.model-detail {
|
|
|
|
:deep(.el-card__header) {
|
|
|
|
padding: 8px 4px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2024-06-21 00:50:41 +08:00
|
|
|
}
|
2024-07-14 22:25:26 +08:00
|
|
|
.sp-file {
|
|
|
|
color: #29d;
|
2024-06-21 00:50:41 +08:00
|
|
|
}
|
2024-07-14 22:25:26 +08:00
|
|
|
.tb-base-info {
|
|
|
|
line-height: 30px;
|
2024-06-21 00:50:41 +08:00
|
|
|
}
|
2024-07-14 22:25:26 +08:00
|
|
|
:deep(.svg-icon) {
|
|
|
|
margin-right: 8px;
|
2024-06-21 00:50:41 +08:00
|
|
|
}
|
2024-07-14 22:25:26 +08:00
|
|
|
.card-footer {
|
2024-06-21 00:19:54 +08:00
|
|
|
position: fixed;
|
2024-06-21 00:50:41 +08:00
|
|
|
width: calc(100% - 215px);
|
2024-06-21 00:19:54 +08:00
|
|
|
bottom: 0px;
|
2024-07-14 22:25:26 +08:00
|
|
|
:deep(.el-card__body) {
|
|
|
|
padding: 10px;
|
|
|
|
.el-pagination {
|
2024-06-21 00:50:41 +08:00
|
|
|
justify-content: end;
|
|
|
|
}
|
|
|
|
}
|
2024-06-21 00:19:54 +08:00
|
|
|
}
|
|
|
|
</style>
|