|
@@ -393,18 +393,18 @@ export default {
|
|
|
},
|
|
|
updateviewSource(e) {
|
|
|
this.currentId = e.id
|
|
|
- let dists ;
|
|
|
- if ("地埋扳孔" == e.modeOperation){
|
|
|
- dists="bury_the_wrench_hole";
|
|
|
- }else if ("架空扳孔" == e.modeOperation){
|
|
|
- dists="aerial_wrench_hole";
|
|
|
- }else if ("停气作业" == e.modeOperation){
|
|
|
- dists="shutdown_operation";
|
|
|
- }else if ("PE 封堵" == e.modeOperation){
|
|
|
- dists="pe_plugging";
|
|
|
- }else if ("钢管带气封堵" == e.modeOperation){
|
|
|
- dists="the_steel_pipe_sealed_with_gas";
|
|
|
- }
|
|
|
+ let dists = e.modeOperation;
|
|
|
+ // if ("地埋扳孔" == e.modeOperation){
|
|
|
+ // dists="bury_the_wrench_hole";
|
|
|
+ // }else if ("架空扳孔" == e.modeOperation){
|
|
|
+ // dists="aerial_wrench_hole";
|
|
|
+ // }else if ("停气作业" == e.modeOperation){
|
|
|
+ // dists="shutdown_operation";
|
|
|
+ // }else if ("PE 封堵" == e.modeOperation){
|
|
|
+ // dists="pe_plugging";
|
|
|
+ // }else if ("钢管带气封堵" == e.modeOperation){
|
|
|
+ // dists="the_steel_pipe_sealed_with_gas";
|
|
|
+ // }
|
|
|
getDicts(dists).then(res => {
|
|
|
this.nodeList = res.data
|
|
|
let dict = []
|
|
@@ -422,18 +422,18 @@ export default {
|
|
|
handleHistory(e, type = null){
|
|
|
this.currentId = e.id
|
|
|
let dict = []
|
|
|
- let dists ;
|
|
|
- if ("地埋扳孔" == e.modeOperation){
|
|
|
- dists="bury_the_wrench_hole";
|
|
|
- }else if ("架空扳孔" == e.modeOperation){
|
|
|
- dists="aerial_wrench_hole";
|
|
|
- }else if ("停气作业" == e.modeOperation){
|
|
|
- dists="shutdown_operation";
|
|
|
- }else if ("PE 封堵" == e.modeOperation){
|
|
|
- dists="pe_plugging";
|
|
|
- }else if ("钢管带气封堵" == e.modeOperation){
|
|
|
- dists="the_steel_pipe_sealed_with_gas";
|
|
|
- }
|
|
|
+ let dists = e.modeOperation;
|
|
|
+ // if ("地埋扳孔" == e.modeOperation){
|
|
|
+ // dists="bury_the_wrench_hole";
|
|
|
+ // }else if ("架空扳孔" == e.modeOperation){
|
|
|
+ // dists="aerial_wrench_hole";
|
|
|
+ // }else if ("停气作业" == e.modeOperation){
|
|
|
+ // dists="shutdown_operation";
|
|
|
+ // }else if ("PE 封堵" == e.modeOperation){
|
|
|
+ // dists="pe_plugging";
|
|
|
+ // }else if ("钢管带气封堵" == e.modeOperation){
|
|
|
+ // dists="the_steel_pipe_sealed_with_gas";
|
|
|
+ // }
|
|
|
getDicts(dists).then(res => {
|
|
|
this.nodeList = res.data
|
|
|
for (let i = 0; i < this.nodeList.length; i++) {
|
|
@@ -544,18 +544,18 @@ export default {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
this.title = "添加碰口作业用料信息";
|
|
|
- let dists ;
|
|
|
- if ("地埋扳孔" == response.data.modeOperation){
|
|
|
- dists="bury_the_wrench_hole";
|
|
|
- }else if ("架空扳孔" == response.data.modeOperation){
|
|
|
- dists="aerial_wrench_hole";
|
|
|
- }else if ("停气作业" == response.data.modeOperation){
|
|
|
- dists="shutdown_operation";
|
|
|
- }else if ("PE 封堵" == response.data.modeOperation){
|
|
|
- dists="pe_plugging";
|
|
|
- }else if ("钢管带气封堵" == response.data.modeOperation){
|
|
|
- dists="the_steel_pipe_sealed_with_gas";
|
|
|
- }
|
|
|
+ let dists = response.data.modeOperation;
|
|
|
+ // if ("地埋扳孔" == response.data.modeOperation){
|
|
|
+ // dists="bury_the_wrench_hole";
|
|
|
+ // }else if ("架空扳孔" == response.data.modeOperation){
|
|
|
+ // dists="aerial_wrench_hole";
|
|
|
+ // }else if ("停气作业" == response.data.modeOperation){
|
|
|
+ // dists="shutdown_operation";
|
|
|
+ // }else if ("PE 封堵" == response.data.modeOperation){
|
|
|
+ // dists="pe_plugging";
|
|
|
+ // }else if ("钢管带气封堵" == response.data.modeOperation){
|
|
|
+ // dists="the_steel_pipe_sealed_with_gas";
|
|
|
+ // }
|
|
|
getDicts(dists).then(res => {
|
|
|
this.nodeList = res.data
|
|
|
})
|