menchuang 1 rok temu
rodzic
commit
21b0c3ffa4
5 zmienionych plików z 65 dodań i 2 usunięć
  1. 27 0
      api/common.js
  2. 2 1
      config.js
  3. 8 0
      pages.json
  4. 1 0
      pages/login.vue
  5. 27 1
      pages/work/index.vue

+ 27 - 0
api/common.js

@@ -344,4 +344,31 @@ export function getHousesList(unitId) {
 		'method': 'get',
 		'data': data
 	})
+}
+
+// 列表选择带气封堵施工工程
+export function getGasSealingProjectList(enginType) {
+	const data = {
+		enginType
+	}
+	return request({
+		'url': '/zdsz/engineeringAirWall/list',
+		'method': 'get',
+		'data': data
+	})
+}
+//新增/修改 带气封堵施工工程
+export function submitGasSealingProject(param) {
+	return request({
+		'url': '/zdsz/engineeringAirWall',
+		'method': 'put',
+		'data': param
+	})
+}
+//列表 带气封堵施工工程
+export function getGasSealingHistoryList(id, type) {
+	return request({
+		'url': '/zdsz/engineeringAirWall/'+id+'/'+type,
+		'method': 'get',
+	})
 }

+ 2 - 1
config.js

@@ -1,7 +1,8 @@
 // 应用全局配置
 module.exports = {
 	//baseUrl: 'https://www.xcx.cczdsz.cn/prod-api',
-	baseUrl: 'http://192.168.4.20:8080',
+	// baseUrl: 'http://192.168.4.20:8080',
+	baseUrl: 'http://192.168.4.88:8080',
 	//baseUrl: 'http://192.168.4.23:8080',
 	//baseUrl: 'http://192.168.4.11:8080',
 	// baseUrl: 'http://192.168.4.14:8089',

+ 8 - 0
pages.json

@@ -140,6 +140,14 @@
 				"navigationBarTitleText" : "",
 				"enablePullDownRefresh" : false
 			}
+		},
+		{
+			"path" : "pages/gas_sealing_project/gas_sealing_project",
+			"style" : 
+			{
+				"navigationBarTitleText" : "",
+				"enablePullDownRefresh" : false
+			}
 		}
 
 	],

+ 1 - 0
pages/login.vue

@@ -116,6 +116,7 @@
 				// 设置用户信息
 				this.$store.dispatch('GetInfo').then(res => {
 					this.$tab.reLaunch('/pages/work/index')
+					// this.$tab.reLaunch('/pages/gas_sealing_project/gas_sealing_project')
 				})
 			}
 		}

+ 27 - 1
pages/work/index.vue

@@ -17,6 +17,7 @@
 					<image class="icon-item" :src="loadImgSrc('dggc.png')" v-if="item.title == '顶管工程'"></image>
 					<image class="icon-item" :src="loadImgSrc('jjgc.png')" v-if="item.title == '基建工程'"></image>
 					<image class="icon-item" :src="loadImgSrc('open_bolt.png')" v-if="item.title == '开栓'"></image>
+					<image class="icon-item" :src="loadImgSrc('open_bolt.png')" v-if="item.title == '带气封堵施工'"></image>
 					<view class="GStitle">{{ item.title }}</view>
 				</view>
 			</view>
@@ -177,6 +178,11 @@ border-radius: 50%; margin-right: 20rpx;">旧</view>
 						img: '/static/logo.png',
 						title: '开栓'
 					},
+					{
+						id: 8,
+						img: '/static/logo.png',
+						title: '带气封堵施工'
+					},
 				]
 
 
@@ -198,6 +204,8 @@ border-radius: 50%; margin-right: 20rpx;">旧</view>
 					this.showInfrastructureDialog();
 				} else if (newId == 7) {
 					this.showOpenBolt();
+				}else if (newId == 8) {
+					this.showGasSealingDialog();
 				}
 
 			},
@@ -469,6 +477,16 @@ border-radius: 50%; margin-right: 20rpx;">旧</view>
 							.stringify(
 								obj))
 					})
+				} else if (this.projectType == 'DaiQiFengDuShiGong') {
+					let obj = {
+						value: item.dictValue
+					};
+					//this.handleHiddenShare();
+					uni.navigateTo({
+						url: '/pages/gas_sealing_project/gas_sealing_project?params=' + encodeURIComponent(JSON
+							.stringify(
+								obj))
+					})
 				}
 			},
 			showGongYe() {
@@ -504,7 +522,15 @@ border-radius: 50%; margin-right: 20rpx;">旧</view>
 				uni.navigateTo({
 					url: '/pages/open_bolt/open_bolt'
 				})
-			}
+			},
+			showGasSealingDialog() {
+				this.projectType = 'DaiQiFengDuShiGong';
+				//基建工程
+				getDicts("air_wall_node").then(response => {
+					this.typeList = response.data;
+				});
+				this.handleShowSheet();
+			},
 		}
 	}
 </script>