Comments (10)
跟踪代码 发现是丢失 dbo 表的前缀问题。
from easyoc.
@@change="loadAllTables“ 应该是 @@change="loadAllTables()” 吧
from easyoc.
应该不是,你改了就好了?
from easyoc.
{
"statusCode": 200,
"status": 0,
"data": null,
"succeeded": true,
"msg": [
{
"value": "Object reference not set to an instance of an object.",
"type": 3
}
],
"extras": null,
"timestamp": 1709017593415
}
可能是不对的。 没有跟你的演示一样。 生成会错误。
from easyoc.
可能是我用mysql,测试 修改了下 对应的获取数据库表 处理 scheam 然后修改了下对应的js。
1个原因是 mysql前缀不是dbo 。
所以 处理如果没有schema的情况下,传入的值要去掉前面的. 号。
另外就是这边确实要转换成string 才可以赋值
this.recipeText = JSON.stringify(data.data); //必须把对象转成字符串 monacoEditor.getModel().setValue(JSON.stringify(data.data)); // monacoEditor.getAction(['editor.action.formatDocument'])._run(); 无法执行 monacoEditor.getAction('editor.action.formatDocument').run();
`
generateRecipe() {
this.loading = true;
$.get("@href("~/api/RDBMS/GenerateRecipe")", {
connectionConfigId: this.model.connectionConfigId,
tableName: this.model.tableName
}, (data, status) => {
console.log(status)
if (status != "success") {
this.$message("查询失败")
} else {
console.log(data)
this.recipeText = JSON.stringify(data.data);
//必须把对象转成字符串
monacoEditor.getModel().setValue(JSON.stringify(data.data));
// monacoEditor.getAction(['editor.action.formatDocument'])._run();
monacoEditor.getAction('editor.action.formatDocument').run();
}
this.loading = false;
})
},
`
from easyoc.
from easyoc.
你是不是改错了。。这个编辑器里面应该是 recipeContent ,而不是整个返回值
from easyoc.
你是不是改错了。。这个编辑器里面应该是 recipeContent ,而不是整个返回值
没错哈。 是提交给后台的数据错了。
@* data:JSON.stringify({
"json":this.recipeText;
}), *@
修改成这样 : data: this.recipeText, 后台才能接收到。 完美解决
from easyoc.
已经正常生成contentType 。nice!
from easyoc.
@onestar1 方便的话提个PR 😁
from easyoc.
Related Issues (20)
- Integration Features HOT 6
- Cannot run setup recipe HOT 2
- Display orchard content items in kendo ui grid HOT 3
- 合并OrchardCore 的 Elasticserch 分支
- 列表 - Excel导入导出 , 参考OC 的 JsonImport 需要开发后台功能(大量导入可能存在性能问题,比如锁表需要后台处理) 见:Admin/DeploymentPlan/Import/Json
- 更新EasyOC的自动安装和初始化内容
- Oidc Code 授权
- 微信扫码登陆
- graphql 更新内容mutation Api HOT 1
- 开源吗,商用的话需不需要商业授权 HOT 1
- Approaches for Orchard Core and SPA Framework ? HOT 1
- Error on setup screen HOT 2
- Does freesql help in doing json queries in orchards db? HOT 1
- mysql引擎 , easyoc.core 的FreeSql.Provider.MySql 引用错误 HOT 11
- 项目启动会报错,NatashaInitiizer .preheating() 执行错误 HOT 1
- updatecontenttype 生成失败 ,不存在对应/api/RDBMS/ImportDeploymentPackage 这个接口。
- 如果升级到.net core8 会出现 FreeSql.DatabaseModel.DbColumnInfo 报错。暂时没找到哪个dll的问题 HOT 2
- 发布任务内容的 generate from rdbms json 是不是不能用? HOT 3
- Script Query 的使用: params 必须是 parameters HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyoc.