lilei 4 лет назад
Родитель
Сommit
e53015dd5d

+ 1 - 1
App.vue

@@ -1,7 +1,7 @@
 <script>
 	// const uat_URL = 'http://md.test.zyucgj.com/at-employee/' // 预发布
 	// const uat_URL = 'http://192.168.16.107:7300/mock/5f5af637cb0f492ad4ee858f/app/at-employee/' // mock
-	const uat_URL = 'http://192.168.16.100:8203/at-employee/' // 本地
+	const uat_URL = 'http://192.168.16.100:9102/at-employee/' // 本地
 	const pro_URL = 'https://car.zyucgj.com/at-employee/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url

+ 3 - 2
api/task.js

@@ -9,8 +9,9 @@ export const getTaskDetail = params => {
 // 重置任务项目(重新选择方案)
 export const updateTaskItem = params => {
   return axios.request({
-    url: `task/changeTaskItem/${params.taskId}/${params.schemeId}`,
-    method: 'get'
+    url: `task/changeTaskItem`,
+    method: 'post',
+	data: params
   })
 }
 // 巡店任务过期处理

+ 5 - 1
hybrid/html/video.html

@@ -261,6 +261,7 @@
 					},
 					// 选择机位
 					onVideoListClick({key}) {
+						this.videoPlayerStatus = ''
 						let v = this.videoList.find(item => item.gbId == key)
 						if (v) {
 							this.curVideo = v
@@ -383,7 +384,10 @@
 						}))
 						// 当前查看的指标对象
 						let obj = this.zbItem[this.activeZbIndex]
-						this.curZbItem = Object.assign({},this.curZbItem,JSON.parse(JSON.stringify(obj)))
+						this.curZbItem = Object.assign({
+							comments: '',
+							taskTargetPhotoList: []
+						},JSON.parse(JSON.stringify(obj)))
 						// 抓拍
 						this.takePhotos(1)
 					},

+ 2 - 1
pages/evaluatePlan/evaluatePlan.vue

@@ -47,7 +47,8 @@
 					})
 				}else{
 					//关闭当前页面,这里处理数据逻辑
-					uni.$emit("resetTaskKpItem",item[0])
+					let row = this.list.find(k=> k.id == item[0])
+					uni.$emit("resetTaskKpItem",row)
 					uni.navigateBack()
 				}
 			},

+ 1 - 1
pages/login/login.vue

@@ -125,7 +125,6 @@ export default {
 		},
 		//  表单提交
 		formSubmit() {
-			// this.toMain();
 			const _this = this;
 			//  表单校验
 			if (_this.form.username == '') {
@@ -153,6 +152,7 @@ export default {
 			});
 			//  登录
 			login(_this.form).then(ret => {
+				console.log(ret)
 				uni.hideLoading();
 				let res = ret.data ? ret.data : ret;
 				if (res.status == 200) {

+ 11 - 5
pages/shopTour/shopTour.vue

@@ -90,6 +90,7 @@
 				}
 				console.log(params,'saveZbPlImgs')
 				taskCommentsSave(params).then(res=>{
+					console.log(res)
 					if(res.status == 200){
 						this.wv.evalJS("vm.saveZbPlImgsSuccess()") 
 					}
@@ -224,9 +225,14 @@
 				})
 			},
 			// 更新方案项目
-			updateTaskItem(schemeId){
-				console.log(schemeId)
-				updateTaskItem({schemeId,taskId:this.taskId}).then(res=>{
+			updateTaskItem(row){
+				console.log(row)
+				updateTaskItem({
+					id:this.taskId,
+					assessSchemeId: row.id,
+					assessSchemeName: row.name
+				}).then(res=>{
+					console.log(res,'updateTaskItem')
 					if(res.status==200){
 						// 重置页面
 						this.wv.evalJS("vm.resetPage()")
@@ -337,8 +343,8 @@
 			// #endif
 			
 			// 监听选择方案后事件,schemeId 方案id
-			uni.$on("resetTaskKpItem",(schemeId)=>{
-				_this.updateTaskItem(schemeId)
+			uni.$on("resetTaskKpItem",(row)=>{
+				_this.updateTaskItem(row)
 			})
 			
 			// 关闭当前页面

+ 2 - 1
pages/userCenter/personInfo.vue

@@ -48,7 +48,7 @@
 		onShow() {
 			this.getDetail()
 		},
-		// 判断员工性别
+		// 角色
 		filters: {
 			filterRoles(val){
 				 if(val){
@@ -64,6 +64,7 @@
 			// 查询详细信息
 			getDetail(){
 				findUserInfo().then(res => {
+					console.log(res)
 					this.pageData = res.data || null
 				})
 			},

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


+ 5 - 1
unpackage/dist/dev/app-plus/hybrid/html/video.html

@@ -261,6 +261,7 @@
 					},
 					// 选择机位
 					onVideoListClick({key}) {
+						this.videoPlayerStatus = ''
 						let v = this.videoList.find(item => item.gbId == key)
 						if (v) {
 							this.curVideo = v
@@ -383,7 +384,10 @@
 						}))
 						// 当前查看的指标对象
 						let obj = this.zbItem[this.activeZbIndex]
-						this.curZbItem = Object.assign({},this.curZbItem,JSON.parse(JSON.stringify(obj)))
+						this.curZbItem = Object.assign({
+							comments: '',
+							taskTargetPhotoList: []
+						},JSON.parse(JSON.stringify(obj)))
 						// 抓拍
 						this.takePhotos(1)
 					},

Некоторые файлы не были показаны из-за большого количества измененных файлов