Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1.  
  2. <el-form-item label="Problems " style="width: 400px;" required>
  3. <el-select v-model="tempReporter.problemsId" placeholder="please choose" onchange="">
  4. <el-option
  5. v-for="item in problems"
  6. :key="item.id"
  7. :label="item.description"
  8. :value="item.id">
  9. </el-option>
  10. </el-select>
  11. </el-form-item>
  12.  
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. problems:'',
  18. },
  19. tempReporter: {
  20.  
  21. problemsId:'',
  22. desc:''
  23. }
  24. }
  25. },
  26.  
  27. showCreate() {
  28. this.tempReporter.name = "";
  29. this.tempReporter.dateReport = "";
  30. this.tempReporter.toolsId = "";
  31. this.tempReporter.problemsId = "";
  32. this.tempReporter.avatar="";
  33. this.tempReporter.carbon="";
  34. this.tempReporter.problemsDesc = this.problems.find(el => el.id===this.tempReporter.problemsId)
  35. console.log(tempReporter.)
  36. this.tempReporter.confirm = '1';
  37. this.dialogStatus = "create"
  38. this.dialogFormVisible = true
  39. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement