Commit fc4243a1 by 蒋勇

d

parent 93601e5d
...@@ -17,7 +17,7 @@ class MetaCtl extends CtlBase { ...@@ -17,7 +17,7 @@ class MetaCtl extends CtlBase {
if (acckapp) { if (acckapp) {
var rs = await this.getRsConfig2(null, req); var rs = await this.getRsConfig2(null, req);
var bcom = await this.getBaseComp(); var bcom = await this.getBaseComp();
var rtn = { "appinfo": escape(JSON.stringify(acckapp.app)), "basecomp": bcom, "rsconfig": escape(JSON.stringify(rs)), "app": acckapp.app }; var rtn = { "paasurl":settings.paasUrl(),"appinfo": escape(JSON.stringify(acckapp.app)), "basecomp": bcom, "rsconfig": escape(JSON.stringify(rs)), "app": acckapp.app };
req.session.app = acckapp.app; req.session.app = acckapp.app;
return rtn; return rtn;
} else { } else {
......
var system = require("../../../system")
const http = require("http")
const querystring = require('querystring');
var settings = require("../../../../config/settings");
const CtlBase = require("../../ctl.base");
class RptTypeCtl extends CtlBase {
constructor() {
super("rpt", CtlBase.getServiceName(RptTypeCtl));
}
}
module.exports = RptTypeCtl;
...@@ -30,6 +30,17 @@ class DbFactory{ ...@@ -30,6 +30,17 @@ class DbFactory{
console.log("init models...."); console.log("init models....");
} }
async initRelations(){ async initRelations(){
this.db.models.uploadbatch.belongsTo(this.db.models.company,{constraints: false,});
this.db.models.uploadrpt.belongsTo(this.db.models.company,{constraints: false,});
this.db.models.uploadrpt.belongsTo(this.db.models.uploadbatch,{constraints: false,});
//报表属于批
this.db.models.rpthistory.belongsTo(this.db.models.company,{constraints: false,});
this.db.models.rpthistory.belongsTo(this.db.models.uploadrpt,{constraints: false,});
this.db.models.rpthistory.belongsTo(this.db.models.uploadbatch,{constraints: false,});
} }
//async getCon(){,用于使用替换table模型内字段数据使用 //async getCon(){,用于使用替换table模型内字段数据使用
getCon(){ getCon(){
...@@ -42,7 +53,7 @@ class DbFactory{ ...@@ -42,7 +53,7 @@ class DbFactory{
// }); // });
//同步模型 //同步模型
if(settings.env=="dev"){ if(settings.env=="dev"){
//console.log(pa); //console.log(pa);
// pconfigObjs.forEach(p=>{ // pconfigObjs.forEach(p=>{
// console.log(p.get({plain:true})); // console.log(p.get({plain:true}));
......
const system=require("../../../system");
const Dao=require("../../dao.base");
class RptTypeDao extends Dao{
constructor(){
super(Dao.getModelName(RptTypeDao));
}
}
module.exports=RptTypeDao;
...@@ -11,13 +11,21 @@ var db=dbf.getCon(); ...@@ -11,13 +11,21 @@ var db=dbf.getCon();
db.sync({force:true}).then(async ()=>{ db.sync({force:true}).then(async ()=>{
console.log("sync complete..."); console.log("sync complete...");
//创建role db.models.rpttype.bulkCreate([
// if(settings.env=="prod"){ {code:"NA",name:"资产负债表-企业会计准则"},
// reclient.flushall(()=>{ {code:"SA",name:"资产负债表-小企业会计准则"},
// console.log("clear caches ok....."); {code:"NP",name:"利润表-企业会计准则"},
// }); {code:"SP",name:"利润表-小企业会计准则"},
// } {code:"ST",name:"小规模纳税申报"},
// reclient.flushall(()=>{ {code:"GT",name:"一般纳税申报"},
// console.log("clear caches ok....."); {code:"ITQ",name:"中华人民共和国企业所得税月(季)度预缴纳税申报表(A类2018年版)2019年修订A200000"},
// }); {code:"ITY_ADV",name:"广告费和业务宣传费跨年度纳税调整明细表A105060"},
{code:"ITY_OUT_DIS",name:"境外所得税收抵免明细表A108000"},
{code:"ITY_PERIOD",name:"期间费用明细表A104000"},
{code:"ITY_FILL_LOST",name:"企业所得税弥补亏损明细表A106000"},
{code:"ITY_COST",name:"一般企业成本支出明细表A102010"},
{code:"ITY",name:"中华人民共和国企业所得税年度纳税申报表(A类)A100000"},
{code:"ITY_DISCOUNT_ADJUST",name:"资产折旧、摊销及纳税调整明细表A105080"},
]);
}); });
module.exports = { module.exports = {
"appid": "38f64854859146db999778f5d941c1bd", "appid": "219933cb198246f7951bdfe6fadd694e",
"label": "项目管理平台", "label": "财税风控",
"config": { "config": {
"rstree": { "rstree": {
"code": "projroot", "code": "taxfk",
"label": "projroot", "label": "taxfk",
"children": [ "children": [
{ {
"code": "projectCenter", "code": "fxCenter",
"label": "项目中心", "label": "风控中心",
"src": "/imgs/logo.png", "src": "/imgs/logo.png",
"isSubmenu": true, "isSubmenu": true,
"isleft": true, "isleft": true,
"children": [ "children": [
{ {
"code": "singleMonitor", "isGroup": true, "label": "个人监控", "children": [ "code": "singleMonitor", "isGroup": true, "label": "基础信息", "children": [
{ {
"code": "myquestions", "code": "rpttype",
"label": "我的问题", "label": "报表类型",
"isMenu": true, "isMenu": true,
"bizCode": "myquestions", "bizCode": "rpttype",
"bizConfig": null, "bizConfig": null,
"path": "", "path": "",
"isleft":true, "isleft":true,
}, },
{
"code": "myfollows",
"label": "我的跟进",
"isMenu": true,
"bizCode": "myfollows",
"bizConfig": null,
"path": "",
"isleft":true,
},
{
"code": "mysubs",
"label": "我的提交",
"isMenu": true,
"bizCode": "mysubs",
"bizConfig": null,
"path": "",
"isleft":true,
},
{
"code": "linkquery",
"label": "单据联查",
"bizCode": "linkquery",
"bizConfig": null,
"path": ""
},
] ]
}, },
{
"code": "projMonitor", "isGroup": true, "label": "全局监控", "children": [
{
"code": "allproducts",
"label": "所有产品",
"isMenu": true,
"bizCode": "allproducts",
"bizConfig": null,
"path": "",
"isleft":true,
},
{
"code": "allprojects",
"label": "所有项目",
"isMenu": true,
"bizCode": "allprojects",
"bizConfig": null,
"path": "",
"isleft":true,
},
{
"code": "allfollows",
"label": "所有跟进",
"isMenu": true,
"bizCode": "allfollows",
"bizConfig": null,
"path": "",
"isleft":true,
},
{
"code": "allquestions",
"label": "所有问题",
"isMenu": true,
"bizCode": "allquestions",
"bizConfig": null,
"path": "",
"isleft":true,
},
]
},
], ],
}, },
...@@ -99,15 +36,7 @@ module.exports = { ...@@ -99,15 +36,7 @@ module.exports = {
"bizs": { "bizs": {
"home": {"title": "前台首页", "config": null, "path": "/", "comname": "home"}, "home": {"title": "前台首页", "config": null, "path": "/", "comname": "home"},
"admin": {"title": "后台首页", "config": null, "path": "/index", "comname": "admin"}, "admin": {"title": "后台首页", "config": null, "path": "/index", "comname": "admin"},
"rpttype": {"title": "产品", "config": null, "path": "/rpttype", "comname": "rpttype"},
"allproducts": {"title": "产品", "config": null, "path": "/allproducts", "comname": "products"},
"allprojects": {"title": "项目", "config": null, "path": "/allprojects", "comname": "projects"},
"allfollows": {"title": "跟进", "config": null, "path": "/allfollows", "comname": "follows"},
"allquestions": {"title": "问题", "config": null, "path": "/allquestions", "comname": "questions"},
"myfollows": {"title": "我的跟进", "config": null, "path": "/myfollows", "comname": "follows"},
"myquestions": {"title": "我的问题", "config": null, "path": "/myquestions", "comname": "questions"},
"mysubs": {"title": "我的提交", "config": null, "path": "/mysubs", "comname": "questions"},
"linkquery": { "title": "联查", "config": null, "path": "/linkquery", "comname": "linkquery" },
}, },
"pauths": [ "pauths": [
"add", "edit", "delete", "export", "show" "add", "edit", "delete", "export", "show"
...@@ -117,19 +46,18 @@ module.exports = { ...@@ -117,19 +46,18 @@ module.exports = {
"data_priv": { "auth.role": "角色", "auth.user": "用户","common.app": "应用"}, "data_priv": { "auth.role": "角色", "auth.user": "用户","common.app": "应用"},
"noticeType": {"sms": "短信", "email": "邮件","wechat":"微信"}, "noticeType": {"sms": "短信", "email": "邮件","wechat":"微信"},
"authType": {"add": "新增", "edit": "编辑","delete":"删除","export":"导出","show":"查看"}, "authType": {"add": "新增", "edit": "编辑","delete":"删除","export":"导出","show":"查看"},
"mediaType": {"vd": "视频", "ad": "音频","qt":"其它"},
"usageType": {"kt": "课堂","taxkt":"财税课堂", "qt": "其它"}, "usageType": {"kt": "课堂","taxkt":"财税课堂", "qt": "其它"},
"opstatus": {"0": "失败", "1": "成功"}, "opstatus": {"0": "失败", "1": "成功"},
"sex": {"male": "男", "female": "女"}, "sex": {"male": "男", "female": "女"},
"configType": {"price": "宝币兑换率", "initGift": "初次赠送","apiInitGift":"API初次赠送","apiCallPrice":"api调用价格"},
"logLevel": {"debug": 0, "info": 1, "warn": 2, "error": 3, "fatal": 4}, "logLevel": {"debug": 0, "info": 1, "warn": 2, "error": 3, "fatal": 4},
"msgType": { "sys": "系统", "single": "单点", "multi": "群发", "mryzSingle": "每日易照单点", "mryzLicense": "群发", }, "msgType": { "sys": "系统", "single": "单点", "multi": "群发", "mryzSingle": "每日易照单点", "mryzLicense": "群发", },
"tradeType": {
"fill": "充值宝币", "consume": "消费宝币", "gift": "赠送宝币", "giftMoney": "红包", "refund": "退款", "payment": "付款",
},
"question_status": { "waithandle": "待解决", "inmiddle": "解决中", "waitcheck": "待验证", "success": "成功解决", "invalid": "无效问题" },
"urgent_status": { "urgent": "紧急", "general": "一般" }, "urgent_status": { "urgent": "紧急", "general": "一般" },
"batch_status":{"parserpt":"解析报表中","calc":"取数计算中","reporting":"报告生成中","rptover":"报告完成"},
"time_type": { "M": "月", "Q": "季","Y":"年" },
"account_standard":{"S":"小企业会计准则","N":"企业会计准则"},
"tax_type":{"ST":"小规模纳税人","GT":"一般纳税人"},
} }
} }
} }
\ No newline at end of file
module.exports={
"list":{
columnMetaData:[
{"width":"100","label":"编码","prop":"code","isShowTip":true,"isTmpl":false},
{"width":"100","label":"报表名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
{
"title":"基本信息",
ctls:[
{"type":"input","label":"编码","prop":"code","placeHolder":"编码","style":"",rules:[ { "required": true, "message": ' ', "trigger": 'blur' },]},
{"type":"input","label":"报表名称","prop":"name","placeHolder":"请输入报表名称","style":"",rules:[ { "required": true, "message": ' ', "trigger": 'blur' },]},
]
}
],
"search":[
{
"title":"基本查询",
ctls:[
{"type":"input","label":"报表名称","prop":"name","placeHolder":"请输入昵称","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
const system=require("../../../system");
const settings=require("../../../../config/settings");
const uiconfig=system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("company", {
code: {
type:DataTypes.STRING,
allowNull: false,
},
name: {
type:DataTypes.STRING,
allowNull: false,
}
},{
paranoid: true,//假的删除
underscored: true,
version: true,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
tableName: 'company',
validate: {
},
indexes:[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
const system=require("../../../system");
const settings=require("../../../../config/settings");
const uiconfig=system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("metric", {
code: {
type:DataTypes.STRING,
allowNull: false,
},
name: {
type:DataTypes.STRING,
allowNull: false,
},
weight: {
type:DataTypes.STRING,
allowNull: false,
},
exp:{
type:DataTypes.STRING,
allowNull: false,
}
},{
paranoid: true,//假的删除
underscored: true,
version: true,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
tableName: 'metric',
validate: {
},
indexes:[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
const system=require("../../../system");
const settings=require("../../../../config/settings");
const uiconfig=system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("rpthistory", {
companyname: {
type:DataTypes.STRING,
allowNull: false,
},
timetypecode: {
type:DataTypes.ENUM,
allowNull: false,
values: Object.keys(uiconfig.config.pdict.time_type),
set:function(val){
this.setDataValue("timetypename",uiconfig.config.pdict.time_type[val]);
this.setDataValue("timetypecode",val);
}
},
timetypename:{
type:DataTypes.STRING,
allowNull: false,
},
batchdate:{
type:DataTypes.STRING,
allowNull: false,
},
dateym:{
type:DataTypes.STRING,
allowNull: false,
},
rpttypecode: {
type:DataTypes.STRING,
allowNull: false,
},
position:{
type:DataTypes.STRING,
allowNull: false
},
desc:{
type:DataTypes.STRING,
allowNull: false
}
},{
paranoid: true,//假的删除
underscored: true,
version: true,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
tableName: 'rpt_history',
validate: {
},
indexes:[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
const system=require("../../../system");
const settings=require("../../../../config/settings");
const uiconfig=system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("rpttype", {
code: {
type:DataTypes.STRING,
allowNull: false,
},
name: {
type:DataTypes.STRING,
allowNull: false,
}
},{
paranoid: true,//假的删除
underscored: true,
version: true,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
tableName: 'rpt_type',
validate: {
},
indexes:[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
const system=require("../../../system");
const settings=require("../../../../config/settings");
const uiconfig=system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("uploadbatch", {
companyname:{
type:DataTypes.STRING,
allowNull: false,
description:"公司"
},
name:{
type:DataTypes.STRING,
allowNull: false,
},
batchstatuscode:{//状态
type:DataTypes.ENUM,
allowNull: false,
values: Object.keys(uiconfig.config.pdict.batch_status),
set:function(val){
this.setDataValue("batchstatusname",uiconfig.config.pdict.batch_status[val]);
this.setDataValue("batchstatuscode",val);
}
},
batchstatusname:{//状态
type:DataTypes.STRING,
allowNull: false,
},
taxtypecode:{//公司类型--S/G
type:DataTypes.ENUM,
allowNull: false,
values: Object.keys(uiconfig.config.pdict.tax_type),
set:function(val){
this.setDataValue("taxtypename",uiconfig.config.pdict.tax_type[val]);
this.setDataValue("taxtypecode",val);
}
},
taxtypename:{//公司类型--S/G
type:DataTypes.STRING,
allowNull: false,
},
timetypecode: {
type:DataTypes.ENUM,
allowNull: false,
values: Object.keys(uiconfig.config.pdict.time_type),
set:function(val){
this.setDataValue("timetypename",uiconfig.config.pdict.time_type[val]);
this.setDataValue("timetypecode",val);
}
},
timetypename:{
type:DataTypes.STRING,
allowNull: false,
},
batchdate:{//检测的月度
type:DataTypes.STRING,
allowNull: false,
},
accountstandardcode:{//会计准则
type:DataTypes.ENUM,
allowNull: false,
values: Object.keys(uiconfig.config.pdict.account_standard),
set:function(val){
this.setDataValue("accountstandardname",uiconfig.config.pdict.account_standard[val]);
this.setDataValue("accountstandardcode",val);
}
},
accountstandardname:{
type:DataTypes.STRING,
allowNull: false,
}
},{
paranoid: true,//假的删除
underscored: true,
version: true,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
tableName: 'upload_batch',
validate: {
},
indexes:[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
const system=require("../../../system");
const settings=require("../../../../config/settings");
const uiconfig=system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("uploadrpt", {
companyname: {
type:DataTypes.STRING,
allowNull: false,
},
rpttypecode: {
type:DataTypes.STRING,
allowNull: false,
},
timetypecode: {
type:DataTypes.ENUM,
allowNull: false,
values: Object.keys(uiconfig.config.pdict.time_type),
set:function(val){
this.setDataValue("timetypename",uiconfig.config.pdict.time_type[val]);
this.setDataValue("timetypecode",val);
}
},
timetypename:{
type:DataTypes.STRING,
allowNull: false,
},
urlpath:{
type:DataTypes.STRING,
allowNull: false,
},
rptdate:{
type:DataTypes.STRING,
allowNull: false,
},
},{
paranoid: true,//假的删除
underscored: true,
version: true,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
tableName: 'upload_rpt',
validate: {
},
indexes:[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
const system=require("../../../system");
const ServiceBase=require("../../sve.base")
const settings=require("../../../../config/settings")
class RptTypeService extends ServiceBase{
constructor(){
super("auth",ServiceBase.getDaoName(RptTypeService));
}
}
module.exports=RptTypeService;
var settings={ var settings={
redis:{ redis: {
host: "43.247.184.32", host: "43.247.184.32",
port: 8967, port: 8967,
password: "Gongsibao2018", password: "Gongsibao2018",
db:10, db: 9,
}, },
database:{ database: {
dbname : "pmmanage", dbname: "fktaxctl",
user: "write", user : "write",
password: "write", password : "write",
config: { config : {
host: '43.247.184.35', host: '43.247.184.35',
port: 8899, port:8899,
dialect: 'mysql', dialect: 'mysql',
operatorsAliases: false, operatorsAliases: false,
pool: { pool: {
max: 5, max: 5,
min: 0, min: 0,
acquire: 90000000, acquire: 90000000,
idle: 1000000 idle: 1000000
}, },
debug:false, debug: false,
dialectOptions:{ dialectOptions: {
requestTimeout: 999999, requestTimeout: 999999,
// instanceName:'DEV' // instanceName:'DEV'
} //设置MSSQL超时时间 } //设置MSSQL超时时间
} }
}, },
reqEsDevUrl:"http://192.168.4.249:9200/", reqEsDevUrl:"http://192.168.4.249:9200/",
reqHomePageDevUrl:"http://sj.app.com:3002/", reqHomePageDevUrl:"http://sj.app.com:3002/",
reqAuthUrl:"http://sj.app.com:3002/auth" reqAuthUrl:"http://sj.app.com:3002/auth"
......
var path = require('path'); var path = require('path');
var settings = { var settings = {
env:"dev", env:"dev",
appKey:"38f64854859146db999778f5d941c1bd", appKey:"219933cb198246f7951bdfe6fadd694e",
paasKey:"wx76a324c5d201d1a4", paasKey:"wx76a324c5d201d1a4",
secret:"5dfd328901d4478b98ce62f7a07f6c67", secret:"a1f209004a91433a81a8fbb7b3dc3418",
//为了直接从应用客户端登录,需要查询出当前用户所在公司 //为了直接从应用客户端登录,需要查询出当前用户所在公司
//如果有这个配置,就表示支持从应用自己的客户端登录或注册 //如果有这个配置,就表示支持从应用自己的客户端登录或注册
companyKey:"5dfd328901d4478b98ce62f7a07f6c67", companyKey:"1aba765c82f24030bb23d18aeea0f72f",
salt: "%iatpD1gcxz7iF#B", salt: "%iatpD1gcxz7iF#B",
basepath : path.normalize(path.join(__dirname, '../..')), basepath : path.normalize(path.join(__dirname, '../..')),
port : process.env.NODE_PORT || 3003, port : process.env.NODE_PORT || 3003,
paasUrl:function(){ paasUrl:function(){
if(this.env=="dev"){ if(this.env=="dev"){
return "http://p.apps.com:3001/"; return "http://p.apps.com:4001/";
}else { }else {
return "http://open.gongsibao.com/"; return "http://open.gongsibao.com/";
} }
......
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
<html lang="zh-CN"> <html lang="zh-CN">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="keywords" content="PAAS 开放平台"> <meta name="keywords" content="财税风控">
<meta name="baidu-site-verification" content="lATAxZAm8y" /> <meta name="baidu-site-verification" content="lATAxZAm8y" />
<meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8, user-scalable=1"> <meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8, user-scalable=1">
<title id="idtitle"><%=app.name%></title> <title id="idtitle"><%=app.name%></title>
<link rel="stylesheet" href="/css/ele/index_2.5.4.css"> <link rel="stylesheet" href="/css/ele/index_2.5.4.css">
<link rel="stylesheet" href="http://p.apps.com:3001/css/pagecom.css"> <!-- <link rel="stylesheet" href="http://p.apps.com:4001/css/pagecom.css"> -->
<link rel="stylesheet" href="<%=paasurl%>/css/pagecom.css">
<link rel="stylesheet" href="/css/pagecom.css"> <link rel="stylesheet" href="/css/pagecom.css">
<link rel="stylesheet" href="/css/fontawesome/css/font-awesome.min.css"> <link rel="stylesheet" href="/css/fontawesome/css/font-awesome.min.css">
......
.home{
position: relative;
color:black;
width: 100%;
height: 100%;
margin: auto;
/* background-color: blueviolet; */
text-align: center;
}
\ No newline at end of file
<gsb-pagecard>
<div slot="content">
<gsb-grid2
bizCode="rpttype"
spaceHeight="100"
modelName="rpttype"
listMethod="findAndCountAll"
deleteMethod="delete"
initMethod="initNewInstance"
isDataAuto="true"
:headStyle="headStyle"
:colFormatter="onColFormater"
:isSingleSelect="isSingleSelect"
@rowclick="onRowClick">
</gsb-grid2>
</div>
</gsb-pagecard>
\ No newline at end of file
{
template:'${tmpl}',
data:function(){
return {
multipleSelection: [],
isSingleSelect:false,
c:"hello",
}
},
mounted:function(){
},
created:function(){
},
methods:{
handleSelectionChange:function(val){
this.multipleSelection = val;
console.log(this.cc);
},
headerCellStyle:function(){
return {"background-color":"red"};
}
},
computed:{
headStyle:function(){
return {"background-color":"white"};
}
},
vname:"gsb-rpttype"
}
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"author": "jy", "author": "jy",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"MD5": "^1.3.0",
"after": "^0.8.2", "after": "^0.8.2",
"ali-oss": "^4.12.2", "ali-oss": "^4.12.2",
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
......
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