区域,海南不调getLastData
This commit is contained in:
@@ -29,7 +29,7 @@ import { getLastData } from '@/api/systerm'
|
||||
const Version: any = ref(null)
|
||||
const config = useConfig()
|
||||
const getTheme = JSON.parse(window.localStorage.getItem('getTheme') as string)
|
||||
|
||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'hainan'
|
||||
const onMenuCollapse = () => {
|
||||
showShade('ba-aside-menu-shade', () => {
|
||||
config.setLayout('menuCollapse', true)
|
||||
@@ -37,9 +37,12 @@ const onMenuCollapse = () => {
|
||||
config.setLayout('menuCollapse', false)
|
||||
}
|
||||
onMounted(() => {
|
||||
getLastData({ versionType: 'WEB' }).then(res => {
|
||||
Version.value = res.data.versionName
|
||||
})
|
||||
if(!VITE_FLAG){
|
||||
getLastData({ versionType: 'WEB' }).then(res => {
|
||||
Version.value = res.data.versionName
|
||||
})
|
||||
}
|
||||
|
||||
document.title = getTheme.name
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -56,8 +56,10 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="区域" prop="regionList">
|
||||
<el-cascader v-model="form.regionList" style="width: 100%" :props="props" :options="areaList" />
|
||||
<!-- <el-cascader v-model="form.regionList" style="width: 100%" :props="props" :options="areaList" /> -->
|
||||
<el-cascader v-model="form.regionList" :props="props" :options="areaList" style="width: 100%" placeholder="请选择区域" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="详细地址:" prop="area">
|
||||
<el-input
|
||||
clearable
|
||||
@@ -93,6 +95,8 @@ import { mainHeight } from '@/utils/layout'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import equipment from './equipment.vue'
|
||||
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'
|
||||
import { getAreaDept } from '@/api/harmonic-boot/area'
|
||||
|
||||
defineOptions({
|
||||
name: 'estimate/photovoltaic'
|
||||
})
|
||||
@@ -104,7 +108,8 @@ const disabled = ref(false)
|
||||
const TableHeaderRef = ref()
|
||||
const equipmentRef = ref()
|
||||
const title = ref('')
|
||||
const areaList: any = dictData.areaSelect()
|
||||
//const areaList: any = dictData.areaSelect()
|
||||
const areaList = ref([])
|
||||
const userShow: any = ref('Power_Station_Users')
|
||||
|
||||
const form = ref({
|
||||
@@ -263,14 +268,20 @@ tableStore.table.params.userType = ''
|
||||
provide('tableStore', tableStore)
|
||||
onMounted(() => {
|
||||
tableStore.index()
|
||||
|
||||
|
||||
})
|
||||
const useChange = (e: string) => {
|
||||
userShow.value = uesrList.filter(item => item.id == e)[0].code
|
||||
}
|
||||
// 新增
|
||||
const add = () => {
|
||||
const add = async () => {
|
||||
disabled.value = false
|
||||
title.value = '新增承载能力待评估用户'
|
||||
|
||||
await getAreaDept().then(res => {
|
||||
areaList.value = JSON.parse(JSON.stringify(res.data))
|
||||
})
|
||||
dialogVisible.value = true
|
||||
}
|
||||
// 保存
|
||||
|
||||
Reference in New Issue
Block a user