riku
2025-05-16 6d479f9fbc15e96383fe25270575c976e4356e89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<template>
  <el-dialog>
    <div class="sub-title">账户信息</div>
    <el-row>
      <FormCol>
        <CompUserInfo :form-info="formUser" />
      </FormCol>
    </el-row>
    <el-divider />
    <div class="sub-title">基本信息</div>
    <el-row>
      <FormCol>
        <CompSceneBaseInfo :model="formScene" />
      </FormCol>
    </el-row>
    <template v-if="formScene.typeid == 1">
      <el-divider />
      <div class="sub-title">工地信息</div>
      <el-row>
        <FormCol>
          <CompSceneConstructionInfo
            showStyle="form"
            :form-info="formSubScene"
          />
        </FormCol>
      </el-row>
      <el-divider />
      <div class="sub-title">设备信息</div>
      <el-row>
        <FormCol>
          <CompSceneDeviceInfo
            :form-info="formSceneDevice"
            :scene-type="formScene.typeid"
          />
        </FormCol>
      </el-row>
    </template>
  </el-dialog>
</template>
<script setup>
import { ref } from 'vue';
 
import sceneApi from '@/api/fysp/sceneApi';
import userApi from '@/api/fysp/userApi';
import CompSceneBaseInfo from './CompSceneBaseInfo.vue';
import CompSceneConstructionInfo from './CompSceneConstructionInfo.vue';
import CompSceneDeviceInfo from './CompSceneDeviceInfo.vue';
import CompUserInfo from '../user/CompUserInfo.vue';
 
const props = defineProps({
  sceneId: String
});
 
const formUser = ref({});
const formScene = ref({});
const formSubScene = ref({});
const formSceneDevice = ref({});
</script>