1 line
9.8 KiB
Plaintext
1 line
9.8 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/components/MattersCon.vue?42dd","webpack:///./src/components/MattersCon.vue","webpack:///./src/components/MattersCon.vue?2612"],"names":["class","style","title","left-arrow","onClickLeft","question","name","ontset","question_data","li","index","label","unit","type","value","placeholder","remarks","label-width","checkedType","input","direction","options","option","key","offset-bottom","position","clickNext","block","round","size","color","setup","result","showPicker","columns","checked","onConfirm","data","loading","finished","refreshing","mounted","this","watch","methods","i","length","message","that","id","status","JSON","stringify","then","$router","push","getTime","unixTime","format","setImg","src","history","back","__exports__","render"],"mappings":"kHAAA,W,yJCCOA,MAAM,W,GAEJA,MAAM,a,uBACT,eAIM,OAJDA,MAAM,YAAU,CACnB,eAAkD,OAA7CA,MAAM,QAAQC,MAAA,gBAAqB,QACxC,eAA6B,OAAxBD,MAAM,SAAQ,QACnB,eAA6B,OAAxBA,MAAM,SAAQ,U,SAEhBA,MAAM,U,GAAcA,MAAM,O,GAGpBA,MAAM,yBAAyBC,MAAA,2C,GAgBrCD,MAAM,W,iBAC8E,O,qRA5B7F,eAiCM,MAjCN,EAiCM,CAhCJ,eAA+E,GAAlEE,MAAM,OAAOC,aAAA,GAAa,YAAY,EAAAC,a,wBACnD,eA6BM,MA7BN,EA6BM,CA5BJ,EAKA,eAAmE,MAAnE,EAAmE,CAA/C,eAAyC,MAAzC,EAAyC,eAArB,EAAAC,SAASC,MAAI,KACrD,eAgBiB,GAhBDC,OAAA,IAAM,C,wBACV,iBAA4C,E,mBAAtD,eAcW,2BAdoB,EAAAF,SAASG,eAAa,SAAnCC,EAAGC,G,mDAAwCA,GAAK,CAC9D,eAEM,MAFN,EAEM,C,8BADFD,EAAGE,OAAO,IAAC,GAAuB,MAAPF,EAAGG,MAAmB,IAAPH,EAAGG,M,iBAAlC,eAAuE,gB,eAA3B,OAAI,eAAEH,EAAGG,MAAM,IAAC,I,6BAErD,MAAPH,EAAGI,M,iBAApB,eAAoG,G,iBAA3DJ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,OAAOD,IAC/C,GAAyC,MAAtCH,KAAKrC,SAASG,cAAcqC,GAAG/B,OAAmD,IAAtC4B,KAAKrC,SAASG,cAAcqC,GAAG/B,MAE5E,YADA,eAAO,CAACiC,QAAQ,UAAUL,KAAKrC,SAASG,cAAcqC,GAAGlC,MAAM,SAInE,IAAIqC,EAAKN,KACT,eAAM,WAAWA,KAAKrC,UACtB,eAAK,sBAAuB,CAAC4C,GAAGP,KAAKrC,SAAS4C,GAAGC,OAAO,EAAE1C,cAAe2C,KAAKC,UAAUV,KAAKrC,SAASG,iBAAiB6C,MAAK,WAE1HL,EAAKM,QAAQC,KAAK,CAAC,KAAQ,kBAI/BrC,YAhBO,WAiBL,OAAO,GAsBTsC,QAvCO,SAuCCC,GAEN,OAAO,IAAkB,IAAXA,GAAiBC,OAAO,wBAGxCC,OA5CO,SA4CAC,GACL,OAAW,MAAPA,GAAsB,IAAPA,EACV,iBAEF,OAAU,IAAMA,GAEzBxD,YAAa,kBAAMyD,QAAQC,U,iCCjI/B,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAE1E,gB","file":"js/chunk-14e3b3a2.9c476b85.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!./MattersCon.vue?vue&type=style&index=0&id=2616f8d6&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\">文件上传</div>\r\n <div class=\"navli\">办理成功</div>\r\n </div>\r\n <div class=\"mmhead\"><div class=\"nng\" >{{question.name}}</div></div>\r\n <van-cell-group ontset>\r\n <template v-for=\"(li,index) in question.question_data\" :key=\"index\">\r\n <div class=\"van-multi-ellipsis--l2\" style=\"margin: 10px 10px; padding-top: 12px;\">\r\n {{li.label}} <template v-if=\"li.unit!=null&&li.unit!=''\">(单位:{{li.unit}})</template>\r\n </div>\r\n <van-field v-if=\"li.type=='文本'\" v-model=\"li.value\" :placeholder=\"li.remarks\" label-width=\"100px\"/>\r\n <van-field v-if=\"li.type=='数字'\" v-model=\"li.value\" :placeholder=\"li.remarks\" type=\"number\" label-width=\"100px\"/>\r\n <van-field v-if=\"checkedType(li)\" name=\"radio\" label-width=\"130px\" >\r\n <template #input>\r\n <van-radio-group v-model=\"li.value\" direction=\"horizontal\">\r\n<!-- <van-radio style=\"padding: 3px;\" name=\"否\">否</van-radio>-->\r\n <van-radio style=\"padding: 3px;\" v-for=\"option in li.options\" :key=\"option\" :name=\"option\">{{option}}</van-radio>\r\n </van-radio-group>\r\n </template>\r\n </van-field>\r\n </template>\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 {baseUrl, cache, post} 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 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 // return { checked };\r\n const onConfirm = (value) => {\r\n result.value = value;\r\n showPicker.value = false;\r\n };\r\n\r\n return {\r\n checked,\r\n result,\r\n columns,\r\n onConfirm,\r\n showPicker,\r\n };\r\n },\r\n data() {\r\n return {\r\n loading: false,\r\n finished: false,\r\n refreshing: false,\r\n question:{\r\n question_data:[],\r\n },\r\n }\r\n },\r\n mounted() {\r\n this.question=cache(\"question\")\r\n },\r\n watch: {\r\n // question: {//深度监听,可监听到对象、数组的变化\r\n // handler() {\r\n //\r\n // // cache(\"question\",this.question)\r\n // },\r\n // deep: true //true 深度监听\r\n // }\r\n\r\n },\r\n methods: {\r\n clickNext(){\r\n for(var i=0;i<this.question.question_data.length;i++){\r\n if(this.question.question_data[i].value==null||this.question.question_data[i].value==\"\"){\r\n Dialog({message:\"你还没有填报“\"+this.question.question_data[i].label+\"”项内容\"})\r\n return\r\n }\r\n }\r\n var that=this\r\n cache(\"question\",this.question)\r\n post(\"app/question/update\", {id:this.question.id,status:1,question_data: JSON.stringify(this.question.question_data)}).then(function () {\r\n\r\n that.$router.push({'path': '/matterUp'})\r\n })\r\n\r\n },\r\n checkedType(){\r\n return false\r\n // if(li.type.indexOf(\"/\")!=-1){\r\n // console.log(454545)\r\n // var strs=li.type.split(\"/\");\r\n // li.options=[];\r\n // var hasnot=false\r\n // for (var i=0;i<strs.length ;i++ )\r\n // {\r\n // if(strs[i]!=\"\"){\r\n // li.options.push(strs[i])\r\n // }\r\n // if(strs[i]==\"否\"){\r\n // hasnot=true\r\n // }\r\n // }\r\n // if(hasnot==false){\r\n // li.options=[\"否\",...li.options]\r\n // }\r\n // return true\r\n // }\r\n // return false\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: () => history.back(),\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/po2.png\") no-repeat;background-size: 100% 100%;\r\n}\r\n.navslist .navli:nth-child(2){\r\n background: url(\"../assets/img/poo1.png\") no-repeat;background-size: 100% 100%;\r\n}\r\n.nng{padding-bottom: 5px;font-size: 16px;font-weight: bold}\r\n\r\n\r\n\r\n\r\n</style>\r\n\r\n","import { render } from \"./MattersCon.vue?vue&type=template&id=2616f8d6&scoped=true\"\nimport script from \"./MattersCon.vue?vue&type=script&lang=js\"\nexport * from \"./MattersCon.vue?vue&type=script&lang=js\"\n\nimport \"./MattersCon.vue?vue&type=style&index=0&id=2616f8d6&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-2616f8d6\"]])\n\nexport default __exports__"],"sourceRoot":""} |