1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-08 01:20:07 +08:00

fix: 解决编辑 PHP 运行环境版本显示错误的问题

This commit is contained in:
zhengkunwang223 2023-10-31 18:43:04 +08:00 committed by maninhill
parent b5f2716299
commit 9198707ca4
3 changed files with 5 additions and 3 deletions

View File

@ -15,6 +15,7 @@ export namespace Runtime {
status: string; status: string;
codeDir: string; codeDir: string;
port: number; port: number;
appID: number;
} }
export interface RuntimeReq extends ReqPage { export interface RuntimeReq extends ReqPage {

View File

@ -31,7 +31,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<div v-if="runtime.resource === 'appstore'"> <div v-if="runtime.resource === 'appstore'">
<el-form-item :label="$t('runtime.app')" prop="appId"> <el-form-item :label="$t('runtime.app')" prop="appID">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-select <el-select
@ -160,6 +160,7 @@ interface OperateRrops {
id?: number; id?: number;
mode: string; mode: string;
type: string; type: string;
appID?: number;
} }
const open = ref(false); const open = ref(false);
@ -368,7 +369,7 @@ const acceptParams = async (props: OperateRrops) => {
Object.assign(runtime, initData(props.type)); Object.assign(runtime, initData(props.type));
searchApp(null); searchApp(null);
} else { } else {
searchApp(null); searchApp(props.appID);
getRuntime(props.id); getRuntime(props.id);
} }
open.value = true; open.value = true;

View File

@ -130,7 +130,7 @@ const openCreate = () => {
}; };
const openDetail = (row: Runtime.Runtime) => { const openDetail = (row: Runtime.Runtime) => {
createRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id }); createRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id, appID: row.appID });
}; };
const openDelete = async (row: Runtime.Runtime) => { const openDelete = async (row: Runtime.Runtime) => {