|
@@ -49,16 +49,13 @@
|
|
type="primary" plain>点击选择scd文件</el-button>
|
|
type="primary" plain>点击选择scd文件</el-button>
|
|
</template>
|
|
</template>
|
|
</el-upload>
|
|
</el-upload>
|
|
- <span v-loading="scdLoading">正在进行间隔装置分析
|
|
|
|
- <el-icon>
|
|
|
|
- <Loading />
|
|
|
|
- </el-icon>
|
|
|
|
|
|
+ <span v-loading="scdLoading">{{ scdLoading ? '正在进行间隔装置分析' : '分析完成' }}
|
|
</span>
|
|
</span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<!-- 间隔、装置列表 -->
|
|
<!-- 间隔、装置列表 -->
|
|
- <div class="gapAndUnit">
|
|
|
|
|
|
+ <div class="gapAndUnit" v-if="false">
|
|
<!-- 间隔列表 -->
|
|
<!-- 间隔列表 -->
|
|
<div class="gapBox">
|
|
<div class="gapBox">
|
|
<div style="display: flex;justify-content: flex-start;align-items: center;margin: 5px;">
|
|
<div style="display: flex;justify-content: flex-start;align-items: center;margin: 5px;">
|
|
@@ -143,18 +140,12 @@ export default {
|
|
misName: [
|
|
misName: [
|
|
{ required: true, message: '请输入名称', trigger: 'blur' },
|
|
{ required: true, message: '请输入名称', trigger: 'blur' },
|
|
],
|
|
],
|
|
- // misNum:[
|
|
|
|
- // {required:true,message:""}
|
|
|
|
- // ]
|
|
|
|
flashId: [
|
|
flashId: [
|
|
{ required: true, message: "请选择变电站", trigger: "change" }
|
|
{ required: true, message: "请选择变电站", trigger: "change" }
|
|
],
|
|
],
|
|
reportNow: [
|
|
reportNow: [
|
|
{ required: true, message: "请选择模板", trigger: "change" }
|
|
{ required: true, message: "请选择模板", trigger: "change" }
|
|
],
|
|
],
|
|
- // misMes: [
|
|
|
|
- // { required: true, message: "请输入说明", trigger: "blur" }
|
|
|
|
- // ]
|
|
|
|
})//表单验证
|
|
})//表单验证
|
|
let flashList = ref([])//表单选择的变电站
|
|
let flashList = ref([])//表单选择的变电站
|
|
let scdLooks = ref(false)//选择scd文件时的显示与否
|
|
let scdLooks = ref(false)//选择scd文件时的显示与否
|
|
@@ -173,6 +164,7 @@ export default {
|
|
let cmodel = ref('')
|
|
let cmodel = ref('')
|
|
let fcModal = ref(false)//创建变电站模态框
|
|
let fcModal = ref(false)//创建变电站模态框
|
|
let scdLoading = ref(false)//上传scd文件后进行分析
|
|
let scdLoading = ref(false)//上传scd文件后进行分析
|
|
|
|
+ let loadScdId = ref(0)//上传成功后拿到的scdid
|
|
function searchAllFlash() {
|
|
function searchAllFlash() {
|
|
flashPower.getAllArea({}).then(res => {
|
|
flashPower.getAllArea({}).then(res => {
|
|
flashPower.getAllFlashPower({ pid: res.data[0].pid }).then(res => {
|
|
flashPower.getAllFlashPower({ pid: res.data[0].pid }).then(res => {
|
|
@@ -184,9 +176,6 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- // scd.getScdMiddle({ scd_id: 312000086 }).then(res => {
|
|
|
|
- // jgList.value = res.data
|
|
|
|
- // })
|
|
|
|
report.getReport({}).then(res => {
|
|
report.getReport({}).then(res => {
|
|
rmList.value = res.data
|
|
rmList.value = res.data
|
|
})
|
|
})
|
|
@@ -227,7 +216,7 @@ export default {
|
|
station_id: 861,
|
|
station_id: 861,
|
|
memo: newMission.value.misMes,
|
|
memo: newMission.value.misMes,
|
|
report_id: newMission.value.reportNow - 0,
|
|
report_id: newMission.value.reportNow - 0,
|
|
- scd_id: scdId.value - 0,
|
|
|
|
|
|
+ scd_id: loadScdId.value - 0,
|
|
modelids: mxId.value.toString()
|
|
modelids: mxId.value.toString()
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
@@ -235,26 +224,32 @@ export default {
|
|
message: "创建成功",
|
|
message: "创建成功",
|
|
type: "success"
|
|
type: "success"
|
|
})
|
|
})
|
|
- emit("createBack", 0)
|
|
|
|
|
|
+ // emit("createBack", 0)
|
|
|
|
+ scd.getLoadScd({scd_id:loadScdId.value-0}).then(res=>{
|
|
|
|
+ console.log(res,'rsssss');
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function nowUpload(e) {
|
|
function nowUpload(e) {
|
|
const loading = ElLoading.service({
|
|
const loading = ElLoading.service({
|
|
- lock: true,
|
|
|
|
- text: '文件上传中',
|
|
|
|
- background: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
- })
|
|
|
|
|
|
+ lock: true,
|
|
|
|
+ text: '文件上传中',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
+ })
|
|
cid.fileUpload({ station_id: 861, data_type: 'a_scd', file: e.file }).then(res => {
|
|
cid.fileUpload({ station_id: 861, data_type: 'a_scd', file: e.file }).then(res => {
|
|
scdLoading.value = true
|
|
scdLoading.value = true
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
loading.close()
|
|
loading.close()
|
|
}
|
|
}
|
|
scd.loadScd({ station_id: 861, scd_path: res.data.path, scd_name: res.data.filename }).then(the => {
|
|
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');
|
|
|
|
|
|
+ // scd.getLoadScd({ scd_id: the.data - 0 }).then(lod => {
|
|
|
|
+ // console.log(lod,'rsasdas');
|
|
|
|
+ if (the.code == 0) {
|
|
|
|
+ loadScdId.value = the.data - 0
|
|
scdLoading.value = false
|
|
scdLoading.value = false
|
|
- })
|
|
|
|
|
|
+ }
|
|
|
|
+ // })
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -325,6 +320,7 @@ export default {
|
|
fcBack,//flashcreate.vue返回的模态框值
|
|
fcBack,//flashcreate.vue返回的模态框值
|
|
nowUpload,//文件上传
|
|
nowUpload,//文件上传
|
|
scdLoading,
|
|
scdLoading,
|
|
|
|
+ loadScdId//上传成功后拿到的scdid
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -354,7 +350,7 @@ em {
|
|
width: 1136px;
|
|
width: 1136px;
|
|
height: 339px;
|
|
height: 339px;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
- border-bottom: 1px dashed #dbdbdb;
|
|
|
|
|
|
+ /* border-bottom: 1px dashed #dbdbdb; */
|
|
}
|
|
}
|
|
|
|
|
|
.bestInput {
|
|
.bestInput {
|