操作按钮权限修改
This commit is contained in:
parent
a2388c1b0d
commit
e523b2acb1
|
|
@ -3,6 +3,8 @@ import router from '@/router'
|
||||||
import { showNotify } from 'vant';
|
import { showNotify } from 'vant';
|
||||||
|
|
||||||
const url = 'http://192.168.0.230';
|
const url = 'http://192.168.0.230';
|
||||||
|
// const url = window.location.origin;
|
||||||
|
|
||||||
axios.defaults.baseURL = url;
|
axios.defaults.baseURL = url;
|
||||||
axios.defaults.withCredentials = false;
|
axios.defaults.withCredentials = false;
|
||||||
axios.defaults.timeout = 200000;
|
axios.defaults.timeout = 200000;
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ const getDetail = async () => {
|
||||||
}else{
|
}else{
|
||||||
info.value.steps = res.data?.apply_steps;
|
info.value.steps = res.data?.apply_steps;
|
||||||
}
|
}
|
||||||
console.log(info.value)
|
console.log(info.value);
|
||||||
} finally {
|
} finally {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
|
@ -229,7 +229,8 @@ onMounted(() => {
|
||||||
params?.type==='wait' && info?.status!=99 && params?.isMyself==='pending' &&
|
params?.type==='wait' && info?.status!=99 && params?.isMyself==='pending' &&
|
||||||
(info?.status==1 || info?.status==2 || info?.status==3 || info?.status==4) &&
|
(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==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="agree">同意</p>
|
||||||
<p class="btn" @click="reject">驳回</p>
|
<p class="btn" @click="reject">驳回</p>
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,8 @@ onMounted(() => {
|
||||||
params?.type==='wait' && info?.status!=99 && params?.isMyself==='pending' &&
|
params?.type==='wait' && info?.status!=99 && params?.isMyself==='pending' &&
|
||||||
(info?.status==1 || info?.status==2 || info?.status==3 || info?.status==4) &&
|
(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==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="agree">同意</p>
|
||||||
<p class="btn" @click="reject">驳回</p>
|
<p class="btn" @click="reject">驳回</p>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref,onMounted } from 'vue'
|
import { ref,onMounted } from 'vue'
|
||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
import { waitListApi } from '@/api/apply';
|
import { waitListApi,taskCountApi } from '@/api/apply';
|
||||||
|
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
// 状态
|
// 状态
|
||||||
|
|
@ -13,6 +13,7 @@ const statusList = ref([
|
||||||
{text:'各部门会签中',value:3},
|
{text:'各部门会签中',value:3},
|
||||||
{text:'审批中',value:4},
|
{text:'审批中',value:4},
|
||||||
{text:'通过',value:5},
|
{text:'通过',value:5},
|
||||||
|
{text:'已关闭',value:97},
|
||||||
{text:'已撤回',value:98},
|
{text:'已撤回',value:98},
|
||||||
{text:'已驳回',value:99},
|
{text:'已驳回',value:99},
|
||||||
]);
|
]);
|
||||||
|
|
@ -54,9 +55,10 @@ const getList = async () => {
|
||||||
page: 1,
|
page: 1,
|
||||||
per_page: 9999
|
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'; });
|
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 {
|
} finally {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue