Authored by 王涛

Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'

基本信息tooltip取消掉lineheight



See merge request !78
@@ -55,6 +55,22 @@ export const monitorTreeShape = { @@ -55,6 +55,22 @@ export const monitorTreeShape = {
55 value: 'resource_capacity_analysis', 55 value: 'resource_capacity_analysis',
56 }, 56 },
57 { 57 {
  58 + type: 'el-input-text',
  59 + label: '字树节点',
  60 + name: 'propsChildren',
  61 + required: false,
  62 + placeholder: '',
  63 + value: 'children',
  64 + },
  65 + {
  66 + type: 'el-input-text',
  67 + label: '节点标签',
  68 + name: 'propsLabel',
  69 + required: false,
  70 + placeholder: '',
  71 + value: 'label',
  72 + },
  73 + {
58 type: 'el-switch', 74 type: 'el-switch',
59 label: '加边框', 75 label: '加边框',
60 name: 'isBorder', 76 name: 'isBorder',
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <el-col :style="[lineHeightStyle]" v-if="(titleName?index>=0:index>0)" class="basic-border basic-item-title basic-flex" :span="10"> 24 <el-col :style="[lineHeightStyle]" v-if="(titleName?index>=0:index>0)" class="basic-border basic-item-title basic-flex" :span="10">
25 {{ item.name }} 25 {{ item.name }}
26 </el-col> 26 </el-col>
27 - <el-col :style="[lineHeightStyle]" v-if="(titleName?index>=0:index>0) " class="basic-border basic-flex basic-item-content" :span="14"><span>{{ item.value }}</span> 27 + <el-col v-if="(titleName?index>=0:index>0) " class="basic-border basic-flex basic-item-content" :span="14"><span>{{ item.value }}</span>
28 </el-col> 28 </el-col>
29 </el-row> 29 </el-row>
30 </div> 30 </div>
@@ -27,10 +27,10 @@ export default { @@ -27,10 +27,10 @@ export default {
27 return { 27 return {
28 iframeSrc:'', 28 iframeSrc:'',
29 activeName:'bos', 29 activeName:'bos',
30 - defaultProps : { 30 +/* defaultProps : {
31 children: 'child', 31 children: 'child',
32 label: 'typeName',//resTypeName 32 label: 'typeName',//resTypeName
33 - }, 33 + },*/
34 treeData: [], // 所有的树结点 34 treeData: [], // 所有的树结点
35 checkedKeys: [], // 当前选中的keys 35 checkedKeys: [], // 当前选中的keys
36 36
@@ -41,6 +41,13 @@ export default { @@ -41,6 +41,13 @@ export default {
41 }; 41 };
42 }, 42 },
43 computed: { 43 computed: {
  44 + //设置紫薯节点及节点标签
  45 + defaultProps(){
  46 + return{
  47 + children:this.optionsSetup.propsChildren?this.optionsSetup.propsChildren:'children',
  48 + label:this.optionsSetup.propsLabel?this.optionsSetup.propsLabel:'label'
  49 + }
  50 + },
44 styleObj() { 51 styleObj() {
45 return { 52 return {
46 position: this.ispreview ? "absolute" : "static", 53 position: this.ispreview ? "absolute" : "static",
@@ -58,6 +65,7 @@ export default { @@ -58,6 +65,7 @@ export default {
58 'box-shadow':this.optionsSetup.isShadow?'0px 3px 12px '+this.optionsSetup.borderColor:'none', 65 'box-shadow':this.optionsSetup.isShadow?'0px 3px 12px '+this.optionsSetup.borderColor:'none',
59 'max-height':this.optionsStyle.height + "px", 66 'max-height':this.optionsStyle.height + "px",
60 'overflow':'auto', 67 'overflow':'auto',
  68 + 'width':this.optionsSetup.isFrame?'20%':'100%'
61 } 69 }
62 }, 70 },
63 //文字样式设置 71 //文字样式设置
@@ -220,8 +228,8 @@ export default { @@ -220,8 +228,8 @@ export default {
220 data.then(res => { 228 data.then(res => {
221 if(res[0] && res[0].data){ 229 if(res[0] && res[0].data){
222 this.treeData=res[0].data; 230 this.treeData=res[0].data;
223 - this.setSrc(this.treeData[0])  
224 - 231 + this.handleNodeClick(this.treeData[0])
  232 + // this.setSrc(this.treeData[0])
225 } 233 }
226 }); 234 });
227 }, 235 },