Commit e72251b1 authored by 智勇's avatar 智勇

mo-config

parent ac14ccf8
...@@ -59,6 +59,12 @@ ...@@ -59,6 +59,12 @@
</span> </span>
</span> </span>
<span v-if="scope.row.serviceName === 'redash'">
<span class="link-type" style="margin-right:5px" @click="openConsole(scope.row)">
{{ scope.row.serviceName }}
</span>
</span>
<span v-if="scope.row.serviceName === 'rabbitmq'" > <span v-if="scope.row.serviceName === 'rabbitmq'" >
<span class="link-type" style="margin-right:5px" @click="openConsole(scope.row)"> <span class="link-type" style="margin-right:5px" @click="openConsole(scope.row)">
{{ scope.row.serviceName }} {{ scope.row.serviceName }}
...@@ -81,7 +87,7 @@ ...@@ -81,7 +87,7 @@
</el-popover> </el-popover>
</span> </span>
<span v-if="scope.row.serviceName !== 'rabbitmq'&& scope.row.serviceName !== 'consul'">{{ scope.row.serviceName }}</span> <span v-if="scope.row.serviceName !== 'rabbitmq'&& scope.row.serviceName !== 'consul' && scope.row.serviceName !== 'redash'">{{ scope.row.serviceName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -139,10 +145,10 @@ ...@@ -139,10 +145,10 @@
<svg-icon icon-class="f5"/> <svg-icon icon-class="f5"/>
更新部署 更新部署
</el-dropdown-item> </el-dropdown-item>
<!-- <el-dropdown-item v-permission="['admin']" style="color: red" @click.native="deleteService(scope.row) "> <el-dropdown-item v-permission="['admin']" style="color: red" @click.native="deleteService(scope.row) ">
<svg-icon icon-class="delete"/> <svg-icon icon-class="delete"/>
删除服务 删除服务
</el-dropdown-item> --> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template> </template>
...@@ -580,7 +586,8 @@ export default { ...@@ -580,7 +586,8 @@ export default {
const realName = this.reponame.split('/')[1] const realName = this.reponame.split('/')[1]
this.is_show = realName === 'mysql' this.is_show = realName === 'mysql'
this.is_wechat = realName === 'h5-ui' this.is_wechat = realName === 'h5-ui'
this.is_mock = realName === 'gu-bei' || realName === 'clotho' || realName === 'ploutos' || realName === 'mo-clotho' || realName === 'koala' // this.is_mock = realName === 'gu-bei' || realName === 'clotho' || realName === 'ploutos' || realName === 'mo-clotho' || realName === 'koala'
this.is_mock = true
this.mock = { key: '"0"', display_name: '' } this.mock = { key: '"0"', display_name: '' }
this.wechat = { key: '"0"', display_name: '' } this.wechat = { key: '"0"', display_name: '' }
...@@ -643,6 +650,9 @@ export default { ...@@ -643,6 +650,9 @@ export default {
if (data.serviceName === 'consul') { if (data.serviceName === 'consul') {
port = data.portMappings.filter(item => item.port === 8500)[0].nodePort port = data.portMappings.filter(item => item.port === 8500)[0].nodePort
} }
if (data.serviceName === 'redash') {
port = data.portMappings.filter(item => item.port === 5000)[0].nodePort
}
window.open(`http://${data.lanIp}:${port}/`, '_blank') window.open(`http://${data.lanIp}:${port}/`, '_blank')
}, },
getServiceDetails(value) { getServiceDetails(value) {
......
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