diff --git a/pages/riskact/check.js b/pages/riskact/check.js
index c6b693a..ea0d618 100644
--- a/pages/riskact/check.js
+++ b/pages/riskact/check.js
@@ -7,6 +7,7 @@ Page({
data: {
page: 1,
riskact: 0,
+ riskacttask:0,
group: 0
},
@@ -16,6 +17,9 @@ Page({
onLoad: function (options) {
console.log(options)
this.data.riskact = options.riskact
+ if(options.riskacttask){
+ this.riskacttask = options.riskacttask
+ }
this.getlist()
},
getlist: function () {
@@ -99,7 +103,7 @@ Page({
submit: function () {
console.log(this.data.alllist)
let alllist = this.data.alllist
- let data = {'checks':[],'riskact':this.data.riskact}
+ let data = {'checks':[],'riskact':this.data.riskact, 'riskacttask':this.data.riskacttask}
for (var i = 0; i < alllist.length; i++) {
if (i.trouble != undefined){
data.checks.push({ 'id': alllist[i].id })
diff --git a/pages/risktask/detail.wxml b/pages/risktask/detail.wxml
index 52a4b3f..90e219c 100644
--- a/pages/risktask/detail.wxml
+++ b/pages/risktask/detail.wxml
@@ -1,7 +1,7 @@
- 共{{total}}条风险
+ 共排查{{total}}条风险
-
+
低风险
@@ -10,11 +10,16 @@
重大风险
{{item.risk__step}}
+
标准/危害因素
{{item.risk__hazard}}
+ 排查时间
+ {{item.riskacttask__taskdo}}
+
+
+
+ 隐患编号
+ {{item.trouble__yhnum}}
- {{item.trouble__yhnum}}
+
+
+
+ 风险详情
+ 隐患详情
diff --git a/pages/risktask/index.js b/pages/risktask/index.js
index 60c18ed..9fb9825 100644
--- a/pages/risktask/index.js
+++ b/pages/risktask/index.js
@@ -9,7 +9,7 @@ Page({
page: 1,
serverUrl: getApp().globalData.serverUrl,
alllist: [],
- tabs: ["历史任务", "我的任务", "全厂待办"],
+ tabs: ["历史任务", "我的待办", "全厂待办"],
activeIndex: 1,
sliderOffset: 0,
sliderLeft: 0
diff --git a/pages/risktask/index.wxml b/pages/risktask/index.wxml
index 0d19291..c8b49bd 100644
--- a/pages/risktask/index.wxml
+++ b/pages/risktask/index.wxml
@@ -19,11 +19,12 @@
{{item.riskact__area__name}} {{item.riskact__name}}
任务生成时间:{{item.taskadd}}
- 任务过期时间:{{item.taskexpire}}
+ 任务过期时间:{{item.taskexpire}}
+ 执行人:{{item.user__name}}
低风险
@@ -32,7 +33,7 @@
重大风险
已执行
作废
- 未执行
+ 已过期
@@ -42,18 +43,19 @@
共{{todototal}}条任务
-
+
风险点
{{item.riskact__area__name}} {{item.riskact__name}}
- 排查岗位
+ 所属岗位
{{item.riskact__group__groupname}}
任务生成时间:{{item.taskadd}}
- 任务过期时间:{{item.taskexpire}}
+ 任务过期时间:{{item.taskexpire}}
+ 执行人:{{item.user__name}}
低风险
@@ -77,11 +79,12 @@
{{item.riskact__area__name}} {{item.riskact__name}}
任务生成时间:{{item.taskadd}}
- 任务过期时间:{{item.taskexpire}}
+ 任务过期时间:{{item.taskexpire}}
+ 执行人:{{item.user__name}}
低风险
diff --git a/project.config.json b/project.config.json
index f9b849e..87653be 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,59 +1,59 @@
{
- "description": "项目配置文件。",
- "setting": {
- "urlCheck": false,
- "es6": true,
- "enhance": false,
- "postcss": true,
- "preloadBackgroundData": false,
- "minified": true,
- "newFeature": true,
- "coverView": true,
- "nodeModules": true,
- "autoAudits": false,
- "showShadowRootInWxmlPanel": true,
- "scopeDataCheck": false,
- "uglifyFileName": false,
- "checkInvalidKey": true,
- "checkSiteMap": true,
- "uploadWithSourceMap": true,
- "compileHotReLoad": false,
- "useMultiFrameRuntime": true,
- "useApiHook": false,
- "babelSetting": {
- "ignore": [],
- "disablePlugins": [],
- "outputPath": ""
- },
- "useIsolateContext": true,
- "useCompilerModule": true,
- "userConfirmedUseCompilerModuleSwitch": false,
- "packNpmManually": false,
- "packNpmRelationList": []
- },
- "compileType": "miniprogram",
- "libVersion": "2.9.4",
- "appid": "wx5c39b569f01c27db",
- "projectname": "aqyj",
- "isGameTourist": false,
- "simulatorType": "wechat",
- "simulatorPluginLibVersion": {},
- "condition": {
- "search": {
- "current": -1,
- "list": []
- },
- "conversation": {
- "current": -1,
- "list": []
- },
- "game": {
- "currentL": -1,
- "list": []
- },
- "miniprogram": {
- "current": -1,
- "list": []
- }
- }
+ "description": "项目配置文件。",
+ "setting": {
+ "urlCheck": false,
+ "es6": true,
+ "postcss": true,
+ "minified": true,
+ "newFeature": true,
+ "coverView": true,
+ "nodeModules": true,
+ "autoAudits": false,
+ "showShadowRootInWxmlPanel": true,
+ "scopeDataCheck": false,
+ "checkInvalidKey": true,
+ "checkSiteMap": true,
+ "uploadWithSourceMap": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "useCompilerModule": false,
+ "userConfirmedUseCompilerModuleSwitch": false,
+ "enhance": false,
+ "preloadBackgroundData": false,
+ "uglifyFileName": false,
+ "compileHotReLoad": false,
+ "useMultiFrameRuntime": true,
+ "useApiHook": false,
+ "useIsolateContext": true,
+ "packNpmManually": false,
+ "packNpmRelationList": []
+ },
+ "compileType": "miniprogram",
+ "libVersion": "2.9.4",
+ "appid": "wx5c39b569f01c27db",
+ "projectname": "aqyj",
+ "isGameTourist": false,
+ "simulatorType": "wechat",
+ "simulatorPluginLibVersion": {},
+ "condition": {
+ "search": {
+ "current": -1,
+ "list": []
+ },
+ "conversation": {
+ "current": -1,
+ "list": []
+ },
+ "game": {
+ "currentL": -1,
+ "list": []
+ },
+ "miniprogram": {
+ "current": -1,
+ "list": []
+ }
+ }
}
\ No newline at end of file