代码整理

This commit is contained in:
ChenXinXin committed 2024-05-20 13:45:23 +08:00
1 parent 6123323572
commit 374ce74e2d
4 files changed
+22 -148

No files matched your search

+19 -2
View File
@@ -505,8 +505,25 @@ Vue.component("create-task-drawer", {
break;
case 'number':
if(condition.express != 'between'){
// TODO:改掉eval
isMatch[index] = eval(Number(answer) + condition.express + condition.option)
switch (condition.express) {
case '<':
isMatch[index] = Number(answer) < condition.option
break;
case '<=':
isMatch[index] = Number(answer) <= condition.option
break;
case '==':
isMatch[index] = Number(answer) == condition.option
break;
case '>=':
isMatch[index] = Number(answer) >= condition.option
break;
case '>':
isMatch[index] = Number(answer) > condition.option
break;
default:
break;
}
}else{
if(condition.option.begin <= Number(answer) && Number(answer) <= condition.option.end){
isMatch[index] = true
+2 -2
View File
@@ -329,8 +329,8 @@
operators: {
'single': [{ text: '包含', value: 'include' }],
'multiple': [{ text: '完全包含', value: 'fullInclude' }, { text: '其一包含', value: 'oneInclude'}],
'number': [{ text: '小于', value: '<', value1: 'less' }, { text: '小于等于', value: '<=', value1: 'lessEqual'}, { text: '等于', value: '==', value1: 'equal'},
{ text: '大于等于', value: '>=', value1: 'moreEqual'}, { text: '大于', value: '>', value1: 'more'}, { text: '介于(a≤x≤b)', value: 'between'},]
'number': [{ text: '小于', value: '<' }, { text: '小于等于', value: '<='}, { text: '等于', value: '=='},
{ text: '大于等于', value: '>='}, { text: '大于', value: '>'}, { text: '介于(a≤x≤b)', value: 'between'},]
}
},
+1 -1
View File
@@ -11,7 +11,7 @@
<div class="jh-page-second-bar px-8">
<v-row class="align-center">
<v-col cols="12" xs="12" sm="12" md="4" xl="3">
<div class="py-4 text-body-1 font-weight-bold">我的申请
<div class="py-4 text-body-1 font-weight-bold">我申请的
<!-- 帮助页按钮 -->
<span role="button" class="success--text font-weight-regular jh-font-size-13 ml-2" @click="isHelpPageDrawerShown = true">
<v-icon size="13" class="success--text">mdi-help-circle-outline</v-icon>帮助