1 line
25 KiB
Plaintext
1 line
25 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/lananWork/detection-business/pages/manage/deviceAdd.vue?3649","webpack:///D:/lananWork/detection-business/pages/manage/deviceAdd.vue?6e5d","webpack:///D:/lananWork/detection-business/pages/manage/deviceAdd.vue?1fc4","webpack:///D:/lananWork/detection-business/pages/manage/deviceAdd.vue?14a4","uni-app:///pages/manage/deviceAdd.vue","webpack:///D:/lananWork/detection-business/pages/manage/deviceAdd.vue?bdee","webpack:///D:/lananWork/detection-business/pages/manage/deviceAdd.vue?b137"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","time","value1","baseUrl","show","maneizhi","type","fileId","id","taplist","text","box","fatherId","filePath","fileName","warnTime","fileLists","files","filesApp","isUploadServer","uploadOptions","webviewStyle","height","width","position","background","fileInput","fileStyle","borderRadius","backgroundColor","color","fontSize","fileTitle","fileInputs","result","onLoad","url","name","header","formData","mounted","console","onShow","methods","getDetail","method","res","cancels","confirms","getnewsadd","uni","title","icon","setTimeout","delta","getback","getzhi2","uploadFile","getFile","uploadSuccess"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,kBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACsC;;;AAG9F;AAC4K;AAC5K,gBAAgB,sLAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,gGAAM;AACR,EAAE,yGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,sTAEN;AACP,KAAK;AACL;AACA,aAAa,gQAEN;AACP,KAAK;AACL;AACA,aAAa,mWAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACzDA;AAAA;AAAA;AAAA;AAAmpB,CAAgB,gqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;ACqFvqB;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;AAAA,eACA;EACAC;IAAA;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MAEAC,UACA;QAAAC;QAAAF;MAAA,GACA;QAAAE;QAAAF;MAAA,EACA;MACAG;QACAL;QACAM;QACAC;QACAC;QACAC;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;MAAA,4DACA,iEACA,+DACA,uBACA;MACAC;QAAA;QACAC;UAEAC;UACAC;UACAC;UACAC;QACA;QACAC;MACA;MACAC;QAAA;QACAN;UAEAC;UACAC;UACAC;UACAC;QACA;QACAC;MACA;MACAE;IAGA;EACA;EACAC;IACA;IACA;IACA;MACA;MACAC;MAAA;MACA;MACA9B;MACA;MACA+B;MACA;MACAC;QAAA;MAAA;MACA;MACAC;IACA;EACA;EACAC;IACAC;EACA;EACAC;IACA;EACA;EACAC;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEA;kBACAR;kBACAS;gBACA;cAAA;gBAHAC;gBAIA;kBACA;kBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAC;MACA;IACA;IACAC;MACAP;MACA;MACA;MACA;MACA;MACA;MACA;MACAA;MACA;MACA;MACA;IAEA;IACA;IACAQ;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA,MACA;kBAAA;kBAAA;gBAAA;gBAAA,MACA;kBAAA;kBAAA;gBAAA;gBACAC;kBACAC;kBACAC;gBACA;gBAAA;cAAA;gBAAA;gBAAA;cAAA;gBAAA,MAIA;kBAAA;kBAAA;gBAAA;gBACAF;kBACAC;kBACAC;gBACA;gBAAA;cAAA;gBAIAX;gBAAA,MACA;kBAAA;kBAAA;gBAAA;gBACA;gBAAA;gBAAA,OACA;kBACAL;kBACAS;kBACA7C;gBACA;cAAA;gBAJA8C;gBAKA;kBACAI;oBACAC;kBACA;kBACAE;oBACAH;sBACAI;oBACA;kBACA;gBACA;cAAA;gBAAA,MAEA;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OACA;kBACAlB;kBACAS;kBACA7C;gBACA;cAAA;gBAJA8C;gBAKA;kBACAI;oBACAC;kBACA;kBACAE;oBACAH;sBACAI;oBACA;kBACA;gBAEA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAGA;IAEAC;MACAL;QACAI;MACA;IACA;IAEAE;MACA;QACA;QACA;QACA;MACA;IAEA;IACAC;MAAA;MACAJ;QACA;MACA;IACA;IACA;IACAK;MAGA;IAMA;IACAC;MACA;MACAlB;MACA;MACAA;IACA;EAEA;AAEA;AAAA,2B;;;;;;;;;;;;;AC9SA;AAAA;AAAA;AAAA;AAA0vC,CAAgB,2sCAAG,EAAC,C;;;;;;;;;;;ACA9wC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/manage/deviceAdd.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/manage/deviceAdd.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./deviceAdd.vue?vue&type=template&id=0faa538c&scoped=true&\"\nvar renderjs\nimport script from \"./deviceAdd.vue?vue&type=script&lang=js&\"\nexport * from \"./deviceAdd.vue?vue&type=script&lang=js&\"\nimport style0 from \"./deviceAdd.vue?vue&type=style&index=0&id=0faa538c&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0faa538c\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/manage/deviceAdd.vue\"\nexport default component.exports","export * from \"-!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./deviceAdd.vue?vue&type=template&id=0faa538c&scoped=true&\"","var components\ntry {\n components = {\n uniIcons: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-icons/components/uni-icons/uni-icons\" */ \"@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue\"\n )\n },\n ssUpload: function () {\n return import(\n /* webpackChunkName: \"uni_modules/ss-upload/components/ss-upload/ss-upload\" */ \"@/uni_modules/ss-upload/components/ss-upload/ss-upload.vue\"\n )\n },\n uDatetimePicker: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker\" */ \"@/uni_modules/uview-ui/components/u-datetime-picker/u-datetime-picker.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.maneizhi == \"2\" ? _vm.files.length : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.show = true\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./deviceAdd.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./deviceAdd.vue?vue&type=script&lang=js&\"","<!-- 发起订单 -->\r\n<template>\r\n\t<view class=\"content\">\r\n\t\t<view class=\"c-top\">\r\n\t\t\t<view class=\"\" @click=\"getback()\">\r\n\t\t\t\t<uni-icons type=\"left\" size=\"18\"></uni-icons>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"c-title\">新增文件</view>\r\n\t\t\t<view class=\"\"></view>\r\n\t\t</view>\r\n\t\t<view class=\"dil\">\r\n\t\t\t<view class=\"tinput\" v-if=\"maneizhi=='2'\">\r\n\t\t\t\t\t<view class=\"text1\"> <text class=\"hong1\">*</text> 文件路径</view>\r\n\t\t\t\t\t\t\t\t<view class=\"you\" >\r\n\t\t\t\t\t\t\t\t\t<ss-upload v-if=\"maneizhi==2\" ref=\"ssUpload\" @getFile=\"getFile\" @uploadSuccess=\"uploadSuccess\" :uploadOptions=\"uploadOptions\" :isUploadServer=\"isUploadServer\" :webviewStyle=\"webviewStyle\" :fileInput=\"fileInput\" >\r\n\t\t\t\t\t\t\t\t\t\t<text>附件上传</text>\r\n\t\t\t\t\t\t\t\t\t</ss-upload>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t</view>\t\r\n\t\t\t</view>\r\n\t\t\t<view style=\"padding:24rpx;\" v-if=\"maneizhi=='2'\">\r\n\t\t\t\t<!-- #ifdef MP-WEIXIN || H5 -->\r\n\t\t\t\t<view v-if=\"files.length\">\r\n\t\t\t\t\t<view v-for=\"item in files\">\r\n\t\t\t\t\t\t<view>名称:{{ item.name }}</view>\r\n\t\t\t\t\t\t<view>大小:{{ item.size }}</view>\r\n\t\t\t\t\t\t<view>类型:{{ item.type }}</view>\r\n\t\t\t\t\t</view>\t\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- #endif -->\t\r\n\t\t\t\t<!-- #ifdef APP-PLUS-->\r\n\t\t\t\t <view style=\"margin-top:40rpx\">{{filesApp}}</view>\r\n\t\t\t\t<!-- #endif -->\r\n\t\t\t<!-- \t<view style=\"margin-top:40rpx;word-break: break-all;\" v-if=\"result\">\r\n\t\t\t\t\t上传服务器结果:{{result}}\r\n\t\t\t\t</view> -->\r\n\t\t\t</view>\r\n\t\t\t<view class=\"xinput\" >\r\n\t\t\t \t\t\t<view class=\"text1\"> <text class=\"hong1\">*</text> 分类</view>\r\n\t\t\t \t\t\t<view class=\"xz\">\r\n\t\t\t \t\t\t\t<view :class=\"{'xlan':maneizhi == item.id}\" class=\"kuang\" v-for=\"(item,index) in taplist\" :key=\"index\" @click=\"getzhi2(item.id,item.text)\">\r\n\t\t\t \t\t\t\t\t<view class=\"\">{{item.text}}</view>\r\n\t\t\t \t\t\t\t</view>\r\n\t\t\t \t\t\t</view>\r\n\t\t\t </view>\r\n\r\n\t\t <!-- 填空 -->\r\n\t\t <view class=\"tinput\">\r\n\t\t\t <view class=\"text1\" v-if=\"maneizhi=='1'\"> <text class=\"hong1\">*</text> 文件夹名称</view>\r\n\t\t\t <view class=\"text1\" v-else> <text class=\"hong1\">*</text> 文件名称</view>\r\n\t\t\t <view class=\"you\">\r\n\t\t\t\t <input type=\"text\" placeholder=\"请输入名称\" v-model=\"box.fileName\">\r\n\t\t\t </view>\r\n\t\t </view>\r\n\t\r\n\t\t <!-- style=\"height: 0px; overflow: hidden; display: none;\" -->\r\n\t\r\n\t\t\r\n\t\r\n\t\t <view class=\"tinput\" v-if=\"maneizhi=='2'\">\r\n\t\t \t\t\t <view class=\"text1\"> <text class=\"hong1\">*</text> 提醒时间</view>\r\n\t\t \t\t\t <view class=\"you\" @click=\"show = true \">\r\n\t\t\t\t\t\t <text>{{time|| ''}}</text>\r\n\t\t \t\t\t </view>\r\n\t\t </view>\r\n\t\t <u-datetime-picker\r\n\t\t :show=\"show\"\r\n\t\t v-model=\"value1\"\r\n\t\t\t\t\t\t@cancel=\"cancels\"\r\n\t\t\t\t\t\t@confirm=\"confirms\"\r\n\t\t mode=\"date\"\r\n\t\t\t\t\t\treturn-type='string'\r\n\t\t ></u-datetime-picker>\r\n\t\t\t\t\t\t\r\n\t\t\t<view class=\"anniu\" @click=\"getnewsadd()\">\r\n\t\t\t\t<text>保存</text>\r\n\t\t\t</view>\r\n\t\t\t<view style=\"width: 100%; height: 60px;\"></view>\r\n\t\t</view>\r\n\t\t\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport request from '../../utils/request'\r\n\timport config from '@/config'\r\n\timport { getToken } from '@/utils/auth'\r\n\timport upload from '@/utils/upload.js'\r\n\tvar wvCurrent;\r\n\texport default{\r\n\t\tdata(){\r\n\t\t\treturn{\r\n\t\t\t\ttime:'请选择提醒时间',\r\n\t\t\t\tvalue1:'2023-10-10',\r\n\t\t\t\tbaseUrl:this.$baseUrl,\r\n\t\t\t\tshow:false,\r\n\t\t\t\tmaneizhi:2,\r\n\t\t\t\ttype:'add',\r\n\t\t\t\tfileId:null,\r\n\t\t\t\tid:1,\r\n\t\t\t\r\n\t\t\t\ttaplist:[\r\n\t\t\t\t\t{text:'文件夹',id:1},\r\n\t\t\t\t\t{text:'文件',id:2},\r\n\t\t\t\t],\r\n\t\t\t\tbox:{\r\n\t\t\t\t\ttype:2,\r\n\t\t\t\t\tfatherId:'',\r\n\t\t\t\t\tfilePath:'',\r\n\t\t\t\t\tfileName:'',\r\n\t\t\t\t\twarnTime:'',\r\n\t\t\t\t},\r\n\t\t\t\tfileLists: null,\r\n\t\t\t\tfiles: [],\r\n\t\t\t\tfilesApp:'',\r\n\t\t\t\tisUploadServer:true,\r\n\t\t\t\tuploadOptions:{},\r\n\t\t\twebviewStyle:{\r\n\t\t\t\theight: '60px',\r\n\t\t\t\twidth:'130px',\r\n\t\t\t\tposition:'',\r\n\t\t\t\tbackground:'transparent',\r\n\t\t\t\tposition: 'absolute',\r\n\t\t\t\ttop:'95px',\r\n\t\t\t\tright:'20px',\r\n\t\t\t},\r\n\t\t\tfileInput:{//设置app端html里面input样式与内容\r\n\t\t\t\tfileStyle:{\r\n\t\t\t\t\r\n\t\t\t\t\tborderRadius: '10px',\r\n\t\t\t\t\tbackgroundColor: '#000000',\r\n\t\t\t\t\tcolor: '#fff',\r\n\t\t\t\t\tfontSize: '20px',\r\n\t\t\t\t},\r\n\t\t\t\tfileTitle:'' \r\n\t\t\t},\r\n\t\t\tfileInputs:{//设置app端html里面input样式与内容\r\n\t\t\t\tfileStyle:{\r\n\t\t\t\t\r\n\t\t\t\t\tborderRadius: '10px',\r\n\t\t\t\t\tbackgroundColor: '#000000',\r\n\t\t\t\t\tcolor: '#fff',\r\n\t\t\t\t\tfontSize: '20px',\r\n\t\t\t\t},\r\n\t\t\t\tfileTitle:'上传附件' \r\n\t\t\t},\r\n\t\t\tresult:''\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\tthis.type = option.type\r\n\t\t\tthis.fileId = option.fileId\r\n\t\t\tthis.uploadOptions = {\r\n\t\t\t\t\t// 上传服务器地址,此地址需要替换为你的接口地址\r\n\t\t\t\t\turl:this.$baseUrl + '/common/upload', //仅为示例,非真实的接口地址,\r\n\t\t\t\t\t//请求方式,get,post\r\n\t\t\t\t\ttype:'post',\r\n\t\t\t\t\t// 上传附件的key\r\n\t\t\t\t\tname: 'file',\r\n\t\t\t\t\t// 根据你接口需求自定义请求头\r\n\t\t\t\t\theader:{\"Authorization\": 'Bearer ' + getToken()},\r\n\t\t\t\t\t// 根据你接口需求自定义body参数\r\n\t\t\t\t\tformData: config.formData\r\n\t\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tconsole.log(getToken);\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tif(this.type == 'edit') this.getDetail();\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tasync getDetail(){\r\n\t\t\t\t\r\n\t\t\t\tlet res = await request({\r\n\t\t\t\t\turl: '/inspectionFile/inspectionFile/'+this.fileId,\r\n\t\t\t\t\tmethod: 'get'\r\n\t\t\t\t})\r\n\t\t\t\tif(res.code == 200){\r\n\t\t\t\t\tthis.box = res.data\r\n\t\t\t\t\tthis.maneizhi = this.box.type\r\n\t\t\t\t\tthis.time = this.box.warnTime\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcancels(){\r\n\t\t\t\tthis.show = false\r\n\t\t\t},\r\n\t\t\tconfirms(e){\r\n\t\t\t\tconsole.log(e);\r\n\t\t\t\tvar timestamp = e.value;\r\n\t\t\t\tvar date = new Date(timestamp);\r\n\t\t\t\tvar year = date.getFullYear();\r\n\t\t\t\tvar month = (\"0\" + (date.getMonth() + 1)).slice(-2);\r\n\t\t\t\tvar day = (\"0\" + date.getDate()).slice(-2);\r\n\t\t\t\tvar formattedDate = year + \"-\" + month + \"-\" + day;\r\n\t\t\t\tconsole.log(formattedDate);\r\n\t\t\t\tthis.box.warnTime = formattedDate\r\n\t\t\t\tthis.time = formattedDate\r\n\t\t\t\tthis.show = false\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t\t\t//发布按钮\r\n\t\t\t\t\t\tasync getnewsadd(){\r\n\t\t\t\t\t\t\tif(this.maneizhi =='2'){\r\n\t\t\t\t\t\t\t\tif(this.box.filePath==''||this.box.fileName==''||this.box.warnTime==''){\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:'必填项不能有空!',\r\n\t\t\t\t\t\t\t\t\ticon:'none'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tif(this.box.fileName==''){\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:'必填项不能有空!',\r\n\t\t\t\t\t\t\t\t\ticon:'none'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\treturn\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tconsole.log(this.box,'this.box');\r\n\t\t\t\t\t\t\tif(this.type == 'add'){\r\n\t\t\t\t\t\t\t\tthis.box.fatherId = this.fileId\r\n\t\t\t\t\t\t\t\tlet res = await request({\r\n\t\t\t\t\t\t\t\t\turl: '/inspectionFile/inspectionFile/add',\r\n\t\t\t\t\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\t\t\t\t\tdata:this.box\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tif(res.code == 200){\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:'发布成功'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t uni.navigateBack({\r\n\t\t\t\t\t\t\t\t\tdelta: 1\r\n\t\t\t\t\t\t\t\t });\r\n\t\t\t\t\t\t\t\t}, 1000);\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(this.type == 'edit'){\r\n\t\t\t\t\t\t\t\tlet res = await request({\r\n\t\t\t\t\t\t\t\t\turl: '/inspectionFile/inspectionFile/edit',\r\n\t\t\t\t\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\t\t\t\t\tdata:this.box\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tif(res.code == 200){\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle:'发布成功'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t uni.navigateBack({\r\n\t\t\t\t\t\t\t\t\tdelta: 1\r\n\t\t\t\t\t\t\t\t });\r\n\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t},\r\n\t\r\n\t\t\tgetback(){\r\n\t\t\tuni.navigateBack({\r\n\t\t\t\t\tdelta:1,\r\n\t\t\t\t})\t\r\n\t\t\t},\r\n\t\t\r\n\t\t\tgetzhi2(id,text){\r\n\t\t\t\tif(this.type == 'add'){\r\n\t\t\t\t\tthis.maneizhi = id\r\n\t\t\t\t\tthis.value =text\r\n\t\t\t\t\tthis.box.type = id\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t},\r\n\t\tuploadFile(){\r\n\t\t\tsetTimeout(()=>{\r\n\t\t\t\tthis.$refs.ssUpload.uploadFile()\r\n\t\t\t})\r\n\t\t},\r\n\t\t//获取文件\r\n\t\tgetFile(result){\r\n\t\t\t\r\n\t\t\t//#ifdef H5 || MP-WEIXIN\r\n\t\t\tthis.files = result.tempFiles\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef APP-PLUS\r\n\t\t\tconsole.log('结果结果结果',result)\r\n\t\t\tthis.filesApp = result\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tuploadSuccess(result){\r\n\t\t\tthis.result = result\r\n\t\t\tconsole.log('上传服务器后端返回结果',this.result)//后期取值可以在这里做操作\r\n\t\t\tthis.box.filePath = result[0].fileName\r\n\t\t\tconsole.log(this.box.filePath ,'this.box.filePath ');\r\n\t\t}\r\n\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n\t.content{\r\n\t\twidth: 100%;\r\n\t\theight: calc(100vh);\r\n\t\tbackground-color: #F6F6F6;\r\n\t\tbox-sizing: border-box;\r\n\t\t// padding-top: 45px;\r\n\t}\r\n\t\r\n\t.dil{\r\n\t\tbox-sizing: border-box;\r\n\t\tbackground-color: #F6F6F6;\r\n\t\tpadding: 0px 12px;\r\n\t\t\r\n\t}\r\n\t.top-icon{\r\n\t\tmargin-bottom: 45px;\r\n\t}\r\n\t.c-top{\r\n\t\twidth: 100%;\r\n\t\tbox-sizing: border-box;\r\n\t\tpadding: 15px;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tbackground-color: white;\r\n\t\tpadding-top: 40px;\r\n\t}\r\n\t.c-title{\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold\r\n\t}\r\n\t.top{\r\n\t\tbox-sizing: border-box;\r\n\t\tpadding: 0px 15px;\r\n\t\twidth: 100%;\r\n\t\tbackground-color: white;\r\n\t}\r\n\t.top-box{\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tbox-sizing: border-box;\r\n\t\tpadding: 20px 0px;\r\n\t}\r\n\t.tb-left{\r\n\t\theight: 100%;\r\n\t\twidth: 80%;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t}\r\n\t.uicon{\r\n\t\twidth: 18px;\r\n\t\theight: 18px;\r\n\t\tborder-radius: 4px;\r\n\t\tcolor: white;\r\n\t\tbackground: orangered;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tfont-size: 12px;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-right: 6px;\r\n\t\t\r\n\t}\r\n\t.tb-right{\r\n\t\twidth: 20px;\r\n\t\theight: 26px;\r\n\t\t\r\n\t\timage{\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t}\r\n\t}\r\n\t.text1{\r\n\t\tfont-size: 16px;\r\n\t\tfont-weight: bold;\r\n\t\tcolor: #363636;\r\n\t}\r\n\t.hong1{\r\n\t\tmargin-top: 5px;\r\n\t\tfont-size: 12px;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #FF5453;\r\n\t}\r\n\t.hong2{\r\n\t\tmargin-top: 5px;\r\n\t\tfont-size: 12px;\r\n\t\tfont-weight: 400;\r\n\t\r\n\t}\r\n\t.tinput{\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tbackground: white;\r\n\t\talign-items: center;\r\n\t\tjustify-content: space-between;\r\n\t\tbox-sizing: border-box;\r\n\t\tpadding: 16px;\r\n\t\tmargin-top: 14px;\r\n\t\tmargin-bottom: 14px;\r\n\t}\r\n\t.xinput{\r\n\t\twidth: 100%;\r\n\t\tbackground: white;\r\n\t\tbox-sizing: border-box;\r\n\t\tpadding: 16px;\r\n\t\tmargin-top: 14px;\r\n\t}\r\n\t.you{\r\n\t\ttext-align: right;\r\n\t\t\r\n\t}\r\n\t.xz{\r\n\t\tmargin-top: 10px;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\r\n\t}\r\n\t.kuang{\r\n\t\twidth: 80px;\r\n\t\theight: 23px;\r\n\t\tbackground: #ECECEC;\r\n\t\tborder-radius: 5px;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tcolor: #666666;\r\n\t\tfont-size: 14px;\r\n\t\tmargin-right: 15px;\r\n\t}\r\n\t.xlan{\r\n\t\tbackground: #CDE7FF !important;\r\n\t\tcolor: #1D62FF !important;\r\n\t\tborder: 1px solid #2A96FE;\r\n\t}\r\n\t.anniu{\r\n\t\twidth: 100%;\r\n\t\tbackground: linear-gradient(180deg, #3F61C0 0%, #0D2E8D 100%);\r\n\t\tborder-radius: 50px ;\r\n\t\theight: 40px;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tcolor: #542F0E;\r\n\t\tmargin-top: 20px;\r\n\t\tcolor: white;\r\n\t\t\r\n\t}\r\n\t\r\n\t\r\n\tbutton::after {\r\n\t border: none;\r\n\t}\r\n</style>","import mod from \"-!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./deviceAdd.vue?vue&type=style&index=0&id=0faa538c&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../software/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./deviceAdd.vue?vue&type=style&index=0&id=0faa538c&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1728093151417\n var cssReload = require(\"D:/software/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |