操作按钮权限修改

This commit is contained in:
bestlee 2026-06-25 11:16:33 +08:00
parent a2388c1b0d
commit e523b2acb1
4 changed files with 12 additions and 6 deletions

View File

@ -3,6 +3,8 @@ import router from '@/router'
import { showNotify } from 'vant';
const url = 'http://192.168.0.230';
// const url = window.location.origin;
axios.defaults.baseURL = url;
axios.defaults.withCredentials = false;
axios.defaults.timeout = 200000;

View File

@ -120,7 +120,7 @@ const getDetail = async () => {
}else{
info.value.steps = res.data?.apply_steps;
}
console.log(info.value)
console.log(info.value);
} finally {
loading.value = false;
}
@ -229,7 +229,8 @@ onMounted(() => {
params?.type==='wait' && info?.status!=99 && params?.isMyself==='pending' &&
(info?.status==1 || info?.status==2 || info?.status==3 || info?.status==4) &&
(((info?.template_id==1 || info?.template_id==4) && (info?.current_step>=1 && info?.current_step<=3)) ||
((info?.template_id==2 || info?.template_id)==3 && (info?.current_step>=1 && info?.current_step<=4)))
((info?.template_id==2 || info?.template_id)==3 && (info?.current_step>=1 && info?.current_step<=4))) ||
info?.template_id==5
">
<p class="btn" @click="agree">同意</p>
<p class="btn" @click="reject">驳回</p>

View File

@ -180,7 +180,8 @@ onMounted(() => {
params?.type==='wait' && info?.status!=99 && params?.isMyself==='pending' &&
(info?.status==1 || info?.status==2 || info?.status==3 || info?.status==4) &&
(((info?.template_id==1 || info?.template_id==4) && (info?.current_step>=1 && info?.current_step<=3)) ||
((info?.template_id==2 || info?.template_id)==3 && (info?.current_step>=1 && info?.current_step<=4)))
((info?.template_id==2 || info?.template_id)==3 && (info?.current_step>=1 && info?.current_step<=4))) ||
info?.template_id==5
">
<p class="btn" @click="agree">同意</p>
<p class="btn" @click="reject">驳回</p>

View File

@ -1,7 +1,7 @@
<script setup>
import { ref,onMounted } from 'vue'
import router from '@/router'
import { waitListApi } from '@/api/apply';
import { waitListApi,taskCountApi } from '@/api/apply';
const loading = ref(false);
//
@ -13,6 +13,7 @@ const statusList = ref([
{text:'各部门会签中',value:3},
{text:'审批中',value:4},
{text:'通过',value:5},
{text:'已关闭',value:97},
{text:'已撤回',value:98},
{text:'已驳回',value:99},
]);
@ -54,9 +55,10 @@ const getList = async () => {
page: 1,
per_page: 9999
});
res.data?.initiated.forEach((item) => { item.type = 'myself'; });
// res.data?.initiated.forEach((item) => { item.type = 'myself'; });
res.data?.pending.forEach((item) => { item.type = 'pending'; });
list.value = res.data?.initiated.concat(res.data?.pending);
// list.value = res.data?.initiated.concat(res.data?.pending);
list.value = res.data?.pending;
} finally {
loading.value = false;
}