Commit e12c5cc4 by 李耀锟

图标回显

parent be023217
...@@ -158,6 +158,40 @@ export function inputOutputFields(data){ ...@@ -158,6 +158,40 @@ export function inputOutputFields(data){
//内容编码
export function availableCharsets(data){
return request({
url: 'etlweb/system/availableCharsets',
data,
method: 'post'
})
}
//字段格式
export function valueFormat(data){
return request({
url: 'etlweb/system/valueFormat',
data,
method: 'post'
})
}
//字段类型
export function valueMeta(data){
return request({
url: 'etlweb/system/valueMeta',
data,
method: 'post'
})
}
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<!-- <div class="ef-node-left"></div> --> <!-- <div class="ef-node-left"></div> -->
<!-- 节点类型的图标 --> <!-- 节点类型的图标 -->
<div class="el-node-icon ef-node-left-ico flow-node-drag"> <div class="el-node-icon ef-node-left-ico flow-node-drag">
<img :src="node.ico" alt="" class=" flow-node-drag">
<img :src="prefix+node.ico" alt="" class=" flow-node-drag">
<!-- <i :class="nodeIcoClass"></i> --> <!-- <i :class="nodeIcoClass"></i> -->
</div> </div>
<!-- 节点名称 --> <!-- 节点名称 -->
...@@ -34,7 +35,11 @@ ...@@ -34,7 +35,11 @@
activeElement: Object activeElement: Object
}, },
data() { data() {
return {} return {
prefix:'http://192.168.0.2:9888/ETLWEB-SERVER/etlweb/',
}
}, },
computed: { computed: {
nodeContainerClass() { nodeContainerClass() {
...@@ -59,6 +64,7 @@ ...@@ -59,6 +64,7 @@
} }
}, },
methods: { methods: {
// 点击节点 // 点击节点
clickNode() { clickNode() {
this.$emit('clickNode', this.node.id) this.$emit('clickNode', this.node.id)
......
...@@ -87,7 +87,7 @@ var mousePosition = { ...@@ -87,7 +87,7 @@ var mousePosition = {
export default { export default {
data() { data() {
return { return {
prefix:'http://192.168.0.44:9700/etlweb/', prefix:'http://192.168.0.2:9888/ETLWEB-SERVER/etlweb/',
// 测试数据开始===== // 测试数据开始=====
jobTreeList: [ jobTreeList: [
{ {
......
...@@ -1219,7 +1219,7 @@ export default { ...@@ -1219,7 +1219,7 @@ export default {
type: nodeMenu.type, //节点类型 type: nodeMenu.type, //节点类型
left: left + 'px', //坐标 left: left + 'px', //坐标
top: top + 'px', //坐标 top: top + 'px', //坐标
ico: this.prefix+nodeMenu.icon, //图标 ico: nodeMenu.icon, //图标
} }
console.log(node); console.log(node);
......
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