diff --git a/pc4mobx/hrmSalary/pages/payroll/components/index.less b/pc4mobx/hrmSalary/pages/payroll/components/index.less index ee7666e9..51e742e6 100644 --- a/pc4mobx/hrmSalary/pages/payroll/components/index.less +++ b/pc4mobx/hrmSalary/pages/payroll/components/index.less @@ -47,12 +47,6 @@ } } -.waterMarkSetWrapper { - & > .rodal { - right: 25% !important; - } -} - .waterMarkSetWrapper, .wmContentWrapper { .rodal { .rodal-dialog { diff --git a/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js b/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js index 48c6658d..baaafa6c 100644 --- a/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js +++ b/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js @@ -94,8 +94,8 @@ class WaterMarkSetModal extends Component { {getLabel(111, "水印设置")}} - direction="right" top={20} width={800} height={400} - measureT={"%"} measureX="px" measureY="px" + direction="right" top={0} width={800} height={100} + measureT="%" measureX="px" measureY="%" content={ diff --git a/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js b/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js index beea8bdd..d6fecd53 100644 --- a/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js +++ b/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js @@ -127,8 +127,8 @@ class WmContentSetModal extends Component { this.props.onClose(this.props.textSet)} title={{getLabel(111, "水印内容设置")}} - direction="right" top={-10} width={800} height={480} - measureT={"%"} measureX="px" measureY="px" + direction="right" top={0} width={800} height={100} + measureT="%" measureX="px" measureY="%" content={ { API.mySalaryBill(payload).then(res => { if (res.status) { + this.mySalaryBill = res.data; + resolve(res.data); const { salaryTemplate } = res.data; const { salaryWatermark } = salaryTemplate; if (watermark && salaryWatermark) { - const { wmSetting } = JSON.parse(salaryWatermark); + const { wmSetting, watermarkStatus } = JSON.parse(salaryWatermark); + if (!watermarkStatus) return; const { wmText, wmHeight: height, @@ -205,8 +208,6 @@ export class MySalaryStore { }); } } - this.mySalaryBill = res.data; - resolve(res.data); } else { message.error(res.errormsg || "获取失败"); reject("获取失败");