project.js 5.2 KB

1
  1. require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesD/project"],{"247c":function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("2eee")),o=i(n("9523")),c=i(n("c973")),u=n("2e9d");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var s={data:function(){return{id:"",delec:!1,title:"您确定要删除该项目经历吗?",height:"",dimissionShow:!1,entryShow:!1,minDate:"",minDate1:"",type:1,project_experience:{name:"",start_time:"",end_time:"",description:"",role:"",company_name:""}}},onLoad:function(t){this.id=t.id,this.type=t.type,1==t.type?e.setNavigationBarTitle({title:"添加项目经历"}):(this.resumeDetail(),e.setNavigationBarTitle({title:"编辑项目经历"})),this.minDate=Number(new Date("2000-01-01")),this.minDate1=Number(new Date("2000-01-01"))},methods:{dele:function(){this.delec=!0},confirm:function(){var t=this;(0,u.destroy)({source_type:"project_experience",source_id:this.id}).then((function(n){t.$u.toast("删除成功"),setTimeout((function(){e.navigateBack()}),800)}))},resumeDetail:function(){var e=this;(0,u.resumeDetail)().then((function(t){t.data.project_experience.forEach((function(t){t.id==e.id&&(e.project_experience.company_name=t.company_name,e.project_experience.description=t.description,e.project_experience.end_time=t.end_time,e.project_experience.name=t.name,e.project_experience.role=t.role,e.project_experience.start_time=t.start_time)}))}))},entryConfirm:function(t){var n=this;return(0,c.default)(r.default.mark((function i(){var o,c;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return o=e.$u.timeFormat,console.log(t.value),i.next=4,o(t.value,"yyyy-mm");case 4:c=i.sent,n.project_experience.start_time=c,n.entryShow=!1;case 7:case"end":return i.stop()}}),i)})))()},dimissionConfirm:function(t){var n=this;return(0,c.default)(r.default.mark((function i(){var o,c;return r.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return o=e.$u.timeFormat,i.next=3,o(t.value,"yyyy-mm");case 3:c=i.sent,n.project_experience.end_time=c,n.dimissionShow=!1;case 6:case"end":return i.stop()}}),i)})))()},return1:function(){e.navigateBack()},todcp:function(){var t=this;e.navigateTo({url:"../pagesA/description?description="+this.project_experience.description,events:{todcp:function(e){t.project_experience.description=e}}})},next:function(){this.project_experience.name?this.project_experience.start_time?this.project_experience.end_time?this.project_experience.description?this.project_experience.role?this.project_experience.company_name?(0,u.update)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({source_type:"project_experience",source_id:this.id},this.project_experience)).then((function(t){e.navigateBack()})):this.$u.toast("请填写公司名称"):this.$u.toast("请填写项目角色"):this.$u.toast("请填写项目描述"):this.$u.toast("请填写项目项目结束时间"):this.$u.toast("请填写项目开始时间"):this.$u.toast("请填写项目名称")}}};t.default=s}).call(this,n("543d")["default"])},"30c2":function(e,t,n){"use strict";var i=n("d7c9"),r=n.n(i);r.a},"413d":function(e,t,n){"use strict";(function(e,t){var i=n("4ea4");n("9f7d");i(n("66fd"));var r=i(n("60ed"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"60ed":function(e,t,n){"use strict";n.r(t);var i=n("9109"),r=n("6982");for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("30c2");var c=n("f0c5"),u=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=u.exports},6982:function(e,t,n){"use strict";n.r(t);var i=n("247c"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=r.a},9109:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={"u-Input":function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u--input/u--input")]).then(n.bind(null,"2603"))},uDatetimePicker:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-datetime-picker/u-datetime-picker")]).then(n.bind(null,"fad6"))},uModal:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(n.bind(null,"3d62"))}},r=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.entryShow=!0},e.e1=function(t){e.dimissionShow=!0},e.e2=function(t){e.entryShow=!1},e.e3=function(t){e.dimissionShow=!1},e.e4=function(t){e.delec=!1})},o=[]},d7c9:function(e,t,n){}},[["413d","common/runtime","common/vendor"]]]);