parent
02ff34c202
commit
444c9b19ab
|
|
@ -37,7 +37,8 @@ class TmpPreview extends Component {
|
||||||
}
|
}
|
||||||
const data = JSON.parse(dataStr);
|
const data = JSON.parse(dataStr);
|
||||||
let theme = data.theme || "";
|
let theme = data.theme || "";
|
||||||
theme = theme.replaceAll("${salaryMonth}", moment().format("YYYY-MM"));
|
theme = theme.replaceAll("${salaryMonth}", moment().format("YYYY年MM月"));
|
||||||
|
theme = theme.replaceAll("${salaryYear}", moment().format("YYYY年"));
|
||||||
this.setState({
|
this.setState({
|
||||||
theme, tip: data.textContent || "",
|
theme, tip: data.textContent || "",
|
||||||
background: data.background || "",
|
background: data.background || "",
|
||||||
|
|
|
||||||
|
|
@ -253,7 +253,7 @@ export const tempNormalSetConditions = [
|
||||||
colSpan: 1,
|
colSpan: 1,
|
||||||
conditionType: "INPUT",
|
conditionType: "INPUT",
|
||||||
domkey: ["theme"],
|
domkey: ["theme"],
|
||||||
fieldcol: 10,
|
fieldcol: 8,
|
||||||
label: "工资单标题",
|
label: "工资单标题",
|
||||||
lanId: 543588,
|
lanId: 543588,
|
||||||
labelcol: 6,
|
labelcol: 6,
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@ export const payrollTempNormalSetForm = (form, condition, background, onChange =
|
||||||
<span className="sftv-tip">{getLabel(500143, "插入变量")}:</span>
|
<span className="sftv-tip">{getLabel(500143, "插入变量")}:</span>
|
||||||
<a className="sftv-item"
|
<a className="sftv-item"
|
||||||
onClick={() => insertVar("theme", "${companyName}")}>{getLabel(1976, "公司名称")}</a>
|
onClick={() => insertVar("theme", "${companyName}")}>{getLabel(1976, "公司名称")}</a>
|
||||||
|
<a className="sftv-item"
|
||||||
|
onClick={() => insertVar("theme", "${salaryYear}")}>{getLabel(111, "薪资所属年")}</a>
|
||||||
<a className="sftv-item"
|
<a className="sftv-item"
|
||||||
onClick={() => insertVar("theme", "${salaryMonth}")}>{getLabel(542604, "薪资所属月")}</a>
|
onClick={() => insertVar("theme", "${salaryMonth}")}>{getLabel(542604, "薪资所属月")}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 25%;
|
top: 25%;
|
||||||
right: -208px;
|
right: -262px;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
|
|
||||||
.sftv-item {
|
.sftv-item {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue