Commit aa201897 by 无尘

fix: 修改自定义模板获取数据

parent e19b1e0c
.template-wrap[data-v-2bdc1da7]{width:100%;padding:0;margin:0;background-size:100% 100%}.template-wrap .el-icon-arrow-right[data-v-2bdc1da7]{display:inline-block;width:.21333rem;height:.21333rem;border-top:.02667rem solid #ccc;border-right:.02667rem solid #ccc;-webkit-transform:rotate(45deg);transform:rotate(45deg);vertical-align:middle}.template-wrap .b-t-1[data-v-2bdc1da7]{border-top:.02667rem solid #e4e7ed}.template-wrap .template-contain[data-v-2bdc1da7]{width:100%;margin:0 auto}.template-wrap .template-head[data-v-2bdc1da7]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:2.13333rem}.template-wrap .template-head .flex-1[data-v-2bdc1da7],.template-wrap .template-head[data-v-2bdc1da7]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.template-wrap .template-head .flex-1[data-v-2bdc1da7]{-webkit-flex:1;-moz-flex:1;-o-flex:1;-webkit-box-flex:1;flex:1}.template-wrap .template-head .flex-r[data-v-2bdc1da7]{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.template-wrap .template-head .template-title-span[data-v-2bdc1da7]{color:#fff;font-size:.8rem;padding-left:.48rem}.template-wrap .template-head .el-button--default.is-plain[data-v-2bdc1da7]{background:hsla(0,0%,100%,0);color:#fff}.template-wrap .template-head .el-button--default.is-plain[data-v-2bdc1da7]:hover{color:#1890ff}.template-wrap .template-body[data-v-2bdc1da7]{width:100%;position:relative;overflow:hidden}.template-wrap .template-body .template-cell-m[data-v-2bdc1da7]{width:100%;position:relative}.template-wrap .template-body .template-cell-m .view-content[data-v-2bdc1da7]{position:relative}.template-wrap .template-body .drag-wrap[data-v-2bdc1da7]{overflow-x:hidden;overflow-y:auto}.template-wrap .template-body .phone-container[data-v-2bdc1da7]{margin-top:1.06667rem}.template-wrap .template-body .phone-view[data-v-2bdc1da7]{background-size:100%;background-color:#f0eff4;width:100%;position:relative}.template-wrap .template-body .phone-show-content[data-v-2bdc1da7]{width:100%;position:relative;overflow-y:auto}.template-wrap .template-body .opend-card-item[data-v-2bdc1da7]{font-size:.37333rem;position:relative}.template-wrap .template-body .opend-card-item.sex[data-v-2bdc1da7]:after{content:"";width:100%;height:100%;z-index:2;position:absolute;top:0;right:0;bottom:0;left:0}.template-wrap .template-body .opend-card-group-title[data-v-2bdc1da7]{height:1.06667rem;line-height:1.06667rem;padding-left:.26667rem}.template-wrap .template-body .opend-card-item[data-v-2bdc1da7]{height:1.22667rem;line-height:1.22667rem;background:#fff;border-bottom:.02667rem solid #e7e7eb}.template-wrap .template-body .phone-list-item[data-v-2bdc1da7]{height:1.17333rem;line-height:1.17333rem;background:#fff;margin-bottom:.13333rem}.template-wrap .template-body .item-title[data-v-2bdc1da7]{width:2.66667rem;float:left;padding-left:.26667rem}.template-wrap .template-body .filed-item[data-v-2bdc1da7]{height:1.22667rem;width:100%;height:auto;background:#fff;position:relative;cursor:move;padding:0;margin:0;font-size:.32rem;color:#292929;box-sizing:border-box}.template-wrap .template-body .filed-item+.filed-item[data-v-2bdc1da7]{margin-top:.13333rem}.template-wrap .template-body .filed-item+.filed-item.li-block[data-v-2bdc1da7]{margin-top:.4rem}.template-wrap .template-body .filed-item .item-close[data-v-2bdc1da7]{position:absolute;top:0;right:0;width:.48rem;height:.48rem;line-height:.48rem;text-align:center;background:#1890ff;color:#fff;font-size:.37333rem;font-weight:700;cursor:pointer;display:none;z-index:2}.template-wrap .template-body .filed-item.child-filed-item:hover .child-item-close[data-v-2bdc1da7],.template-wrap .template-body .filed-item:hover .p-item-close[data-v-2bdc1da7]{display:block}.template-wrap .template-body .block[data-v-2bdc1da7]{background:#f0eff4}.template-wrap .template-body .block .block-head[data-v-2bdc1da7]{width:100%;background:#f5f5f8;padding:0;height:.93333rem}.template-wrap .template-body .block .block-head .opencard-item-title[data-v-2bdc1da7]{height:.93333rem;line-height:.93333rem}.template-wrap .template-body .block .drag-wrap[data-v-2bdc1da7]{min-height:.66667rem}.template-wrap .template-body .opencard-drag[data-v-2bdc1da7]{background:#fff;height:1.22667rem}.template-wrap .template-body .draged-item-show[data-v-2bdc1da7]{display:inline-block;vertical-align:top;width:calc(100% - 2.66667rem)}.template-wrap .template-body .opencard-item-title[data-v-2bdc1da7]{width:2.4rem;height:1.22667rem;line-height:1.22667rem;text-align:left;float:left;padding-left:.26667rem;overflow:hidden;white-space:nowrap;box-sizing:border-box}.template-wrap .template-body .opencard-item-title.title-pre-wrap[data-v-2bdc1da7]{line-height:.4rem;word-break:break-all;white-space:pre-wrap;padding-top:.24rem}.template-wrap .template-body .show-warm-text[data-v-2bdc1da7]{color:#c8c8cd;width:4.93333rem;text-align:left;display:inline-block;white-space:nowrap;height:1.22667rem;line-height:1.22667rem}.template-wrap .template-body .show-warm-text.select-flag[data-v-2bdc1da7]{width:100%;text-align:right}.template-wrap .template-body .limit-w-340[data-v-2bdc1da7] .el-input__inner{font-size:.32rem;color:#fff;background-color:hsla(0,0%,100%,.1)}.template-wrap .template-body .limit-w-340 .tip[data-v-2bdc1da7]{color:hsla(0,0%,100%,.7)}
\ No newline at end of file
.template-wrap[data-v-ce0fab2e]{width:100%;padding:0;margin:0;background-size:100% 100%}.template-wrap .el-icon-arrow-right[data-v-ce0fab2e]{display:inline-block;width:.21333rem;height:.21333rem;border-top:.02667rem solid #ccc;border-right:.02667rem solid #ccc;-webkit-transform:rotate(45deg);transform:rotate(45deg);vertical-align:middle}.template-wrap .b-t-1[data-v-ce0fab2e]{border-top:.02667rem solid #e4e7ed}.template-wrap .template-contain[data-v-ce0fab2e]{width:100%;margin:0 auto}.template-wrap .template-head[data-v-ce0fab2e]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:2.13333rem}.template-wrap .template-head .flex-1[data-v-ce0fab2e],.template-wrap .template-head[data-v-ce0fab2e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.template-wrap .template-head .flex-1[data-v-ce0fab2e]{-webkit-flex:1;-moz-flex:1;-o-flex:1;-webkit-box-flex:1;flex:1}.template-wrap .template-head .flex-r[data-v-ce0fab2e]{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.template-wrap .template-head .template-title-span[data-v-ce0fab2e]{color:#fff;font-size:.8rem;padding-left:.48rem}.template-wrap .template-head .el-button--default.is-plain[data-v-ce0fab2e]{background:hsla(0,0%,100%,0);color:#fff}.template-wrap .template-head .el-button--default.is-plain[data-v-ce0fab2e]:hover{color:#1890ff}.template-wrap .template-body[data-v-ce0fab2e]{width:100%;position:relative;overflow:hidden}.template-wrap .template-body .template-cell-m[data-v-ce0fab2e]{width:100%;position:relative}.template-wrap .template-body .template-cell-m .view-content[data-v-ce0fab2e]{position:relative}.template-wrap .template-body .drag-wrap[data-v-ce0fab2e]{overflow-x:hidden;overflow-y:auto}.template-wrap .template-body .phone-container[data-v-ce0fab2e]{margin-top:1.06667rem}.template-wrap .template-body .phone-view[data-v-ce0fab2e]{background-size:100%;background-color:#f0eff4;width:100%;position:relative}.template-wrap .template-body .phone-show-content[data-v-ce0fab2e]{width:100%;position:relative;overflow-y:auto}.template-wrap .template-body .opend-card-item[data-v-ce0fab2e]{font-size:.37333rem;position:relative}.template-wrap .template-body .opend-card-item.sex[data-v-ce0fab2e]:after{content:"";width:100%;height:100%;z-index:2;position:absolute;top:0;right:0;bottom:0;left:0}.template-wrap .template-body .opend-card-group-title[data-v-ce0fab2e]{height:1.06667rem;line-height:1.06667rem;padding-left:.26667rem}.template-wrap .template-body .opend-card-item[data-v-ce0fab2e]{height:1.22667rem;line-height:1.22667rem;background:#fff;border-bottom:.02667rem solid #e7e7eb}.template-wrap .template-body .phone-list-item[data-v-ce0fab2e]{height:1.17333rem;line-height:1.17333rem;background:#fff;margin-bottom:.13333rem}.template-wrap .template-body .item-title[data-v-ce0fab2e]{width:2.66667rem;float:left;padding-left:.26667rem}.template-wrap .template-body .filed-item[data-v-ce0fab2e]{height:1.22667rem;width:100%;height:auto;background:#fff;position:relative;cursor:move;padding:0;margin:0;font-size:.32rem;color:#292929;box-sizing:border-box}.template-wrap .template-body .filed-item+.filed-item[data-v-ce0fab2e]{margin-top:.13333rem}.template-wrap .template-body .filed-item+.filed-item.li-block[data-v-ce0fab2e]{margin-top:.4rem}.template-wrap .template-body .filed-item .item-close[data-v-ce0fab2e]{position:absolute;top:0;right:0;width:.48rem;height:.48rem;line-height:.48rem;text-align:center;background:#1890ff;color:#fff;font-size:.37333rem;font-weight:700;cursor:pointer;display:none;z-index:2}.template-wrap .template-body .filed-item.child-filed-item:hover .child-item-close[data-v-ce0fab2e],.template-wrap .template-body .filed-item:hover .p-item-close[data-v-ce0fab2e]{display:block}.template-wrap .template-body .block[data-v-ce0fab2e]{background:#f0eff4}.template-wrap .template-body .block .block-head[data-v-ce0fab2e]{width:100%;background:#f5f5f8;padding:0;height:.93333rem}.template-wrap .template-body .block .block-head .opencard-item-title[data-v-ce0fab2e]{height:.93333rem;line-height:.93333rem}.template-wrap .template-body .block .drag-wrap[data-v-ce0fab2e]{min-height:.66667rem}.template-wrap .template-body .opencard-drag[data-v-ce0fab2e]{background:#fff;height:1.22667rem}.template-wrap .template-body .draged-item-show[data-v-ce0fab2e]{display:inline-block;vertical-align:top;width:calc(100% - 2.66667rem)}.template-wrap .template-body .opencard-item-title[data-v-ce0fab2e]{width:2.4rem;height:1.22667rem;line-height:1.22667rem;text-align:left;float:left;padding-left:.26667rem;overflow:hidden;white-space:nowrap;box-sizing:border-box}.template-wrap .template-body .opencard-item-title.title-pre-wrap[data-v-ce0fab2e]{line-height:.4rem;word-break:break-all;white-space:pre-wrap;padding-top:.24rem}.template-wrap .template-body .show-warm-text[data-v-ce0fab2e]{color:#c8c8cd;width:4.93333rem;text-align:left;display:inline-block;white-space:nowrap;height:1.22667rem;line-height:1.22667rem}.template-wrap .template-body .show-warm-text.select-flag[data-v-ce0fab2e]{width:100%;text-align:right}.template-wrap .template-body .limit-w-340[data-v-ce0fab2e] .el-input__inner{font-size:.32rem;color:#fff;background-color:hsla(0,0%,100%,.1)}.template-wrap .template-body .limit-w-340 .tip[data-v-ce0fab2e]{color:hsla(0,0%,100%,.7)}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>达摩</title><link href=css/chunk-4d6bdeb9.a76affb1.css rel=prefetch><link href=css/chunk-658f921e.83848305.css rel=prefetch><link href=css/chunk-766f1a8f.683fe546.css rel=prefetch><link href=js/chunk-2d0baaed.e1958668.js rel=prefetch><link href=js/chunk-4d6bdeb9.d76b80ab.js rel=prefetch><link href=js/chunk-658f921e.3bb6ec8e.js rel=prefetch><link href=js/chunk-766f1a8f.3e7e565e.js rel=prefetch><link href=css/app.ee16f359.css rel=preload as=style><link href=js/app.e6fea98b.js rel=preload as=script><link href=js/chunk-vendors.1d4b798c.js rel=preload as=script><link href=css/app.ee16f359.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.1d4b798c.js></script><script src=js/app.e6fea98b.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>达摩</title><link href=css/chunk-3556796e.9b3a66c0.css rel=prefetch><link href=css/chunk-6f731842.9cb1b133.css rel=prefetch><link href=css/chunk-76e29689.0a229afe.css rel=prefetch><link href=js/chunk-2d0baaed.e1958668.js rel=prefetch><link href=js/chunk-3556796e.efb45c6f.js rel=prefetch><link href=js/chunk-6f731842.65668b39.js rel=prefetch><link href=js/chunk-76e29689.69732d88.js rel=prefetch><link href=css/app.ee16f359.css rel=preload as=style><link href=js/app.4bc5721e.js rel=preload as=script><link href=js/chunk-vendors.1d4b798c.js rel=preload as=script><link href=css/app.ee16f359.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.1d4b798c.js></script><script src=js/app.4bc5721e.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-658f921e"],{"168f":function(module,__webpack_exports__,__webpack_require__){"use strict";var f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("f499"),f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0__),f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("e814"),f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("55dd"),core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("cadf"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("551c"),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("097d"),core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_6__);__webpack_exports__["a"]={name:"staffRecordsTemplate",data:function(){return{bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[]}},methods:{changeRoute:function(e){this.$router.push(e)},treeData:function(e){var _=e.filter(function(_){var t=e.filter(function(e){return _.fieldCode==e.parentCode});return t.length>0&&(_.children=t),0==_.parentCode});return _.sort(function(e,_){return e.sort-_.sort}),_.forEach(function(e){e.children.sort(function(e,_){return e.sort-_.sort})}),_},handleGetInfo:function(e){var _=this,t=JSON.parse(e).result;t.forEach(function(e){e.fixed=1===f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default()(e.fixed),e.isMust=1===f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default()(e.isMust),e.fieldEdited=1===f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default()(e.fieldEdited),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[]}),_.tempaletDataList=_.treeData(t)}},mounted:function mounted(){var that=this,param={enterpriseId:that.$route.query.enterpriseId},method="getUserArchivesTempletContent",data={method:method,param:param};function appInvocationMethod(e){return{userId:"123456",name:"张琦"}}that.$bridge.callhandler("apiHandler",data,function(e){that.handleGetInfo(e)}),that.$bridge.registerhandler("jsHandler",function(data,responseCallback){var json=JSON.parse(data),method=json["method"],param=json["param"],paramStr=f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default()(param),evalMethod=method+"(paramStr)",result=eval(evalMethod);responseCallback(result)})}}},"30a0":function(e,_,t){"use strict";t.r(_);var a=function(){var e=this,_=e.$createElement,t=e._self._c||_;return t("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[t("div",{staticClass:"template-contain"},[t("div",{staticClass:"template-body"},[t("div",{staticClass:"template-cell template-cell-m"},[t("div",{staticClass:"phone-view"},[t("div",{staticClass:"phone-show-content"},[t("div",{staticClass:"drag-show-content"},[t("div",{staticClass:"view-container"},[t("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[t("div",{staticClass:"drag-wrap"},e._l(e.tempaletDataList,function(_,a){return t("li",{key:_.fieldName+a,class:["filed-item",e.currentIndex==a?"active-item":"","li-block"]},[[t("div",{staticClass:"block"},[t("div",{staticClass:"block-head"},[t("div",{class:["opencard-item-title",_.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(_.fieldName))])]),t("ul",{staticClass:"view-content"},[t("div",{class:["drag-wrap","block-wrap",_.fieldCode]},e._l(_.children,function(_,a){return t("li",{key:a,class:["filed-item","child-filed-item",e.currentChildKey==_.fieldCode&&e.currentChildIndex==a?"active-item":""]},[2==_.fieldType||3==_.fieldType||4==_.fieldType?t("div",[t("div",{class:["opencard-item-title",_.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(_.fieldDescription)+" "),t("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),5==_.fieldType?t("div",[t("div",[t("div",{class:["opencard-item-title",_.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldOperations.startName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(_.fieldOperations.startDescription)),t("i",{staticClass:"el-icon-arrow-right"})])])]),t("div",{staticClass:"b-t-1"},[t("div",{class:["opencard-item-title",_.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldOperations.endName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(_.fieldOperations.endDescription)),t("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),7==_.fieldType?t("div",[t("div",{class:["opencard-item-title",_.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldName))]),e._m(0,!0)]):e._e(),0==_.fieldType||1==_.fieldType||6==_.fieldType?t("div",[t("div",{class:["opencard-item-title",_.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(_.fieldDescription))])])]):e._e()])}),0)])])]],2)}),0)])])])])])])])])])},s=[function(){var e=this,_=e.$createElement,t=e._self._c||_;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont icon-icon"})])])}],i=t("168f"),r=i["a"],o=(t("65b8"),t("2877")),l=Object(o["a"])(r,a,s,!1,null,"2bdc1da7",null);l.options.__file="staffRecordsTemplate.vue";_["default"]=l.exports},"65b8":function(e,_,t){"use strict";var a=t("76e5"),s=t.n(a);s.a},"76e5":function(e,_,t){},a21f:function(e,_,t){var a=t("584a"),s=a.JSON||(a.JSON={stringify:JSON.stringify});e.exports=function(e){return s.stringify.apply(s,arguments)}},f499:function(e,_,t){e.exports=t("a21f")}}]);
//# sourceMappingURL=chunk-658f921e.3bb6ec8e.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76e29689"],{"168f":function(module,__webpack_exports__,__webpack_require__){"use strict";var f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("f499"),f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0__),f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("e814"),f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("55dd"),core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_sort__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("cadf"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("551c"),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("097d"),core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_6__);__webpack_exports__["a"]={name:"staffRecordsTemplate",data:function(){return{bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",selectKey:"",baseInfo:[],jobInfo:[],selfInfo:[],eduInfo:[],contractInfo:[],contactInfo:[],personalInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[]}},methods:{changeRoute:function(e){this.$router.push(e)},treeData:function(e){var _=e.filter(function(_){var t=e.filter(function(e){return _.fieldCode==e.parentCode});return t.length>0&&(_.children=t),0==_.parentCode});return _.sort(function(e,_){return e.sort-_.sort}),_.forEach(function(e){e.children.sort(function(e,_){return e.sort-_.sort})}),_},handleGetInfo:function(e){var _=this,t=JSON.parse(e).result;t.forEach(function(e){e.fixed=1===f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default()(e.fixed),e.isMust=1===f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default()(e.isMust),e.fieldEdited=1===f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_parse_int__WEBPACK_IMPORTED_MODULE_1___default()(e.fieldEdited),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[]}),_.tempaletDataList=_.treeData(t)}},mounted:function mounted(){var that=this,param={enterpriseId:that.$route.query.enterpriseId},method="getUserArchivesTempletContent",data={method:method,param:param};function appInvocationMethod(e){return{userId:"123456",name:"张琦"}}that.$bridge.callhandler("apiHandler",data,function(e){e&&e.length&&that.handleGetInfo(e)}),that.$bridge.registerhandler("jsHandler",function(data,responseCallback){var json=JSON.parse(data),method=json["method"],param=json["param"],paramStr=f_gitlab_office_mobile_node_modules_babel_runtime_corejs2_core_js_json_stringify__WEBPACK_IMPORTED_MODULE_0___default()(param),evalMethod=method+"(paramStr)",result=eval(evalMethod);responseCallback(result)})}}},"255e":function(e,_,t){},"2d7f":function(e,_,t){"use strict";var a=t("255e"),s=t.n(a);s.a},"30a0":function(e,_,t){"use strict";t.r(_);var a=function(){var e=this,_=e.$createElement,t=e._self._c||_;return t("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[t("div",{staticClass:"template-contain"},[t("div",{staticClass:"template-body"},[t("div",{staticClass:"template-cell template-cell-m"},[t("div",{staticClass:"phone-view"},[t("div",{staticClass:"phone-show-content"},[t("div",{staticClass:"drag-show-content"},[t("div",{staticClass:"view-container"},[t("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[t("div",{staticClass:"drag-wrap"},e._l(e.tempaletDataList,function(_,a){return t("li",{key:_.fieldName+a,class:["filed-item",e.currentIndex==a?"active-item":"","li-block"]},[[t("div",{staticClass:"block"},[t("div",{staticClass:"block-head"},[t("div",{class:["opencard-item-title",_.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(_.fieldName))])]),t("ul",{staticClass:"view-content"},[t("div",{class:["drag-wrap","block-wrap",_.fieldCode]},e._l(_.children,function(_,a){return t("li",{key:a,class:["filed-item","child-filed-item",e.currentChildKey==_.fieldCode&&e.currentChildIndex==a?"active-item":""]},[2==_.fieldType||3==_.fieldType||4==_.fieldType?t("div",[t("div",{class:["opencard-item-title",_.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(_.fieldDescription)+" "),t("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),5==_.fieldType?t("div",[t("div",[t("div",{class:["opencard-item-title",_.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldOperations.startName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(_.fieldOperations.startDescription)),t("i",{staticClass:"el-icon-arrow-right"})])])]),t("div",{staticClass:"b-t-1"},[t("div",{class:["opencard-item-title",_.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldOperations.endName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(_.fieldOperations.endDescription)),t("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),7==_.fieldType?t("div",[t("div",{class:["opencard-item-title",_.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldName))]),e._m(0,!0)]):e._e(),0==_.fieldType||1==_.fieldType||6==_.fieldType?t("div",[t("div",{class:["opencard-item-title",_.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(_.fieldName))]),t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(_.fieldDescription))])])]):e._e()])}),0)])])]],2)}),0)])])])])])])])])])},s=[function(){var e=this,_=e.$createElement,t=e._self._c||_;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont icon-icon"})])])}],i=t("168f"),r=i["a"],o=(t("2d7f"),t("2877")),l=Object(o["a"])(r,a,s,!1,null,"ce0fab2e",null);l.options.__file="staffRecordsTemplate.vue";_["default"]=l.exports},a21f:function(e,_,t){var a=t("584a"),s=a.JSON||(a.JSON={stringify:JSON.stringify});e.exports=function(e){return s.stringify.apply(s,arguments)}},f499:function(e,_,t){e.exports=t("a21f")}}]);
//# sourceMappingURL=chunk-76e29689.69732d88.js.map
\ No newline at end of file
......@@ -209,8 +209,11 @@ export default {
let data = { 'method': method, 'param': param };
that.$bridge.callhandler('apiHandler', data, (data) => {
// 处理返回数据
console.log(data);
that.handleGetInfo(data);
// console.log(data);
let newData = JSON.parse(data);
if (!!newData.result.systemModules && !!newData.result.systemModules.length) {
that.handleGetInfo(newData.result.systemModules);
}
})
that.$bridge.registerhandler('jsHandler', (data, responseCallback) => {
let json = JSON.parse(data);
......
......@@ -115,8 +115,11 @@ export default {
let data = { 'method': method, 'param': param };
that.$bridge.callhandler('apiHandler', data, (data) => {
// 处理返回数据
console.log(data);
that.handleGetInfo(JSON.parse(data).result.systemModules.data);
// console.log(data);
let newData = JSON.parse(data);
if (!!newData.result.systemModules.data && !!newData.result.systemModules.data.length) {
that.handleGetInfo(newData.result.systemModules.data);
}
})
that.$bridge.registerhandler('jsHandler', (data, responseCallback) => {
let json = JSON.parse(data);
......
......@@ -177,7 +177,9 @@ export default {
that.$bridge.callhandler('apiHandler', data, (data) => {
// 处理返回数据
// console.log(data);
that.handleGetInfo(data);
if (!!data && !!data.length) {
that.handleGetInfo(data);
}
})
that.$bridge.registerhandler('jsHandler', (data, responseCallback) => {
let json = JSON.parse(data);
......
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