修改bug
This commit is contained in:
parent
4a840fbd4e
commit
70fc9ec050
|
@ -93,13 +93,15 @@
|
|||
import viewModalPage from '/@/views/site/tingKeZuJi/components/viewModal.vue';
|
||||
import { getUserId,getSysConfig } from '/@/views/site/utils/index';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
|
||||
const queryParam = ref<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const viewModal = ref();
|
||||
const { createMessage } = useMessage();
|
||||
enum Api {
|
||||
roleList = '/sys/user/queryUserRole',
|
||||
roleList = '/sys/user/queryUserRoleNew',
|
||||
}
|
||||
|
||||
const roleListApi = (params) => defHttp.get({ url: Api.roleList, params });
|
||||
|
@ -177,16 +179,25 @@ const roleListApi = (params) => defHttp.get({ url: Api.roleList, params });
|
|||
function openDcwjxx(record){
|
||||
|
||||
|
||||
// roleListApi({ userid: getUserId()}).then(res => {
|
||||
// let list = res ?? [];
|
||||
// console.log(`🚀 ~ file: pkmxb.vue:181 ~ roleListApi ~ list:`, list)
|
||||
// });
|
||||
|
||||
roleListApi({ userid: getUserId()}).then(res => {
|
||||
let list = res ?? [];
|
||||
let sfjx = 0;
|
||||
for(var i=0;i<list.length;i++){
|
||||
let par = list[i]
|
||||
if(par=="f6817f48af4fb3af11b9e8bf182f618b"){
|
||||
sfjx = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(sfjx==1){
|
||||
let { kcmc,skjs,zc:WEEK,jc:hh,userid,id:ketangbiaoid,evaluationver,} = record;
|
||||
//jc,zc,evaId
|
||||
//{{ form.kcmc }}-{{ form.skjs }}-星期{{ form.WEEK }}-{{ form.hh }}
|
||||
//userid: record.userid, minkcid: record.ketangbiaoid, evaluationver: record.evaluationver
|
||||
viewModal.value.view({kcmc,skjs,WEEK,hh,userid,ketangbiaoid,evaluationver})
|
||||
}else{
|
||||
createMessage.warning("未授权您当前操作的权限,您不能查看明细信息");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue