|
@@ -895,6 +895,21 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ getDictChild(dict){
|
|
|
+ let str = '';
|
|
|
+ if (dict == '室内管线') {
|
|
|
+ str = 'gy_inner'
|
|
|
+ } else if (dict == '庭院') {
|
|
|
+ str = 'gy_out'
|
|
|
+ // } else if (dict == '调压柜') {
|
|
|
+ // str = 'gy_tyg'
|
|
|
+ } else if (dict == '架空管线') {
|
|
|
+ str = 'gy_jkgx'
|
|
|
+ } else if (dict == '每日施工日志') {
|
|
|
+ str = 'gy_log_every_day'
|
|
|
+ }
|
|
|
+ return str;
|
|
|
+ },
|
|
|
getSceneHeadList(param){
|
|
|
this.form.projectHead = param.split(',')[0];
|
|
|
this.form.sceneHead = "";
|
|
@@ -1124,14 +1139,7 @@ export default {
|
|
|
console.log('历史',e)
|
|
|
this.currentId = e.id
|
|
|
if (!e.enginClassification)return;
|
|
|
- let str = '';
|
|
|
- if (e.enginClassification == '室内管线') {
|
|
|
- str = 'gy_inner'
|
|
|
- } else if (e.enginClassification == '庭院') {
|
|
|
- str = 'gy_out'
|
|
|
- } else if (e.enginClassification == '调压柜') {
|
|
|
- str = 'gy_tyg'
|
|
|
- }
|
|
|
+ let str = this.getDictChild(e.enginClassification);
|
|
|
const r = await getDicts(str)
|
|
|
let dict = []
|
|
|
for (let i = 0; i < r.data.length; i++) {
|
|
@@ -1150,14 +1158,7 @@ export default {
|
|
|
async updateviewSource(e) {
|
|
|
this.currentId = e.id
|
|
|
if (!e.enginClassification)return;
|
|
|
- let str = '';
|
|
|
- if (e.enginClassification == '室内管线') {
|
|
|
- str = 'gy_inner'
|
|
|
- } else if (e.enginClassification == '庭院') {
|
|
|
- str = 'gy_out'
|
|
|
- } else if (e.enginClassification == '调压柜') {
|
|
|
- str = 'gy_tyg'
|
|
|
- }
|
|
|
+ let str = this.getDictChild(e.enginClassification);
|
|
|
const r = await getDicts(str)
|
|
|
let dict = []
|
|
|
for (let i = 0; i < r.data.length; i++) {
|