1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57dd8728"],{1188:function(t,e,n){"use strict";n.r(e);var l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{attrs:{data:t.datalist,border:"",stripe:""}},[n("el-table-column",{attrs:{label:"ID",width:"70",prop:"answerId"}}),n("el-table-column",{attrs:{label:"题型",width:"70",prop:"type"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[n("span",[t._v(t._s(t.typeOption[l.type]))])]}}])}),n("el-table-column",{attrs:{label:"题目",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row;return[n("span",[t._v(t._s(l.title))])]}}])}),n("el-table-column",{attrs:{align:"center",width:"160px",label:"操作","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var l=e.row,a=e.$index;return[n("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check"},on:{click:function(e){return t.deleteRow(l,a)}}},[t._v("移除题库")])]}}])})],1)],1)},a=[],r={name:"Api",data:function(){return{list:[],typeOption:{1:"单选",2:"多选",3:"判断"}}},props:{datalist:{type:Array,default:function(){return[]}}},methods:{deleteRow:function(t,e){t.index=e,this.$emit("deleteRow",t)}}},o=r,s=(n("48ef"),n("2877")),i=Object(s["a"])(o,l,a,!1,null,"177ce8c2",null);e["default"]=i.exports},"48ef":function(t,e,n){"use strict";n("4fd6")},"4fd6":function(t,e,n){}}]);
|