This commit is contained in:
aixianling
2022-12-26 17:40:56 +08:00
parent 1bebd1d794
commit 177e27cf78

View File

@@ -20,7 +20,7 @@
</template> </template>
</AiGroup> </AiGroup>
<AiBottomBtn v-if="isApprove" text="评分审核" @click="gotoApprove"/> <AiBottomBtn v-if="isApprove" text="评分审核" @click="gotoApprove"/>
<AiBottomBtn v-else text="提交" @click="submit"/> <AiBottomBtn v-else-if="task.status<2" text="提交" @click="submit"/>
</section> </section>
</template> </template>
@@ -38,7 +38,7 @@ export default {
} }
}, },
computed: { computed: {
isApprove:v=>v.$route.query.approve==1, isApprove: v => v.$route.query.approve == 1,
form() { form() {
let form = {} let form = {}
this.detail.map(e => { this.detail.map(e => {
@@ -106,8 +106,8 @@ export default {
}) })
} }
}, },
gotoApprove(){ gotoApprove() {
const {taskId,taskDetailId} = this.$route.query const {taskId, taskDetailId} = this.$route.query
uni.navigateTo({url: this.$qs.stringifyUrl({url: "./rsApproval", query: {taskId, taskDetailId}})}) uni.navigateTo({url: this.$qs.stringifyUrl({url: "./rsApproval", query: {taskId, taskDetailId}})})
} }
}, },