优化代码

This commit is contained in:
java110 2021-05-18 13:48:58 +08:00
parent ea1d35a46e
commit 004739591b
2 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,9 @@
<div>
<div>
<div>
<div class=" text-center">
<!-- <div class=" text-center">
<h1>合同打印</h1>
</div>
</div> -->
<div class="row margin-top">
<div class="col-sm-12">
<div v-html="printContractInfo.context"></div>

View File

@ -46,8 +46,12 @@
function (json, res) {
let _info = JSON.parse(json);
let _data = _info.data;
//拿到模板内容
$that.templatecontent = _data.contractTypeTemplate[0].context;
// 合同信息
$that.contractdata = _data.contract[0];
//合同属性
$that.attrs = _data.contract[0].attrs;
$that.contractTypeSpec = _data.contractTypeSpec;
$that.contractTypeSpec.forEach(function (e) {
@ -61,7 +65,7 @@
});
});
$that.baseRepalce = _data.baseRepalce;
if ($that.baseRepalce != undefined) {
if ($that.baseRepalce) {
$that.baseRepalce.forEach(function (e) {
let rname = e.name;
let rkey = e.key;