提交 db75dfcb authored 作者: matian's avatar matian

bug修复

上级 8fcb7a6a
...@@ -4,12 +4,24 @@ ...@@ -4,12 +4,24 @@
<el-table-column prop="name" label="已选信息" width="180"> </el-table-column> <el-table-column prop="name" label="已选信息" width="180"> </el-table-column>
<el-table-column prop="enabled_edit" label="允许编辑" width="180"> <el-table-column prop="enabled_edit" label="允许编辑" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.enabled_edit" active-color="#13ce66" inactive-color="#ff4949"> </el-switch> <el-switch
v-model="scope.row.enabled_edit"
active-color="#13ce66"
inactive-color="#ff4949"
@change="editChange(scope)"
>
</el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="enabled_visible" label="考生可见"> <el-table-column prop="enabled_visible" label="考生可见">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.enabled_visible" active-color="#13ce66" inactive-color="#ff4949"> </el-switch> <el-switch
v-model="scope.row.enabled_visible"
active-color="#13ce66"
inactive-color="#ff4949"
@change="visibleChange(scope)"
>
</el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="required" label="必填"> <el-table-column prop="required" label="必填">
...@@ -129,6 +141,16 @@ export default { ...@@ -129,6 +141,16 @@ export default {
scope.row.enabled_visible = true scope.row.enabled_visible = true
} }
}, },
editChange(scope) {
if (scope.row.required === true) {
scope.row.enabled_edit = true
}
},
visibleChange(scope) {
if (scope.row.required === true) {
scope.row.enabled_visible = true
}
},
// 下一步 // 下一步
nextStep() { nextStep() {
const info = {} const info = {}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论