diff --git a/src/api/View/index.js b/src/api/View/index.js index c1df6f10e4..64cf383ca3 100644 --- a/src/api/View/index.js +++ b/src/api/View/index.js @@ -35,6 +35,14 @@ export async function getEditView(ObjectId, params) { }) } +export async function getViewList(params) { + return request({ + url: '/classes/View/', + method: 'get', + params, + }) +} + export function getTopo(params) { return request({ url: `/topo`, diff --git a/src/config/developer.config.js b/src/config/developer.config.js index 88c3fe1c09..14353ca5f4 100644 --- a/src/config/developer.config.js +++ b/src/config/developer.config.js @@ -24,6 +24,13 @@ module.exports = { path: 'dgiot_file', target: 'https://dev.dgiotcloud.cn', }, + /** + * @description dgiot_file文件资源目录。开发使用 + */ + { + path: 'upload', + target: 'http://dev.dgiotcloud.cn', + }, /** * @description amis server 开发使用 */ diff --git a/src/i18n/zh.js b/src/i18n/zh.js index cd780f350a..21dd5b6d61 100644 --- a/src/i18n/zh.js +++ b/src/i18n/zh.js @@ -761,6 +761,7 @@ export default { 'evidence control': '取证控件', 'basic element': '基本元件', 'screen element': '大屏组件', + 'lowcode element': '低代码组件', 'print control': '打印控件', 'basic grid': '网格', 'create template': '模板创建', diff --git a/src/store/modules/topo.js b/src/store/modules/topo.js index 76eb6723ab..ccedcdf25b 100644 --- a/src/store/modules/topo.js +++ b/src/store/modules/topo.js @@ -381,6 +381,9 @@ const mutations = { data: thing.data, productid: thing.productid, }) + console.log('%c 添加amis低代码节点', 'background:#ff00ff;') + console.log(simpleImage) + console.log(thing) } else if (thing.type == 'gifimage') { simpleImage = addNodeEvent( _.merge(canvas.handlerArgs, { diff --git a/src/utils/konva/core/topoBasic.js b/src/utils/konva/core/topoBasic.js index 1b16fc57cb..2c4ebf4931 100644 --- a/src/utils/konva/core/topoBasic.js +++ b/src/utils/konva/core/topoBasic.js @@ -430,6 +430,7 @@ const topoBasic = { // args.path, args ) + console.log(args) if (args.data.src) { let src = args.data.src // if (src.indexOf('http') < 0) { @@ -439,6 +440,9 @@ const topoBasic = { var imageObj = new Image() imageObj.src = src // imageObj.onload = () => { + + console.log(args.data.id) + var simpleImage = new Konva.Image({ id: args.data.id || 'amis_component_' + topoId, x: 100, @@ -456,6 +460,7 @@ const topoBasic = { simpleImage.setAttrs({ src: src, }) + console.log(simpleImage) return simpleImage } let vueComponet = '' diff --git a/src/views/CloudFunction/lowcode/index.vue b/src/views/CloudFunction/lowcode/index.vue index 2f30b04f2a..f14b4d13c2 100644 --- a/src/views/CloudFunction/lowcode/index.vue +++ b/src/views/CloudFunction/lowcode/index.vue @@ -184,7 +184,7 @@ :label="$translateTitle('product.title')" prop="title" show-overflow-tooltip - width="200px" + width="160px" >