This commit is contained in:
hzz 2023-12-18 11:05:27 +08:00
parent 0741f00a5d
commit 991cce97f7

View File

@ -60,7 +60,8 @@
<el-button link type="primary" icon="Link" @click="toScreen(scope.row)"></el-button>
</el-tooltip>
<el-tooltip content="修改" placement="top">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row.id)" v-hasPermi="['big:screen:edit']"></el-button>
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row.id)"
v-hasPermi="['big:screen:edit']"></el-button>
</el-tooltip>
<el-tooltip content="删除" placement="top">
<el-button link type="primary" icon="Delete" v-hasPermi="['big:screen:delete']"
@ -170,7 +171,12 @@ function getList() {
// console.log(JSON.stringify(queryParams.value));
getScreen(queryParams.value).then(res => {
loading.value = false;
screenList.value = res.rows;
screenList.value = res.rows.map(item => {
const regex = /^(http|https):\/\/[^ "]+$/;
let isTrue = regex.test(item.img);
item.img = isTrue ? item.img : import.meta.env.VITE_APP_BASE_API + item.img
return item
});
total.value = res.total;
});
@ -325,4 +331,5 @@ getUserList();
max-height: 100%;
display: block;
margin: 0 auto;
}</style>
}
</style>