diff --git a/client/src/views/qualityinspect/inspeatTask.vue b/client/src/views/qualityinspect/inspeatTask.vue
index 993d8ca..d914f94 100644
--- a/client/src/views/qualityinspect/inspeatTask.vue
+++ b/client/src/views/qualityinspect/inspeatTask.vue
@@ -26,7 +26,7 @@
-
+
+
+
创建模板
@@ -26,7 +28,6 @@
@@ -48,7 +49,9 @@
-
+
+
+
新增
@@ -109,6 +112,10 @@
+
+
+
+
+ /> -->
{
- this.leaderOptions = genTree(res.data);
- });
- },
+
//组员列表
getUserList() {
- getUserList({pageoff:true}).then((res) => {
- this.memberOptions = genTree(res.data);
+ getUserList({pageoff:true, roles__name:'质量巡查成员'}).then((res) => {
+ this.leaderOptions = genTree(res.data);
+ this.memberOptions = genTree(res.data);
});
},
//组织列表
diff --git a/client/src/views/qualityinspect/mytaskdo.vue b/client/src/views/qualityinspect/mytaskdo.vue
index d0d3eff..bbf7954 100644
--- a/client/src/views/qualityinspect/mytaskdo.vue
+++ b/client/src/views/qualityinspect/mytaskdo.vue
@@ -9,14 +9,13 @@
stripe
highlight-current-row
style="width: 100%"
-
+ @row-click="recorclickRow"
>
- {{ scope.row.dept__name }}
+ {{ scope.row.dept__name }}
@@ -294,9 +293,11 @@ export default {
},
- recorclickRow(scope) {
+ recorclickRow(row) {
+
this.listLoading2 = true;
- this.listQuery = {pageoff:true, subtask: this.id, dept:scope.row.dept}
+ this.listQuery = {pageoff:true, subtask: this.id, dept:row.dept}
+
this.getinspectrecordlist();
},
diff --git a/client/src/views/system/user.vue b/client/src/views/system/user.vue
index 17a26d0..a225cd1 100644
--- a/client/src/views/system/user.vue
+++ b/client/src/views/system/user.vue
@@ -43,8 +43,8 @@
/>
{
- this.$u.vuex('vuex_user', res.data)
- }).catch(e=>{
- uni.reLaunch({
+ var that=this
+ // 小程序自动登录
+ uni.login({
+ provider: 'weixin',
+ success: function (loginRes) {
+ that.$u.api.wxmplogin({code:loginRes.code}).then(res=>{
+ that.$u.vuex('vuex_token', res.data.access)
+ }).catch(e=>{uni.reLaunch({
url:'/pages/login/login'
- })
- })
+ })})
+ }
+ });
+ // this.$u.api.getUserInfo().then(res=>{
+ // this.$u.vuex('vuex_user', res.data)
+ // }).catch(e=>{
+ // uni.reLaunch({
+ // url:'/pages/login/login'
+ // })
+ // })
},
}
diff --git a/client_mp/common/http.api.js b/client_mp/common/http.api.js
index 437c7b9..2c5f7dd 100644
--- a/client_mp/common/http.api.js
+++ b/client_mp/common/http.api.js
@@ -19,6 +19,10 @@ const install = (Vue, vm) => {
let login = (params = {}) => vm.$u.post('/token/', params); //账户密码登录
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
+ let wxmplogin = (params = {}) => vm.$u.post('/wxmplogin/', params); //微信登录
+
+ let bindmp = (params = {}) => vm.$u.post('/system/user/bindwxmp/', params); //微信绑定
+
let getMyInspectTaskList = (params = {}) => vm.$u.get('/quality/subinspecttask/self/', params);
let getSubinspectTask = (id, params)=> vm.$u.get(`/quality/subinspecttask/${id}/`, params);
@@ -43,6 +47,8 @@ const install = (Vue, vm) => {
getCode,
codeLogin,
login,
+ wxmplogin,
+ bindmp,
getMyInspectTaskList,
getSubinspectTask,
getSubtaskDepts,
diff --git a/client_mp/pages/home/home.vue b/client_mp/pages/home/home.vue
index 2988d8d..9d69798 100644
--- a/client_mp/pages/home/home.vue
+++ b/client_mp/pages/home/home.vue
@@ -13,7 +13,7 @@
-
+
{{item.name}}
@@ -116,9 +116,9 @@
}).then(res => {
this.myinspecttaskList = res.data
}).catch(e => {
- uni.reLaunch({
- url:'/pages/login/login'
- })
+ // uni.reLaunch({
+ // url:'/pages/login/login'
+ // })
})
},
openPage(path) {
diff --git a/client_mp/pages/inspectrecord/index.vue b/client_mp/pages/inspectrecord/index.vue
index d86559e..835f1b8 100644
--- a/client_mp/pages/inspectrecord/index.vue
+++ b/client_mp/pages/inspectrecord/index.vue
@@ -48,7 +48,7 @@
-->
- 多选
+ 多选
指派给
diff --git a/client_mp/pages/inspectrecord/recorddo.vue b/client_mp/pages/inspectrecord/recorddo.vue
index c6720d8..b2f938d 100644
--- a/client_mp/pages/inspectrecord/recorddo.vue
+++ b/client_mp/pages/inspectrecord/recorddo.vue
@@ -111,7 +111,7 @@
// console.log(sData.imgs)
this.$u.api.checkInspectRecord(sData.id, sData).then(res => {
-
+ this.$u.toast('提交成功');
uni.navigateBack({
})
diff --git a/client_mp/pages/login/login.vue b/client_mp/pages/login/login.vue
index 63792c9..e2c8740 100644
--- a/client_mp/pages/login/login.vue
+++ b/client_mp/pages/login/login.vue
@@ -1,9 +1,8 @@
+
- 国检集团
- 能力共享和质量监督平台
@@ -17,7 +16,7 @@
- 登录
+ 登录
密码登录
@@ -43,6 +42,7 @@
export default {
data() {
return {
+ imageURL: 'http://testsearch.ctc.ac.cn:8000/media/default/banner3.jpg',
loginForm:{
mail:"",
msg:""
@@ -85,6 +85,7 @@ export default {
},
onReady() {
this.$refs.uForm.setRules(this.rules);
+ uni.hideHomeButton()
},
computed: {
inputStyle() {
diff --git a/client_mp/pages/login/login_password.vue b/client_mp/pages/login/login_password.vue
index 3b025fa..e501a01 100644
--- a/client_mp/pages/login/login_password.vue
+++ b/client_mp/pages/login/login_password.vue
@@ -1,9 +1,10 @@
+
- 国检集团
- 能力共享和质量监督平台
+
@@ -13,7 +14,7 @@
- 登录
+ 登录
@@ -23,6 +24,7 @@
export default {
data() {
return {
+ imageURL: 'http://testsearch.ctc.ac.cn:8000/media/default/banner3.jpg',
loginForm:{
username:"",
password:""
@@ -58,6 +60,7 @@ export default {
},
onReady() {
this.$refs.uForm.setRules(this.rules);
+ uni.hideHomeButton()
},
computed: {
inputStyle() {
diff --git a/client_mp/pages/my/my.vue b/client_mp/pages/my/my.vue
index 252594f..e05e6f2 100644
--- a/client_mp/pages/my/my.vue
+++ b/client_mp/pages/my/my.vue
@@ -13,7 +13,8 @@
{{vuex_user.name}}
- {{vuex_user.username}}-{{vuex_user.dept_name}}
+ {{vuex_user.username}}-{{vuex_user.dept_name}}
+ 已绑定微信