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

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,70 +95,77 @@
width="120"
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">
<span
style="
max-width: calc(100% - 60px);
white-space: nowrap;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
line-height: 30px;
height: 20px;
"
>{{ scope.row.otaUrl || '--'}}</span
>
<span
v-if="scope.row.otaUrl"
style="
cursor: default;
position: relative;
right: -10px;
color: #3a8ee6;
"
@click="copyOnClick(scope.row.otaUrl)"
>复制</span
>
<div style="display: flex; align-items: center">
<span
style="
max-width: calc(100% - 60px);
white-space: nowrap;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
height: 20px;
line-height: 20px;
"
>{{ scope.row.otaUrl || "--" }}</span
>
<span
v-if="scope.row.otaUrl"
style="
cursor: default;
position: relative;
right: -10px;
color: #3a8ee6;
"
@click="copyOnClick(scope.row.otaUrl)"
>复制</span
>
</div>
</template>
</el-table-column>
<el-table-column label="文件地址" align="left" prop="txtUrl">
<template slot-scope="scope">
<span
style="
max-width: calc(100% - 60px);
white-space: nowrap;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
height: 20px;
line-height: 30px;
"
>{{ scope.row.txtUrl || '--'}}</span
>
<span
v-if="scope.row.txtUrl"
style="
cursor: default;
position: relative;
right: -10px;
color: #3a8ee6;
"
@click="copyOnClick(scope.row.txtUrl)"
>复制</span
>
<div style="display: flex; align-items: center">
<span
style="
max-width: calc(100% - 60px);
white-space: nowrap;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
height: 20px;
line-height: 20px;
"
>{{ scope.row.txtUrl || "--" }}</span
>
<span
v-if="scope.row.txtUrl"
style="
cursor: default;
position: relative;
right: -10px;
color: #3a8ee6;
"
@click="copyOnClick(scope.row.txtUrl)"
>复制</span
>
</div>
</template>
</el-table-column>
<el-table-column
label="升级信息"
align="left"
prop="otaInfo"
>
<template slot-scope="scope">
<span class="lay-table-textarea" :title="scope.row.otaInfo">
{{ scope.row.otaInfo }}
</span>
</template>
<el-table-column label="升级信息" align="left" prop="otaInfo">
<template slot-scope="scope">
<div style="display: flex; align-items: center">
<span class="lay-table-textarea" :title="scope.row.otaInfo">
{{ scope.row.otaInfo }}
</span>
</div>
</template>
</el-table-column>
<el-table-column
label=" 创建时间"
@ -182,14 +189,14 @@
v-hasPermi="['system:ota:edit']"
>修改</el-button
>
<!-- <el-button
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:ota:remove']"
>删除</el-button
> -->
>
</template>
</el-table-column>
</el-table>
@ -204,7 +211,12 @@
<!-- 添加或修改固件版本对话框 -->
<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
ref="form"
:model="form"