适配更改/车辆搜索更改

main
许宏杰 3 months ago
parent 835b25d940
commit 0bc14a7962

@ -27,8 +27,10 @@ export default {
created() {},
mounted() {
autofit.init({
designHeight: 1792,
designWidth: 6656,
// designHeight: 1792,
// designWidth: 6656,
designHeight: 1080,
designWidth: 1920,
renderDom: "#app",
resize: true,
});

@ -24,7 +24,7 @@
>
{{ item.carName }}
</div>
<div class="no-data" v-show="searchText">{{ searchText }}</div>
<div class="no-data" v-show="searchText"></div>
</div>
</el-collapse-transition>
</div>
@ -65,7 +65,7 @@ export default {
timer: null,
time2: null,
searchList: [],
searchText: "",
searchText: false,
searchQuery: {
carPlate: undefined, //
plateColor: undefined, //
@ -477,15 +477,16 @@ export default {
//
if (this.timer) clearInterval(this.timer);
const result = await getCarByCarplate(this.searchQuery);
if (result.list) {
this.searchText = "";
if (result.rspCode > 0) {
this.searchText = false;
if (result.list[0].stateCn.includes("离线")) {
this.$modal.msgError(`该车${result.list[0].stateCn}!`);
return;
}
this.searchList = result.list;
} else {
this.searchText = result.rspDesc;
this.searchText = true;
this.searchList = [];
}
this.show = true;
@ -506,7 +507,7 @@ export default {
inputClear() {
if (this.timer) clearInterval(this.timer);
this.searchList = [];
this.searchText = "";
this.searchText = false;
this.searchQuery = {
carPlate: undefined, //
plateColor: undefined, //

@ -411,7 +411,7 @@ export default {
}
.backBtn {
// top: 145px;
top: 17%;
top: 19%;
}
.albuginea:hover {
background: #0084ff;

@ -18,8 +18,8 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
publicPath: process.env.NODE_ENV === "production" ? "/demo/yunkunPc" : "/",
// publicPath: process.env.NODE_ENV === "production" ? "/yunkunPc" : "/",
// publicPath: process.env.NODE_ENV === "production" ? "/demo/yunkunPc" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/yunkunPc" : "/",
// publicPath: process.env.NODE_ENV === "production" ? "/yunkunPc-big" : "/",
// 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和 baseUrl 的生产环境路径一致默认dist
outputDir: "dist",

Loading…
Cancel
Save