From 7f1956cafa4bbc08e67713e7bfeb1748b9e588b0 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期二, 21 二月 2023 17:09:01 +0800
Subject: [PATCH] 2023/2/21 肖辉 修改消息删除错误,添加发布系统
---
src/views/operate/writManager/components/inquest_record/edit.vue | 32 ++++++++++++++++++++++++++------
1 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/src/views/operate/writManager/components/inquest_record/edit.vue b/src/views/operate/writManager/components/inquest_record/edit.vue
index 92e164f..9ba26c4 100644
--- a/src/views/operate/writManager/components/inquest_record/edit.vue
+++ b/src/views/operate/writManager/components/inquest_record/edit.vue
@@ -260,9 +260,10 @@
});
},
handlePrint(e) {},
- judgeLength(word, length) {
- for (let index = 0; word.length < length; index++) {
- word += " ";
+ judgeLength(word, length, char) {
+ let wordLength = word.length;
+ for (let index = 0; wordLength + index < length; index++) {
+ word += char ? " " : " ";
}
return word;
},
@@ -283,8 +284,27 @@
linebreaks: true,
});
var data = that.form;
- data.jc_address = that.judgeLength(data.jc_address, 33);
- debugger;
+ data.jc_address = that.judgeLength(data.jc_address, 20, true);
+ data.jc_user1 = that.judgeLength(data.jc_user1, 9, true);
+ data.jc_user2 = that.judgeLength(data.jc_user2, 9, true);
+ data.jc_card1 = that.judgeLength(data.jc_card1, 13, false);
+ data.jc_card2 = that.judgeLength(data.jc_card2, 12, false);
+ data.recorder = that.judgeLength(data.recorder, 9, true);
+ data.weather = that.judgeLength(data.weather, 7, true);
+ data.bjc_name = that.judgeLength(data.bjc_name, 16, true);
+ data.bjc_code = that.judgeLength(data.bjc_code, 36, false);
+ data.bjc_address = that.judgeLength(data.bjc_address, 11, true);
+ data.bjc_phone = that.judgeLength(data.bjc_phone, 12, false);
+ data.current_person = that.judgeLength(data.current_person, 12, true);
+ data.position = that.judgeLength(data.position, 9, true);
+ data.current_person_phone = that.judgeLength(
+ data.current_person_phone,
+ 24,
+ false
+ );
+ data.relation = that.judgeLength(data.relation, 6, true);
+ data.eyewitness = that.judgeLength(data.eyewitness, 25, true);
+
doc.setData(data);
/*鍚戞枃妗d腑鍐欏叆鏁版嵁*/
doc.render();
@@ -307,7 +327,7 @@
<style scoped>
.content {
- width: 90%;
+ width: 805px;
margin: auto;
line-height: 2 !important;
}
--
Gitblit v1.8.0