联调二级评估
This commit is contained in:
@@ -99,6 +99,8 @@ import { useDictData } from '@/stores/dictData'
|
||||
import { ElMessage, ElMessageBox, ElDatePicker } from 'element-plus'
|
||||
import { cableList, batchDel } from '@/api/advance-boot/assess'
|
||||
import { useRouter } from 'vue-router'
|
||||
import Form from './form.vue'
|
||||
|
||||
defineOptions({
|
||||
name: 'runManage/addUser'
|
||||
})
|
||||
@@ -167,7 +169,7 @@ const tableStore: any = new TableStore({
|
||||
return row.cellValue == '01' ? '风电场' : row.cellValue == '02' ? '光伏' : '其他'
|
||||
}
|
||||
},
|
||||
{ field: 'windfarmCapacity', title: '用户有功功率(MW)', minWidth: 180 },
|
||||
{ field: 'windfarmCapacity', title: '风电场装机容量(MW)', minWidth: 180 },
|
||||
{
|
||||
field: 'singleLoad',
|
||||
title: '是否单相负荷',
|
||||
@@ -205,17 +207,25 @@ const tableStore: any = new TableStore({
|
||||
type: 'primary',
|
||||
icon: 'el-icon-EditPen',
|
||||
render: 'basicButton',
|
||||
|
||||
click: async row => {}
|
||||
click: async row => {
|
||||
push({
|
||||
path: 'addUser',
|
||||
query: {
|
||||
id: row.assessId,
|
||||
mode: 'view'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
beforeSearchFun: () => {
|
||||
// tableStore.table.params.deptId = tableStore.table.params.deptIndex
|
||||
|
||||
},
|
||||
|
||||
loadCallback: () => {}
|
||||
loadCallback: () => { }
|
||||
})
|
||||
tableStore.table.params.assessName = ''
|
||||
tableStore.table.params.deptId = ''
|
||||
@@ -225,6 +235,17 @@ tableStore.table.params.isWindfarm = ''
|
||||
tableStore.table.params.powerstationScaleList = []
|
||||
|
||||
provide('tableStore', tableStore)
|
||||
const route = useRoute()
|
||||
|
||||
// 监听路由变化
|
||||
watch(
|
||||
() => route.query,
|
||||
(newQuery) => {
|
||||
tableStore.index()
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
|
||||
// 新增评估用户页面
|
||||
const addForm = () => {
|
||||
push({
|
||||
@@ -263,4 +284,7 @@ onMounted(() => {
|
||||
tableStore.index()
|
||||
Info()
|
||||
})
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user