1ContactStore = { 2 namespaced: true, 3 state: { 4 }, 5 getters: { 6 }, 7 mutations: { 8 }, 9 actions: { 10 init: ({ commit, state, rootState }, data) => { 11 console.debug('called ContactStore init') 12 13 // ------------------------- INIT -------------------------- // 14 commit('SET_INIT', data.init, commitRoot) 15 commit('SET_FORM_NAME', "main", commitRoot) 16 commit('SET_DATA', { 'data': {} }, commitRoot) 17 commit('SET_SEL_DOCS', [], commitRoot) 18 commit('UPLOADING', false, commitRoot) 19 // -------------------------------------------------------- // 20 }, 21 doContactApply: ({ commit, state, rootState }, data) => { 22 console.debug('called ContactStore doContactApply') 23 24 commit('UPLOADING', true, commitRoot) 25 let row = $.extend(true, {}, rootState.init, rootState.t0010Apply); 26 if (rootState.sel_docs.length) { 27 row.data.sel_docs = $.grep(rootState.sel_docs, function (doc, i) { 28 return (doc.checked) 29 }) 30 } 31 row.data_json = JSON.stringify(row.data) 32 delete row['data']; 33 34 var ctx = { 35 "data": [ 36 { 37 "api": "t0010ApplyService.doContactApply", 38 "mode": 0, 39 "input": row 40 }] 41 } 42 43 callDataApi(ctx).then( 44 function (ctx) { // success 45 commit('UPLOADING', false, commitRoot) 46 alert("Please confirm email [" + rootState.t0010Apply.a_email + "] \nâ ä¸åéå §ææ¶å°é»éµï¼å¦ææ¾ä¸å°è«ç¢ºèªåå¾éµä»¶æä»¶å¤¾â "); 47 router.push('/Home') 48 49 }, 50 function (ctx) { // logic error 51 commit('UPLOADING', false, commitRoot) 52 alert("Server System Error"); 53 } 54 ) 55 }, 56 } 57}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.