|
|
|
@ -21,7 +21,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px]" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaOne"> |
|
|
|
|
v-model="row.formulaOne" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[0].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -31,7 +32,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px]" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaTwo"> |
|
|
|
|
v-model="row.formulaTwo" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[1].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -45,7 +47,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px] mx-2" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaOne"> |
|
|
|
|
v-model="row.formulaOne" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[0].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -55,7 +58,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px] ml-2" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaTwo"> |
|
|
|
|
v-model="row.formulaTwo" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[1].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -66,11 +70,13 @@ |
|
|
|
|
近 |
|
|
|
|
<el-input class="w-[80px] mx-2" |
|
|
|
|
placeholder="请输入" |
|
|
|
|
v-model="row.formulaOne"></el-input> |
|
|
|
|
v-model="row.formulaOne" |
|
|
|
|
disabled></el-input> |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px] mr-2" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaTwo"> |
|
|
|
|
v-model="row.formulaTwo" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[1].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -83,7 +89,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px] mx-2" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaOne"> |
|
|
|
|
v-model="row.formulaOne" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[0].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -98,7 +105,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px]" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaOne"> |
|
|
|
|
v-model="row.formulaOne" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[0].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -108,7 +116,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px]" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaTwo"> |
|
|
|
|
v-model="row.formulaTwo" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[1].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -123,7 +132,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px]" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaOne"> |
|
|
|
|
v-model="row.formulaOne" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[0].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -133,7 +143,8 @@ |
|
|
|
|
<el-select v-if="row.recordChildren" |
|
|
|
|
class="w-[140px]" |
|
|
|
|
clearable |
|
|
|
|
v-model="row.formulaTwo"> |
|
|
|
|
v-model="row.formulaTwo" |
|
|
|
|
disabled> |
|
|
|
|
<el-option v-for="item in row?.recordChildren[1].subject.itemList" |
|
|
|
|
:key="item" |
|
|
|
|
:label="item.options" |
|
|
|
@ -187,21 +198,25 @@ import Cookies from 'js-cookie'; |
|
|
|
|
|
|
|
|
|
const form = ref<Record<string, any>[]>([]); |
|
|
|
|
const info = ref<Record<string, any>[]>([]); |
|
|
|
|
// 公式的默认答案 |
|
|
|
|
const answer = [[697, 697], [697, 697], [1, 707], [714], [], [697, 697], [697, 697]]; |
|
|
|
|
// 配置项 |
|
|
|
|
const getConfig = async () => { |
|
|
|
|
const { process } = await getProcessInformationBasedOnRoles(1031); |
|
|
|
|
console.log('🚀 ~ getConfig ~ process:', process); |
|
|
|
|
const result = [ |
|
|
|
|
{ |
|
|
|
|
recordName: '基准分', |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
process.map((e, i) => { |
|
|
|
|
console.log('🚀 ~ process.map ~ i:', i); |
|
|
|
|
let temp = { |
|
|
|
|
...getIds(), |
|
|
|
|
recordName: e.name, |
|
|
|
|
recordChildren: e.recordChildren, |
|
|
|
|
formulaOne: '', |
|
|
|
|
formulaTwo: '', |
|
|
|
|
formulaOne: i < 7 ? answer[i][0] || '' : '', |
|
|
|
|
formulaTwo: i < 7 ? answer[i][1] || '' : '', |
|
|
|
|
score: '', |
|
|
|
|
id: '', |
|
|
|
|
stRecordId: e.id, |
|
|
|
@ -220,15 +235,12 @@ const getConfig = async () => { |
|
|
|
|
if (info.value.length) { |
|
|
|
|
result.forEach((e, i) => { |
|
|
|
|
if (i) { |
|
|
|
|
e.formulaOne = info.value[i - 1].formulaOne ? +info.value[i - 1].formulaOne : ''; |
|
|
|
|
e.indexId = info.value[i - 1].indexId; |
|
|
|
|
e.formulaTwo = info.value[i - 1].formulaTwo ? +info.value[i - 1].formulaTwo : ''; |
|
|
|
|
e.score = info.value[i - 1].score ? +info.value[i - 1].score : ''; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
form.value = result; |
|
|
|
|
console.log('🚀 ~ file: 1031.vue:83 ~ getConfig ~ result:', result); |
|
|
|
|
}; |
|
|
|
|
// 详情 |
|
|
|
|
const getDetail = async () => { |
|
|
|
|