yujialong 10 months ago
parent 600a26894f
commit 11f0d25d89
  1. 80
      src/components/Panel/index.vue
  2. 2
      src/views/config/level/Index.vue
  3. 8
      src/views/product/bank/Approve.vue
  4. 10
      src/views/product/bank/Config.vue
  5. 2
      src/views/product/strategy/Credit.vue

@ -300,6 +300,8 @@ if (param.token) {
Cookies.set('sand-resultAnnouncementTime', param.resultAnnouncementTime ?? '');
Cookies.set('sand-curriculumName', param.curriculumName ?? '');
Cookies.set('sand-stopTime', param.stopTime ?? '');
Cookies.set('sand-userId', param.userId ?? '');
Cookies.set('sand-account', param.account ?? '');
Cookies.set('sand-admin', param.admin ?? ''); //
Cookies.remove('sand-submit');
router.replace(route.path);
@ -319,6 +321,8 @@ if (param.token) {
param.resultAnnouncementTime = Cookies.get('sand-resultAnnouncementTime');
param.curriculumName = Cookies.get('sand-curriculumName');
param.stopTime = Cookies.get('sand-stopTime');
param.userId = Cookies.get('sand-userId');
param.account = Cookies.get('sand-account');
isSubmit.value = Cookies.get('sand-submit') === 'true';
}
if (param.projectId) param.projectId = +param.projectId;
@ -412,12 +416,15 @@ const getAssStatus = async () => {
if (!isSubmit.value) {
const { data } = await getDetailById(param.assessmentId);
const done = data ? data.status === 2 : false; // (0 1 2)
//
//
if (done) {
// this.$alert('', '', {
// confirmButtonText: '',
// });
submit();
ElMessageBox.alert(`考核时间已到,系统已自动交卷`, '提示', {
confirmButtonText: '确定',
callback: (action: Action) => {
logout();
},
});
}
}
};
@ -434,9 +441,12 @@ const getCompetitionStatus = async () => {
const now = await getNow();
//
if (now >= endTime) {
// this.$alert('', '', {
// confirmButtonText: '',
// });
ElMessageBox.alert(`竞赛时间已到,系统已自动交卷`, '提示', {
confirmButtonText: '确定',
callback: (action: Action) => {
logout();
},
});
submit();
} else {
//
@ -533,12 +543,16 @@ const submit = async () => {
//
per.value &&
ElMessageBox.alert(`提交成功${param.resultsDetails == 0 && param.resultAnnouncementTime != 0 ? ',成绩将在' + param.resultAnnouncementTime + '小时后发布,请去参赛信息模块查看' : ''}`, '提示', {
confirmButtonText: '确定',
callback: (action: Action) => {
logout();
ElMessageBox.alert(
`提交成功${param.resultsDetails == 0 && param.resultAnnouncementTime != 0 ? ',成绩将在' + param.resultAnnouncementTime + '小时后发布,请去参赛信息模块查看' : ''}`,
'提示',
{
confirmButtonText: '确定',
callback: (action: Action) => {
logout();
},
},
});
);
})
.catch(() => {
submiting.value = false;
@ -598,6 +612,46 @@ const getEntryTime = async () => {
if (!now) now = await getNow();
entryTime.value = now;
};
// websocket
// socket
const open = () => {
console.log('socket连接成功');
};
// socket
const error = () => {
console.log('连接错误');
};
//
const getMessage = (msg) => {
console.log('==websocket接收数据==');
console.log(JSON.parse(msg.data));
const { content } = JSON.parse(msg.data);
// 1234-id
if (content == 1) {
getCompetitionStatus();
} else if (content.includes('3-')) {
// 3-id
getAssStatus();
}
};
// socket
const close = () => {
console.log('socket已经关闭');
};
// socket
const initSocket = () => {
// socket
const socket = new WebSocket(`ws://${location.host}/nakadai/websocket/${param.userId}/${param.account}`);
// this.socket = new WebSocket(`ws://121.37.12.51:9100/nakadai/websocket/${id}/${account}`)
// socket
socket.onopen = open;
// socket
socket.onerror = error;
// socket
socket.onmessage = getMessage;
};
onMounted(() => {
getLevel.value = inject('getLevel'); //
per.value = param.assessmentId ? 1 : param.competitionId ? 2 : 0;
@ -605,10 +659,12 @@ onMounted(() => {
param.cid && getEntryTime();
if (param.assessmentId) {
initSocket();
getAssList();
} else {
param.cid && getList();
if (param.competitionId) {
initSocket();
getCompetitionStatus();
}
}

@ -169,7 +169,7 @@ const route = useRoute();
const projectId = +Cookies.get('sand-projectId');
const levelId = +Cookies.get('sand-level');
const hadChange = ref<number>(0);
const delTitle: string = '删除关卡后,这个关卡的数据将被删除,确定删除吗?';
const delTitle: string = '删除关卡后,已关联该关卡的判分点将被禁用,确定删除吗?';
const params = reactive({
platformId: 3,
customsPassName: '',

@ -97,13 +97,6 @@ const getConfig = async () => {
const { process } = await getProcessInformationBasedOnRoles(43); // 43
config.value = process;
};
//
const getDate = async () => {
const res = await getOperationTime(levelId, projectId);
if (res.operationTime) {
date.value = res.operationTime;
}
};
//
const sign = async () => {
const res = await getTheCurrentUserName();
@ -145,7 +138,6 @@ const submit = async (formEl: FormInstance | undefined) => {
};
onMounted(() => {
getConfig();
getDate();
});
</script>

@ -219,12 +219,12 @@
<el-form-item label="审查内容"
prop="reviewContent">
<el-radio v-model="form.reviewContent"
:label="261">所有基本信息</el-radio>
:label="info.productType ? 261 : 114">{{ info.productType ? '所有基本信息' : '所有基本材料' }}</el-radio>
</el-form-item>
<el-form-item label="审查签字"
prop="reviewSignature">
<el-radio v-model="form.reviewSignature"
:label="262">用信调查申报表</el-radio>
:label="info.productType ? 262 : 115">用信调查申报表</el-radio>
</el-form-item>
</div>
<div class="step">
@ -232,12 +232,12 @@
<el-form-item label="审批内容"
prop="reviewApproveContent">
<el-radio v-model="form.reviewApproveContent"
:label="263">以上所有材料</el-radio>
:label="info.productType ? 263 : 116">以上所有材料</el-radio>
</el-form-item>
<el-form-item label="审批签字"
prop="approvalSignature">
<el-radio v-model="form.approvalSignature"
:label="264">用信调查申报表</el-radio>
:label="info.productType ? 264 : 117">用信调查申报表</el-radio>
</el-form-item>
</div>
<div class="step">
@ -565,7 +565,7 @@ const addRecord = async (data: Record<string, any>) => {
data.riskDegreeStrategy && lcRule.push(handleId(130, 54, data.riskDegreeStrategy, preIds + ',114,130', 1));
data.interestRatePricingModelCheck && lcRule.push(handleId(305, 55, data.interestRatePricingModel, preIds + ',114,131,305', 1));
data.individualInterestRateModel && lcRule.push(handleId(763, 305, data.individualInterestRateModel, preIds + ',114,131,304', 1));
data.individualInterestRateModel && lcRule.push(handleId(304, 305, data.individualInterestRateModel, preIds + ',114,131,304', 1));
data.dueDiligenceMode && lcRule.push(handleId(132, 56, data.dueDiligenceMode, preIds + ',115,132', 1));
data.dueDiligenceContent && lcRule.push(handleId(133, 57, data.dueDiligenceContent, preIds + ',115,133', 1));

@ -905,7 +905,7 @@ const addRecord = async () => {
1,
),
);
console.log(111, e, e?.recordChildren[2]?.id);
//
e.percentage &&
lcRule.push(

Loading…
Cancel
Save