zhnghongrui пре 1 година
родитељ
комит
b6839556c4
4 измењених фајлова са 1098 додато и 417 уклоњено
  1. 3 2
      api/common.js
  2. 10 9
      pages/enginproject/enginproject.vue
  3. 1078 404
      pages/municipal/municipal.vue
  4. 7 2
      pages/work/index.vue

+ 3 - 2
api/common.js

@@ -23,10 +23,11 @@ export function getEngineeringDetails(id) {
 }
 
 // 工业工程  市政工程 - 根据工程类型查询列表
-export function getengineeringNameList(enginType, type) {
+export function getengineeringNameList(enginType, type, enginClassification) {
 	const data = {
 		enginType,
-		type
+		type,
+		enginClassification
 	}
 	return request({
 		'url': '/zdsz/engineeringIndustry/queryNameByType',

+ 10 - 9
pages/enginproject/enginproject.vue

@@ -347,16 +347,16 @@
 			onLoad(options) {
 				if ('params' in options) {
 					this.objValue = JSON.parse(decodeURIComponent(options.params));
-					if (this.objValue.enginType == `old_renovation`) {
-						this.title = '旧改工程-庭院'
+					// if (this.objValue.enginType == `old_renovation`) {
+					// 	this.title = '旧改工程-庭院'
 
-					} else if (this.objValue.enginType == `new_built`) {
-						this.title = '新建工程-庭院'
-					}
+					// } else if (this.objValue.enginType == `new_built`) {
+					// 	this.title = '新建工程-庭院'
+					// }
 
-					uni.setNavigationBarTitle({
-						title: this.title
-					})
+					// uni.setNavigationBarTitle({
+					// 	title: this.title
+					// })
 				}
 
 
@@ -440,7 +440,8 @@
 						}
 						this.open = true;
 						//请求
-						getengineeringNameList(this.projectType.dictValue, "1").then(response => {
+						console.log("sss", this.objValue.value)
+						getengineeringNameList(this.projectType.dictValue, "1", this.objValue.value).then(response => {
 
 							this.selectList = response.data;
 						});

Разлика између датотеке није приказан због своје велике величине
+ 1078 - 404
pages/municipal/municipal.vue


+ 7 - 2
pages/work/index.vue

@@ -173,9 +173,14 @@
 
 			},
 			//市政工程-首页-点击事件
-			municipalProjectClick(){
+			municipalProjectClick() {
+				let obj = {
+					value: '市政工程'
+				};
 				uni.navigateTo({
-					url: '/pages/municipal/municipal'
+					url: '/pages/municipal/municipal?params=' + encodeURIComponent(JSON
+						.stringify(obj))
+					
 				});
 			},