3939 </div >
4040 </template >
4141 </el-table-column >
42+ <el-table-column :label =" $t('website.log')" prop =" " >
43+ <template #default =" { row } " >
44+ <el-button @click =" openLog(row)" link type =" primary" >{{ $t('website.check') }}</el-button >
45+ </template >
46+ </el-table-column >
4247 <el-table-column
4348 prop =" createdAt"
4449 :label =" $t('commons.table.date')"
6166
6267 <CreateRuntime ref =" createRef" @close =" search" />
6368 <OpDialog ref =" opRef" @search =" search" />
69+ <Log ref =" logRef" @close =" search" />
6470 </div >
6571</template >
6672
@@ -74,6 +80,7 @@ import CreateRuntime from '@/views/website/runtime/php/create/index.vue';
7480import Status from ' @/components/status/index.vue' ;
7581import i18n from ' @/lang' ;
7682import RouterMenu from ' ../index.vue' ;
83+ import Log from ' @/views/website/runtime/php/log/index.vue' ;
7784
7885const paginationConfig = reactive ({
7986 cacheSizeKey: ' runtime-page-size' ,
@@ -89,6 +96,7 @@ let req = reactive<Runtime.RuntimeReq>({
8996});
9097let timer: NodeJS .Timer | null = null ;
9198const opRef = ref ();
99+ const logRef = ref ();
92100
93101const buttons = [
94102 {
@@ -133,6 +141,10 @@ const openDetail = (row: Runtime.Runtime) => {
133141 createRef .value .acceptParams ({ type: row .type , mode: ' edit' , id: row .id , appID: row .appID });
134142};
135143
144+ const openLog = (row : Runtime .RuntimeDTO ) => {
145+ logRef .value .acceptParams ({ path: row .path + ' /' + ' build.log' });
146+ };
147+
136148const openDelete = async (row : Runtime .Runtime ) => {
137149 opRef .value .acceptParams ({
138150 title: i18n .global .t (' commons.msg.deleteTitle' ),
0 commit comments