提交: 例行更新修复问题代码

This commit is contained in:
23688nl 2022-05-13 14:41:21 +08:00
parent 96655b167a
commit 9da5ab9fce
1 changed files with 72 additions and 60 deletions

View File

@ -95,8 +95,14 @@
width="120" width="120"
prop="otaSize" prop="otaSize"
/> />
<el-table-column label="升级地址" align="left" prop="otaUrl"> <el-table-column
label="升级地址"
align="left"
prop="otaUrl"
style="display: flex; align-items: center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex; align-items: center">
<span <span
style=" style="
max-width: calc(100% - 60px); max-width: calc(100% - 60px);
@ -104,10 +110,10 @@
display: inline-block; display: inline-block;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: 30px;
height: 20px; height: 20px;
line-height: 20px;
" "
>{{ scope.row.otaUrl || '--'}}</span >{{ scope.row.otaUrl || "--" }}</span
> >
<span <span
v-if="scope.row.otaUrl" v-if="scope.row.otaUrl"
@ -120,10 +126,12 @@
@click="copyOnClick(scope.row.otaUrl)" @click="copyOnClick(scope.row.otaUrl)"
>复制</span >复制</span
> >
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="文件地址" align="left" prop="txtUrl"> <el-table-column label="文件地址" align="left" prop="txtUrl">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex; align-items: center">
<span <span
style=" style="
max-width: calc(100% - 60px); max-width: calc(100% - 60px);
@ -132,9 +140,9 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
height: 20px; height: 20px;
line-height: 30px; line-height: 20px;
" "
>{{ scope.row.txtUrl || '--'}}</span >{{ scope.row.txtUrl || "--" }}</span
> >
<span <span
v-if="scope.row.txtUrl" v-if="scope.row.txtUrl"
@ -147,17 +155,16 @@
@click="copyOnClick(scope.row.txtUrl)" @click="copyOnClick(scope.row.txtUrl)"
>复制</span >复制</span
> >
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="升级信息" align="left" prop="otaInfo">
label="升级信息"
align="left"
prop="otaInfo"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div style="display: flex; align-items: center">
<span class="lay-table-textarea" :title="scope.row.otaInfo"> <span class="lay-table-textarea" :title="scope.row.otaInfo">
{{ scope.row.otaInfo }} {{ scope.row.otaInfo }}
</span> </span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -182,14 +189,14 @@
v-hasPermi="['system:ota:edit']" v-hasPermi="['system:ota:edit']"
>修改</el-button >修改</el-button
> >
<!-- <el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['system:ota:remove']" v-hasPermi="['system:ota:remove']"
>删除</el-button >删除</el-button
> --> >
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -204,7 +211,12 @@
<!-- 添加或修改固件版本对话框 --> <!-- 添加或修改固件版本对话框 -->
<div> <div>
<dialog-template @close="open = false" :title="title" :visible="open" width="500px"> <dialog-template
@close="open = false"
:title="title"
:visible="open"
width="500px"
>
<el-form <el-form
ref="form" ref="form"
:model="form" :model="form"