From 5e26f4e419440a810d66d2f3a5c978da5581f56f Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 06 一月 2025 13:30:00 +0800 Subject: [PATCH] pyFile可编辑 --- src/views/model/sche/model/ScheduleModelForm.vue | 42 ++++++++++++++++-------------------------- 1 files changed, 16 insertions(+), 26 deletions(-) diff --git a/src/views/model/sche/model/ScheduleModelForm.vue b/src/views/model/sche/model/ScheduleModelForm.vue index d09e47a..42d96b3 100644 --- a/src/views/model/sche/model/ScheduleModelForm.vue +++ b/src/views/model/sche/model/ScheduleModelForm.vue @@ -210,6 +210,7 @@ <el-table-column prop="" label="键" + min-width="150" align="center"> <template #default="scope"> <el-input v-model="scope.row.key" maxlength="20" clearable :disabled="true" @@ -219,6 +220,7 @@ <el-table-column prop="" label="名称" + min-width="150" align="center"> <template #default="scope"> <el-input v-model="scope.row.name" maxlength="20" clearable :disabled="true" @@ -228,6 +230,7 @@ <el-table-column prop="" label="类型" + min-width="100" align="center"> <template #default="scope"> <el-select v-model="scope.row.valuetype" placeholder="请选择" :disabled="true"> @@ -243,34 +246,14 @@ <el-table-column prop="" label="值" + min-width="300" align="center"> <template #default="scope"> - <el-input v-model="scope.row.value" maxlength="256" clearable :disabled="scope.row.key === 'pyFile'" + <el-input v-model="scope.row.value" maxlength="256" clearable + :disabled="scope.row.key === 'pyFile_BAK'" style="width:100%;hight:100%"/> </template> </el-table-column> -<!-- <el-table-column--> -<!-- prop=""--> -<!-- label="操作"--> -<!-- width="100"--> -<!-- align="center">--> -<!-- <template #default="scope">--> -<!-- <el-button--> -<!-- @click.prevent="addRow(scope.$index, formData.settingList)"--> -<!-- link--> -<!-- type="primary"--> -<!-- size="small">--> -<!-- 添加--> -<!-- </el-button>--> -<!-- <el-button--> -<!-- @click.prevent="deleteRow(scope.$index, formData.settingList)"--> -<!-- link--> -<!-- type="primary"--> -<!-- size="small">--> -<!-- 删除--> -<!-- </el-button>--> -<!-- </template>--> -<!-- </el-table-column>--> </el-table> <el-divider content-position="left">模型下发配置</el-divider> <el-row :gutter="20"> @@ -282,14 +265,21 @@ :data="formData.modelOut" border style="width: 100%; margin-top: 5px;"> - <el-table-column prop="resultKey`" label="输出key" align="center" min-width="100"> + <el-table-column prop="resultKey" label="输出key" align="center" min-width="100"> <template #default="scope"> <el-input size="mini" v-model="scope.row.resultKey" style="width:100%;height:100%"/> </template> </el-table-column> - <el-table-column prop="resultType`" label="数据类型" align="center" min-width="100"> + <el-table-column prop="resultType" label="数据类型" align="center" min-width="150"> <template #default="scope"> - <el-input size="mini" v-model="scope.row.resultType" style="width:100%;height:100%"/> + <el-select v-model="scope.row.resultType" placeholder="请选择"> + <el-option + v-for="dict in getStrDictOptions(DICT_TYPE.RESULT_TYPE)" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> + </el-select> </template> </el-table-column> <el-table-column prop="resultPort" label="角标1" align="center" min-width="100"> -- Gitblit v1.9.3