云南曲靖微服务测试用例
This commit is contained in:
@@ -228,6 +228,17 @@ const tableStore = new TableStore({
|
||||
formatter: function (row) {
|
||||
return row.cellValue ? row.cellValue : '/'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: formData.value.statisticalType.name,
|
||||
field: 'name',
|
||||
align: 'left',
|
||||
type: 'html',
|
||||
treeNode: true,
|
||||
width: 350,
|
||||
formatter: function (row) {
|
||||
return row.cellValue ? row.cellValue : '/'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '网络参数',
|
||||
@@ -324,7 +335,6 @@ const tableStore = new TableStore({
|
||||
loadCallback: () => {
|
||||
tableStore.table.data = tree2List(tableStore.table.data, Math.random() * 1000)
|
||||
tableStore.table.column[0].title = formData.value.statisticalType.name
|
||||
tableStore.table.column[0].type = "html"
|
||||
chartsRef.value && chartsRef.value.getTableStoreParams(tableStore.table.params)
|
||||
setTimeout(() => {
|
||||
activeName.value == 0 && tableRef.value && tableRef.value.getRef().setAllTreeExpand(true)
|
||||
@@ -439,6 +449,23 @@ watch(
|
||||
deep: true
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => tableStore.table,
|
||||
(val) => {
|
||||
if(val.data.length > 0){
|
||||
tableStore.table.column[0].visible = true
|
||||
tableStore.table.column[1].visible = false
|
||||
}else{
|
||||
tableStore.table.column[0].visible = false
|
||||
tableStore.table.column[1].visible = true
|
||||
}
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
)
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user