|
@@ -33,7 +33,7 @@
|
|
</template>
|
|
</template>
|
|
<HcTableList ref="tableRef" is-admin :datas="tableData" @tap="rowNameClick" @check="tableCheck" @change="searchClick" />
|
|
<HcTableList ref="tableRef" is-admin :datas="tableData" @tap="rowNameClick" @check="tableCheck" @change="searchClick" />
|
|
<template #action>
|
|
<template #action>
|
|
- <div>建设规模:共计 xx 公里</div>
|
|
|
|
|
|
+ <div>建设规模:共计 {{ buildTotal }} 公里</div>
|
|
<hc-pages :pages="searchForm" @change="pageChange" />
|
|
<hc-pages :pages="searchForm" @change="pageChange" />
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -103,6 +103,7 @@ onMounted(async () => {
|
|
|
|
|
|
})
|
|
})
|
|
const tableRef = ref(null)
|
|
const tableRef = ref(null)
|
|
|
|
+const buildTotal = ref(0)
|
|
//表格数据
|
|
//表格数据
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
const tableLoading = ref(false)
|
|
const tableLoading = ref(false)
|
|
@@ -115,16 +116,18 @@ const getTableData = async () => {
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
tableData.value = getArrValue(data['records'])
|
|
tableData.value = getArrValue(data['records'])
|
|
searchForm.value.total = data.total || 0
|
|
searchForm.value.total = data.total || 0
|
|
|
|
+ buildTotal.value = data?.buildTotal || 0
|
|
} else {
|
|
} else {
|
|
tableData.value = []
|
|
tableData.value = []
|
|
searchForm.value.total = 0
|
|
searchForm.value.total = 0
|
|
|
|
+ buildTotal.value = 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//项目阶段
|
|
//项目阶段
|
|
const stateOptions = ref([])
|
|
const stateOptions = ref([])
|
|
const getProStation = async () => {
|
|
const getProStation = async () => {
|
|
stateOptions.value = await getDictionaryData('projectStage', true)
|
|
stateOptions.value = await getDictionaryData('projectStage', true)
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
//项目类型
|
|
//项目类型
|
|
const typeOptions = ref([])
|
|
const typeOptions = ref([])
|
|
@@ -169,7 +172,7 @@ const delTableItem = async (_, resolve) => {
|
|
resolve()
|
|
resolve()
|
|
searchClick()
|
|
searchClick()
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
|
|
+
|
|
window.$message.error(msg ?? '删除失败')
|
|
window.$message.error(msg ?? '删除失败')
|
|
resolve()
|
|
resolve()
|
|
}
|
|
}
|