Commit 372b7cb6 authored by 智勇's avatar 智勇

修改展示

parent 5d47a024
...@@ -33,21 +33,23 @@ ...@@ -33,21 +33,23 @@
</el-form> </el-form>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column :label="$t('table.id')" fixed prop="id" align="center" width="55"> <el-table-column :label="$t('table.id')" prop="id" align="center" width="55">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed label="服务名称" width="180px" sortable="custom" align="center"> <el-table-column label="服务名称" width="180px" sortable="custom" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="link-type" @click="handleUpdate(scope.row)">{{ scope.row.project_name }}</span> <span class="link-type" @click="handleUpdate(scope.row)">{{ scope.row.project_name }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="服务描述" width="180px" align="center">
<!-- <el-table-column label="服务描述" width="180px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.des }}</span> <span>{{ scope.row.des }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="线上域名" width="180px" align="center"> <el-table-column label="线上域名" width="180px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.host_name }}</span> <span>{{ scope.row.host_name }}</span>
...@@ -71,31 +73,61 @@ ...@@ -71,31 +73,61 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Git地址" width="310px" align="center"> <!-- <el-table-column label="API" width="210px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.git_path }}</span> <span class="link-type" @click="openUrl(scope.row.api)">{{ scope.row.api }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="API" width="250px" align="center"> <el-table-column label="数据库DDL" width="210px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="link-type" @click="openUrl(scope.row.api)">{{ scope.row.api }}</span> <span class="link-type" @click="openUrl(scope.row.ddl)">{{ scope.row.ddl }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数据库DDL" width="250px" align="center"> <el-table-column label="Wiki" width="210px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="link-type" @click="openUrl(scope.row.ddl)">{{ scope.row.ddl }}</span> <span class="link-type" @click="openUrl(scope.row.wiki)">{{ scope.row.wiki }}</span>
</template>
</el-table-column> -->
<el-table-column
label="API地址"
align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.api" class="item" effect="dark" placement="top">
<el-button v-show="scope.row.api" type="primary" icon="el-icon-tickets" circle @click="openUrl(scope.row.api)"/>
</el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Wiki" width="250px" align="center"> <el-table-column
label="DDL地址"
align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="link-type" @click="openUrl(scope.row.wiki)">{{ scope.row.wiki }}</span> <el-tooltip :content="scope.row.ddl" class="item" effect="dark" placement="top">
<el-button v-show="scope.row.ddl" type="success" icon="el-icon-time" circle @click="openUrl(scope.row.ddl)"/>
</el-tooltip>
</template>
</el-table-column>
<el-table-column
label="Wiki"
align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.wiki" class="item" effect="dark" placement="top">
<el-button v-show="scope.row.wiki" type="success" icon="el-icon-time" circle @click="openUrl(scope.row.wiki)"/>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="Git地址" width="210px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.git_path }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('table.actions')" fixed="right" align="center" width="180" class-name="small-padding fixed-width"> <el-table-column :label="$t('table.actions')" align="center" width="150" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="mini" @click="handleUpdate(scope.row)">{{ $t('table.edit') }}</el-button> <el-button type="primary" size="mini" @click="handleUpdate(scope.row)">{{ $t('table.edit') }}</el-button>
<el-button v-if="scope.row.status!='deleted'" size="mini" type="danger" @click="handleDelete(scope.row)">{{ $t('table.delete') }} <el-button v-if="scope.row.status!='deleted'" size="mini" type="danger" @click="handleDelete(scope.row)">{{ $t('table.delete') }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment