mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化代码
This commit is contained in:
parent
ea1d35a46e
commit
004739591b
@ -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>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user