94a587a6 by qingxiao

1

1 parent 847b6125
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
21 </a> 21 </a>
22 </template> 22 </template>
23 </el-table-column> 23 </el-table-column>
24 <el-table-column label="软/硬件">
25 <template slot-scope="scope">
26 <span v-if="scope.row.machine===1">软件</span>
27 <span v-if="scope.row.machine===0">硬件</span>
28 </template>
29 </el-table-column>
24 <el-table-column label="操作"> 30 <el-table-column label="操作">
25 <template slot-scope="scope"> 31 <template slot-scope="scope">
26 <el-link type="primary" @click="playbackTypeEdit(scope.row)">编辑 &nbsp;</el-link> 32 <el-link type="primary" @click="playbackTypeEdit(scope.row)">编辑 &nbsp;</el-link>
...@@ -57,6 +63,16 @@ ...@@ -57,6 +63,16 @@
57 v-on:after-upload="loading=false" 63 v-on:after-upload="loading=false"
58 ></upload-item> 64 ></upload-item>
59 </el-form-item> 65 </el-form-item>
66 <el-form-item label="软/硬件:" prop="machine">
67 <el-select v-model="playbackTypeForm.machine" placeholder="请选择">
68 <el-option
69 v-for="item in machineOption"
70 :key="item.value"
71 :label="item.label"
72 :value="item.value">
73 </el-option>
74 </el-select>
75 </el-form-item>
60 </el-form> 76 </el-form>
61 <span slot="footer" class="dialog-footer"> 77 <span slot="footer" class="dialog-footer">
62 <el-button type="primary" @click="submitForm('playbakcForm')">提交</el-button> 78 <el-button type="primary" @click="submitForm('playbakcForm')">提交</el-button>
...@@ -93,8 +109,13 @@ ...@@ -93,8 +109,13 @@
93 playbackTypeForm: {}, 109 playbackTypeForm: {},
94 playbackTypeRules: { 110 playbackTypeRules: {
95 typeName: [{required: true, message: '请输入名称', trigger: 'blur'}], 111 typeName: [{required: true, message: '请输入名称', trigger: 'blur'}],
96 typeImage: [{required: true, message: '上传缩略图', trigger: 'blur'}] 112 typeImage: [{required: true, message: '上传缩略图', trigger: 'blur'}],
97 } 113 machine: [{required: true, message: '请选择', trigger: 'blur'}],
114 },
115 machineOption: [
116 {label: '软件', value: 1},
117 {label: '硬件', value: 0},
118 ]
98 } 119 }
99 }, 120 },
100 methods: { 121 methods: {
......