update code
parent
ed68d6425e
commit
4ca1d17a55
|
@ -5,7 +5,8 @@ VITE_APP_PORT = 3000
|
|||
VITE_APP_BASE_API = '/api'
|
||||
#VITE_APP_API_URL = http://62.234.3.186/mk/ai/api
|
||||
# 线上接口地址
|
||||
VITE_APP_API_URL = http://10.5.1.137:8800
|
||||
#VITE_APP_API_URL = http://10.5.1.137:8800
|
||||
VITE_APP_API_URL = http://62.234.3.186/api
|
||||
# 开发接口地址
|
||||
# VITE_APP_API_URL = http://localhost:8989
|
||||
|
||||
|
|
|
@ -46,16 +46,22 @@
|
|||
<el-table-column label="部署时间" align="left" prop="deployed_time" width="160" />
|
||||
<el-table-column label="量化和编译参数" align="left" prop="tool_params_name" width="160">
|
||||
<template #default="scope">
|
||||
<span class="args-state state-2 command" @click.stop="doChoice(scope.row)">{{
|
||||
<span class="args-state state-2 command" @click.stop="doChoice(scope.row)" v-if="scope.row.available">{{
|
||||
scope.row.tool_params_name ? scope.row.tool_params_name : "请选择"
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设备状态" align="center" width="100">
|
||||
<template #default="scope">
|
||||
<span :class="'device-state state-'">{{
|
||||
scope.row.available ? "可用" : "不可用"
|
||||
}}</span>
|
||||
<span :class="'device-state state-1'" v-if="scope.row.available">可用</span>
|
||||
<span :class="'device-state state-2'" v-else>不可用</span>
|
||||
<el-popover placement="bottom-start" :width="400" trigger="hover" v-if="!scope.row.available"
|
||||
class="state-icon" :content="scope.row.available_reason">
|
||||
<template #reference>
|
||||
<i-ep-warning style="color: var(--el-color-danger);" />
|
||||
</template>
|
||||
</el-popover>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -194,7 +200,7 @@ defineExpose({
|
|||
}
|
||||
|
||||
&.state-2 {
|
||||
color: var(--el-color-success);
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue