模型的下拉和输入框去掉默认值

V0.1
yujialong 9 months ago
parent 8ee0664347
commit db119792e0
  1. 4
      .env
  2. 2
      src/views/Home.vue
  3. 4
      src/views/Role.vue
  4. 24
      src/views/product/afterLoan/1029.vue
  5. 13
      src/views/product/afterLoan/1030.vue
  6. 12
      src/views/product/afterLoan/1031.vue
  7. 6
      src/views/product/afterLoan/1032.vue
  8. 2
      src/views/product/interestRate/772.vue
  9. 4
      src/views/product/interestRate/935.vue
  10. 6
      src/views/product/strategy/150.vue
  11. 20
      src/views/product/strategy/151.vue
  12. 31
      src/views/product/strategy/152.vue
  13. 30
      src/views/product/strategy/153.vue
  14. 107
      src/views/product/strategy/154.vue
  15. 89
      src/views/product/strategy/155.vue
  16. 11
      src/views/product/strategy/Credit.vue
  17. 3
      src/views/product/strategy/Risk1.vue

@ -2,7 +2,7 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘
VITE_PORT=9520 VITE_PORT=9520
VITE_PROXY=http://192.168.31.125:8080 VITE_PROXY=http://192.168.31.125:8080
VITE_PUBLIC_PATH=./ VITE_PUBLIC_PATH=./
# VITE_BASE_API=http://192.168.31.217:9000 VITE_BASE_API=http://192.168.31.217:9000
VITE_BASE_API=http://121.37.12.51 # VITE_BASE_API=http://121.37.12.51
VITE_I18N_LOCALE=zh-cn VITE_I18N_LOCALE=zh-cn
VITE_I18N_FALLBACK_LOCALE=zh-cn VITE_I18N_FALLBACK_LOCALE=zh-cn

@ -6,7 +6,7 @@
content="退出实训" content="退出实训"
placement="bottom"> placement="bottom">
<img class="mr-3 cursor-pointer" <img class="mr-3 cursor-pointer"
src="@/assets/images/level/3.png" src="@/assets/images/11.png"
alt="" alt=""
@click="logout" /> @click="logout" />
</el-tooltip> </el-tooltip>

@ -45,7 +45,7 @@
content="退出实训" content="退出实训"
placement="bottom"> placement="bottom">
<img class="mr-3 cursor-pointer" <img class="mr-3 cursor-pointer"
src="@/assets/images/level/3.png" src="@/assets/images/11.png"
alt="" alt=""
@click="logout" /> @click="logout" />
</el-tooltip> </el-tooltip>
@ -53,7 +53,7 @@
content="返回关卡" content="返回关卡"
placement="bottom"> placement="bottom">
<img class="mr-3 cursor-pointer" <img class="mr-3 cursor-pointer"
src="@/assets/images/level/1.png" src="@/assets/images/2.png"
alt="" alt=""
@click="toLevel" /> @click="toLevel" />
</el-tooltip> </el-tooltip>

@ -15,7 +15,7 @@
<el-table-column label="未逾期" <el-table-column label="未逾期"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select class="" <el-select clearable
v-model="row.notOverdue"> v-model="row.notOverdue">
<el-option v-for="item in row.recordChildren[0].subject.itemList" <el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -27,7 +27,7 @@
<el-table-column label="1~30天" <el-table-column label="1~30天"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select class="" <el-select clearable
v-model="row.thirtyDays"> v-model="row.thirtyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList" <el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -38,7 +38,7 @@
<el-table-column label="31~90天" <el-table-column label="31~90天"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select class="" <el-select clearable
v-model="row.ninetyDays"> v-model="row.ninetyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList" <el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -49,7 +49,7 @@
<el-table-column label="91~180天" <el-table-column label="91~180天"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select class="" <el-select clearable
v-model="row.oneHundredAndEightyDays"> v-model="row.oneHundredAndEightyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList" <el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -60,7 +60,7 @@
<el-table-column label="181~360天" <el-table-column label="181~360天"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select class="" <el-select clearable
v-model="row.threeHundredAndSixtyDays"> v-model="row.threeHundredAndSixtyDays">
<el-option v-for="item in row.recordChildren[0].subject.itemList" <el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -71,7 +71,7 @@
<el-table-column label="360天以上" <el-table-column label="360天以上"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select class="" <el-select clearable
v-model="row.threeHundredAndSixtyDaysAbove"> v-model="row.threeHundredAndSixtyDaysAbove">
<el-option v-for="item in row.recordChildren[0].subject.itemList" <el-option v-for="item in row.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -111,12 +111,12 @@ const getConfig = async () => {
projectId, projectId,
recordName: e.name, recordName: e.name,
recordChildren: e.recordChildren, recordChildren: e.recordChildren,
ninetyDays: +(cur.ninetyDays || 676), ninetyDays: +cur.ninetyDays || '',
notOverdue: +(cur.notOverdue || 676), notOverdue: +cur.notOverdue || '',
oneHundredAndEightyDays: +(cur.oneHundredAndEightyDays || 676), oneHundredAndEightyDays: +cur.oneHundredAndEightyDays || '',
thirtyDays: +(cur.thirtyDays || 676), thirtyDays: +cur.thirtyDays || '',
threeHundredAndSixtyDays: +(cur.threeHundredAndSixtyDays || 676), threeHundredAndSixtyDays: +cur.threeHundredAndSixtyDays || '',
threeHundredAndSixtyDaysAbove: +(cur.threeHundredAndSixtyDaysAbove || 676), threeHundredAndSixtyDaysAbove: +cur.threeHundredAndSixtyDaysAbove || '',
id: cur.id || '', id: cur.id || '',
stRecordId: e.id, stRecordId: e.id,
}); });

