提交 60dfdfd5 编写于 作者: S shenjizhe

1

上级 b970f0b9
......@@ -14,11 +14,15 @@ module.exports = {
createGit,
pushGit: pushGit
}
let url = 'http://localhost:8071';
// let url = 'http://dzlc.licaiedu.com/code';
// let url = 'http://localhost:8071';
// let headers = {
// "Access-Control-Allow-Origin": "http://localhost:8071"
// };
let url = 'http://dzlc.licaiedu.com/code';
let headers = {
"Access-Control-Allow-Origin": "http://localhost:8071",
// "Access-Control-Allow-Origin": "http://dzlc.licaiedu.com/code"
"Access-Control-Allow-Origin": "http://dzlc.licaiedu.com/code"
};
function loadEntities(domainId, success, fail, complete) {
......
......@@ -148,7 +148,11 @@ export default {
type: 'text'
}
],
data: {}
data: {
name: 'test',
show: true,
comment: '测试'
}
},
code: {
columns: [
......@@ -189,20 +193,46 @@ export default {
}
},
onCreateComponent() {
console.log("组件",this.component.data);
this.callApi(this.api.addComponent, this.component.data);
},
onCreateGit() {
this.callApi(this.api.addComponent, this.component.data);
},
onSaveModel() {
let id = this.component.data.id;
console.log("模型",id,this.entity.datas);
this.callApiWithParam(this.api.saveEntities, id, this.entity.datas);
},
onSaveModel() {},
onGenerateCode() {},
onUpload() {},
callApiWithParam(apifunc, param, data) {
return apifunc(
param,
data,
res => {
console.log('=================', res);
uni.showToast({
title: '提交成功:',
icon: 'succes',
duration: 2000
});
},
res => {
uni.showToast({
title: '提交失败:' + res.errMsg,
icon: 'error',
duration: 2000
});
}
);
},
callApi(apifunc, data) {
apifunc(
return apifunc(
data,
res => {
console.log('=================', res);
uni.showToast({
title: '提交成功:',
icon: 'succes',
......
{
"id": "thirdlucky-data-form",
"displayName": "thirdlucky-data-form",
"version": "1.0.19",
"description": "thirdlucky-data-form",
"keywords": [
"thirdlucky-data-form"
],
"repository": "",
"engines": {
"HBuilderX": "^3.1.0"
},
"dcloudext": {
"category": [
"前端组件",
"通用组件"
],
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "无",
"permissions": "无"
},
"npmurl": ""
},
"uni_modules": {
"dependencies": [],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"Vue": {
"vue2": "u",
"vue3": "u"
},
"App": {
"app-vue": "u",
"app-nvue": "u"
},
"H5-mobile": {
"Safari": "u",
"Android Browser": "u",
"微信浏览器(Android)": "u",
"QQ浏览器(Android)": "u"
},
"H5-pc": {
"Chrome": "u",
"IE": "u",
"Edge": "u",
"Firefox": "u",
"Safari": "u"
},
"小程序": {
"微信": "u",
"阿里": "u",
"百度": "u",
"字节跳动": "u",
"QQ": "u"
},
"快应用": {
"华为": "u",
"联盟": "u"
}
}
}
}
}
\ No newline at end of file
"id": "thirdlucky-data-form",
"displayName": "thirdlucky-data-form",
"version": "1.0.19",
"description": "thirdlucky-data-form",
"keywords": [
"thirdlucky-data-form"
],
"repository": "",
"engines": {
"HBuilderX": "^3.1.0"
},
"dcloudext": {
"category": [
"前端组件",
"通用组件"
],
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "无",
"permissions": "无"
},
"npmurl": ""
},
"uni_modules": {
"dependencies": [],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"Vue": {
"vue2": "u",
"vue3": "u"
},
"App": {
"app-vue": "u",
"app-nvue": "u"
},
"H5-mobile": {
"Safari": "u",
"Android Browser": "u",
"微信浏览器(Android)": "u",
"QQ浏览器(Android)": "u"
},
"H5-pc": {
"Chrome": "u",
"IE": "u",
"Edge": "u",
"Firefox": "u",
"Safari": "u"
},
"小程序": {
"微信": "u",
"阿里": "u",
"百度": "u",
"字节跳动": "u",
"QQ": "u"
},
"快应用": {
"华为": "u",
"联盟": "u"
}
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册