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

1

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