@ -3,7 +3,6 @@
<div class="c-auto"> <div class="c-auto">
<el-table class="c-table" <el-table class="c-table"
:data="form" :data="form"
:span-method="span"
:cell-style="{background:'#fff'}" :cell-style="{background:'#fff'}"
border> border>
<el-table-column prop="name" <el-table-column prop="name"
@ -17,16 +16,13 @@
<el-table-column prop="recordName" <el-table-column prop="recordName"
label="检查方式" label="检查方式"
min-width="150" min-width="150"
align="center"> align="center"></el-table-column>
<template #default="{ row, $index }">
{{ $index === 1 ? '贷后全检' : row.recordName }}
</template>
</el-table-column>
<el-table-column label="检查对象" <el-table-column label="检查对象"
min-width="200" min-width="200"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
clearable
v-model="row.checkObject"> v-model="row.checkObject">
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
@ -43,6 +39,7 @@
<div v-else <div v-else
class="flex items-center"> class="flex items-center">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
clearable
v-model="row.checkTimeType"> v-model="row.checkTimeType">
<el-option v-for="item in row?.recordChildren[2].recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[2].recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -96,8 +93,8 @@ const getConfig = async () => {
projectId, projectId,
recordName: e.name, recordName: e.name,
recordChildren: e.recordChildren, recordChildren: e.recordChildren,
checkObject: +(cur.checkObject || 683), checkObject: +cur.checkObject || '',
checkTimeType: +(cur.checkTimeType || 689), checkTimeType: +cur.checkTimeType || '',
creditData: info.value.length ? !!cur.creditData : false, creditData: info.value.length ? !!cur.creditData : false,
governmentData: info.value.length ? !!cur.governmentData : false, governmentData: info.value.length ? !!cur.governmentData : false,
isChoose: info.value.length ? !!cur.isChoose : false, isChoose: info.value.length ? !!cur.isChoose : false,

@ -20,6 +20,7 @@
<div class="inline-flex flex-col justify-center mx-2"> <div class="inline-flex flex-col justify-center mx-2">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable
v-model="row.formulaOne"> v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -29,6 +30,7 @@
<p class="h-[1px] my-2 bg-[#cdcdcd]"></p> <p class="h-[1px] my-2 bg-[#cdcdcd]"></p>
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
@ -42,6 +44,7 @@
房屋净值 = 房屋净值 =
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] mx-2" class="w-[140px] mx-2"
clearable
v-model="row.formulaOne"> v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -51,6 +54,7 @@
- -
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] ml-2" class="w-[140px] ml-2"
clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
@ -61,9 +65,11 @@
<template v-if="$index === 9"> <template v-if="$index === 9">
<el-input class="w-[80px] mx-2" <el-input class="w-[80px] mx-2"
placeholder="请输入"
v-model="row.formulaOne"></el-input> v-model="row.formulaOne"></el-input>
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] mr-2" class="w-[140px] mr-2"
clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
@ -76,6 +82,7 @@
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px] mx-2" class="w-[140px] mx-2"
clearable
v-model="row.formulaOne"> v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -90,6 +97,7 @@
<div class="inline-flex flex-col justify-center mx-2"> <div class="inline-flex flex-col justify-center mx-2">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable
v-model="row.formulaOne"> v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -99,6 +107,7 @@
<p class="h-[1px] my-2 bg-[#cdcdcd]"></p> <p class="h-[1px] my-2 bg-[#cdcdcd]"></p>
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
@ -113,6 +122,7 @@
<div class="inline-flex flex-col justify-center mx-2"> <div class="inline-flex flex-col justify-center mx-2">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable
v-model="row.formulaOne"> v-model="row.formulaOne">
<el-option v-for="item in row?.recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -122,6 +132,7 @@
<p class="h-[1px] my-2 bg-[#cdcdcd]"></p> <p class="h-[1px] my-2 bg-[#cdcdcd]"></p>
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="w-[140px]" class="w-[140px]"
clearable
v-model="row.formulaTwo"> v-model="row.formulaTwo">
<el-option v-for="item in row?.recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].subject.itemList"
:key="item" :key="item"
@ -147,6 +158,7 @@
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select v-if="row.subject" <el-select v-if="row.subject"
clearable
v-model="row.score"> v-model="row.score">
<el-option v-for="item in row.subject.itemList.sort((a, b) => +a.options - +b.options)" <el-option v-for="item in row.subject.itemList.sort((a, b) => +a.options - +b.options)"
:key="item" :key="item"

@ -20,6 +20,7 @@
<div class="flex"> <div class="flex">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
class="mr-2" class="mr-2"
clearable
v-model="row.riskGradeType"> v-model="row.riskGradeType">
<el-option v-for="item in row?.recordChildren[1].recordChildren[0].subject.itemList" <el-option v-for="item in row?.recordChildren[1].recordChildren[0].subject.itemList"
:key="item" :key="item"
@ -28,6 +29,7 @@
</el-select> </el-select>
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
clearable
v-model="row.riskGrade"> v-model="row.riskGrade">
<el-option v-for="item in row?.recordChildren[1].recordChildren[1].subject.itemList" <el-option v-for="item in row?.recordChildren[1].recordChildren[1].subject.itemList"
:key="item" :key="item"
@ -67,8 +69,8 @@ const getConfig = async () => {
projectId, projectId,
recordName: e.name, recordName: e.name,
recordChildren: e.recordChildren, recordChildren: e.recordChildren,
riskGrade: +(cur.riskGrade || 747), riskGrade: +cur.riskGrade || '',
riskGradeType: +(cur.riskGradeType || 744), riskGradeType: +cur.riskGradeType || '',
isChoose: info.value.length ? !!cur.isChoose : false, isChoose: info.value.length ? !!cur.isChoose : false,
id: cur.id || '', id: cur.id || '',
stRecordId: e.id, stRecordId: e.id,

@ -64,7 +64,7 @@
class="mr-2 whitespace-nowrap">{{ row?.subject?.name }}</span> class="mr-2 whitespace-nowrap">{{ row?.subject?.name }}</span>
<el-select v-if="row.subject" <el-select v-if="row.subject"
v-model="row.score"> v-model="row.score">
<el-option v-for="item in row?.subject?.itemList.sort((a, b) => +(a.options.replace(/\D+/, '')) - +(b.options.replace(/\D+/, '')))" <el-option v-for="item in row?.subject?.itemList.sort((a, b) => +(a.options.replace(/[^\d-]/, '')) - +(b.options.replace(/[^\d-]/, '')))"
:key="item" :key="item"
:value="item.options" /> :value="item.options" />
</el-select> </el-select>

@ -220,8 +220,8 @@ const addRecord = async (data: Record<string, any>) => {
e.score && rule.push(handleId(e.ruleId, e.subject.subjectId, e?.subject?.itemList?.find((n) => n.options === e.score)?.itemId, `${listIds},${e.stRecordId},${e.ruleId}`, 1)); e.score && rule.push(handleId(e.ruleId, e.subject.subjectId, e?.subject?.itemList?.find((n) => n.options === e.score)?.itemId, `${listIds},${e.stRecordId},${e.ruleId}`, 1));
} }
}); });
form.value.individualInterestRateModels[12].score && rule.push(handleId(954, 306, form.value.individualInterestRateModels[12].score, listIds + ',954', 3)); form.value.individualInterestRateModels[13].score && rule.push(handleId(1229, 306, form.value.individualInterestRateModels[13].score, listIds + ',1229', 3));
form.value.individualInterestRateModels[13].score && rule.push(handleId(955, 307, form.value.individualInterestRateModels[13].score, listIds + ',955', 3)); form.value.individualInterestRateModels[14].score && rule.push(handleId(1230, 307, form.value.individualInterestRateModels[14].score, listIds + ',1230', 3));
data.finalFloatingRatioEqual && rule.push(handleId(1024, 279, getItemId(data.finalFloatingRatioEqual), preIds + ',1023,1024', 1)); data.finalFloatingRatioEqual && rule.push(handleId(1024, 279, getItemId(data.finalFloatingRatioEqual), preIds + ',1023,1024', 1));
data.finalFloatingRatioLess && rule.push(handleId(1025, 279, getItemId(data.finalFloatingRatioLess), preIds + ',1023,1025', 1)); data.finalFloatingRatioLess && rule.push(handleId(1025, 279, getItemId(data.finalFloatingRatioLess), preIds + ',1023,1025', 1));

@ -21,8 +21,9 @@
class="flex items-center"> class="flex items-center">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[row.span ? 1 : 0]?.name }}</span> class="whitespace-nowrap">{{ row?.recordChildren[row.span ? 1 : 0]?.name }}</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -31,6 +32,7 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input> v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap">万元</span> <span class="ml-2 whitespace-nowrap">万元</span>
</div> </div>
@ -184,7 +186,7 @@ const getConfig = async () => {
otherFamilyMembersHitRejected: !!cur?.otherFamilyMembersHitRejected, otherFamilyMembersHitRejected: !!cur?.otherFamilyMembersHitRejected,
parentsHitRejected: !!cur?.parentsHitRejected, parentsHitRejected: !!cur?.parentsHitRejected,
personalHitBlacklist: !!cur?.personalHitBlacklist, personalHitBlacklist: !!cur?.personalHitBlacklist,
symbol: isRule(e.id) && symbol?.length ? symbol[0] : '>=', symbol: isRule(e.id) && symbol?.length ? symbol[0] : '',
had: e.id === 167 && had?.length ? had[0] : '', had: e.id === 167 && had?.length ? had[0] : '',
num: isRule(e.id) && num?.length ? num[0] : '', num: isRule(e.id) && num?.length ? num[0] : '',
ruleOne: '', ruleOne: '',

@ -21,6 +21,7 @@
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span> class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span>
<el-input class="w-[150px] mx-2" <el-input class="w-[150px] mx-2"
placeholder="请输入"
v-model="row.ruleOne"></el-input> v-model="row.ruleOne"></el-input>
<span class="whitespace-nowrap">的信用卡</span> <span class="whitespace-nowrap">的信用卡</span>
</div> </div>
@ -29,8 +30,9 @@
class="flex items-center"> class="flex items-center">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span> class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -39,11 +41,13 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input> v-model="row.num"></el-input>
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="ml-2 whitespace-nowrap">{{ row?.recordChildren[1]?.name }}</span> class="ml-2 whitespace-nowrap">{{ row?.recordChildren[1]?.name }}</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol1"> v-model="row.symbol1">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -52,12 +56,14 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num1"></el-input> v-model="row.num1"></el-input>
<span class="ml-2 whitespace-nowrap"></span> <span class="ml-2 whitespace-nowrap"></span>
</div> </div>
<div v-else-if="row.stRecordId == 230 || row.stRecordId == 231" <div v-else-if="row.stRecordId == 230 || row.stRecordId == 231"
class="flex"> class="flex">
<el-select class="w-[80px] ml-2" <el-select class="w-[85px] ml-2"
clearable
v-model="row.ruleOne"> v-model="row.ruleOne">
<el-option value="有" /> <el-option value="有" />
<el-option value="无" /> <el-option value="无" />
@ -67,8 +73,9 @@
class="flex items-center"> class="flex items-center">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span> class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -77,6 +84,7 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input> v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap">{{ row.stRecordId === 203 || row.stRecordId === 205 ? '元' : row.stRecordId === 207 || row.stRecordId === 229 ? '万元' : ' ' }}</span> <span class="ml-2 whitespace-nowrap">{{ row.stRecordId === 203 || row.stRecordId === 205 ? '元' : row.stRecordId === 207 || row.stRecordId === 229 ? '万元' : ' ' }}</span>
</div> </div>
@ -146,8 +154,8 @@ const getConfig = async () => {
name: e.name, name: e.name,
recordChildren: e.recordChildren, recordChildren: e.recordChildren,
mateRejectedStandardIdentity: !!cur?.mateRejectedStandardIdentity, mateRejectedStandardIdentity: !!cur?.mateRejectedStandardIdentity,
symbol: symbol?.length ? symbol[0] : '>=', symbol: symbol?.length ? symbol[0] : '',
symbol1: symbol1?.length ? symbol1[0] : '>=', symbol1: symbol1?.length ? symbol1[0] : '',
num: num?.length ? num[0] : '', num: num?.length ? num[0] : '',
num1: num1?.length ? num1[0] : '', num1: num1?.length ? num1[0] : '',
ruleOne: e.id === 204 || e.id === 230 || e.id === 231 ? cur?.ruleOne : '', ruleOne: e.id === 204 || e.id === 230 || e.id === 231 ? cur?.ruleOne : '',

@ -21,8 +21,9 @@
<div v-if="$index < 4" <div v-if="$index < 4"
class="flex items-center"> class="flex items-center">
<span class="whitespace-nowrap">{{ row.rule }}</span> <span class="whitespace-nowrap">{{ row.rule }}</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -31,6 +32,7 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input> v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap"></span> <span class="ml-2 whitespace-nowrap"></span>
</div> </div>
@ -40,8 +42,9 @@
class="flex items-center"> class="flex items-center">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[0]?.recordChildren[0]?.name }}</span> class="whitespace-nowrap">{{ row?.recordChildren[0]?.recordChildren[0]?.name }}</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -50,10 +53,12 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input> v-model="row.num"></el-input>
<span class="ml-2 whitespace-nowrap"></span> <span class="ml-2 whitespace-nowrap"></span>
<div class="w-[120px] "> <div class="w-[120px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.had"> v-model="row.had">
<el-option v-for="item in house" <el-option v-for="item in house"
:key="item" :key="item"
@ -66,9 +71,11 @@
<div v-else-if="$index === 15" <div v-else-if="$index === 15"
class="flex items-center"> class="flex items-center">
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input> v-model="row.num"></el-input>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
@ -77,8 +84,9 @@
</el-select> </el-select>
</div> </div>
<span class="ml-2 whitespace-nowrap">内申请次数</span> <span class="ml-2 whitespace-nowrap">内申请次数</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol1"> v-model="row.symbol1">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -87,10 +95,12 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num1"></el-input> v-model="row.num1"></el-input>
<span class="ml-2 whitespace-nowrap"></span> <span class="ml-2 whitespace-nowrap"></span>
<div class="w-[120px] "> <div class="w-[120px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.had"> v-model="row.had">
<el-option v-for="item in house" <el-option v-for="item in house"
:key="item" :key="item"
@ -101,8 +111,9 @@
<span class="ml-2 whitespace-nowrap"></span> <span class="ml-2 whitespace-nowrap"></span>
</div> </div>
<div v-else-if="$index === 18" <div v-else-if="$index === 18"
class="w-[90px] "> class="w-[95px] ">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in row?.recordChildren[0]?.subject?.itemList" <el-option v-for="item in row?.recordChildren[0]?.subject?.itemList"
:key="item" :key="item"
@ -113,9 +124,11 @@
<div v-else-if="$index > 19 && $index < 28" <div v-else-if="$index > 19 && $index < 28"
class="flex items-center"> class="flex items-center">
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num"></el-input> v-model="row.num"></el-input>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
@ -125,8 +138,9 @@
</div> </div>
<span class="ml-2 whitespace-nowrap">{{tdNames[row.ruleId]}}</span> <span class="ml-2 whitespace-nowrap">{{tdNames[row.ruleId]}}</span>
<template v-if="row.ruleId === 350"> <template v-if="row.ruleId === 350">
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.symbol1"> v-model="row.symbol1">
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
@ -135,6 +149,7 @@
</el-select> </el-select>
</div> </div>
<el-input class="w-[80px]" <el-input class="w-[80px]"
placeholder="请输入"
v-model="row.num1"></el-input> v-model="row.num1"></el-input>
<span class="ml-2 whitespace-nowrap"></span> <span class="ml-2 whitespace-nowrap"></span>
</template> </template>
@ -234,7 +249,7 @@ const getConfig = async () => {
stRecordId: e.id, stRecordId: e.id,
ruleId: e?.recordChildren[0].id, ruleId: e?.recordChildren[0].id,
rule: e?.recordChildren[0].name, rule: e?.recordChildren[0].name,
symbol: e.id === 322 && cur ? cur?.ruleOne : (e.id === 318 || e.id === 320) && cur ? symbol : !i || i === 2 ? '>=' : e.id === 322 ? '' : '年', symbol: e.id === 322 && cur ? cur?.ruleOne : (e.id === 318 || e.id === 320) && cur ? symbol : !i || i === 2 ? '' : e.id === 322 ? '' : '年',
symbol1: '>=', symbol1: '>=',
num, num,
num1: '', num1: '',

@ -28,8 +28,9 @@
<div class="flex items-center"> <div class="flex items-center">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[0]?.name }}认定{{row.name}}</span> class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[0]?.name }}认定{{row.name}}</span>
<div class="w-[90px] "> <div class="min-w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.enterRuleOne"> v-model="row.enterRuleOne">
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
@ -42,8 +43,9 @@
<div class="flex items-center mt-2"> <div class="flex items-center mt-2">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[1]?.name }}认定{{row.name}}</span> class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[1]?.name }}认定{{row.name}}</span>
<div class="w-[90px] "> <div class="min-w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.enterRuleTwo"> v-model="row.enterRuleTwo">
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
@ -69,8 +71,9 @@
<div class="flex items-center"> <div class="flex items-center">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[0]?.name }}结清后</span> class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[0]?.name }}结清后</span>
<div class="w-[90px] "> <div class="min-w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.num"> v-model="row.num">
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
@ -78,8 +81,9 @@
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] "> <div class="min-w-[95px] ">
<el-select class="mr-2" <el-select class="mr-2"
clearable
v-model="row.symbol"> v-model="row.symbol">
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
@ -92,8 +96,9 @@
<div class="flex items-center mt-2"> <div class="flex items-center mt-2">
<span v-if="row.recordChildren" <span v-if="row.recordChildren"
class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[1]?.name }}结清后</span> class="whitespace-nowrap">{{ row?.recordChildren[1]?.recordChildren[1]?.name }}结清后</span>
<div class="w-[90px] "> <div class="min-w-[95px] ">
<el-select class="mx-2" <el-select class="mx-2"
clearable
v-model="row.num1"> v-model="row.num1">
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
@ -101,8 +106,9 @@
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] "> <div class="min-w-[95px] ">
<el-select class="mr-2" <el-select class="mr-2"
clearable
v-model="row.symbol1"> v-model="row.symbol1">
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
@ -153,12 +159,12 @@ const getConfig = async () => {
recordChildren: e.recordChildren, recordChildren: e.recordChildren,
enterBlacklist: !!cur?.enterBlacklist, enterBlacklist: !!cur?.enterBlacklist,
outBlacklist: !!cur?.outBlacklist, outBlacklist: !!cur?.outBlacklist,
enterRuleOne: cur?.enterRuleOne || 1, enterRuleOne: cur?.enterRuleOne || '',
enterRuleTwo: cur?.enterRuleTwo || 1, enterRuleTwo: cur?.enterRuleTwo || '',
num: getNum(cur?.outRuleOne) || 1, num: getNum(cur?.outRuleOne) || '',
num1: getNum(cur?.outRuleTwo) || 1, num1: getNum(cur?.outRuleTwo) || '',
symbol: getChinese(cur?.outRuleOne) || '', symbol: getChinese(cur?.outRuleOne) || '',
symbol1: getChinese(cur?.outRuleTwo) || '', symbol1: getChinese(cur?.outRuleTwo) || '',
stRecordId: e.id, stRecordId: e.id,
}; };
result.push(temp); result.push(temp);

