Commit bda9ed99 by 无尘

feat: 增加系统模板调试

parent 3a5431f7
<!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-40bad0bf.630f3957.css rel=prefetch><link href=css/chunk-658f921e.83848305.css rel=prefetch><link href=css/chunk-87171454.9e7cb583.css rel=prefetch><link href=js/chunk-2d0baaed.e1958668.js rel=prefetch><link href=js/chunk-40bad0bf.1b8445a5.js rel=prefetch><link href=js/chunk-658f921e.3bb6ec8e.js rel=prefetch><link href=js/chunk-87171454.41463dbf.js rel=prefetch><link href=css/app.ee16f359.css rel=preload as=style><link href=js/app.2cc28768.js rel=preload as=script><link href=js/chunk-vendors.591e8611.js rel=preload as=script><link href=css/app.ee16f359.css rel=stylesheet></head><body><div id=app></div><script src=js/chunk-vendors.591e8611.js></script><script src=js/app.2cc28768.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-40bad0bf.630f3957.css rel=prefetch><link href=css/chunk-658f921e.83848305.css rel=prefetch><link href=css/chunk-727c145e.5548d705.css rel=prefetch><link href=js/chunk-2d0baaed.e1958668.js rel=prefetch><link href=js/chunk-40bad0bf.1b8445a5.js rel=prefetch><link href=js/chunk-658f921e.3bb6ec8e.js rel=prefetch><link href=js/chunk-727c145e.0caede9a.js rel=prefetch><link href=css/app.ee16f359.css rel=preload as=style><link href=js/app.93904a11.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.93904a11.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -13,8 +13,8 @@ Vue.prototype.$bridge = Bridge
require('es6-promise').polyfill();
Es6Promise.polyfill();
/* eslint-disable */
/* import VConsole from 'vconsole';
let vConsole = new VConsole(); */
import VConsole from 'vconsole';
let vConsole = new VConsole();
new Vue({
router,
......
......@@ -105,14 +105,30 @@ export default {
birthdayMembershipData,
},
mounted() {
// const that = this;
// 获取已经配置的数据
const that = this;
// js 调用客户端方法
let param = {'enterpriseId': that.$route.query.enterpriseId};
let method = "getUserArchivesTempletContent";
let data = { 'method': method, 'param': param };
that.$bridge.callhandler('apiHandler', data, (data) => {
// 处理返回数据
console.log(data);
that.handleGetInfo(data);
})
that.$bridge.registerhandler('jsHandler', (data, responseCallback) => {
let json = JSON.parse(data);
let method = json['method'];
let param = json['param'];
/* eslint-disable */
let paramStr = JSON.stringify(param);
let evalMethod = method + "(paramStr)";
let result = eval(evalMethod);
responseCallback(result);
})
/* eslint-disable */
/* Promise.all([that.getInfo()]).then(values => {
that.getAllFields();
}).catch(reason => {
console.log(reason)
}); */
function appInvocationMethod(param) {
return {'userId': '123456','name':'张琦'};
}
}
};
</script>
......
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