|
@@ -175,7 +175,10 @@
|
|
|
<div class="custom_table_header">问题内容</div>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_content`"
|
|
|
+ :rules="rules.two_content"
|
|
|
+ >
|
|
|
<el-input
|
|
|
type="text"
|
|
|
v-model="scope.row.two_content"
|
|
@@ -192,7 +195,10 @@
|
|
|
v-if="tableResultType === 2"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ :prop="`klScaleParent[${tableIndex}].two_factor`"
|
|
|
+ :rules="rules.two_factor"
|
|
|
+ >
|
|
|
<el-input
|
|
|
type="text"
|
|
|
v-model="scope.row.two_factor"
|
|
@@ -209,7 +215,10 @@
|
|
|
v-if="tableResultType === 2"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_constant`"
|
|
|
+ :rules="rules.two_constant"
|
|
|
+ >
|
|
|
<el-input
|
|
|
type="text"
|
|
|
v-model="scope.row.two_constant"
|
|
@@ -272,7 +281,10 @@
|
|
|
<div class="custom_table_header">选项内容</div>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].content`"
|
|
|
+ :rules="rules.optionContent"
|
|
|
+ >
|
|
|
<el-input
|
|
|
type="text"
|
|
|
v-model="scope.row.content"
|
|
@@ -291,7 +303,10 @@
|
|
|
<div class="custom_table_header">分值</div>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].content`"
|
|
|
+ :rules="rules.optionContent"
|
|
|
+ >
|
|
|
<el-input
|
|
|
type="text"
|
|
|
v-model="scope.row.content"
|
|
@@ -308,7 +323,10 @@
|
|
|
v-if="tableResultType === 1"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].result`"
|
|
|
+ :rules="rules.result"
|
|
|
+ >
|
|
|
<el-input
|
|
|
type="text"
|
|
|
v-model="scope.row.result"
|
|
@@ -330,11 +348,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import rules from "./rules";
|
|
|
export default {
|
|
|
name: "scaleTable",
|
|
|
data() {
|
|
|
return {
|
|
|
- tableShow: true
|
|
|
+ tableShow: true,
|
|
|
+ rules: rules
|
|
|
};
|
|
|
},
|
|
|
methods: {
|