Commit 822ff773 authored by duxinyuan's avatar duxinyuan

uodate daily report by xinyuan.du

parent a077b4ba
......@@ -7,6 +7,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<style>
.real{
color : #1a1a1a !important;
}
</style>
</head>
<body style="display: none;">
......@@ -87,7 +92,7 @@
</tr>
<tr class="shanghai">
<td>人员目标</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiao" data-alert="上海人员目标填写完整" class="shanghai-bitian-5"/></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiao" data-alert="上海人员目标填写完整" class="shanghai-bitian-5" v-model.number="arenshu_mubiao"/></td>
</tr>
<tr class="shanghai">
<td>现在人数</td>
......@@ -95,12 +100,12 @@
</tr>
<tr class="shanghai">
<td>人数差额</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chae" /></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chae" v-model.number="arenshu_chae"/></td>
</tr>
<tr class="shanghai">
<td colspan="1" style="line-height: 30px;">该城市管理改善建议</td>
<td colspan="4">
<div class="div-textarea input-limit0-shanghai" contenteditable="true" style="font-size: 20px;">点击填写</div>
<div class="div-textarea input-limit0-shanghai" contenteditable="true" style="font-size: 20px;" id="suggestionSH">点击填写</div>
</td>
</tr>
<!--杭州市-->
......@@ -168,7 +173,7 @@
</tr>
<tr class="hangzhou">
<td>人员目标</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoHZ" data-alert="杭州人员汇报填写完整" class="hangzhou-bitian-5"/></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoHZ" data-alert="杭州人员汇报填写完整" class="hangzhou-bitian-5" v-model.number="arenshu_mubiaoHZ"/></td>
</tr>
<tr class="hangzhou">
<td>现在人数</td>
......@@ -176,12 +181,12 @@
</tr>
<tr class="hangzhou">
<td>人数差额</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeHZ" /></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeHZ" v-model.number="arenshu_chaeHZ"/></td>
</tr>
<tr class="hangzhou">
<td colspan="1" style="line-height: 30px;">该城市管理改善建议</td>
<td colspan="4">
<div class="div-textarea input-limit0-hangzhou" contenteditable="true" style="font-size: 20px;">点击填写</div>
<div class="div-textarea input-limit0-hangzhou" contenteditable="true" style="font-size: 20px;" id="suggestionHZ">点击填写</div>
</td>
</tr>
<!--深圳市-->
......@@ -249,7 +254,7 @@
</tr>
<tr class="shenzhen">
<td>人员目标</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoSZ" data-alert="深圳人员汇报填写完整" class="shenzhen-bitian-5"/></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoSZ" data-alert="深圳人员汇报填写完整" class="shenzhen-bitian-5" v-model.number="arenshu_mubiaoSZ"/></td>
</tr>
<tr class="shenzhen">
<td>现在人数</td>
......@@ -257,12 +262,12 @@
</tr>
<tr class="shenzhen">
<td>人数差额</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeSZ" /></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeSZ" v-model.number="arenshu_chaeSZ"/></td>
</tr>
<tr class="shenzhen">
<td colspan="1" style="line-height: 30px;">该城市管理改善建议</td>
<td colspan="4">
<div class="div-textarea input-limit0-shenzhen" contenteditable="true" style="font-size: 20px;">点击填写</div>
<div class="div-textarea input-limit0-shenzhen" contenteditable="true" style="font-size: 20px;" id="suggestionSZ">点击填写</div>
</td>
</tr>
<!--广州市-->
......@@ -330,7 +335,7 @@
</tr>
<tr class="guangzhou">
<td>人员目标</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoGZ" data-alert="广州人员汇报填写完整" class="guangzhou-bitian-5"/></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoGZ" data-alert="广州人员汇报填写完整" class="guangzhou-bitian-5" v-model.number="arenshu_mubiaoGZ"/></td>
</tr>
<tr class="guangzhou">
<td>现在人数</td>
......@@ -338,12 +343,12 @@
</tr>
<tr class="guangzhou">
<td>人数差额</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeGZ" /></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeGZ" v-model.number="arenshu_chaeGZ"/></td>
</tr>
<tr class="guangzhou">
<td colspan="1" style="line-height: 30px;">该城市管理改善建议</td>
<td colspan="4">
<div class="div-textarea input-limit0-guangzhou" contenteditable="true" style="font-size: 20px;">点击填写</div>
<div placehoder="点击填写" class="div-textarea input-limit0-guangzhou" contenteditable="true" style="font-size: 20px;" id="suggestionGZ">点击填写</div>
</td>
</tr>
<!--北京市-->
......@@ -411,7 +416,7 @@
</tr>
<tr class="beijing">
<td>人员目标</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoBJ" data-alert="北京人员目标填写完整" class="beijing-bitian-5"/></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_mubiaoBJ" data-alert="北京人员目标填写完整" class="beijing-bitian-5" v-model.number="arenshu_mubiaoBJ"/></td>
</tr>
<tr class="beijing">
<td>现在人数</td>
......@@ -419,12 +424,12 @@
</tr>
<tr class="beijing">
<td>人数差额</td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeBJ" /></td>
<td colspan="4"><input type="number" placeholder="填写" id="renshu_chaeBJ" v-model.number="arenshu_chaeBJ" /></td>
</tr>
<tr class="beijing">
<td colspan="1" style="line-height: 30px;">该城市管理改善建议</td>
<td colspan="4">
<div class="div-textarea input-limit0-beijing" contenteditable="true" style="font-size: 20px;">点击填写</div>
<div class="div-textarea input-limit0-beijing" contenteditable="true" style="font-size: 20px;" id="suggestionBJ">点击填写</div>
</td>
</tr>
</tbody>
......@@ -477,35 +482,35 @@
</tr>
<tr class="">
<td>目标管理</td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-1"/></td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-1" v-model.number="scall1"/></td>
<td>
<div class="div-textarea input-limit-8" contenteditable="true">点击填写</div>
</td>
</tr>
<tr class="">
<td>心态管理</td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-2"/></td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-2" v-model.number="scall2"/></td>
<td>
<div class="div-textarea input-limit-9" contenteditable="true">点击填写</div>
</td>
</tr>
<tr class="">
<td>时间管理</td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-3"/></td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-3" v-model.number="scall3"/></td>
<td>
<div class="div-textarea input-limit-10" contenteditable="true">点击填写</div>
</td>
</tr>
<tr class="">
<td>学习管理</td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-4"/></td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-4" v-model.number="scall4"/></td>
<td>
<div class="div-textarea input-limit-11" contenteditable="true">点击填写</div>
</td>
</tr>
<tr class="">
<td>行动管理</td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-5"/></td>
<td><input type="number" placeholder="填写" data-alert="分数须填写完整" class="input-bitian-5" v-model.number="scall5"/></td>
<td>
<div class="div-textarea input-limit-12" contenteditable="true">点击填写</div>
</td>
......
......@@ -75,7 +75,26 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
office_yeji_GZ:'',
shop_yeji_BJ:'',
office_yeji_BJ:'',
arenshu_mubiaoGZ : 23,
arenshu_mubiao : '' ,
arenshu_mubiaoHZ : '' ,
arenshu_mubiaoSZ : '' ,
arenshu_mubiaoBJ : '' ,
arenshu_chae : '' ,
arenshu_chaeHZ : '' ,
arenshu_chaeSZ : '' ,
arenshu_chaeGZ : '' ,
arenshu_chaeBJ : '' ,
asuggestionSH : '' ,
asuggestionHZ : '' ,
asuggestionSZ : '' ,
asuggestionGZ : '' ,
asuggestionBJ : '' ,
scall1 : '' ,
scall2 : '' ,
scall3 : '' ,
scall4 : '' ,
scall5 : '' ,
},
components: {
......@@ -92,8 +111,138 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
_this.getAgentId();
// _this.loadMain();
}
_this.getStorage();
//2分钟存储一次缓存
setInterval(function(){
localStorage.setItem('daily_mdzjZbData', encodeURIComponent(JSON.stringify(data)));
}, 120000);
},
methods: {
saveStorage(){
let that = this ;
console.log("china")
let data = {
yeji_yue_mubiao : that.yeji_yue_mubiao,
yeji_yue_wancheng : that.yeji_yue_wancheng ,
shishou_yue_mubiao : that.shishou_yue_mubiao ,
shishou_yue_wancheng : that.shishou_yue_wancheng ,
chengjiao_yue_mubiao : that.chengjiao_yue_mubiao,
chengjiao_yue_wancheng : that.chengjiao_yue_wancheng ,
yeji_yue_mubiaoHZ : that.yeji_yue_mubiaoHZ ,
yeji_yue_wanchengHZ : that.yeji_yue_wanchengHZ ,
shishou_yue_mubiaoHZ: that.shishou_yue_mubiaoHZ,
shishou_yue_wanchengHZ: that.shishou_yue_wanchengHZ,
chengjiao_yue_mubiaoHZ: that.chengjiao_yue_mubiaoHZ,
chengjiao_yue_wanchengHZ: that.chengjiao_yue_wanchengHZ,
yeji_yue_mubiaoSZ: that.yeji_yue_mubiaoSZ,
yeji_yue_wanchengSZ: that.yeji_yue_wanchengSZ,
shishou_yue_mubiaoSZ: that.shishou_yue_mubiaoSZ,
shishou_yue_wanchengSZ: that.shishou_yue_wanchengSZ,
chengjiao_yue_mubiaoSZ: that.chengjiao_yue_mubiaoSZ,
chengjiao_yue_wanchengSZ: that.chengjiao_yue_wanchengSZ,
yeji_yue_mubiaoBJ: that.yeji_yue_mubiaoBJ,
yeji_yue_wanchengBJ: that.yeji_yue_wanchengBJ,
shishou_yue_mubiaoBJ: that.shishou_yue_mubiaoBJ,
shishou_yue_wanchengBJ: that.shishou_yue_wanchengBJ,
chengjiao_yue_mubiaoBJ: that.chengjiao_yue_mubiaoBJ,
chengjiao_yue_wanchengBJ: that.chengjiao_yue_wanchengBJ,
yeji_yue_mubiaoGZ: that.yeji_yue_mubiaoGZ,
yeji_yue_wanchengGZ:that.yeji_yue_wanchengGZ,
shishou_yue_mubiaoGZ: that.shishou_yue_mubiaoGZ,
shishou_yue_wanchengGZ: that.shishou_yue_wanchengGZ,
chengjiao_yue_mubiaoGZ: that.chengjiao_yue_mubiaoGZ,
chengjiao_yue_wanchengGZ: that.chengjiao_yue_wanchengGZ,
peopleNum : that.peopleNum ,
peopleNumHZ: that.peopleNumHZ,
peopleNumSZ: that.peopleNumSZ,
peopleNumGZ: that.peopleNumGZ,
peopleNumBJ: that.peopleNumBJ,
arenshu_mubiao: that.arenshu_mubiao,
arenshu_mubiaoHZ: that.arenshu_mubiaoHZ,
arenshu_mubiaoSZ: that.arenshu_mubiaoSZ,
arenshu_mubiaoGZ: that.arenshu_mubiaoGZ,
arenshu_mubiaoBJ: that.arenshu_mubiaoBJ,
arenshu_chae: that.arenshu_chae,
arenshu_chaeHZ: that.arenshu_chaeHZ,
arenshu_chaeSZ: that.arenshu_chaeSZ,
arenshu_chaeGZ: that.arenshu_chaeGZ,
arenshu_chaeBJ: that.arenshu_chaeBJ,
// asuggestionSH: that.asuggestionSH,
// asuggestionHZ: that.asuggestionHZ,
// asuggestionSZ: that.asuggestionSZ,
// asuggestionGZ: that.asuggestionGZ,
// asuggestionBJ :that.asuggestionBJ,
scall1: that.scall1,
scall2: that.scall2,
scall3: that.scall3,
scall4: that.scall4,
scall5: that.scall5,
};
console.log(data);
localStorage.setItem('daily_mdzjZbData', encodeURIComponent(JSON.stringify(data)));
},
getStorage(){
let storageData = localStorage.getItem('daily_mdzjZbData')== null ? '' : JSON.parse(decodeURIComponent(localStorage.getItem('daily_mdzjZbData'))); //用户输入的存储;
console.log(storageData)
if ( typeof(storageData) == 'object') {
this.yeji_yue_mubiao = storageData.yeji_yue_mubiao;
this.yeji_yue_wancheng = storageData.yeji_yue_wancheng ;
this.shishou_yue_mubiao = storageData.shishou_yue_mubiao ;
this.shishou_yue_wancheng = storageData.shishou_yue_wancheng ;
this.chengjiao_yue_mubiao = storageData.chengjiao_yue_mubiao;
this.chengjiao_yue_wancheng = storageData.chengjiao_yue_wancheng ;
this.yeji_yue_mubiaoHZ = storageData.yeji_yue_mubiaoHZ ;
this.yeji_yue_wanchengHZ = storageData.yeji_yue_wanchengHZ ;
this.shishou_yue_mubiaoHZ=storageData.shishou_yue_mubiaoHZ;
this.shishou_yue_wanchengHZ= storageData.shishou_yue_wanchengHZ;
this.chengjiao_yue_mubiaoHZ= storageData.chengjiao_yue_mubiaoHZ;
this.chengjiao_yue_wanchengHZ= storageData.chengjiao_yue_wanchengHZ;
this.yeji_yue_mubiaoSZ= storageData.yeji_yue_mubiaoSZ;
this.yeji_yue_wanchengSZ= storageData.yeji_yue_wanchengSZ;
this.shishou_yue_mubiaoSZ= storageData.shishou_yue_mubiaoSZ;
this.shishou_yue_wanchengSZ= storageData.shishou_yue_wanchengSZ;
this.chengjiao_yue_mubiaoSZ= storageData.chengjiao_yue_mubiaoSZ;
this.chengjiao_yue_wanchengSZ= storageData.chengjiao_yue_wanchengSZ;
this.yeji_yue_mubiaoBJ= storageData.yeji_yue_mubiaoBJ;
this.yeji_yue_wanchengBJ= storageData.yeji_yue_wanchengBJ;
this.shishou_yue_mubiaoBJ= storageData.shishou_yue_mubiaoBJ;
this.shishou_yue_wanchengBJ= storageData.shishou_yue_wanchengBJ;
this.chengjiao_yue_mubiaoBJ= storageData.chengjiao_yue_mubiaoBJ;
this.chengjiao_yue_wanchengBJ= storageData.chengjiao_yue_wanchengBJ;
this.yeji_yue_mubiaoGZ= storageData.yeji_yue_mubiaoGZ;
this.yeji_yue_wanchengGZ=storageData.yeji_yue_wanchengGZ;
this.shishou_yue_mubiaoGZ= storageData.shishou_yue_mubiaoGZ;
this.shishou_yue_wanchengGZ= storageData.shishou_yue_wanchengGZ;
this.chengjiao_yue_mubiaoGZ=storageData.chengjiao_yue_mubiaoGZ;
this.chengjiao_yue_wanchengGZ= storageData.chengjiao_yue_wanchengGZ;
this.peopleNum = storageData.peopleNum ;
this.peopleNumHZ= storageData.peopleNumHZ;
this.peopleNumSZ= storageData.peopleNumSZ;
this.peopleNumGZ= storageData.peopleNumGZ;
this.peopleNumBJ= storageData.peopleNumBJ;
this.arenshu_mubiao= storageData.arenshu_mubiao;
this.arenshu_mubiaoHZ= storageData.arenshu_mubiaoHZ;
this.arenshu_mubiaoSZ= storageData.arenshu_mubiaoSZ;
this.arenshu_mubiaoGZ= storageData.arenshu_mubiaoGZ;
this.arenshu_mubiaoBJ= storageData.arenshu_mubiaoBJ;
this.arenshu_chae= storageData.arenshu_chae;
this.arenshu_chaeHZ= storageData.arenshu_chaeHZ;
this.arenshu_chaeSZ= storageData.arenshu_chaeSZ;
this.arenshu_chaeGZ= storageData.arenshu_chaeGZ;
this.arenshu_chaeBJ= storageData.arenshu_chaeBJ;
// this.asuggestionSH= storageData.asuggestionSH;
// this.asuggestionHZ= storageData.asuggestionHZ;
// this.asuggestionSZ= storageData.asuggestionSZ;
//// this.asuggestionGZ= storageData.asuggestionGZ;
// this.asuggestionBJ= storageData.asuggestionBJ;
this.scall1 = storageData.scall1;
this.scall2 = storageData.scall2;
this.scall3 = storageData.scall3;
this.scall4 = storageData.scall4;
this.scall5 = storageData.scall5;
}
},
pageBack: function() {
//返回键处理
if(_appToken !== null) {
......@@ -980,6 +1129,7 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
_this.canClickFlag = true; //可以再次点提交
if(typeof _data === 'object') {
if(_data['code'] == '200') {
_this.saveStorage();
console.log(_data.data);
layer.open({
content: '截图成功',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment