1、app端无法显示气体分析

2、app打回后无法重新提交
pet
liujun 2024-11-28 17:37:49 +08:00
parent edddf9fe6c
commit cbe2ac7d3a
3 changed files with 10 additions and 11 deletions

View File

@ -51,7 +51,7 @@
<u-form-item label="作业内容" prop="JOB_CONTENT" borderBottom required>
<u-input v-model="form.JOB_CONTENT" border="none" placeholder="请输入作业内容" />
</u-form-item>
<u-form-item label="动火操作人" prop="USER_NAME" borderBottom required labelPosition="top" labelWidth="auto">
<u-form-item v-if="false" label="动火操作人" prop="USER_NAME" borderBottom required labelPosition="top" labelWidth="auto">
<u-button type="primary" size="mini" text="添加"
:customStyle="{ position: 'absolute', top: '-46upx', right: '20upx', width: '90upx' }"
@click="otherUserNameSelectShow = true" />
@ -266,7 +266,7 @@ export default {
eventChannel.emit("data", {
form: this.form,
formItems: this.formItems,
EW_RU_TASK_ID: this.taskId
taskId: this.taskId
});
},
});

View File

@ -64,21 +64,20 @@ export default {
mounted() {
const eventChannel = this.getOpenerEventChannel();
eventChannel.on('data', (data) => {
console.log(data)
this.form = data.form;
this.formItems = data.formItems;
this.taskId = data.taskId;
this.hotWorkOperatorList = uni.$u.deepClone(data.form.hotWorkOperatorList);
if (this.hotWorkOperatorList.length === 0) this.fnAddHotWorkOperatorList();
else {
this.hotWorkOperatorList = JSON.parse(JSON.stringify(data.form.hotWorkOperatorList));
if (this.hotWorkOperatorList.length === 0) {
this.fnAddHotWorkOperatorList();
} else {
for (let i = 0; i < this.hotWorkOperatorList.length; i++) {
for (let i = 0; i < this.hotWorkOperatorList.length; i++) {
fnGetUserList(this.hotWorkOperatorList.value[i], i);
this.fnGetUserList(this.hotWorkOperatorList[i], i);
}
}
}
})
},
methods: {
fnAddHotWorkOperatorList() {
@ -161,7 +160,6 @@ export default {
this.picker.show = false;
}
},
}

View File

@ -277,8 +277,9 @@ export const getData = async (taskId) => {
for (let i = 0; i < item.list.length; i++) {
form[item.ITEM_NAME].push({});
for (let j = 0; j < item.list[i].list.length; j++) {
form[item.ITEM_NAME][i][item.list[i].list[j].ITEM_NAME] =
item.list[i].list[j].ITEM_VALUE;
form[item.ITEM_NAME][i][item.list[i].list[j].ITEM_NAME] = item.list[i].list[j].ITEM_VALUE;
form[item.ITEM_NAME][i][item.list[i].list[j].FK_NAME] = item.list[i].list[j].FK_VALUE;
form[item.ITEM_NAME][i]['TYPE'] = item.list[i].list[j].TYPE;
}
}
}