2024-06-21 00:19:54 +08:00
|
|
|
<!-- 用户管理 -->
|
|
|
|
<template>
|
2024-06-21 00:50:41 +08:00
|
|
|
<div class="app-container model-detail">
|
2024-06-21 00:19:54 +08:00
|
|
|
<!-- 用户新增/编辑表单 -->
|
2024-06-21 00:50:41 +08:00
|
|
|
<el-card>
|
2024-06-21 00:19:54 +08:00
|
|
|
<template #header><svg-icon icon-class="pause" style="width:20px;height:20px;" />算子基本信息</template>
|
|
|
|
<el-row>
|
|
|
|
<el-col :lg="12" :xs="24">
|
|
|
|
<el-form
|
2024-07-11 01:27:21 +08:00
|
|
|
ref="formRef"
|
2024-06-21 00:19:54 +08:00
|
|
|
v-loading="loading"
|
|
|
|
label-width="100px"
|
|
|
|
size="small"
|
|
|
|
>
|
2024-07-11 01:27:21 +08:00
|
|
|
<el-form-item label="算子名称">{{dataInfo.operator_name}}</el-form-item>
|
|
|
|
<el-form-item label="算子主类型">
|
|
|
|
{{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="算子子类型">
|
|
|
|
{{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-11 01:27:21 +08:00
|
|
|
<el-form-item label="创建人">
|
|
|
|
{{dataInfo.user_name}}</el-form-item
|
|
|
|
>
|
|
|
|
<el-form-item label="创建时间">
|
|
|
|
{{dataInfo.create_time}}</el-form-item
|
|
|
|
>
|
|
|
|
<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-06-21 00:19:54 +08:00
|
|
|
<el-button @click="closeBack"><i-ep-close />取 消</el-button>
|
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-07-11 01:27:21 +08:00
|
|
|
import OperatorApi from '@/api/operator'
|
2024-06-21 00:19:54 +08:00
|
|
|
|
2024-07-11 01:27:21 +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() {
|
|
|
|
router.replace({ path: "/operatorLibrary/calculate" });
|
|
|
|
}
|
|
|
|
|
2024-07-11 01:27:21 +08:00
|
|
|
/** 初始化数据 */
|
|
|
|
function initData(){
|
|
|
|
let id=route.query.id;
|
|
|
|
loading.value = true;
|
|
|
|
OperatorApi.findOne(id).then(res =>{
|
|
|
|
//JSON转换
|
|
|
|
res.data.data.parametersJson = JSON.stringify(res.data.data.parameters);
|
|
|
|
dataInfo.value = res.data.data;
|
|
|
|
loading.value = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
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-06-21 00:50:41 +08:00
|
|
|
<style scoped lang='scss'>
|
|
|
|
.model-detail{
|
|
|
|
:deep(.el-card__header){
|
|
|
|
padding:8px 4px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.sp-file{
|
|
|
|
color:#29d;
|
|
|
|
}
|
|
|
|
.tb-base-info{
|
|
|
|
line-height: 30px;
|
|
|
|
}
|
|
|
|
:deep(.svg-icon){
|
|
|
|
margin-right:8px;
|
|
|
|
}
|
|
|
|
.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-06-21 00:50:41 +08:00
|
|
|
:deep(.el-card__body){
|
|
|
|
padding:10px;
|
|
|
|
.el-pagination{
|
|
|
|
justify-content: end;
|
|
|
|
}
|
|
|
|
}
|
2024-06-21 00:19:54 +08:00
|
|
|
}
|
|
|
|
</style>
|