@ -16,16 +16,18 @@
<div class="flex items-center"> <div class="flex items-center">
<template v-if="!$index"> <template v-if="!$index">
<span class="whitespace-nowrap">跨行业经营行业门类数</span> <span class="whitespace-nowrap">跨行业经营行业门类数</span>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] "> <div class="w-[95px]">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
@ -36,8 +38,9 @@
</template> </template>
<template v-else-if="$index === 1"> <template v-else-if="$index === 1">
<span class="whitespace-nowrap">名下企业</span> <span class="whitespace-nowrap">名下企业</span>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.had"> <el-select v-model="row.had"
clearable>
<el-option v-for="item in have" <el-option v-for="item in have"
:key="item" :key="item"
:label="item" :label="item"
@ -48,8 +51,9 @@
</template> </template>
<template v-else-if="$index === 2"> <template v-else-if="$index === 2">
<span class="whitespace-nowrap">名下企业</span> <span class="whitespace-nowrap">名下企业</span>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.had"> <el-select v-model="row.had"
clearable>
<el-option v-for="item in have" <el-option v-for="item in have"
:key="item" :key="item"
:label="item" :label="item"
@ -60,8 +64,9 @@
</template> </template>
<template v-else-if="$index === 3"> <template v-else-if="$index === 3">
<span class="whitespace-nowrap">行内企业</span> <span class="whitespace-nowrap">行内企业</span>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.had"> <el-select v-model="row.had"
clearable>
<el-option v-for="item in have" <el-option v-for="item in have"
:key="item" :key="item"
:label="item" :label="item"
@ -79,7 +84,7 @@
</el-checkbox-group> </el-checkbox-group>
</template> </template>
<template v-else-if="$index === 5"> <template v-else-if="$index === 5">
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.had" <el-select v-model="row.had"
clearable> clearable>
<el-option value="不是" /> <el-option value="不是" />
@ -89,7 +94,7 @@
<span class="whitespace-nowrap ml-2">被列为非正常户或注销户</span> <span class="whitespace-nowrap ml-2">被列为非正常户或注销户</span>
</template> </template>
<template v-else-if="$index === 6"> <template v-else-if="$index === 6">
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.had" <el-select v-model="row.had"
clearable> clearable>
<el-option value="不是" /> <el-option value="不是" />
@ -100,24 +105,27 @@
</template> </template>
<template v-else-if="$index === 7"> <template v-else-if="$index === 7">
<span class="whitespace-nowrap">经营年限</span> <span class="whitespace-nowrap">经营年限</span>
<div class="w-[90px] ml-2"> <div class="w-[95px] ml-2">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] "> <div class="w-[95px]">
<el-select v-model="row.unit"> <el-select v-model="row.unit"
clearable>
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
:label="item" :label="item"
@ -136,24 +144,27 @@
</el-checkbox-group> </el-checkbox-group>
</template> </template>
<template v-else-if="$index === 9"> <template v-else-if="$index === 9">
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.unit"> <el-select v-model="row.unit"
clearable>
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
:label="item" :label="item"
@ -163,24 +174,27 @@
<span class="whitespace-nowrap ml-2">注册资本减少</span> <span class="whitespace-nowrap ml-2">注册资本减少</span>
</template> </template>
<template v-else-if="$index === 10"> <template v-else-if="$index === 10">
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.unit"> <el-select v-model="row.unit"
clearable>
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
:label="item" :label="item"
@ -190,24 +204,27 @@
<span class="whitespace-nowrap ml-2">内法定代表人变更</span> <span class="whitespace-nowrap ml-2">内法定代表人变更</span>
</template> </template>
<template v-else-if="$index === 11"> <template v-else-if="$index === 11">
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px]"> <div class="w-[95px]">
<el-select v-model="row.unit"> <el-select v-model="row.unit"
clearable>
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
:label="item" :label="item"
@ -221,16 +238,18 @@
</template> </template>
<template v-else-if="$index === 13"> <template v-else-if="$index === 13">
<span class="whitespace-nowrap">申请人在该企业的股权占比</span> <span class="whitespace-nowrap">申请人在该企业的股权占比</span>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
@ -240,7 +259,7 @@
<span class="whitespace-nowrap ml-2">%</span> <span class="whitespace-nowrap ml-2">%</span>
</template> </template>
<template v-else-if="$index === 14"> <template v-else-if="$index === 14">
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.had" <el-select v-model="row.had"
clearable> clearable>
<el-option value="不在" /> <el-option value="不在" />
@ -293,9 +312,9 @@ const getConfig = async () => {
name: e.name, name: e.name,
subject: e.subject, subject: e.subject,
stRecordId: e.id, stRecordId: e.id,
symbol: symbol || '>=', symbol: symbol || '',
unit: had || '', unit: had || '',
num: num || 1, num: num || '',
had: (((i > 0 && i < 4) || i === 5 || i === 6 || i === 14) && cur?.rule) || '', had: (((i > 0 && i < 4) || i === 5 || i === 6 || i === 14) && cur?.rule) || '',
check: (i === 4 || i === 8) && cur ? cur?.rule.split(',') : [], check: (i === 4 || i === 8) && cur ? cur?.rule.split(',') : [],
}; };

