Commit a6e72051 by 无尘

fix: 修改数据处理

parent 1f0e0c90
......@@ -14,7 +14,7 @@ module.exports = {
// Various Dev Server settings
// host: '0.0.0.0', // can be overwritten by process.env.HOST
host: '192.168.1.49',//'192.168.1.20',//localhost
host: 'localhost',//'192.168.1.20',//localhost
port: 8005, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,user-scalable=0"><meta name=screen-orientation content=portrait><meta name=apple-mobile-web-app-capable content=yes><meta name=format-detection content="telephone=no"><meta name=full-screen content=yes><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=renderer content=webkit><meta http-equiv=Pragma content=no-cache><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Expires content=0><meta name=x5-fullscreen content=true><meta content=yes name=apple-mobile-web-app-capable><meta content=yes name=apple-touch-fullscreen><meta content="telephone=no,email=no" name=format-detection><link rel="shortcut icon" href=./favicon.ico><title>好办 APP</title><link href=./static/css/app.33b37581fbd9b667068ebef5408548d0.css rel=stylesheet></head><body style="background-color: #f0f2f5;width: 100%;"><div id=app></div><script type=text/javascript src=./static/js/manifest.14bb610ff3a54faf1aa2.js></script><script type=text/javascript src=./static/js/vendor.912df9dc36cd49585f11.js></script><script type=text/javascript src=./static/js/app.6dbbdcbb85feb53150b7.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,user-scalable=0"><meta name=screen-orientation content=portrait><meta name=apple-mobile-web-app-capable content=yes><meta name=format-detection content="telephone=no"><meta name=full-screen content=yes><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=renderer content=webkit><meta http-equiv=Pragma content=no-cache><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Expires content=0><meta name=x5-fullscreen content=true><meta content=yes name=apple-mobile-web-app-capable><meta content=yes name=apple-touch-fullscreen><meta content="telephone=no,email=no" name=format-detection><link rel="shortcut icon" href=./favicon.ico><title>好办 APP</title><link href=./static/css/app.31ac51b02c61dbf5877b94d6aa12cd0a.css rel=stylesheet></head><body style="background-color: #f0f2f5;width: 100%;"><div id=app></div><script type=text/javascript src=./static/js/manifest.402f31fbc5f103d5ca4b.js></script><script type=text/javascript src=./static/js/vendor.912df9dc36cd49585f11.js></script><script type=text/javascript src=./static/js/app.6dbbdcbb85feb53150b7.js></script></body></html>
\ No newline at end of file
webpackJsonp([1],{"3E4D":function(e,t,a){"use strict";var i=a("zL8q");a.n(i)},"Ch4/":function(e,t,a){"use strict";var i=a("zL8q");a.n(i)},Iazf:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_1__common_js_showmsg__=__webpack_require__("3E4D"),__WEBPACK_IMPORTED_MODULE_2__common_js_error__=__webpack_require__("Ch4/");__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:[]}},created:function(){},methods:{changeRoute:function(e){this.$router.push(e)},treeData:function(e){var t=e.filter(function(t){var a=e.filter(function(e){return t.fieldCode==e.parentCode});return a.length>0&&(t.children=a),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=JSON.parse(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(e));t.forEach(function(e,t){e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.fieldEdited=1===parseInt(e.fieldEdited),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[]}),this.tempaletDataList=this.treeData(t)}},watch:{},components:{},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.result)}),that.$bridge.registerhandler("jsHandler",function(data,responseCallback){var json=JSON.parse(data),method=json.method,param=json.param,paramStr=__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(param),evalMethod=method+"(paramStr)",result=eval(evalMethod);responseCallback(result)})}}},kcUH:function(e,t){},lFAe:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Iazf"),s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[a("div",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!1}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{class:["filed-item",e.currentIndex==i?"active-item":"","li-block"]},[[a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("div",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!1}},model:{value:t.children,callback:function(a){e.$set(t,"children",a)},expression:"item.children"}},e._l(t.children,function(t,i){return a("li",{class:["filed-item","child-filed-item",e.currentChildKey==t.fieldCode&&e.currentChildIndex==i?"active-item":""]},[2==t.fieldType||3==t.fieldType||4==t.fieldType?a("div",[a("div",{class:["opencard-item-title",t.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(t.fieldDescription)+" "),a("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==t.fieldType?a("div",[a("div",[a("div",{class:["opencard-item-title",t.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldOperations.startName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(t.fieldOperations.startDescription)),a("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),a("div",{staticClass:"b-t-1"},[a("div",{class:["opencard-item-title",t.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldOperations.endName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(t.fieldOperations.endDescription)),a("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==t.fieldType?a("div",[a("div",{class:["opencard-item-title",t.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldName))]),e._v(" "),e._m(0,!0)]):e._e(),e._v(" "),0==t.fieldType||1==t.fieldType||6==t.fieldType?a("div",[a("div",{class:["opencard-item-title",t.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(t.fieldDescription))])])]):e._e()])}))])])]],2)}))])])])])])])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;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"})])])}]};var r=function(e){a("kcUH")},n=a("VU/8")(i.a,s,!1,r,"data-v-e37d1b42",null);t.default=n.exports},mvHQ:function(e,t,a){e.exports={default:a("qkKv"),__esModule:!0}},qkKv:function(e,t,a){var i=a("FeBl"),s=i.JSON||(i.JSON={stringify:JSON.stringify});e.exports=function(e){return s.stringify.apply(s,arguments)}}});
//# sourceMappingURL=1.20ade62283849f0ed374.js.map
\ No newline at end of file
webpackJsonp([1],{"3E4D":function(e,t,a){"use strict";var s=a("zL8q");a.n(s)},"Ch4/":function(e,t,a){"use strict";var s=a("zL8q");a.n(s)},Iazf:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_1__common_js_showmsg__=__webpack_require__("3E4D"),__WEBPACK_IMPORTED_MODULE_2__common_js_error__=__webpack_require__("Ch4/");__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:[]}},created:function(){},methods:{changeRoute:function(e){this.$router.push(e)},treeData:function(e){var t=e.filter(function(t){var a=e.filter(function(e){return t.fieldCode==e.parentCode});return a.length>0&&(t.children=a),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=JSON.parse(e).result;t.forEach(function(e,t){e.fixed=1===parseInt(e.fixed),e.isMust=1===parseInt(e.isMust),e.fieldEdited=1===parseInt(e.fieldEdited),e.systemFlag=!0,e.fieldOperations=e.fieldOperations?JSON.parse(e.fieldOperations):{},e.staffRecordsIds=e.staffRecordsIds?JSON.parse(e.staffRecordsIds):[]}),this.tempaletDataList=this.treeData(t)}},watch:{},components:{},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){console.log("js 调用成功"),that.handleGetInfo(e)}),that.$bridge.registerhandler("jsHandler",function(data,responseCallback){var json=JSON.parse(data),method=json.method,param=json.param,paramStr=__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(param),evalMethod=method+"(paramStr)",result=eval(evalMethod);responseCallback(result)})}}},MqeA:function(e,t){},lFAe:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Iazf"),i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",style:{height:e.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[a("div",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!1}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,s){return a("li",{class:["filed-item",e.currentIndex==s?"active-item":"","li-block"]},[[a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",t.fieldName.length>6?"block-pre-wrap":""]},[e._v(e._s(t.fieldName))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("div",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!1},sort:!1}},model:{value:t.children,callback:function(a){e.$set(t,"children",a)},expression:"item.children"}},e._l(t.children,function(t,s){return a("li",{class:["filed-item","child-filed-item",e.currentChildKey==t.fieldCode&&e.currentChildIndex==s?"active-item":""]},[2==t.fieldType||3==t.fieldType||4==t.fieldType?a("div",[a("div",{class:["opencard-item-title",t.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(t.fieldDescription)+" "),a("i",{staticClass:"el-icon-arrow-right"})])])]):e._e(),e._v(" "),5==t.fieldType?a("div",[a("div",[a("div",{class:["opencard-item-title",t.fieldOperations.startName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldOperations.startName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(t.fieldOperations.startDescription)),a("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),a("div",{staticClass:"b-t-1"},[a("div",{class:["opencard-item-title",t.fieldOperations.endName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldOperations.endName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(t.fieldOperations.endDescription)),a("i",{staticClass:"el-icon-arrow-right"})])])])]):e._e(),e._v(" "),7==t.fieldType?a("div",[a("div",{class:["opencard-item-title",t.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldName))]),e._v(" "),e._m(0,!0)]):e._e(),e._v(" "),0==t.fieldType||1==t.fieldType||6==t.fieldType?a("div",[a("div",{class:["opencard-item-title",t.fieldName.length>6?"title-pre-wrap":""]},[e._v(e._s(t.fieldName))]),e._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag"},[e._v(e._s(t.fieldDescription))])])]):e._e()])}))])])]],2)}))])])])])])])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;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"})])])}]};var r=function(e){a("MqeA")},n=a("VU/8")(s.a,i,!1,r,"data-v-3feb27a0",null);t.default=n.exports},mvHQ:function(e,t,a){e.exports={default:a("qkKv"),__esModule:!0}},qkKv:function(e,t,a){var s=a("FeBl"),i=s.JSON||(s.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}}});
//# sourceMappingURL=1.c2674a5b2e2c002ef41c.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={7:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"4d32899c3299cb95b130",1:"20ade62283849f0ed374",2:"39effb7cc468a8b90c44",3:"6017c2d464a188e3cc3a",4:"c384492b24e03d00a718"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.14bb610ff3a54faf1aa2.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={7:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"4d32899c3299cb95b130",1:"c2674a5b2e2c002ef41c",2:"39effb7cc468a8b90c44",3:"6017c2d464a188e3cc3a",4:"c384492b24e03d00a718"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.402f31fbc5f103d5ca4b.js.map
\ No newline at end of file
......@@ -188,8 +188,8 @@ export default {
* 处理已存配置信息
*/
handleGetInfo(result) {
const that = this
let data = JSON.parse(JSON.stringify(result))
const that = this;
let data = JSON.parse(result).result
data.forEach(function(ele,index){
ele.fixed = parseInt(ele.fixed) === 1? true : false;
ele.isMust = parseInt(ele.isMust) === 1? true : false;
......@@ -217,9 +217,9 @@ export default {
let data = { 'method': method, 'param': param }
that.$bridge.callhandler('apiHandler', data, (data) => {
// 处理返回数据
// console.log("js 调用成功");
console.log("js 调用成功");
// console.log(data);
that.handleGetInfo(data.result)
that.handleGetInfo(data)
})
that.$bridge.registerhandler('jsHandler', (data, responseCallback) => {
......
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