update code

main
haha 2024-08-05 23:37:01 +08:00
parent ed68d6425e
commit 4ca1d17a55
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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);
}
}