@ -21,16 +21,18 @@
<div class="flex items-center"> <div class="flex items-center">
<template v-if="!$index"> <template v-if="!$index">
<span class="whitespace-nowrap">人脸识别匹配度</span> <span class="whitespace-nowrap">人脸识别匹配度</span>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] "> <div class="w-[95px]">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
@ -40,8 +42,9 @@
<span class="whitespace-nowrap ml-2">%</span> <span class="whitespace-nowrap ml-2">%</span>
</template> </template>
<div v-else-if="$index === 1 || $index === 2 || $index > 18" <div v-else-if="$index === 1 || $index === 2 || $index > 18"
class="w-[90px] mx-2"> class="w-[95px] mx-2">
<el-select v-model="row.had"> <el-select v-model="row.had"
clearable>
<el-option v-for="item in have" <el-option v-for="item in have"
:key="item" :key="item"
:label="item" :label="item"
@ -50,8 +53,9 @@
</div> </div>
<template v-else-if="$index === 3 || $index === 4"> <template v-else-if="$index === 3 || $index === 4">
<span class="whitespace-nowrap">在网期限</span> <span class="whitespace-nowrap">在网期限</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
@ -59,16 +63,18 @@
</el-select> </el-select>
</div> </div>
<span class="mx-2">~</span> <span class="mx-2">~</span>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select v-model="row.num1"> <el-select v-model="row.num1"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.unit"> <el-select v-model="row.unit"
clearable>
<el-option v-for="item in units" <el-option v-for="item in units"
:key="item" :key="item"
:label="item" :label="item"
@ -80,6 +86,7 @@
<span class="whitespace-nowrap">命中</span> <span class="whitespace-nowrap">命中</span>
<div class="flex-1"> <div class="flex-1">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
clearable
v-model="row.select"> v-model="row.select">
<el-option v-for="item in row?.recordChildren[0]?.subject?.itemList" <el-option v-for="item in row?.recordChildren[0]?.subject?.itemList"
:key="item" :key="item"
@ -89,16 +96,18 @@
</template> </template>
<template v-else-if="$index > 13 && $index < 19"> <template v-else-if="$index > 13 && $index < 19">
<span class="whitespace-nowrap">关联人数</span> <span class="whitespace-nowrap">关联人数</span>
<div class="w-[90px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-model="row.symbol"> <el-select v-model="row.symbol"
clearable>
<el-option v-for="item in symbols" <el-option v-for="item in symbols"
:key="item" :key="item"
:label="item" :label="item"
:value="item" /> :value="item" />
</el-select> </el-select>
</div> </div>
<div class="w-[90px] "> <div class="w-[95px] ">
<el-select v-model="row.num"> <el-select v-model="row.num"
clearable>
<el-option v-for="item in nums" <el-option v-for="item in nums"
:key="item" :key="item"
:label="item" :label="item"
@ -154,10 +163,10 @@ const getConfig = async () => {
stRecordId: e.id, stRecordId: e.id,
ruleId: e?.recordChildren[0].id, ruleId: e?.recordChildren[0].id,
rule: e?.recordChildren[0].name, rule: e?.recordChildren[0].name,
symbol: symbol || '>=', symbol: symbol || '',
num: num || 2, num: num || '',
num1: '', num1: '',
had: '', had: '',
select: cur?.ruleOne || '', select: cur?.ruleOne || '',
unit: '', unit: '',
}; };
@ -170,27 +179,27 @@ const getConfig = async () => {
temp.ruleId = n.id; temp.ruleId = n.id;
temp.rule = n.name; temp.rule = n.name;
if (n.id === 388) { if (n.id === 388) {
temp.had = cur?.ruleTwo || ''; temp.had = cur?.ruleTwo || '';
} else if (n.id === 389) { } else if (n.id === 389) {
temp.had = cur?.ruleThree || ''; temp.had = cur?.ruleThree || '';
} else if (n.id === 406) { } else if (n.id === 406) {
temp.had = cur?.ruleSix || ''; temp.had = cur?.ruleSix || '';
} else if (n.id === 407) { } else if (n.id === 407) {
temp.had = cur?.ruleSeven || ''; temp.had = cur?.ruleSeven || '';
} else if (n.id === 408) { } else if (n.id === 408) {
temp.had = cur?.ruleEight || ''; temp.had = cur?.ruleEight || '';
} else if (n.id === 409) { } else if (n.id === 409) {
temp.had = cur?.ruleNine || ''; temp.had = cur?.ruleNine || '';
} else if (n.id === 410) { } else if (n.id === 410) {
temp.had = cur?.ruleTen || ''; temp.had = cur?.ruleTen || '';
} else if (n.id === 411) { } else if (n.id === 411) {
temp.had = cur?.ruleEleven || ''; temp.had = cur?.ruleEleven || '';
} else if (n.id === 412) { } else if (n.id === 412) {
temp.had = cur?.ruleTwelve || ''; temp.had = cur?.ruleTwelve || '';
} else if (n.id === 413) { } else if (n.id === 413) {
temp.had = cur?.ruleThirteen || ''; temp.had = cur?.ruleThirteen || '';
} else if (n.id === 414) { } else if (n.id === 414) {
temp.had = cur?.ruleFourteen || ''; temp.had = cur?.ruleFourteen || '';
} else if (e.id === 385) { } else if (e.id === 385) {
// //
if (n.id === 393) { if (n.id === 393) {
@ -221,20 +230,20 @@ const getConfig = async () => {
temp.num1 = getNum(arr[1]) || ''; temp.num1 = getNum(arr[1]) || '';
temp.unit = getChinese(arr[1]) || ''; temp.unit = getChinese(arr[1]) || '';
} else if (n.id === 401) { } else if (n.id === 401) {
temp.symbol = getSymbol(cur?.ruleOne) || '>='; temp.symbol = getSymbol(cur?.ruleOne) || '';
temp.num = getNum(cur?.ruleOne) || 2; temp.num = getNum(cur?.ruleOne) || '';
} else if (n.id === 402) { } else if (n.id === 402) {
temp.symbol = getSymbol(cur?.ruleTwo) || '>='; temp.symbol = getSymbol(cur?.ruleTwo) || '';
temp.num = getNum(cur?.ruleTwo) || 2; temp.num = getNum(cur?.ruleTwo) || '';
} else if (n.id === 403) { } else if (n.id === 403) {
temp.symbol = getSymbol(cur?.ruleThree) || '>='; temp.symbol = getSymbol(cur?.ruleThree) || '';
temp.num = getNum(cur?.ruleThree) || 2; temp.num = getNum(cur?.ruleThree) || '';
} else if (n.id === 404) { } else if (n.id === 404) {
temp.symbol = getSymbol(cur?.ruleFour) || '>='; temp.symbol = getSymbol(cur?.ruleFour) || '';
temp.num = getNum(cur?.ruleFour) || 2; temp.num = getNum(cur?.ruleFour) || '';
} else if (n.id === 405) { } else if (n.id === 405) {
temp.symbol = getSymbol(cur?.ruleFive) || '>='; temp.symbol = getSymbol(cur?.ruleFive) || '';
temp.num = getNum(cur?.ruleFive) || 2; temp.num = getNum(cur?.ruleFive) || '';
} }
result.push(temp); result.push(temp);
} }

@ -65,6 +65,7 @@
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select v-if="isSelect(row.answerId1) && row.subject" <el-select v-if="isSelect(row.answerId1) && row.subject"
clearable
v-model="row.score"> v-model="row.score">
<el-option v-for="item in row?.subject?.itemList.sort((a, b) => +a.options - +b.options)" <el-option v-for="item in row?.subject?.itemList.sort((a, b) => +a.options - +b.options)"
:key="item" :key="item"
@ -81,8 +82,9 @@
class="whitespace-nowrap">{{ row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.name.replace('分', '') }}</span> class="whitespace-nowrap">{{ row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.name.replace('分', '') }}</span>
<span v-else-if="row.answerId1 === 595 || row.answerId1 === 593" <span v-else-if="row.answerId1 === 595 || row.answerId1 === 593"
class="whitespace-nowrap">每降1%</span> class="whitespace-nowrap">每降1%</span>
<div class="w-[100px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
clearable
v-model="row.score"> v-model="row.score">
<el-option v-for="item in row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.subject?.itemList.sort((a, b) => +a.options - +b.options)" <el-option v-for="item in row?.recordChildren[2]?.recordChildren[0]?.recordChildren[0]?.subject?.itemList.sort((a, b) => +a.options - +b.options)"
:key="item" :key="item"
@ -101,9 +103,9 @@
}} }}
</span> </span>
<template v-if="row.answerId2 !== 627 && row.answerId2 !== 646 && row.answerId2 !== 667 && row.answerId2 !== 668 && row.answerId2 !== 670 && row.answerId2 !== 694 && row.answerId2 !== 695"> <template v-if="row.answerId2 !== 627 && row.answerId2 !== 646 && row.answerId2 !== 667 && row.answerId2 !== 668 && row.answerId2 !== 670 && row.answerId2 !== 694 && row.answerId2 !== 695">
<div class="w-[120px] mx-2"> <div class="w-[95px] mx-2">
<el-select v-if="row.recordChildren" <el-select v-if="row.recordChildren"
placeholder="" clearable
v-model="row.percentage"> v-model="row.percentage">
<el-option v-for="item in row.answerId2 === 669 || row.answerId2 === 671 ? row?.recordChildren[2]?.recordChildren[0]?.recordChildren[1]?.subject?.itemList : row?.recordChildren[2]?.recordChildren[0]?.recordChildren[1]?.subject?.itemList.sort((a, b) => +(a.options.replace('%', '')) - +(b.options.replace('%', '')))" <el-option v-for="item in row.answerId2 === 669 || row.answerId2 === 671 ? row?.recordChildren[2]?.recordChildren[0]?.recordChildren[1]?.subject?.itemList : row?.recordChildren[2]?.recordChildren[0]?.recordChildren[1]?.subject?.itemList.sort((a, b) => +(a.options.replace('%', '')) - +(b.options.replace('%', '')))"
:key="item" :key="item"
@ -144,6 +146,7 @@
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-select v-if="row.itemList" <el-select v-if="row.itemList"
clearable
v-model="row.score"> v-model="row.score">
<el-option v-for="item in row?.itemList.sort((a, b) => +a.options - +b.options)" <el-option v-for="item in row?.itemList.sort((a, b) => +a.options - +b.options)"
:key="item" :key="item"
@ -223,7 +226,7 @@ const getConfig = async () => {
name: e.name, name: e.name,
sub: n.name, sub: n.name,
isChoose: cur ? !!cur?.isChoose : false, isChoose: cur ? !!cur?.isChoose : false,
score: cur ? cur?.dimensionIndexList[i - 1]?.score + '' : '0', score: cur ? cur?.dimensionIndexList[i - 1]?.score + '' : '',
span: i === 1 ? 1 : 0, span: i === 1 ? 1 : 0,
parent: i === 1 ? '' : j, parent: i === 1 ? '' : j,
itemList: n?.subject?.itemList || [], itemList: n?.subject?.itemList || [],

@ -22,7 +22,8 @@
min-width="150" min-width="150"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-input v-model="row.coefficient"></el-input> <el-input placeholder="输入系数"
v-model="row.coefficient"></el-input>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save