修改bug
This commit is contained in:
parent
d7e758fb8d
commit
62bf840e67
|
|
@ -138,6 +138,8 @@ const formData = reactive<Record<string, any>>({
|
||||||
netUrl: '',
|
netUrl: '',
|
||||||
accountNo: '',
|
accountNo: '',
|
||||||
passwordText: '',
|
passwordText: '',
|
||||||
|
contextPath: '',
|
||||||
|
url: '',
|
||||||
});
|
});
|
||||||
const { createMessage } = useMessage();
|
const { createMessage } = useMessage();
|
||||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||||
|
|
@ -178,7 +180,9 @@ function open(record) {
|
||||||
tmpData[key] = record[key]
|
tmpData[key] = record[key]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
if(!tmpData.netUrl){
|
||||||
|
tmpData.netUrl = tmpData.url+tmpData.contextPath;
|
||||||
|
}
|
||||||
//赋值
|
//赋值
|
||||||
Object.assign(formData, tmpData);
|
Object.assign(formData, tmpData);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,14 @@
|
||||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
|
||||||
name="WorkOrderForm">
|
name="WorkOrderForm">
|
||||||
<a-row class="card-class">
|
<a-row class="card-class">
|
||||||
<a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;">
|
<a-col :span="24" style="border-bottom: 2px solid #f7f7f7; margin-bottom: 14px;display: flex;justify-content: space-between;">
|
||||||
<SectionDivider :title="'工单信息'" />
|
<div>
|
||||||
|
<SectionDivider :title="'工单信息'" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="margin: 10px 30px 0 0;">
|
||||||
|
<span>工单状态:{{formData.status_dictText}}</span>
|
||||||
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="机构名称" v-bind="validateInfos.orgName" id="WorkOrderForm-orgName" name="orgName">
|
<a-form-item label="机构名称" v-bind="validateInfos.orgName" id="WorkOrderForm-orgName" name="orgName">
|
||||||
|
|
@ -67,11 +73,11 @@
|
||||||
<!-- {{ formData.replyTime ? formData.replyTime : '暂未处理' }} -->
|
<!-- {{ formData.replyTime ? formData.replyTime : '暂未处理' }} -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<!-- <a-col :span="12">
|
||||||
<a-form-item label="工单状态" v-bind="validateInfos.status" id="WorkOrderForm-status" name="status">
|
<a-form-item label="工单状态" v-bind="validateInfos.status" id="WorkOrderForm-status" name="status">
|
||||||
<a-input v-model:value="formData.status_dictText" disabled allow-clear></a-input>
|
<a-input v-model:value="formData.status_dictText" disabled allow-clear></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col> -->
|
||||||
<a-col :span="12" v-show="formData.netUrl">
|
<a-col :span="12" v-show="formData.netUrl">
|
||||||
<a-form-item label="访问地址" v-bind="validateInfos.netUrl" id="WorkOrderForm-netUrl"
|
<a-form-item label="访问地址" v-bind="validateInfos.netUrl" id="WorkOrderForm-netUrl"
|
||||||
name="netUrl">
|
name="netUrl">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue