chunk-03c046e7.8268e90c.js 26 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03c046e7"],{"0353":function(e,t,a){"use strict";var l=a("6bf8"),i=RegExp.prototype.exec,s=String.prototype.replace,r=i,n="lastIndex",o=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[n]||0!==t[n]}(),c=void 0!==/()??/.exec("")[1],u=o||c;u&&(r=function(e){var t,a,r,u,d=this;return c&&(a=new RegExp("^"+d.source+"$(?!\\s)",l.call(d))),o&&(t=d[n]),r=i.call(d,e),o&&r&&(d[n]=d.global?r.index+r[0].length:t),c&&r&&r.length>1&&s.call(r[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(r[u]=void 0)})),r}),e.exports=r},"129d":function(e,t,a){"use strict";a("a210")},1663:function(e,t,a){var l=a("212e"),i=a("3ab0");e.exports=function(e){return function(t,a){var s,r,n=String(i(t)),o=l(a),c=n.length;return o<0||o>=c?e?"":void 0:(s=n.charCodeAt(o),s<55296||s>56319||o+1===c||(r=n.charCodeAt(o+1))<56320||r>57343?e?n.charAt(o):s:e?n.slice(o,o+2):r-56320+(s-55296<<10)+65536)}}},"1bc78":function(e,t,a){for(var l=a("25ba"),i=a("93ca"),s=a("84e8"),r=a("0b34"),n=a("065d"),o=a("953d"),c=a("839a"),u=c("iterator"),d=c("toStringTag"),p=o.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=i(f),g=0;g<m.length;g++){var h,b=m[g],v=f[b],y=r[b],_=y&&y.prototype;if(_&&(_[u]||n(_,u,p),_[d]||n(_,d,b),o[b]=p,v))for(h in l)_[h]||s(_,h,l[h],!0)}},"43ec":function(e,t,a){"use strict";var l=a("1663")(!0);e.exports=function(e,t,a){return t+(a?l(e,t).length:1)}},"491a":function(e,t,a){},"5f4b":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[e._m(0),a("div",{staticClass:"content"},[a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},on:{clear:e.getData},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.openDiag}},[e._v("新建外部问卷")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.list,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"name",label:"标题"}}),a("el-table-column",{attrs:{prop:"cname",label:"问卷预览"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{attrs:{target:"_blank"},on:{click:function(a){return e.showSurvey(t.row)}}},[a("span",[e._v("查看问卷")])]),t.row.template_qrcode?a("a",{on:{click:function(a){return e.showQrcode(t.row)}}},[a("span",[e._v(" | 生成二维码")])]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"cname",label:"填报统计"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v("已填报:\n "),a("a",{attrs:{target:"_blank"},on:{click:function(a){return e.analyseData("total",t.row.id)}}},[a("span",[e._v(e._s(t.row.finish_ids?t.row.finish_ids.length:0))])]),e._v("人"),a("br")])]}}])}),a("el-table-column",{attrs:{prop:"cname",label:"问卷统计",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{on:{click:function(a){return e.showMessageAnalyse(t.row)}}},[e._v("查看")])]}}])}),a("el-table-column",{attrs:{prop:"cname",label:"发送者",width:"80px"}}),a("el-table-column",{attrs:{prop:"ctime",label:"发送时间",width:"180px"}}),a("el-table-column",{attrs:{prop:"zip",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{class:1==t.row.status?"close":"open",attrs:{type:"text"},on:{click:function(a){return e.switchStatus(t.row)}}},[e._v(e._s(1==t.row.status?"禁用":"启用"))]),a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编辑")]),0==t.row.status?a("el-button",{staticClass:"del",attrs:{type:"text"},on:{click:function(a){return e.del(t.row.id)}}},[e._v("删除")]):e._e()]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}})],1),a("el-dialog",{attrs:{title:e.dialogTitle,"close-on-click-modal":!1,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"form1",staticClass:"preview",attrs:{size:"small",inline:!1,"label-width":"80px",model:e.form1,rules:e.rules}},[a("el-form-item",{attrs:{label:"标题",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入标题",maxlength:"45","show-word-limit":""},model:{value:e.form1.name,callback:function(t){e.$set(e.form1,"name",t)},expression:"form1.name"}})],1),a("el-form-item",{attrs:{label:"发布单位",prop:"publisher"}},[a("el-input",{attrs:{placeholder:"请输入发布单位",maxlength:"30","show-word-limit":""},model:{value:e.form1.publisher,callback:function(t){e.$set(e.form1,"publisher",t)},expression:"form1.publisher"}})],1),a("el-form-item",{attrs:{label:"问卷描述"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入问卷描述"},model:{value:e.form1.desc,callback:function(t){e.$set(e.form1,"desc",t)},expression:"form1.desc"}})],1),a("el-form-item",{attrs:{label:"问卷模板",prop:"template_id"}},[a("el-select",{attrs:{placeholder:"请选择问卷模板",disabled:e.form1.edit,clearable:""},model:{value:e.form1.template_id,callback:function(t){e.$set(e.form1,"template_id",t)},expression:"form1.template_id"}},e._l(e.templateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1),a("el-dialog",{staticClass:"survey_dialog",attrs:{"close-on-click-modal":"","show-close":!1,visible:e.dialogVisible1,width:"400px"},on:{"update:visible":function(t){e.dialogVisible1=t}}},[a("div",{staticClass:"item-main"},[a("h5",{staticClass:"tpl_title",attrs:{align:"center"}},[e._v(e._s(e.title))]),a("div",{staticClass:"message_desc"},[e._v(e._s(e.messageData.desc))]),a("el-form",{ref:"form2",staticClass:"tpl_form over_y",attrs:{model:e.form2,rules:e.rules1.rules}},[e._l(e.widgetList,(function(t,l){return["group"!=t.type?a("el-form-item",{key:l,attrs:{label:t.label+t.cntype,prop:t.label}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"Left Bottom 提示文字",placement:"bottom-end"}},[t.noteDesc||t.noteImgs?a("i",{staticClass:"el-icon-info",staticStyle:{position:"absolute",top:"-28px",right:"0px"}}):e._e(),a("div",{staticClass:"tool_text",attrs:{slot:"content"},slot:"content"},[a("p",[e._v(e._s(t.noteDesc))]),a("div",{staticClass:"toolText_img"},e._l(t.noteImgs,(function(e,t){return a("img",{key:t,attrs:{src:e,alt:""}})})),0)])]),"input"==t.type?a("el-input",{attrs:{placeholder:t.placeholder},model:{value:e.form2[t.label],callback:function(a){e.$set(e.form2,t.label,a)},expression:"form2[item.label]"}}):e._e(),"textarea"==t.type?a("el-input",{attrs:{type:"textarea",rows:4,placeholder:t.placeholder},model:{value:e.form2[t.label],callback:function(a){e.$set(e.form2,t.label,a)},expression:"form2[item.label]"}}):e._e(),"radio"==t.type?a("el-radio-group",{staticClass:"cus_select",model:{value:e.form2[t.label],callback:function(a){e.$set(e.form2,t.label,a)},expression:"form2[item.label]"}},e._l(t.items,(function(t,l){return a("el-radio",{key:l,attrs:{label:t.label}},[e._v(e._s(t.label))])})),1):"checkbox"==t.type?a("el-checkbox-group",{staticClass:"cus_select",model:{value:e.form2[t.label],callback:function(a){e.$set(e.form2,t.label,a)},expression:"form2[item.label]"}},e._l(t.items,(function(e,t){return a("el-checkbox",{key:t,attrs:{label:e.label}})})),1):e._e(),"image"==t.type?a("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card",data:{type:t.label},"on-success":function(a){return e.imageChange(t.label,a)},"on-remove":function(a,l){return e.handleRemove(t.label,a,l)}}},[a("i",{staticClass:"el-icon-plus"})]):e._e(),"file"==t.type?a("el-upload",{ref:"upload",refInFor:!0,staticClass:"upload-demo",attrs:{action:"/api/admin/uploadfile",data:{type:t.label},"on-success":function(a){return e.imageChange(t.label,a)},"on-remove":function(a,l){return e.handleRemove(t.label,a,l)}}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary",plain:""}},[e._v("添加文件")])],1):e._e()],1):e._e(),"group"==t.type?a("h6",{key:"revire_g"+l,staticClass:"group_title",attrs:{align:"center"}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e(),"group"==t.type?a("section",{key:"review_gi"+l,staticClass:"groupMain"},[e._l(t.children,(function(l,i){return[a("el-form-item",{key:"review_gc"+i,attrs:{prop:l.label+"("+t.label+")",label:l.label+l.cntype}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"Left Bottom 提示文字",placement:"bottom-end"}},[l.noteDesc||l.noteImgs?a("i",{staticClass:"el-icon-info",staticStyle:{position:"absolute",top:"-28px",right:"0px"}}):e._e(),a("div",{staticClass:"tool_text",attrs:{slot:"content"},slot:"content"},[a("p",[e._v(e._s(l.noteDesc))]),a("div",{staticClass:"toolText_img"},e._l(l.noteImgs,(function(e,t){return a("img",{key:"review_gc_noteimgs"+t,attrs:{src:e,alt:""}})})),0)])]),"input"==l.type?a("el-input",{class:l.require?"require":"",attrs:{placeholder:l.placeholder},model:{value:e.form2[l.label+"("+t.label+")"],callback:function(a){e.$set(e.form2,l.label+"("+t.label+")",a)},expression:"form2[iitem.label + '(' + item.label + ')']"}}):e._e(),"textarea"==l.type?a("el-input",{class:l.require?"require":"",attrs:{type:"textarea",placeholder:l.placeholder},model:{value:e.form2[l.label+"("+t.label+")"],callback:function(a){e.$set(e.form2,l.label+"("+t.label+")",a)},expression:"form2[iitem.label + '(' + item.label + ')']"}}):e._e(),"radio"==l.type?a("el-radio-group",{staticClass:"cus_select",class:l.require?"require":"",model:{value:e.form2[l.label+"("+t.label+")"],callback:function(a){e.$set(e.form2,l.label+"("+t.label+")",a)},expression:"form2[iitem.label + '(' + item.label + ')']"}},e._l(l.items,(function(t,l){return a("el-radio",{key:"review_gcr"+l,attrs:{label:t.label}},[e._v(e._s(t.label))])})),1):e._e(),"checkbox"==l.type?a("el-checkbox-group",{staticClass:"cus_select",class:l.require?"require":"",model:{value:e.form2[l.label+"("+t.label+")"],callback:function(a){e.$set(e.form2,l.label+"("+t.label+")",a)},expression:"form2[iitem.label + '(' + item.label + ')']"}},e._l(l.items,(function(t,l){return a("el-checkbox",{key:"review_gcc"+l,attrs:{label:t.label}},[e._v(e._s(t.label))])})),1):e._e(),"image"==l.type?a("el-upload",{class:l.require?"require":"",attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-preview":e.handlePreview,"on-remove":function(a,i){return e.handleRemove(l.label+"("+t.label+")",a,i)},"on-success":function(a){return e.imageChange(l.label+"("+t.label+")",a)}}},[a("i",{staticClass:"el-icon-plus"})]):e._e(),"file"==l.type?a("el-upload",{ref:"upload",refInFor:!0,staticClass:"upload-demo",attrs:{action:"/api/admin/uploadfile","on-remove":function(a,i){return e.handleRemove(l.label+"("+t.label+")",a,i)},"on-success":function(a){return e.imageChange(l.label+"("+t.label+")",a)},"file-list":e.fileList,"auto-upload":!1}},[a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary",plain:""},on:{click:e.submitUpload}},[e._v("添加文件")])],1):e._e()],1)]}))],2):e._e()]})),this.widgetList.length?a("el-form-item",[a("el-button",{staticStyle:{width:"100%"},attrs:{size:"medium",type:"primary",disabled:0==e.form2.status},on:{click:e.saveResult}},[e._v(e._s(1==this.form2.status?"提交":"该问卷已禁用"))])],1):e._e()],2)],1)]),a("el-dialog",{attrs:{title:e.dialogTitle2,"close-on-click-modal":!1,visible:e.dialogVisible2},on:{"update:visible":function(t){e.dialogVisible2=t}}},[a("div",{staticClass:"content"},[a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},on:{clear:e.search1},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search1(t)}},model:{value:e.form1.name,callback:function(t){e.$set(e.form1,"name",t)},expression:"form1.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search1}},[e._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadExcel}},[e._v("导出Excel")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.analyseDataList,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[e._l(e.analyseHeadList,(function(e,t){return a("el-table-column",{key:t,attrs:{label:e,prop:e}})})),a("el-table-column",{attrs:{prop:"post_time",label:"填报时间"}})],2),a("Page",{ref:"pageButton",attrs:{current:e.form.page,page_size:e.form.page_size,total:e.total},on:{pageChange:e.gopage}})],1)]),a("el-dialog",{staticClass:"result_dialog",attrs:{title:e.dialogTitle3,"close-on-click-modal":!1,visible:e.dialogVisible3},on:{"update:visible":function(t){e.dialogVisible3=t}}},[a("div",{staticClass:"content"},[e._l(this.postResult,(function(t,l){return a("div",{key:l,staticClass:"result-item"},[a("span",{staticClass:"label"},[e._v(e._s(l)+":")]),a("span",{staticClass:"value"},[e._v(e._s(t))])])})),0==Object.keys(e.postResult).length?a("div",[e._v("暂无数据")]):e._e()],2)]),a("el-dialog",{staticClass:"qrcode_dialog",attrs:{title:e.dialogTitle4,"close-on-click-modal":!1,visible:e.dialogVisible4},on:{"update:visible":function(t){e.dialogVisible4=t}}},[a("div",{staticClass:"content"},[a("img",{attrs:{src:e.qrcodeUrl,alt:""}})])])],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("信息管理>")]),e._v("外部问卷")])}],s=(a("1bc78"),a("a450"),a("fc02"),a("9973")),r={components:{Page:s["a"]},data:function(){return{messageData:{},rules1:{rules:{}},qrcodeUrl:"",cur_message_id:null,cur_post_type:null,postResult:{},analyseDataList:[],analyseHeadList:[],title:"",widgetList:[],form:{name:"",page:1,page_size:20},form1:{},form2:{},total:1,list:[],loading:!1,input:"",dialogVisible:!1,dialogVisible1:!1,dialogVisible2:!1,dialogVisible3:!1,dialogVisible4:!1,dialogTitle:"",dialogTitle2:"",dialogTitle3:"",dialogTitle4:"",defaultProps:{},data:[],templateList:[],userList:[],checkList:[],rules:{name:[{required:!0,message:"请输入标题",trigger:"blur"}],template_id:[{required:!0,message:"请选择问卷模板",trigger:"change"}]},props:{multiple:!0},options:[{value:1,label:"东南",children:[{value:2,label:"上海",children:[{value:3,label:"普陀"},{value:4,label:"黄埔"},{value:5,label:"徐汇"}]},{value:7,label:"江苏",children:[{value:8,label:"南京"},{value:9,label:"苏州"},{value:10,label:"无锡"}]},{value:12,label:"浙江",children:[{value:13,label:"杭州"},{value:14,label:"宁波"},{value:15,label:"嘉兴"}]}]},{value:17,label:"西北",children:[{value:18,label:"陕西",children:[{value:19,label:"西安"},{value:20,label:"延安"}]},{value:21,label:"新疆维吾尔族自治区",children:[{value:22,label:"乌鲁木齐"},{value:23,label:"克拉玛依"}]}]}]}},methods:{handlePreview:function(){},handleRemove:function(e,t,a){for(var l=[],i=0;i<a.length;i++)l.push(a[i].response.data);this.form2[e]=l},imageChange:function(e,t){this.form2[e].push(t.data)},switchStatus:function(e){var t=this;1==e.status?this.$confirm("确定禁用吗?","提示",{type:"warning"}).then((function(){t.$api.editMessageStatus({id:e.id}).then((function(t){e.status=t.data.data}))})):this.$api.editMessageStatus({id:e.id}).then((function(t){e.status=t.data.data}))},showQrcode:function(e){this.dialogTitle4="生成二维码",this.dialogVisible4=!0,this.qrcodeUrl=e.template_qrcode},showMessageAnalyse:function(e){e.finish_ids.length?this.$router.push({path:"/message/outSurvey/analyse",query:{id:e.id,type:e.type}}):this.$message({message:"暂无人员填报"})},downloadExcel:function(){var e=this;this.$api.downloadSurveyResultOut({message_id:this.cur_message_id,type:this.cur_post_type}).then((function(t){var a=document.createElement("a"),l=new Blob([t.data],{type:"application/vnd.ms-excel,charset=UTF-8"}),i=URL.createObjectURL(l),s=decodeURIComponent(t.headers["content-disposition"].split("=")[1]);console.log(s),a.download=s,a.style.display="none",a.href=i,document.body.appendChild(a),a.click(),document.body.removeChild(a),e.download_loading=!1}))},showPostResult:function(e){this.postResult=e.post_result,this.dialogTitle3="填报结果",this.dialogVisible3=!0},analyseData:function(e,t){var a=this;this.form1={};var l=this.form1;l.type=e,l.message_id=t,this.dialogTitle2="统计结果",this.dialogVisible2=!0,this.$api.getMessageSurveyAnalyseOut(l).then((function(l){a.analyseDataList=l.data.data.list,a.analyseHeadList=l.data.data.headers,a.cur_message_id=t,a.cur_post_type=e}))},handleSuccess:function(e,t){this.form2[e.data.type]=e.data.url},change:function(e,t){this.form2[t]=e},changeMul:function(e,t){this.form2[t]=e},showSurvey:function(e){var t=this,a=this;this.title=e.name,this.message_id=e.id,this.widgetList=[],this.form2={},this.form2.status=e.status,this.$api.getMessageInfo({id:e.id}).then((function(e){if(0==e.data.code){t.messageData=e.data.data,t.widgetList=e.data.data.widget;var l={};t.widgetList.forEach((function(e){"checkbox"!=e.type&&"image"!=e.type||a.$set(a.form2,e.label,[]),"input"==e.type&&e.require&&(l[e.label]=[{required:!0,message:e.placeholder,trigger:"blur"}]),"textarea"==e.type&&e.require&&(l[e.label]=[{required:!0,message:e.placeholder,trigger:"blur"}]),"radio"==e.type&&e.require&&(l[e.label]=[{required:!0,message:e.placeholder,trigger:"change"}]),"checkbox"==e.type&&e.require&&(l[e.label]=[{required:!0,message:e.placeholder,trigger:"change"}]),"image"==e.type&&e.require&&(l[e.label]=[{required:!0,message:e.placeholder,trigger:"change"}]),"group"==e.type&&e.children.forEach((function(t){"input"==t.type&&t.require&&(l[t.label+"("+e.label+")"]=[{required:!0,message:t.placeholder,trigger:"blur"}]),"textarea"==t.type&&t.require&&(l[t.label+"("+e.label+")"]=[{required:!0,message:t.placeholder,trigger:"blur"}]),"radio"==t.type&&t.require&&(l[t.label+"("+e.label+")"]=[{required:!0,message:t.placeholder,trigger:"change"}]),"checkbox"==t.type&&t.require&&(a.$set(a.form2,t.label+"("+e.label+")",[]),l[t.label+"("+e.label+")"]=[{required:!0,message:t.placeholder,trigger:"change"}]),"image"==t.type&&t.require&&(a.$set(a.form2,t.label+"("+e.label+")",[]),l[t.label+"("+e.label+")"]=[{required:!0,message:t.placeholder,trigger:"change"}])}))})),t.$set(t.rules1,"rules",l),t.dialogVisible1=!0}}))},upload:function(e){var t=this,a=document.getElementById(e).files,l=new FormData;l.append("file",a[0]),this.$api.uploadFile(l).then((function(a){0==a.data.code?(t.$set(t.form1,e,a.data.data.url),t.$set(t.form1,"filename",a.data.data.name),t.$message({message:"上传成功!",type:"success"})):t.$message.error(a.data.message)}))},handleChange:function(e){console.log(e)},search:function(){this.form;this.getData()},search1:function(){var e=this,t=this.form1,a=this.cur_post_type,l=this.cur_message_id;t.type=a,t.message_id=l,this.dialogTitle2="统计结果",this.dialogVisible2=!0,this.$api.getMessageSurveyAnalyseOut(t).then((function(t){e.analyseDataList=t.data.data.list,e.analyseHeadList=t.data.data.headers,e.cur_message_id=l,e.cur_post_type=a}))},openDiag:function(){this.form1={},this.dialogVisible=!0,this.dialogTitle="新建外部问卷"},gopage:function(e){e&&(this.form.page_size=e),this.form.page=this.$refs.pageButton.page,this.getData()},getData:function(){var e=this,t=this.form;t.type=1,this.loading=!0,this.$api.getAllTemplateList().then((function(t){e.templateList=t.data.data})),this.$api.getAllSysUserList().then((function(t){e.userList=t.data.data})),this.$api.getMessageList(t).then((function(t){e.list=t.data.data.list,e.total=t.data.data.total,e.loading=!1})),this.$api.getMessageReceiverList().then((function(t){e.options=t.data.data}))},del:function(e){var t=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){t.$api.delMessageInfo({id:e}).then((function(e){t.$message({message:"删除成功",type:"success"}),t.getData()}))}))},edit:function(e){var t=this;this.$api.getMessageInfo({id:e.id}).then((function(e){t.form1=e.data.data,t.dialogVisible=!0}))},saveResult:function(){var e=this;console.log(this.form2,22222222),this.$refs["form2"].validate((function(t){if(t){var a=JSON.stringify(e.form2);e.$api.saveSurveyResultOut({message_id:e.message_id,result:a}).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error(t.data.message),e.dialogVisible1=!1,e.getData()}))}}))},save:function(){var e=this;this.$refs["form1"].validate((function(t){if(t){var a=e.form1,l=e.form1.id;a.receiver_id=JSON.stringify(a.receiver_id),l?e.$api.editMessage(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!"),e.getData(),e.dialogVisible=!1})):e.$api.addMessage(a).then((function(t){0==t.data.code?e.$message({type:"success",message:"保存成功!"}):e.$message.error("保存失败!"),e.getData(),e.dialogVisible=!1}))}}))}},created:function(){this.getData()}},n=r,o=(a("60b0"),a("5d22")),c=Object(o["a"])(n,l,i,!1,null,"39004ae0",null);t["default"]=c.exports},"60b0":function(e,t,a){"use strict";a("491a")},"6bf8":function(e,t,a){"use strict";var l=a("a86f");e.exports=function(){var e=l(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"804d":function(e,t,a){var l=a("9cff"),i=a("cea2"),s=a("839a")("match");e.exports=function(e){var t;return l(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==i(e))}},9973:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-pagination",{attrs:{background:"","page-size":e.page_size?e.page_size:20,"current-page":e.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:e.total},on:{"current-change":e.getData,"size-change":e.handleSizeChange}})},i=[],s={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(e){this.page=e,this.$emit("pageChange")},handleSizeChange:function(e){this.$emit("pageChange",e)}},created:function(){}},r=s,n=(a("129d"),a("5d22")),o=Object(n["a"])(r,l,i,!1,null,null,null);t["a"]=o.exports},a210:function(e,t,a){},a450:function(e,t,a){var l=a("bb8b").f,i=Function.prototype,s=/^\s*function ([^ (]*)/,r="name";r in i||a("26df")&&l(i,r,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(e){return""}}})},bf73:function(e,t,a){"use strict";var l=a("0353");a("e99b")({target:"RegExp",proto:!0,forced:l!==/./.exec},{exec:l})},c46f:function(e,t,a){"use strict";a("bf73");var l=a("84e8"),i=a("065d"),s=a("0926"),r=a("3ab0"),n=a("839a"),o=a("0353"),c=n("species"),u=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();e.exports=function(e,t,a){var p=n(e),f=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f?!s((function(){var t=!1,a=/a/;return a.exec=function(){return t=!0,null},"split"===e&&(a.constructor={},a.constructor[c]=function(){return a}),a[p](""),!t})):void 0;if(!f||!m||"replace"===e&&!u||"split"===e&&!d){var g=/./[p],h=a(r,p,""[e],(function(e,t,a,l,i){return t.exec===o?f&&!i?{done:!0,value:g.call(t,a,l)}:{done:!0,value:e.call(a,t,l)}:{done:!1}})),b=h[0],v=h[1];l(String.prototype,e,b),i(RegExp.prototype,p,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},f417:function(e,t,a){"use strict";var l=a("d445"),i=RegExp.prototype.exec;e.exports=function(e,t){var a=e.exec;if("function"===typeof a){var s=a.call(e,t);if("object"!==typeof s)throw new TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==l(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},fc02:function(e,t,a){"use strict";var l=a("804d"),i=a("a86f"),s=a("1b0b"),r=a("43ec"),n=a("201c"),o=a("f417"),c=a("0353"),u=a("0926"),d=Math.min,p=[].push,f="split",m="length",g="lastIndex",h=4294967295,b=!u((function(){RegExp(h,"y")}));a("c46f")("split",2,(function(e,t,a,u){var v;return v="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[m]||2!="ab"[f](/(?:ab)*/)[m]||4!="."[f](/(.?)(.?)/)[m]||"."[f](/()()/)[m]>1||""[f](/.?/)[m]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!l(e))return a.call(i,e,t);var s,r,n,o=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?h:t>>>0,b=new RegExp(e.source,u+"g");while(s=c.call(b,i)){if(r=b[g],r>d&&(o.push(i.slice(d,s.index)),s[m]>1&&s.index<i[m]&&p.apply(o,s.slice(1)),n=s[0][m],d=r,o[m]>=f))break;b[g]===s.index&&b[g]++}return d===i[m]?!n&&b.test("")||o.push(""):o.push(i.slice(d)),o[m]>f?o.slice(0,f):o}:"0"[f](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,l){var i=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,i,l):v.call(String(i),a,l)},function(e,t){var l=u(v,e,this,t,v!==a);if(l.done)return l.value;var c=i(e),p=String(this),f=s(c,RegExp),m=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),y=new f(b?c:"^(?:"+c.source+")",g),_=void 0===t?h:t>>>0;if(0===_)return[];if(0===p.length)return null===o(y,p)?[p]:[];var x=0,k=0,w=[];while(k<p.length){y.lastIndex=b?k:0;var C,$=o(y,b?p:p.slice(k));if(null===$||(C=d(n(y.lastIndex+(b?0:k)),p.length))===x)k=r(p,k,m);else{if(w.push(p.slice(x,k)),w.length===_)return w;for(var S=1;S<=$.length-1;S++)if(w.push($[S]),w.length===_)return w;k=x=C}}return w.push(p.slice(x)),w}]}))}}]);
  2. //# sourceMappingURL=chunk-03c046e7.8268e90c.js.map