hotime/example/tpt/wx/js/chunk-6205d240.512e7069.js.map
2022-02-28 09:59:05 +08:00

1 line
12 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/components/MattersUp.vue?66d6","webpack:///./src/components/MattersUp.vue","webpack:///./src/components/MattersUp.vue?42d1"],"names":["class","style","title","left-arrow","onClickLeft","questionUpload","question_data","li","i","fileNum","getNum","fileRemarks","ontset","files","after-read","afterRead","upload-icon","offset-bottom","position","type","clickNext","block","round","size","color","name","setup","result","showPicker","columns","checked","data","loading","finished","refreshing","num","question","mounted","this","qd","watch","questionData","handler","deep","methods","file","content","then","res","url","console","log","length","message","j","push","that","id","status","JSON","stringify","$router","getTime","unixTime","format","setImg","src","__exports__","render"],"mappings":"kHAAA,W,+ICCOA,MAAM,W,GAEJA,MAAM,a,uBACT,eAIM,OAJDA,MAAM,YAAU,CACnB,eAAkD,OAA7CA,MAAM,QAAQC,MAAA,gBAAqB,QACxC,eAAkD,OAA7CD,MAAM,QAAQC,MAAA,gBAAqB,QACxC,eAA6B,OAAxBD,MAAM,SAAQ,U,SAEhBA,MAAM,U,uBACT,eAA6C,OAAxCA,MAAM,OAAM,0BAAsB,M,mBAOhCA,MAAM,W,GACJA,MAAM,U,GAiCZA,MAAM,W,iBAC8E,O,sNAnD7F,eAwDM,MAxDN,EAwDM,CAvDJ,eAA+E,GAAlEE,MAAM,OAAOC,aAAA,GAAa,YAAY,EAAAC,a,wBACnD,eAoDM,MApDN,EAoDM,CAnDJ,EAKA,eAKM,MALN,EAKM,CAJJ,G,mBACA,eAEW,2BAFgB,EAAAC,eAAeC,eAAa,SAArCC,EAAGC,G,mDAA0CA,GAAC,CAC3C,MAAVD,EAAGE,SAAeF,EAAGE,QAAO,G,iBAArC,eAA8E,qBAAnC,EAAAC,OAAOH,IAAK,IAAC,eAAEA,EAAGI,aAAW,I,sCAG5E,eAkCiB,GAlCDC,OAAA,IAAM,C,wBACV,iBAA8C,E,mBAAxD,eAKW,2BALgB,EAAAP,eAAeC,eAAa,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AAK,WACNS,EAAKK,QAAQN,KAAK,CAAC,KAAQ,qB,iCC/KnC,MAAMY,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAE1E,gB","file":"js/chunk-6205d240.512e7069.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./MattersUp.vue?vue&type=style&index=0&id=0cccef1c&scoped=true&lang=css\"","<template>\r\n <div class=\"Matters\">\r\n <van-nav-bar title=\"调研填报\" left-arrow @click-left=\"onClickLeft\"> </van-nav-bar>\r\n <div class=\"matterCon\">\r\n <div class=\"navslist\">\r\n <div class=\"navli\" style=\"color: #fff;\">基础填报</div>\r\n <div class=\"navli\" style=\"color: #fff;\">文件上传</div>\r\n <div class=\"navli\">填报完成</div>\r\n </div>\r\n <div class=\"mmhead\">\r\n <div class=\"nng\">根据你填报的内容需要准备以下证明文件进行上传</div>\r\n <template v-for=\"(li,i) in questionUpload.question_data\" :key=\"i\">\r\n <p v-if=\"li.fileNum!=null&&li.fileNum>0\">{{getNum(li)}}.{{li.fileRemarks}}</p>\r\n </template>\r\n </div>\r\n <van-cell-group ontset>\r\n <template v-for=\"(li,i) in questionUpload.question_data\" :key=\"i\">\r\n <div class=\"upgroup\" v-if=\"li.fileNum!=null&&li.fileNum>0\">\r\n <div class=\"upname\" >{{li.fileRemarks}}(最少{{ li.fileNum }}张)</div>\r\n <van-uploader v-model=\"li.files\" :after-read=\"afterRead\" upload-icon=\"plus\"/>\r\n </div>\r\n </template>\r\n<!-- <template v-for=\"(li,index) in question.question_data\" :key=\"index\">-->\r\n<!-- <van-cell-group >-->\r\n\r\n<!-- <div class=\"hstitle2\">(最少{{ li.fileNum }}张)</div>-->\r\n<!-- <van-field name=\"uploader\">-->\r\n<!-- <template #input>-->\r\n<!-- <van-uploader v-model=\"li.files\" :after-read=\"afterRead\" upload-icon=\"plus\"/>-->\r\n<!-- </template>-->\r\n<!-- </van-field>-->\r\n<!-- </van-cell-group>-->\r\n<!-- </template>-->\r\n<!-- <div class=\"upgroup\">-->\r\n<!-- <div class=\"upname\" >上传社保缴纳证明文件</div>-->\r\n<!-- <van-uploader :after-read=\"afterRead\" />-->\r\n<!-- </div>-->\r\n<!-- <div class=\"upgroup\">-->\r\n<!-- <div class=\"upname\" >上传专精特新认证文件</div>-->\r\n<!-- <van-uploader :after-read=\"afterRead\" />-->\r\n<!-- </div>-->\r\n<!-- <div class=\"upgroup\">-->\r\n<!-- <div class=\"upname\" >上传“独角兽”企业认定证书</div>-->\r\n<!-- <van-uploader :after-read=\"afterRead\" />-->\r\n<!-- </div>-->\r\n<!-- <div class=\"upgroup\">-->\r\n<!-- <div class=\"upname\" >上传“瞪羚”企业认定证书</div>-->\r\n<!-- <van-uploader :after-read=\"afterRead\" />-->\r\n<!-- </div>-->\r\n </van-cell-group>\r\n <van-sticky :offset-bottom=\"0\" position=\"bottom\">\r\n <div class=\"nextbtn\" >\r\n <van-button type=\"primary\" @click=\"clickNext\" block round size=\"large\" color=\"#2f58e4\">下一步</van-button>\r\n </div>\r\n </van-sticky>\r\n </div>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {post, baseUrl, cache} from \"../api/http\"\r\nimport {Dialog} from \"vant\";\r\nimport moment from 'moment';\r\nimport { ref } from 'vue';\r\nexport default {\r\n name: \"MattersCon\",\r\n setup() {\r\n\r\n const result = ref('');\r\n const showPicker = ref(false);\r\n const columns = ['装备制造1', '装备制造2', '装备制造3', '装备制造4', '装备制造5'];\r\n const checked = ref('1');\r\n\r\n return {\r\n result,\r\n columns,\r\n showPicker,\r\n checked,\r\n };\r\n },\r\n data() {\r\n return {\r\n loading: false,\r\n finished: false,\r\n refreshing: false,\r\n num:0,\r\n question:{\r\n question_data:[],\r\n },\r\n questionUpload:{\r\n question_data:[],\r\n },\r\n }\r\n\r\n },\r\n mounted() {\r\n this.num=0\r\n this.question=cache(\"question\")\r\n var qd=cache(\"questionData\")\r\n if(qd==null){\r\n qd=cache(\"question\")\r\n }\r\n this.questionUpload=qd\r\n },\r\n watch: {\r\n questionData: {//深度监听,可监听到对象、数组的变化\r\n handler() {\r\n cache(\"questionData\",this.questionData)\r\n },\r\n deep: true //true 深度监听\r\n }\r\n },\r\n\r\n methods: {\r\n\r\n afterRead(file) {\r\n // 此时可以自行将文件上传至服务器\r\n post(\"app/user/upload\",{file:file.content}).then(function (res) {\r\n file.url = res.result\r\n // file.file=null\r\n // file.content=null\r\n // file.message=null\r\n // file.status==null\r\n })\r\n },\r\n getNum(li){\r\n if(li.fileNum!=null&&li.fileNum>0&&li.num==null){\r\n\r\n console.log(li)\r\n this.num++\r\n li.num=this.num\r\n }\r\n return li.num\r\n },\r\n clickNext(){\r\n\r\n\r\n for(var i=0;i<this.questionUpload.question_data.length;i++){\r\n var data=this.questionUpload.question_data[i]\r\n if(data.fileNum==null||data.fileNum==0){\r\n continue\r\n }\r\n if(data.files==null){\r\n Dialog({message:\"你还没有上传“\"+data.fileRemarks+\"”项文件内容\"})\r\n return\r\n }\r\n if(data.files.length<data.fileNum){\r\n Dialog({message:\"“\"+data.fileRemarks+\"”项文件内容,上传文件数量不够\"})\r\n return\r\n }\r\n this.question.question_data[i].files=[]\r\n for(var j=0;j<data.files.length;j++){\r\n this.question.question_data[i].files.push({url:data.files[j].url})\r\n }\r\n }\r\n cache(\"question\",this.question)\r\n var that=this\r\n post(\"app/question/update\", {id:this.question.id,status:2,question_data: JSON.stringify(this.question.question_data)}).then(function () {\r\n that.$router.push({'path': '/matterFinish'})\r\n })\r\n\r\n },\r\n getTime(unixTime){\r\n\r\n return moment(unixTime * 1000).format(\"YYYY-MM-DD HH:mm:ss\");\r\n },\r\n\r\n setImg(src) {\r\n if (src == null || src == \"\") {\r\n return \"./img/logo.png\"\r\n }\r\n return baseUrl + \"/\" + src\r\n },\r\n onClickLeft: function(){\r\n var that = this\r\n cache(\"question\", this.question)\r\n post(\"app/question/update\", {\r\n id: this.question.id,\r\n status: 1,\r\n question_data: JSON.stringify(this.question.question_data)\r\n }).then(function () {\r\n that.$router.push({'path': '/matterCon'})\r\n })\r\n\r\n },\r\n },\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.mmhead{padding: 30px;margin-top: 10px;background: #fff}\r\n\r\n.mattertitle h1{font-size: 16px}\r\n.mdate span{font-size: 14px;margin-left: 10px}\r\n.nextbtn{padding: 0 30px 30px;margin: 20px 0}\r\n.navslist {\r\n height: 40px;background: #fff;\r\n}\r\n.navli{\r\n text-align: center;\r\n height: 40px;\r\n line-height: 40px;\r\n background: #fff;\r\n display: inline-block;\r\n width: 33.3%;\r\n}\r\n.navslist .navli:first-child{\r\n background: url(\"../assets/img/poo2.png\") no-repeat;background-size: 100% 100%;\r\n background-color: #2f58e4;\r\n}\r\n.navslist .navli:nth-child(2){\r\n background: url(\"../assets/img/po2.png\") no-repeat;background-size: 100% 100%;\r\n}\r\n.mmhead p{padding: 3px 0}\r\n.nng{padding-bottom: 5px;font-size: 16px;font-weight: bold}\r\n.upgroup{padding:10px 10px 15px;border-bottom: 1px solid #eee;margin: 0 20px}\r\n.upname{padding: 10px 0px 15px}\r\n\r\n\r\n</style>\r\n\r\n","import { render } from \"./MattersUp.vue?vue&type=template&id=0cccef1c&scoped=true\"\nimport script from \"./MattersUp.vue?vue&type=script&lang=js\"\nexport * from \"./MattersUp.vue?vue&type=script&lang=js\"\n\nimport \"./MattersUp.vue?vue&type=style&index=0&id=0cccef1c&scoped=true&lang=css\"\n\nimport exportComponent from \"D:\\\\work\\\\zqclj\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0cccef1c\"]])\n\nexport default __exports__"],"sourceRoot":""}