forked from golang/hotime
2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4cf4de5f"],{"18e9":function(t,e,n){"use strict";n.r(e);var i=n("f2bf"),u=function(t){return Object(i["C"])("data-v-4cbf40d9"),t=t(),Object(i["A"])(),t},c={class:"Matters"},a={class:"matterCon"},o=u((function(){return Object(i["i"])("div",{class:"navslist"},[Object(i["i"])("div",{class:"navli",style:{color:"#fff"}},"基础填报"),Object(i["i"])("div",{class:"navli",style:{color:"#fff"}},"文件上传"),Object(i["i"])("div",{class:"navli"},"填报完成")],-1)})),s={class:"mmhead"},l=u((function(){return Object(i["i"])("div",{class:"nng"},"根据你填报的内容需要准备以下证明文件进行上传",-1)})),r={key:0},f={key:0,class:"upgroup"},b={class:"upname"},d={class:"nextbtn"},O=Object(i["j"])("下一步");function j(t,e,n,u,j,m){var h=Object(i["G"])("van-nav-bar"),p=Object(i["G"])("van-uploader"),v=Object(i["G"])("van-cell-group"),q=Object(i["G"])("van-button"),k=Object(i["G"])("van-sticky");return Object(i["z"])(),Object(i["h"])("div",c,[Object(i["k"])(h,{title:"调研填报","left-arrow":"",onClickLeft:m.onClickLeft},null,8,["onClickLeft"]),Object(i["i"])("div",a,[o,Object(i["i"])("div",s,[l,(Object(i["z"])(!0),Object(i["h"])(i["a"],null,Object(i["F"])(j.questionUpload.question_data,(function(t,e){return Object(i["z"])(),Object(i["h"])(i["a"],{key:e},[null!=t.fileNum&&t.fileNum>0?(Object(i["z"])(),Object(i["h"])("p",r,Object(i["K"])(m.getNum(t))+"."+Object(i["K"])(t.fileRemarks),1)):Object(i["g"])("",!0)],64)})),128))]),Object(i["k"])(v,{ontset:""},{default:Object(i["O"])((function(){return[(Object(i["z"])(!0),Object(i["h"])(i["a"],null,Object(i["F"])(j.questionUpload.question_data,(function(t,e){return Object(i["z"])(),Object(i["h"])(i["a"],{key:e},[null!=t.fileNum&&t.fileNum>0?(Object(i["z"])(),Object(i["h"])("div",f,[Object(i["i"])("div",b,Object(i["K"])(t.fileRemarks)+"(最少"+Object(i["K"])(t.fileNum)+"张)",1),Object(i["k"])(p,{modelValue:t.files,"onUpdate:modelValue":function(e){return t.files=e},"after-read":m.afterRead,"upload-icon":"plus"},null,8,["modelValue","onUpdate:modelValue","after-read"])])):Object(i["g"])("",!0)],64)})),128))]})),_:1}),Object(i["k"])(k,{"offset-bottom":0,position:"bottom"},{default:Object(i["O"])((function(){return[Object(i["i"])("div",d,[Object(i["k"])(q,{type:"primary",onClick:m.clickNext,block:"",round:"",size:"large",color:"#2f58e4"},{default:Object(i["O"])((function(){return[O]})),_:1},8,["onClick"])])]})),_:1})])])}n("e17f");var m=n("2241"),h=(n("e9c4"),n("c1fb")),p=n("c1df"),v=n.n(p),q={name:"MattersCon",setup:function(){var t=Object(i["E"])(""),e=Object(i["E"])(!1),n=["装备制造1","装备制造2","装备制造3","装备制造4","装备制造5"],u=Object(i["E"])("1");return{result:t,columns:n,showPicker:e,checked:u}},data:function(){return{loading:!1,finished:!1,refreshing:!1,num:0,question:{question_data:[]},questionUpload:{question_data:[]}}},mounted:function(){this.num=0,this.question=Object(h["b"])("question");var t=Object(h["b"])("questionData");null==t&&(this.questionUpload=Object(h["b"])("question"))},watch:{questionData:{handler:function(){Object(h["b"])("questionData",this.questionData)},deep:!0}},methods:{afterRead:function(t){Object(h["e"])("app/user/upload",{file:t.content}).then((function(e){t.url=e.result}))},getNum:function(t){return null!=t.fileNum&&t.fileNum>0&&null==t.num&&(console.log(t),this.num++,t.num=this.num),t.num},clickNext:function(){for(var t=0;t<this.questionUpload.question_data.length;t++){var e=this.questionUpload.question_data[t];if(null!=e.fileNum&&0!=e.fileNum){if(null==e.files)return void Object(m["a"])({message:"你还没有上传“"+e.fileRemarks+"”项文件内容"});if(e.files.length<e.fileNum)return void Object(m["a"])({message:"“"+e.fileRemarks+"”项文件内容,上传文件数量不够"});this.question.question_data[t].files=[];for(var n=0;n<e.files.length;n++)this.question.question_data[t].files.push({url:e.files[n].url})}}Object(h["b"])("question",this.question);var i=this;Object(h["e"])("app/question/update",{id:this.question.id,status:2,quest
|
||
|
//# sourceMappingURL=chunk-4cf4de5f.176c7f5f.js.map
|