管骁翰_修改

main
guanxiaohan 11 months ago
parent 1bdf777e9c
commit 8515f5a424
  1. 36
      pages/investigation/task.vue

@ -17,7 +17,7 @@
stepCircleActive: item.i === active, stepCircleActive: item.i === active,
stepCircle: true, stepCircle: true,
}"> }">
{{ item.i }} {{ item.i == 3 ? item.i - 1 : item.i }}
</view> </view>
<view class="stepText PositionA" <view class="stepText PositionA"
:style="{ color: item.i === active ? '#000000' : '#bcc3cd' }"> :style="{ color: item.i === active ? '#000000' : '#bcc3cd' }">
@ -89,7 +89,7 @@
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" <input v-if="isEdit" type="number" class="BorderNone Height100 formInput"
v-model="formData.laneCount" placeholder="请输入车道数" @focus="focus" @blur="blur" /> v-model="formData.laneCount" placeholder="请输入车道数" @focus="focus" @blur="blur" />
<view class="Height100" v-else>{{ formData.laneCount }}</view> <view class="Height100" v-else>{{ formData.laneCount }}</view>
<view class="Height100"></view> <view class="Height100"></view>
</view> </view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="路面结构"> <uni-forms-item label="路面结构">
@ -458,7 +458,8 @@
<bottom-button :type="type" v-else-if="active === 2" :secondText="isEditStep2?'取消':'更改'" <bottom-button :type="type" v-else-if="active === 2" :secondText="isEditStep2?'取消':'更改'"
@second="isEditStep2 = !isEditStep2" @first="active = 1" @last="active = 3" /> @second="isEditStep2 = !isEditStep2" @first="active = 1" @last="active = 3" />
<bottom-button isSubmit :type="type" v-else-if="active === 3" :secondText="'暂存'" @first="active = 2" <!-- 下面原本active = 2 -->
<bottom-button isSubmit :type="type" v-else-if="active === 3" :secondText="'暂存'" @first="active = 1"
@second="submit(false)" @last="submit(true)" /> @second="submit(false)" @last="submit(true)" />
<u-modal :show="modalShow" content="您未录入任何隐患问题,该点段将以“无隐患”结论提交结果,请确认是否提交?" confirm-text="确定" cancel-text="取消" <u-modal :show="modalShow" content="您未录入任何隐患问题,该点段将以“无隐患”结论提交结果,请确认是否提交?" confirm-text="确定" cancel-text="取消"
:showConfirmButton="true" :showCancelButton="true" @confirm="postSaveManualInvestigation" :showConfirmButton="true" :showCancelButton="true" @confirm="postSaveManualInvestigation"
@ -480,6 +481,7 @@
import InvestigationItem2 from "./components/investigation-item2.vue"; import InvestigationItem2 from "./components/investigation-item2.vue";
import ProblemTreeItem from "./components/problem-tree-item.vue"; import ProblemTreeItem from "./components/problem-tree-item.vue";
import ProblemBox from "./components/problem-box.vue"; import ProblemBox from "./components/problem-box.vue";
import $ from '@/common/globalJs/globalJs.js'
export default { export default {
components: { components: {
TopTitle, TopTitle,
@ -578,15 +580,15 @@
title: "基本信息", title: "基本信息",
type: "point" type: "point"
}, },
{ // {
title: "统计信息", // title: "",
type: "item", // type: "item",
i: 2 // i: 2
}, // },
{ // {
title: "统计信息", // title: "",
type: "point" // type: "point"
}, // },
{ {
title: "隐患排查", title: "隐患排查",
type: "item", type: "item",
@ -836,7 +838,7 @@
if (!t) { if (!t) {
this.boxHeight = uni.getSystemInfoSync().windowHeight; this.boxHeight = uni.getSystemInfoSync().windowHeight;
} }
}, }
}, },
computed: { computed: {
reversedTroubleshootingData() { reversedTroubleshootingData() {
@ -1150,9 +1152,10 @@
hdTerm: "", hdTerm: "",
hdDesc: "", hdDesc: "",
hdPic: "", hdPic: "",
hdInfo: "", hdInfo: ""
}; };
this.fileList = []; this.fileList = [];
console.log('123123', this.describe)
}, },
addFL() { addFL() {
if (this.type == 'add') { if (this.type == 'add') {
@ -1531,6 +1534,7 @@
hdTermName: this.hiddenDangerList2[2].itemname, hdTermName: this.hiddenDangerList2[2].itemname,
hdDesc: this.describe.hdDesc, hdDesc: this.describe.hdDesc,
hdPic: hdPic, hdPic: hdPic,
nid: $.createUUID(),
hdInfo: this.describe.hdInfo, hdInfo: this.describe.hdInfo,
dangerProblem: this.hiddenDangerList2[0].itemname + '/' + this.hiddenDangerList2[1].itemname + dangerProblem: this.hiddenDangerList2[0].itemname + '/' + this.hiddenDangerList2[1].itemname +
'/' + this.hiddenDangerList2[2].itemname '/' + this.hiddenDangerList2[2].itemname
@ -1540,6 +1544,7 @@
} else { } else {
this.$set(this.hiddenDangerList, this.addInvestigationInfo.index, form) this.$set(this.hiddenDangerList, this.addInvestigationInfo.index, form)
} }
console.log(this.hiddenDangerList)
} }
this.showProblem = false; this.showProblem = false;
@ -1667,7 +1672,7 @@
} }
this.isEdit = false; this.isEdit = false;
this.active = 2; this.active = 3;
}, },
submit(temporary) { submit(temporary) {
// //
@ -2041,6 +2046,7 @@
} }
}, },
delYH() { delYH() {
console.log('this.hiddenDangerList', this.hiddenDangerList, this.nidYH)
this.hiddenDangerList = this.hiddenDangerList.filter(r => { this.hiddenDangerList = this.hiddenDangerList.filter(r => {
if (r.nid != this.nidYH) { if (r.nid != this.nidYH) {
return r return r

Loading…
Cancel
Save