Ayuthaya文字

This commit is contained in:
打豆豆 2023-12-27 14:38:56 +08:00
parent 30e4ba2b2e
commit fbf2544197
4 changed files with 32 additions and 19 deletions

View File

@ -1,9 +0,0 @@
import request from '@/utils/request'
// 获取用户详细信息
export function devices() {
return request({
url: '/device/devices',
method: 'get'
})
}

Binary file not shown.

7
src/assets/font/font.css Normal file
View File

@ -0,0 +1,7 @@
/* // 这是 font.css 可设置多种字体; */
/* // 注意font-family: 'XXX'; 将字体名字自定义为 XXX,使用时要用这个名字 */
@font-face {
font-family: 'Ayuthaya';
src: url('./Ayuthaya.ttf');
}

View File

@ -27,16 +27,20 @@
</div> </div>
</div></el-col </div></el-col
> >
<el-col :span="18" <el-col :span="18" class="myfont"
><div class="content"> ><div class="content">
<div style="height: 100px"> <div style="height: 100px">
<div style="width: 31px; margin-left: 9%"> <div style="width: 31px; margin-left: 9%">
<el-image v-if="imgdata" :src="img" style="margin-top: 25px"></el-image> <el-image
<el-image v-else :src="imgs" style="margin-top: 25px;"></el-image> v-if="imgdata"
:src="img"
style="margin-top: 25px"
></el-image>
<el-image v-else :src="imgs" style="margin-top: 25px"></el-image>
</div> </div>
</div> </div>
<div style="height: 440px"> <div style="height: 440px">
<div style="height: 108px"> <div style="height: 105px">
<el-row <el-row
type="flex" type="flex"
class="row-bg" class="row-bg"
@ -450,6 +454,7 @@
<script> <script>
import axios from "axios"; import axios from "axios";
import "@/assets/font/font.css";
export default { export default {
data() { data() {
return { return {
@ -458,7 +463,7 @@ export default {
// //
loading: true, loading: true,
id: "", id: "",
imgdata:true, imgdata: true,
timer: null, timer: null,
img: require("../../../assets/images/close.png"), img: require("../../../assets/images/close.png"),
imgs: require("../../../assets/images/open.png"), imgs: require("../../../assets/images/open.png"),
@ -516,11 +521,14 @@ export default {
}, },
}) })
.then((res) => { .then((res) => {
this.imgdata = true this.imgdata = true;
this.$modal.msgSuccess("停止成功"); this.$modal.msgSuccess("停止成功");
}); });
} else { } else {
this.$modal.msgSuccess("请选择设备"); this.$message({
message: "请选择设备",
type: "warning",
});
} }
}, },
on() { on() {
@ -533,18 +541,25 @@ export default {
}, },
}) })
.then((res) => { .then((res) => {
this.imgdata = false this.imgdata = false;
this.$modal.msgSuccess("启动成功"); this.$modal.msgSuccess("启动成功");
}); });
} else { } else {
this.$modal.msgSuccess("请选择设备"); this.$message({
message: "请选择设备",
type: "warning",
});
} }
}, },
}, },
}; };
</script> </script>
<style scoped> <style lang="scss" scoped>
.myfont {
font-family: "Ayuthaya"; // Ayuthaya
}
.app-containers ::-webkit-scrollbar { .app-containers ::-webkit-scrollbar {
display: none; display: none;
} }