flx:普通动火新增判断不是数组的情况
This commit is contained in:
parent
c2ed55e7a5
commit
5ac6e88906
@ -664,7 +664,12 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="cardForm.level == 3" label="承包商施工经理审核人时间" prop="contractorConstructionManagerReviewerTime">
|
<el-form-item v-if="cardForm.level == 3" label="承包商施工经理审核人时间" prop="contractorConstructionManagerReviewerTime">
|
||||||
<el-date-picker v-model="cardForm.contractorConstructionManagerReviewerTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期时间">
|
<el-date-picker
|
||||||
|
v-model="cardForm.contractorConstructionManagerReviewerTime"
|
||||||
|
type="datetime"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
placeholder="选择日期时间"
|
||||||
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="cardForm.level == 3" label="EPC安全经理审核人" prop="epcSafetyManager">
|
<el-form-item v-if="cardForm.level == 3" label="EPC安全经理审核人" prop="epcSafetyManager">
|
||||||
@ -687,7 +692,12 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="cardForm.level == 3" label="监理安全工程师审核人时间" prop="supervisingSafetyEngineerReviewerTime">
|
<el-form-item v-if="cardForm.level == 3" label="监理安全工程师审核人时间" prop="supervisingSafetyEngineerReviewerTime">
|
||||||
<el-date-picker v-model="cardForm.supervisingSafetyEngineerReviewerTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期时间">
|
<el-date-picker
|
||||||
|
v-model="cardForm.supervisingSafetyEngineerReviewerTime"
|
||||||
|
type="datetime"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
placeholder="选择日期时间"
|
||||||
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="cardForm.level == 3" label="项目组施工经理批准人" prop="projectTeamConstructionManagerApprover">
|
<el-form-item v-if="cardForm.level == 3" label="项目组施工经理批准人" prop="projectTeamConstructionManagerApprover">
|
||||||
@ -1491,7 +1501,11 @@ export default {
|
|||||||
console.log(1111, newVal);
|
console.log(1111, newVal);
|
||||||
if (this.isAdd == 2 && newVal == this.oldcardForm.level) {
|
if (this.isAdd == 2 && newVal == this.oldcardForm.level) {
|
||||||
if (this.oldcardForm.level == 4) {
|
if (this.oldcardForm.level == 4) {
|
||||||
const tableList2 = JSON.parse(this.oldcardForm.specialOperatorIdentificationNumber).reduce((prev, item) => {
|
const tableList2 = (
|
||||||
|
JSON.parse(this.oldcardForm.specialOperatorIdentificationNumber) instanceof Array
|
||||||
|
? JSON.parse(this.oldcardForm.specialOperatorIdentificationNumber)
|
||||||
|
: []
|
||||||
|
).reduce((prev, item) => {
|
||||||
prev.push({
|
prev.push({
|
||||||
id: 'id-' + Math.random().toString(36).substr(2, 9),
|
id: 'id-' + Math.random().toString(36).substr(2, 9),
|
||||||
specialOperationStaff: item['field2567362300101'] instanceof Array ? item['field2567362300101'][0] : item['field2567362300101'],
|
specialOperationStaff: item['field2567362300101'] instanceof Array ? item['field2567362300101'][0] : item['field2567362300101'],
|
||||||
@ -2667,7 +2681,11 @@ export default {
|
|||||||
if (res.result) {
|
if (res.result) {
|
||||||
console.log(res.result, 1);
|
console.log(res.result, 1);
|
||||||
if (res.result.level == 4) {
|
if (res.result.level == 4) {
|
||||||
const tableList2 = JSON.parse(res.result.specialOperatorIdentificationNumber).reduce((prev, item) => {
|
const tableList2 = (
|
||||||
|
JSON.parse(res.result.specialOperatorIdentificationNumber) instanceof Array
|
||||||
|
? JSON.parse(res.result.specialOperatorIdentificationNumber)
|
||||||
|
: []
|
||||||
|
).reduce((prev, item) => {
|
||||||
prev.push({
|
prev.push({
|
||||||
id: 'id-' + Math.random().toString(36).substr(2, 9),
|
id: 'id-' + Math.random().toString(36).substr(2, 9),
|
||||||
specialOperationStaff: item['field2567362300101'] instanceof Array ? item['field2567362300101'][0] : item['field2567362300101'],
|
specialOperationStaff: item['field2567362300101'] instanceof Array ? item['field2567362300101'][0] : item['field2567362300101'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user