企微工作任务迁移完成
This commit is contained in:
@@ -37,10 +37,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
appName: '工作任务',
|
appName: '工作任务',
|
||||||
// components: {AiTopFixed, AiAdd, AiEmpty},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -50,6 +49,7 @@ import { mapState } from 'vuex'
|
|||||||
userSelect: false,
|
userSelect: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
tabs() {
|
tabs() {
|
||||||
@@ -63,8 +63,24 @@ import { mapState } from 'vuex'
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
created() {
|
||||||
this.$dict.load("workTaskType")
|
this.$dict.load("workTaskType").then(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
uni.$on('getList', () => {
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
onShow() {
|
||||||
|
document.title = '工作任务'
|
||||||
|
// uni.pageScrollTo({
|
||||||
|
// duration: 0,
|
||||||
|
// scrollTop: 0
|
||||||
|
// })
|
||||||
|
this.current = 1
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@@ -77,12 +93,13 @@ import { mapState } from 'vuex'
|
|||||||
},
|
},
|
||||||
handleClick(item) {
|
handleClick(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/workTask/components/detail?id=" + item.id + "&taskCode=" + item.taskCode + "&isMine=" + this.index
|
url: "./detail?id=" + item.id + "&taskCode=" + item.taskCode + "&isMine=" + this.index
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
|
console.log(123)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/workTask/components/create"
|
url: "./create"
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -136,15 +153,6 @@ import { mapState } from 'vuex'
|
|||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
this.current = this.current + 1;
|
this.current = this.current + 1;
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
|
||||||
|
|
||||||
onShow() {
|
|
||||||
uni.pageScrollTo({
|
|
||||||
duration: 0,
|
|
||||||
scrollTop: 0
|
|
||||||
})
|
|
||||||
this.current = 1
|
|
||||||
this.getList()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -106,12 +106,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
import AiSelectEnterprise from "../../../components/AiSelectEnterprise/AiSelectEnterprise";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "create",
|
name: "create",
|
||||||
components: {AiBack, AiSelectEnterprise},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
index: null,
|
index: null,
|
||||||
@@ -159,7 +156,13 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast("创建成功")
|
this.$u.toast("创建成功")
|
||||||
this.$refs["aiBack"].back()
|
uni.$emit('getList')
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -109,14 +109,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiTopFixed from "../../../components/AiTopFixed";
|
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
import AiEmpty from "../../../components/AiEmpty/AiEmpty";
|
|
||||||
import {mapActions} from "vuex";
|
import {mapActions} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "detail",
|
name: "detail",
|
||||||
components: {AiTopFixed, AiBack,AiEmpty},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
current: 1,
|
current: 1,
|
||||||
@@ -180,17 +176,17 @@
|
|||||||
},
|
},
|
||||||
createSubTask() {
|
createSubTask() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/workTask/components/create?taskCode=" + this.taskCode
|
url: "./create?taskCode=" + this.taskCode
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
subDetail({id}) {
|
subDetail({id}) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/workTask/components/subDetail?id=" + id
|
url: "./subDetail?id=" + id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleClick() {
|
handleClick() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/workTask/components/finish?taskCode=" + this.detail.taskCode + "&percent=" + this.detail.myUserInfo.percent
|
url: "./finish?taskCode=" + this.detail.taskCode + "&percent=" + this.detail.myUserInfo.percent
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
change(e) {
|
change(e) {
|
||||||
@@ -31,11 +31,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "finish",
|
name: "finish",
|
||||||
components: {AiBack},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: 0,
|
value: 0,
|
||||||
@@ -62,7 +60,11 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast("提交成功")
|
this.$u.toast("提交成功")
|
||||||
this.$refs["aiBack"].back()
|
setTimeout(() => {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -42,11 +42,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "finishDetail",
|
name: "finishDetail",
|
||||||
components: {AiBack},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
id: null,
|
id: null,
|
||||||
@@ -75,11 +75,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from "../../../components/AiBack";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "subDetail",
|
name: "subDetail",
|
||||||
components: {AiBack},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
id: null,
|
id: null,
|
||||||
@@ -97,7 +95,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
finishDetail({id}){
|
finishDetail({id}){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:"/pages/workTask/components/finishDetail?id=" + id
|
url:"./finishDetail?id=" + id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirm() {
|
confirm() {
|
||||||
Reference in New Issue
Block a user