|
|
@@ -57,16 +57,20 @@ Component({
|
|
|
isleave: e.currentTarget.dataset.value,
|
|
|
'result.isleave': e.currentTarget.dataset.value
|
|
|
})
|
|
|
+ this.initDepAndUser(false);
|
|
|
},
|
|
|
- initDepAndUser() {
|
|
|
- this.setData({
|
|
|
+ initDepAndUser(init = true) {
|
|
|
+ if (init) this.setData({
|
|
|
+ takeEffect: "", //生效筛选项
|
|
|
result: {},
|
|
|
- takeEffect: ""
|
|
|
})
|
|
|
+ let content = {
|
|
|
+ isleave: this.data.isleave
|
|
|
+ }
|
|
|
return new Promise((resolve) => {
|
|
|
_Http.basic({
|
|
|
"id": 20230620102004,
|
|
|
- "content": {}
|
|
|
+ content
|
|
|
}).then(res => {
|
|
|
console.log("获取部门", res)
|
|
|
if (this.data.isdep) this.setData({
|
|
|
@@ -98,7 +102,7 @@ Component({
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- this.setData({
|
|
|
+ if (init) this.setData({
|
|
|
isleave: 0
|
|
|
})
|
|
|
resolve({})
|