| | |
| | | { |
| | | path: "/Appraising", |
| | | component: () => import("../../views/Appraising/index.vue"), |
| | | meta: { title: '求卓越,争创优' } |
| | | meta: { title: '求卓越,争创优', allowBack: false } |
| | | }, |
| | | // 去评优 |
| | | { |
| | |
| | | component: () => import("../../views/toAppraising/toAppraisingfirst.vue"), |
| | | meta: { title: '中图铜镜' } |
| | | }, |
| | | //第一次评优,部门级评优 |
| | | { |
| | | path: '/toAppraisingone', |
| | | component: () => import("../../views/toAppraising/toAppraisingone.vue"), |
| | | meta: { title: '中图铜镜' } |
| | | }, |
| | | //第一次评优,部门级评优 |
| | | { |
| | | path: '/toAppraisingone', |
| | | component: () => import("../../views/toAppraising/toAppraisingone.vue"), |
| | | meta: { title: '中图铜镜' } |
| | | }, |
| | | //部门评优 |
| | | { |
| | | path: '/toAppraisingtwo', |
| | |
| | | |
| | | ]; |
| | | |
| | | |
| | | const router = new VueRouter({ |
| | | base: process.env.BASE_URL, |
| | | routes, |
| | | mode: 'history', |
| | | }); |
| | | |
| | | router.beforeEach((to, from, next) => { |
| | | // 判断当前跳转到的页面是否为禁止返回的页面 |
| | | if (to.path === '/Appraising' || to.path === '/examine' || to.path === '/message') { |
| | | // 清除浏览器历史记录,防止返回上一个页面 |
| | | window.history.pushState(null, null, document.URL); |
| | | window.addEventListener('popstate', function () { |
| | | history.go(1); |
| | | }); |
| | | } |
| | | |
| | | next(); |
| | | }); |
| | | export default router; |
| | |
| | | </div> |
| | | <div class="bottom"> |
| | | <div class="button"> |
| | | <van-button type="primary" @click="submit(2)" v-show="!this.shownim">匿名留言</van-button> |
| | | <van-button type="primary" @click="submit(1)">实名留言</van-button> |
| | | <van-button |
| | | type="primary" |
| | | @click="submit(2)" |
| | | v-show="!this.shownim" |
| | | :disabled="disabledsubmit" |
| | | >匿名留言</van-button> |
| | | <van-button type="primary" @click="submit(1)" :disabled="disabledsubmit">实名留言</van-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | return { |
| | | messagecom: "", |
| | | fileindex: null, |
| | | disabledsubmit: false, |
| | | FileList: [], |
| | | submitlist: [], |
| | | shownim: false |
| | |
| | | toData.userName = "匿名用户"; |
| | | } |
| | | leaveWords(toData).then(res => { |
| | | this.disabledsubmit = true; |
| | | setTimeout(() => { |
| | | this.$router.push("/"); |
| | | }, 1000); |
| | |
| | | }) |
| | | }); |
| | | saveBatch(submitData).then(res => { |
| | | this.disabledsubmit=true; |
| | | setTimeout(() => { |
| | | this.$router.push({ |
| | | path: "/Appraising", |
| | |
| | | }) |
| | | }); |
| | | saveBatchCandidateResult(submitData).then(res => { |
| | | this.disabledsubmit=true; |
| | | setTimeout(() => { |
| | | this.$router.push({ |
| | | path: "/Appraising", |
| | |
| | | block |
| | | @click="SubmitTo()" |
| | | v-show="this.poepleinfo.isVote==false" |
| | | :disabled="disabledsubmit" |
| | | >提交</van-button> |
| | | </div> |
| | | </div> |
| | |
| | | data() { |
| | | return { |
| | | remark: "", |
| | | disabledsubmit: false, |
| | | checked: {}, |
| | | deptData: [], |
| | | infoData: JSON.parse(this.$route.query.info), |
| | |
| | | remark: this.remark |
| | | }); |
| | | saveBatchCandidateResult(submitData).then(res => { |
| | | this.disabledsubmit = true; |
| | | setTimeout(() => { |
| | | this.$router.push({ |
| | | path: "/Appraising" |
| | |
| | | if (Data.scoreVal == "") { |
| | | this.$toast.fail("请输入评分"); |
| | | } else { |
| | | this.disabledsubmit = true; |
| | | assessmentScore(Data).then(res => { |
| | | this.disabledsubmit = true; |
| | | setTimeout(() => { |
| | | this.$router.push("/examine"); |
| | | }, 1000); |