text: (function(t){function e(e){for(var i,l,r=e[0],s=e[1],c=e[2],p=0,d=[];p<r.length;p++)l=r[p],Object.prototype.hasOwnProperty.call(n,l)&&n[l]&&d.push(n[l][0]),n[l]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(t[i]=s[i]);u&&u(e);while(d.length)d.shift()();return o.push.apply(o,c||[]),a()}function a(){for(var t,e=0;e<o.length;e++){for(var a=o[e],i=!0,r=1;r<a.length;r++){var s=a[r];0!==n[s]&&(i=!1)}i&&(o.splice(e--,1),t=l(l.s=a[0]))}return t}var i={},n={app:0},o=[];function l(e){if(i[e])return i[e].exports;var a=i[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,l),a.l=!0,a.exports}l.m=t,l.c=i,l.d=function(t,e,a){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},l.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(l.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(a,i,function(e){return t[e]}.bind(null,i));return a},l.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],s=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var u=s;o.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"56d7":function(t,e,a){"use strict";a.r(e);a("e260"),a("e6cf"),a("cca6"),a("a79d");var i=a("a026"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},o=[],l=a("2877"),r={},s=Object(l["a"])(r,n,o,!1,null,null,null),c=s.exports,u=a("8c4f"),p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home"},[a("div",{staticClass:"main"},[t._m(0),t._l(t.tableData,(function(e,i){return a("div",{key:i,staticClass:"content"},[a("div",{staticClass:"title_col title_col1"},[a("input",{staticClass:"title_col_input",attrs:{type:"text"},domProps:{value:i+1}})]),a("div",{staticClass:"title_col title_col1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"val.title"}],staticClass:"title_col_input",attrs:{type:"text"},domProps:{value:e.title},on:{input:function(a){a.target.composing||t.$set(e,"title",a.target.value)}}})]),a("div",{staticClass:"title_col title_col1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.charge,expression:"val.charge"}],staticClass:"title_col_input",attrs:{type:"text"},domProps:{value:e.charge},on:{input:function(a){a.target.composing||t.$set(e,"charge",a.target.value)}}})]),a("div",{staticClass:"title_col title_col1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.startTime,expression:"val.startTime"}],staticClass:"title_col_input",attrs:{type:"text",placeholder:"例2020-01-12"},domProps:{value:e.startTime},on:{input:function(a){a.target.composing||t.$set(e,"startTime",a.target.value)}}})]),a("div",{staticClass:"title_col title_col1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.endTime,expression:"val.endTime"}],staticClass:"title_col_input",attrs:{type:"text",placeholder:"例2020-01-12"},domProps:{value:e.endTime},on:{input:function(a){a.target.composing||t.$set(e,"endTime",a.target.value)}}})]),a("div",{staticClass:"title_col title_col1"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.time,expression:"val.time"}],staticClass:"title_col_input",attrs:{type:"text",placeholder:"例0.5"},domProps:{value:e.time},on:{input:[function(a){a.target.composing||t.$set(e,"time",a.target.value)},function(e){return t.inputTime(i)}]}})])])})),a("div",{staticClass:"add",on:{click:t.addInput}},[t._v("增加")]),a("div",{staticClass:"countWrap"},[a("div",{staticClass:"countWrap_time"},[t._v("时间总计:"+t._s(t.countTime))]),a("button",{staticClass:"countWrap_dowload",on:{click:t.downTxt}},[t._v("生成txt文件")])])],2)])},d=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[a("span",{staticClass:"title_col title_col1"},[t._v("序号")]),a("span",{staticClass:"title_col title_col2"},[t._v("标题")]),a("span",{staticClass:"title_col title_col3"},[t._v("负责人")]),a("span",{staticClass:"title_col title_col3"},[t._v("开始时间")]),a("span",{staticClass:"title_col title_col3"},[t._v("完成时间")]),a("span",{staticClass:"title_col title_col3"},[t._v("用时")])])}],m=(a("4160"),a("d3b7"),a("ac1f"),a("25f0"),a("5319"),a("159b"),{name:"home",data:function(){return{tableData:[{title:"",charge:"",startTime:"",endTime:"",time:""}],countTime:0}},props:{},mounted:function(){},watch:{timeChange:function(t,e){this.countTime=t}},methods:{addInput:function(){var t=this.tableData;t.push({title:"",charge:"",startTime:"",endTime:"",time:""})},inputTime:function(t){var e=this;setTimeout((function(){e.tableData[t].time=e.tableData[t].time.replace(/[^\d & ^\.]/g,"")}),10)},downTxt:function(){var t="",e=this.tableData;e.forEach((function(e,a){var i=e.title.toString(),n=e.charge.toString(),o=e.startTime.toString(),l=e.endTime.toString(),r=e.time.toString();(i||n||o||l||r)&&(t+=a.toString()+"  "+i+"  "+n+"  "+o+"  "+l+"  "+r+"\r\n")})),t&&(t+="时间总计"+this.countTime);var a=document.createElement("a");a.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t)),a.setAttribute("download","worktxt.txt"),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}},computed:{timeChange:function(){var t=this.tableData,e=0;return t.forEach((function(t){e+=t.time-0})),e}}}),v=m,f=(a("77b2"),Object(l["a"])(v,p,d,!1,null,"f1b28a56",null)),_=f.exports;i["default"].use(u["a"]);var h=[{path:"/",name:"home",component:_}],g=new u["a"]({routes:h}),b=g,C=a("2f62");i["default"].use(C["a"]);var y=new C["a"].Store({state:{},mutations:{},actions:{},modules:{}}),T=a("5c96"),w=a.n(T);a("0fae");i["default"].use(w.a),i["default"].config.productionTip=!1,new i["default"]({router:b,store:y,render:function(t){return t(c)}}).$mount("#app")},"77b2":function(t,e,a){"use strict";var i=a("9cb2"),n=a.n(i);n.a},"9cb2":function(t,e,a){}});
  //# sourceMappingURL=app.f5a94aec.js.map