diff --git a/app.json b/app.json index 3b1c6da..b092dc2 100644 --- a/app.json +++ b/app.json @@ -95,7 +95,8 @@ "pages/user/chose", "pages/safelist/index", "pages/safefeedback/index", - "pages/safefeedback/add" + "pages/safefeedback/add", + "pages/operation/operationedit" ], "window": { "backgroundTextStyle": "light", diff --git a/pages/operation/operation.js b/pages/operation/operation.js index b5230da..f63ecda 100644 --- a/pages/operation/operation.js +++ b/pages/operation/operation.js @@ -227,4 +227,16 @@ Page({ }) }, + toDo:function(e){ + let item=e.currentTarget.dataset.item + if(item.zyzt.index==-1){ + wx.navigateTo({ + url: 'operationedit?zyid='+item.zyid, + }) + }else{ + wx.navigateTo({ + url: 'operationcheck?zyid='+item.zyid, + }) + } + } }); \ No newline at end of file diff --git a/pages/operation/operation.wxml b/pages/operation/operation.wxml index d01bdf7..5b5c45c 100644 --- a/pages/operation/operation.wxml +++ b/pages/operation/operation.wxml @@ -36,7 +36,7 @@ 共{{todototal}}条作业许可 - + {{item.zylx__dickeyname}} @@ -48,7 +48,7 @@ {{item.zyzt.zyzt}} - + diff --git a/pages/operation/operationadd.js b/pages/operation/operationadd.js index efaa650..070d7b3 100644 --- a/pages/operation/operationadd.js +++ b/pages/operation/operationadd.js @@ -136,7 +136,7 @@ Page({ nst1.push(lst[i]['id']) } this.setData({ - zyryname: nst.join(','), + zyry_names: nst.join(','), zyry: nst1 }) } diff --git a/pages/operation/operationadd.wxml b/pages/operation/operationadd.wxml index e1d042b..8d128e8 100644 --- a/pages/operation/operationadd.wxml +++ b/pages/operation/operationadd.wxml @@ -78,7 +78,7 @@ - {{zyryname}} + {{zyry_names}} 作业内容 @@ -86,7 +86,6 @@