提交 5b600a22 authored 作者: JaxBBLL's avatar JaxBBLL

fix: bugs

上级 57222d0f
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
let { let {
account, account,
pwd pwd
} = data } = data
const sql = `select * from ${table.userName} where user = '${account}' AND passWord ='${pwd}'` const sql = `select * from ${table.userName} where user = '${account}' AND passWord ='${pwd}'`
let res = await sqllitedb.selectSQL(sql); let res = await sqllitedb.selectSQL(sql);
......
...@@ -223,10 +223,9 @@ export default { ...@@ -223,10 +223,9 @@ export default {
const isAllOne = this.areAllInspectionResultsOne(this.itemData.detail); const isAllOne = this.areAllInspectionResultsOne(this.itemData.detail);
this.itemData.isValid = isValid; this.itemData.isValid = isValid;
this.itemData.inspectionItem = this.inspectionItem; this.itemData.inspectionItem = this.inspectionItem;
console.log(222, this.itemData);
this.itemData.status = isAllOne.status; //1表示已经巡检过没有异常 this.itemData.status = isAllOne.status; //1表示已经巡检过没有异常
this.itemData.statusLabel = isAllOne.statusLabel; this.itemData.statusLabel = isAllOne.statusLabel;
// console.log(this.itemData); console.log('afxt', this.itemData);
return this.itemData; return this.itemData;
}, },
// 数据校验方法 true说明有未填项 // 数据校验方法 true说明有未填项
...@@ -249,7 +248,7 @@ export default { ...@@ -249,7 +248,7 @@ export default {
console.log("确定需要校验的范围 ", itemsToCheck); console.log("确定需要校验的范围 ", itemsToCheck);
// 检查 conclusion 和 photos(如果存在) // 检查 conclusion 和 photos(如果存在)
for (const item of itemsToCheck) { for (const item of itemsToCheck) {
if (item.inspectionResult === 0) { if (item.inspectionResult === 0 || item.inspectionResult === 2) {
continue; // 跳过检查 continue; // 跳过检查
} }
if ("conclusion" in item && !item.conclusion) { if ("conclusion" in item && !item.conclusion) {
......
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
"需处理", "需处理",
"已处理" "已处理"
]; ];
}, }
}, },
}; };
</script> </script>
...@@ -142,8 +142,9 @@ export default { ...@@ -142,8 +142,9 @@ export default {
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
z-index: 999999; // pointer-events: none;
z-index: 999999;
.synchronous-content { .synchronous-content {
padding: 3% 20px 32px 24px; padding: 3% 20px 32px 24px;
width: 400px; width: 400px;
......
...@@ -287,13 +287,36 @@ ...@@ -287,13 +287,36 @@
class="cards-item" class="cards-item"
> >
<view class="name" <view class="name"
>{{ item.label }}{{ index === 0 ? `(${item.setting})` : "" >
}}<text <template v-if="index==0">
class="status" <view>
:class="{ warning: item.inspectionResult === 1 }" {{ item.label }}
>{{ item.inspectionResultLable }}</text <text
></view class="status"
> :class="{ warning: item.inspectionResult === 1 }"
>{{ item.inspectionResultLable }}
</text>
</view>
<!-- <text>
{{ item.settingLabel }} {{ `(${item.setting})` }}
</text> -->
</template>
<template v-else>
{{ item.label }}
<text
class="status"
:class="{ warning: item.inspectionResult === 1 }"
>{{ item.inspectionResultLable }}
</text>
</template>
</view
>
<view v-if="index==0" class="list">
<view class="label" style="width: 70px;">{{item.settingLabel}}</view>
<view class="content">
{{ item.setting }}
</view>
</view>
<view class="list"> <view class="list">
<view class="label">情况描述:</view> <view class="label">情况描述:</view>
<view class="content"> <view class="content">
......
...@@ -66,7 +66,8 @@ export default { ...@@ -66,7 +66,8 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
z-index: 99999;
.synchronous-content { .synchronous-content {
padding: 25.6px 19.2px; padding: 25.6px 19.2px;
width: 420px; width: 420px;
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</view> </view>
<!-- v-if="value > 2" --> <!-- v-if="value > 2" -->
<view class="action-btn complete-btn" @click="submit(1)"> 完成巡检 </view> <view class="action-btn complete-btn" @click="submit(1)"> 完成巡检 </view>
<view class="action-btn" @click="normal"> 一键正常 </view> <!-- <view class="action-btn" @click="normal"> 一键正常 </view> -->
</view> </view>
<startDialog <startDialog
ref="startDialog" ref="startDialog"
...@@ -1154,10 +1154,10 @@ export default { ...@@ -1154,10 +1154,10 @@ export default {
gap: 16px; gap: 16px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
bottom: 25.6px; bottom: 20px;
.action-btn { .action-btn {
width: 145.6px; width: 118px;
height: 38.4px; height: 38.4px;
line-height: 38.4px; line-height: 38.4px;
background: #ffffff; background: #ffffff;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<uni-easyinput v-if="passwordVisible" class="log-input" prefixIcon="locked" clearSize="0" <uni-easyinput v-if="passwordVisible" class="log-input" prefixIcon="locked" clearSize="0"
v-model="person.pwd" @iconClick="togglePasswordVisible" :placeholder="passwordPlaceholder" v-model="person.pwd" @iconClick="togglePasswordVisible" :placeholder="passwordPlaceholder"
:passwordIcon="false" :type="passwordVisible ? 'text' : 'password'"></uni-easyinput> :passwordIcon="false" :type="passwordVisible ? 'text' : 'password'"></uni-easyinput>
<uni-easyinput v-else class="log-input" prefixIcon="locked-filled" clearSize="0" v-model="person.pd" <uni-easyinput v-else class="log-input" prefixIcon="locked-filled" clearSize="0" v-model="person.pwd"
@iconClick="togglePasswordVisible" :placeholder="passwordPlaceholder" :passwordIcon="false" @iconClick="togglePasswordVisible" :placeholder="passwordPlaceholder" :passwordIcon="false"
:type="passwordVisible ? 'text' : 'password'"></uni-easyinput> :type="passwordVisible ? 'text' : 'password'"></uni-easyinput>
</view> </view>
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
data() { data() {
return { return {
person: { person: {
account: "管理员", account: "", // "管理员",
pwd: "Gly@124", pwd: "" // Gly@124",
}, },
backButtonPress: 0, backButtonPress: 0,
personList: [], personList: [],
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
this.passwordVisible = !this.passwordVisible; this.passwordVisible = !this.passwordVisible;
}, },
// 点击登录 // 点击登录
async login() { async login() {
userApi.login(this.person).then((res) => { userApi.login(this.person).then((res) => {
if (res.data) { if (res.data) {
this.personList = res.data; this.personList = res.data;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论