<apex:page showHeader="false" sidebar="false" id="toAddMC" title="添加小合同">
|
<apex:includeLightning />
|
<div style="width:100%;height:100%;" id="toAddMCContainer" />
|
<style>
|
body .slds-slot .slds-col .slds-combobox__input .slds-form-element__control button{
|
background:none !important;
|
}
|
.slds-button.slds-button_brand {
|
margin-top: 3px;
|
}
|
</style>
|
<script>
|
$Lightning.use("c:lexToAddMCApp", function () {
|
$Lightning.createComponent("c:lexToAddMaintenanceContract",
|
{},
|
"toAddMCContainer",
|
function (cmp) {
|
console.log('Component created, do something cool here');
|
});
|
});
|
|
var interval = setInterval(()=>{
|
var hrefStr = window.location.href;
|
if (hrefStr.indexOf("Refresh") != -1) {
|
var arr = hrefStr.split("==");
|
window.opener.parent.location.href = "/"+arr[1];
|
window.location.hash = '';
|
}
|
},1000);
|
</script>
|
|
</apex:page>
|