|
@@ -41,9 +41,15 @@
|
|
|
<el-input style="width: 1136px;" v-model="newMission.misMes"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="SCD文件">
|
|
|
- <el-button style="width: 954px;" @click="chooseScdFile" type="primary" plain>{{ btnName
|
|
|
- }}</el-button>
|
|
|
- <span>正在进行间隔装置分析
|
|
|
+ <el-upload ref="upload" class="upload-demo" :http-request="nowUpload" :limit="2"
|
|
|
+ element-loading-text="上传中..." element-loading-background="rgba(255, 255, 255, 0.8)"
|
|
|
+ :show-file-list="false">
|
|
|
+ <template #trigger>
|
|
|
+ <el-button style="border-bottom: 1px solid #7BBAFD;width: calc(100vw - 1000px);"
|
|
|
+ type="primary" plain>点击选择scd文件</el-button>
|
|
|
+ </template>
|
|
|
+ </el-upload>
|
|
|
+ <span v-loading="scdLoading">正在进行间隔装置分析
|
|
|
<el-icon>
|
|
|
<Loading />
|
|
|
</el-icon>
|
|
@@ -103,16 +109,14 @@
|
|
|
<script>
|
|
|
import { ref, onMounted, reactive } from 'vue';
|
|
|
import flashPower from '../../../api/flashPower'
|
|
|
-import systemRow from '@/api/systemRow'
|
|
|
-import litLine from '@/api/litLine';
|
|
|
import report from '@/api/report';
|
|
|
import scd from "@/api/scd"
|
|
|
import task from '@/api/task';
|
|
|
-import station from '@/api/station/station'
|
|
|
+import cid from '@/api/cid/cid';
|
|
|
import LookScd from '../modalComp/LookScd.vue';
|
|
|
import ModelTree from '../modalComp/ModelTree.vue';
|
|
|
import FlashCreate from '../modalComp/FlashCreate.vue';
|
|
|
-import { ElMessage } from 'element-plus';
|
|
|
+import { ElMessage, ElLoading } from 'element-plus';
|
|
|
export default {
|
|
|
props: {
|
|
|
btnSelect: {
|
|
@@ -168,6 +172,7 @@ export default {
|
|
|
let scdName = ref('')//lookscd.vue返回的scdname
|
|
|
let cmodel = ref('')
|
|
|
let fcModal = ref(false)//创建变电站模态框
|
|
|
+ let scdLoading = ref(false)//上传scd文件后进行分析
|
|
|
function searchAllFlash() {
|
|
|
flashPower.getAllArea({}).then(res => {
|
|
|
flashPower.getAllFlashPower({ pid: res.data[0].pid }).then(res => {
|
|
@@ -179,9 +184,9 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
})
|
|
|
- scd.getScdMiddle({ scd_id: 312000086 }).then(res => {
|
|
|
- jgList.value = res.data
|
|
|
- })
|
|
|
+ // scd.getScdMiddle({ scd_id: 312000086 }).then(res => {
|
|
|
+ // jgList.value = res.data
|
|
|
+ // })
|
|
|
report.getReport({}).then(res => {
|
|
|
rmList.value = res.data
|
|
|
})
|
|
@@ -234,6 +239,25 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ function nowUpload(e) {
|
|
|
+ const loading = ElLoading.service({
|
|
|
+ lock: true,
|
|
|
+ text: '文件上传中',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
+ })
|
|
|
+ cid.fileUpload({ station_id: 861, data_type: 'a_scd', file: e.file }).then(res => {
|
|
|
+ scdLoading.value = true
|
|
|
+ if (res.code == 0) {
|
|
|
+ loading.close()
|
|
|
+ }
|
|
|
+ scd.loadScd({ station_id: 861, scd_path: res.data.path, scd_name: res.data.filename }).then(the => {
|
|
|
+ scd.getLoadScd({ scd_id: the.data - 0 }).then(lod => {
|
|
|
+ console.log(lod,'rsasdas');
|
|
|
+ scdLoading.value = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
function addFlash() {
|
|
|
fcModal.value = true
|
|
|
}
|
|
@@ -253,6 +277,9 @@ export default {
|
|
|
}
|
|
|
function lookNum(name, id) {
|
|
|
scdId.value = id
|
|
|
+ scd.getScdMiddle({ scd_id: id }).then(res => {
|
|
|
+ jgList.value = res.data
|
|
|
+ })
|
|
|
scdName.value = name
|
|
|
}
|
|
|
function fcBack(data) {
|
|
@@ -296,6 +323,8 @@ export default {
|
|
|
addFlash,//新建变电站
|
|
|
fcModal,//创建变电站模态框
|
|
|
fcBack,//flashcreate.vue返回的模态框值
|
|
|
+ nowUpload,//文件上传
|
|
|
+ scdLoading,
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -370,4 +399,5 @@ em {
|
|
|
border: 1px solid blue;
|
|
|
text-align: center;
|
|
|
line-height: 30px;
|
|
|
-}</style>
|
|
|
+}
|
|
|
+</style>
|