Commit b441010ddcfb4d0e2a3f3653475e447438de089f

Authored by yangzhi
1 parent ab275674

超哥牛批 超时yyds

src/views/QuestionBank/components/EditDimension.vue 0 → 100644
  1 +<template>
  2 + <el-dialog title="维度编辑" :visible.sync="dialogFormVisible" @closed="dialogFormVisible = false">
  3 + <el-form :model="form">
  4 + <el-form-item label="名称" >
  5 + <el-input v-model="form.ClassificationName"></el-input>
  6 + </el-form-item>
  7 + <el-form-item label="规则" >
  8 + <ul class="evaluation-rules">
  9 + <li v-for="item in evalutionRules" :key="item.id">
  10 + <el-input placeholder="请输入标题" v-model="item.DimensionTitle"></el-input>
  11 + <span>范围</span>
  12 +
  13 + </li>
  14 + </ul>
  15 + </el-form-item>
  16 + </el-form>
  17 + <div slot="footer" class="dialog-footer">
  18 + <el-button @click="dialogFormVisible = false">取 消</el-button>
  19 + <el-button type="primary" @click="dialogFormVisible = false"
  20 + >确 定</el-button
  21 + >
  22 + </div>
  23 + </el-dialog>
  24 +</template>
  25 +<script>
  26 +export default {
  27 + props:{
  28 + model:{
  29 + type:Object,
  30 + default(){
  31 + return {};
  32 + }
  33 + },
  34 + },
  35 + data(){
  36 + return {
  37 + dialogFormVisible:false,
  38 + form:{},
  39 + evalutionRules:[
  40 + {
  41 + id:'',
  42 + QuestionClassId:0,
  43 + DimensionTitle:'',
  44 + DimensionContent:'',
  45 + StartScore:'',
  46 + StartFormula:'',
  47 + EndScore:'',
  48 + EndFormula:'',
  49 + ScoreType:''
  50 + }
  51 + ],
  52 + };
  53 + },
  54 + watch:{
  55 + model:{
  56 + deep:true,
  57 + handler(val){
  58 + this.form = val;
  59 + }
  60 + }
  61 + },
  62 + methods:{}
  63 +}
  64 +</script>
0 65 \ No newline at end of file
... ...