测试用例修改
This commit is contained in:
@@ -154,6 +154,7 @@ import TableStore from '@/utils/tableStore'
|
||||
import Table from '@/components/table/index.vue'
|
||||
import charts from './components/charts.vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { el, fa, tr } from 'element-plus/es/locale'
|
||||
defineOptions({
|
||||
name: 'harmonic-boot/harmonic/getIntegrityData'
|
||||
})
|
||||
@@ -181,6 +182,7 @@ const getTreeData = async () => {
|
||||
idArr.value.push(element.id)
|
||||
})
|
||||
treeData.value = JSON.parse(JSON.stringify(res.data))
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -224,7 +226,6 @@ const tableStore = new TableStore({
|
||||
treeNode: true,
|
||||
width: 350,
|
||||
formatter: function (row) {
|
||||
console.log('🚀 ~ row:', row)
|
||||
return row.cellValue ? row.cellValue : '/'
|
||||
}
|
||||
},
|
||||
@@ -322,11 +323,12 @@ 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)
|
||||
|
||||
}, 0)
|
||||
},
|
||||
resetCallback:() =>{
|
||||
@@ -336,6 +338,7 @@ const tableStore = new TableStore({
|
||||
formData.value.scale = voltageleveloption
|
||||
formData.value.manufacturer = terminaloption
|
||||
formData.value.loadType = interfereoption
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
@@ -415,8 +418,9 @@ const makeUpSubmit = () => {
|
||||
reCallEndTime: timeData.value[1],
|
||||
reCallStartTime: timeData.value[0]
|
||||
}).then(res => {
|
||||
|
||||
ElMessage({
|
||||
message: res.message,
|
||||
message: "补招命令下发成功",
|
||||
type: 'success'
|
||||
})
|
||||
dialogVisible.value = false
|
||||
@@ -426,7 +430,7 @@ watch(
|
||||
() => treeData.value,
|
||||
(val, oldVal) => {
|
||||
if (val && val.length != 0) {
|
||||
formData.value.deptIndex = val[0].id
|
||||
formData.value.deptIndex = val[0].id
|
||||
tableStore.index()
|
||||
}
|
||||
},
|
||||
@@ -437,6 +441,7 @@ watch(
|
||||
)
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
// .online {
|
||||
// width: 100%;
|
||||
// height: 100%;
|
||||
|
||||
@@ -104,7 +104,7 @@ const tableStore = new TableStore({
|
||||
text: title
|
||||
},
|
||||
legend: {
|
||||
data: ['投运', '热备用', '停运'],
|
||||
data: ['投运', '检修', '停运'],
|
||||
left: '4%',
|
||||
textStyle: {
|
||||
color: '#666666'
|
||||
@@ -214,7 +214,7 @@ const tableStore = new TableStore({
|
||||
data: chartsData.value.runFlag
|
||||
},
|
||||
{
|
||||
name: '热备用',
|
||||
name: '检修',
|
||||
type: 'bar',
|
||||
// stack: 'false',
|
||||
barMaxWidth: 24,
|
||||
|
||||
Reference in New Issue
Block a user