Commit e12c5cc4 by 李耀锟

图标回显

parent be023217
......@@ -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 @@
<!-- <div class="ef-node-left"></div> -->
<!-- 节点类型的图标 -->
<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> -->
</div>
<!-- 节点名称 -->
......@@ -34,7 +35,11 @@
activeElement: Object
},
data() {
return {}
return {
prefix:'http://192.168.0.2:9888/ETLWEB-SERVER/etlweb/',
}
},
computed: {
nodeContainerClass() {
......@@ -59,6 +64,7 @@
}
},
methods: {
// 点击节点
clickNode() {
this.$emit('clickNode', this.node.id)
......
......@@ -87,7 +87,7 @@ var mousePosition = {
export default {
data() {
return {
prefix:'http://192.168.0.44:9700/etlweb/',
prefix:'http://192.168.0.2:9888/ETLWEB-SERVER/etlweb/',
// 测试数据开始=====
jobTreeList: [
{
......
......@@ -1219,7 +1219,7 @@ export default {
type: nodeMenu.type, //节点类型
left: left + 'px', //坐标
top: top + 'px', //坐标
ico: this.prefix+nodeMenu.icon, //图标
ico: nodeMenu.icon, //图标
}
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