lanan-old/detection-user/unpackage/dist/dev/.sourcemap/mp-weixin/pages/detection/editadd.js.map
愉快的大福 7dc28dc701 init
2024-07-17 14:16:22 +08:00

1 line
27 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/work/detection-app/lanan-user/pages/detection/editadd.vue?cf44","webpack:///D:/work/detection-app/lanan-user/pages/detection/editadd.vue?0147","webpack:///D:/work/detection-app/lanan-user/pages/detection/editadd.vue?7ab8","webpack:///D:/work/detection-app/lanan-user/pages/detection/editadd.vue?f11c","uni-app:///pages/detection/editadd.vue","webpack:///D:/work/detection-app/lanan-user/pages/detection/editadd.vue?2155","webpack:///D:/work/detection-app/lanan-user/pages/detection/editadd.vue?44da"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","baseUrl","obj","fileList1","fileList2","videoList","taplist","dictValue","category","newsCover","videoUrl","newsTitle","publishUnit","newsContent","type","id","carzhi","maneizhi","manei","text","onLoad","mounted","console","components","RboyEditor","methods","uploadFile","that","url","filePath","src","alt","gettap","method","ress","postedit","res","deletePic","afterRead","lists","fileListLen","item","i","result","status","message","uploadFilePromise","deletePic1","afterRead1","uploadFilePromise1","getnewsadd","uni","title","icon","setTimeout","getback","delta","detevideo","getzhi","getzhi2"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,gBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAgI;AAChI;AAC2D;AACL;AACsC;;;AAG5F;AACqL;AACrL,gBAAgB,uLAAU;AAC1B,EAAE,6EAAM;AACR,EAAE,8FAAM;AACR,EAAE,uGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,kGAAU;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,6SAEN;AACP,KAAK;AACL;AACA,aAAa,0MAEN;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;;;;;;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAA8rB,CAAgB,mqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;AC8FltB;AACA;AACA;AAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA,eACA;EACAC;IACA;MACAC;MAEAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC,QACA;QAAAC;MAAA;IAEA;EACA;EACAC;IACA;IACA;EAEA;EACAC;IACA;IACA;IACAC;IACA;EACA;EACAC;IACAC;EACA;EACAC;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBACAL;gBACA;gBACA;kBACA;kBACA;oBACAM;oBACAC;kBACA;oBACAP;oBACAK;sBACAG;sBACAC;oBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEA;kBACAJ;kBACAK;gBACA;cAAA;gBAHAC;gBAIAZ;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAa;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAR;gBAAA;gBAAA,OACA;kBACAC;kBACAK;gBACA;cAAA;gBAHAG;gBAIA;gBACAd;gBACA,uCACA,uCACA;gBACA,2CACA,qCACA,qCACA;gBACA;gBACA,sBACA;kBACAM;gBACA,EACA;gBACA;kBACAN;kBACA;oBACAM;kBACA;gBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAGA;IACA;IACAS;MACA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACA;gBACAC;gBACAC;gBACAD;kBACA,6DACAE,MAEA;gBACA;gBACAC;cAAA;gBAAA;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OACA;cAAA;gBAAAC;gBACAF;gBACA;kBACAG;kBACAC;kBACAjB;gBACA;gBACAY;cAAA;gBARAE;gBAAA;gBAAA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAUA;IACAI;MAAA;MACAxB;MACA;QACAM;QACAC;MACA;QACA;QACAP;MACA;IAEA;IACAyB;MACA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACA;gBACAT;gBACAC;gBACAD;kBACA,6DACAE,MAEA;gBACA;gBACAC;cAAA;gBAAA;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OACA;cAAA;gBAAAC;gBACAF;gBACA;kBACAG;kBACAC;kBACAjB;gBACA;gBACAY;cAAA;gBARAE;gBAAA;gBAAA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAUA;IACAO;MAAA;MACA3B;MACA;QACAM;QACAC;MACA;QACA;QACAP;QACA;UACAM;QACA;MACA;IAEA;IACA;IACAsB;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;cAAA;gBAAA;gBAAA,MACA;kBAAA;kBAAA;gBAAA;gBACAC;kBACAC;kBACAC;gBACA;gBAAA;cAAA;gBAGArD;kBACAe;kBACAJ;kBACAF;kBACAG;kBACAC;kBACAH;kBACAF;kBACAM;gBACA;gBAAA;gBAAA,OACA;kBACAc;kBACAK;kBACAjC;gBACA;cAAA;gBAJAoC;gBAKA;kBACAe;oBACAC;kBACA;gBACA;gBACAE;kBACAH;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;IAEAI;MACAJ;QACAK;MACA;IACA;IACAC;MACA;MACA;MACA;MACAnC;IACA;IACAoC;MACA;IACA;IACAC;MACA;MACA;IACA;EAEA;AAEA;AAAA,2B;;;;;;;;;;;;;AC3UA;AAAA;AAAA;AAAA;AAAy0C,CAAgB,ktCAAG,EAAC,C;;;;;;;;;;;ACA71C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/detection/editadd.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/detection/editadd.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./editadd.vue?vue&type=template&id=6bdeff24&scoped=true&\"\nvar renderjs\nimport script from \"./editadd.vue?vue&type=script&lang=js&\"\nexport * from \"./editadd.vue?vue&type=script&lang=js&\"\nimport style0 from \"./editadd.vue?vue&type=style&index=0&id=6bdeff24&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../Soft软件安装器/soft/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 \"6bdeff24\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/detection/editadd.vue\"\nexport default component.exports","export * from \"-!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./editadd.vue?vue&type=template&id=6bdeff24&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 uUpload: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-upload/u-upload\" */ \"@/uni_modules/uview-ui/components/u-upload/u-upload.vue\"\n )\n },\n RboyEditor: function () {\n return import(\n /* webpackChunkName: \"components/Rboy-editor/Rboy-editor\" */ \"@/components/Rboy-editor/Rboy-editor.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}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./editadd.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./editadd.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\r\n\t\t <!-- 填空 -->\r\n\t\t <view class=\"tinput\">\r\n\t\t\t <view class=\"text1\"> <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=\"newsTitle\">\r\n\t\t\t </view>\r\n\t\t </view>\r\n\t\t <!-- 填空 -->\r\n\t\t<!-- <view class=\"tinput\">\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\">\r\n\t\t \t\t\t\t <input type=\"text\" placeholder=\"请发布单位 \"v-model=\"publishUnit\" >\r\n\t\t \t\t\t </view>\r\n\t\t </view> -->\r\n\t\t <view class=\"tinput\">\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\">\r\n\t\t \t\t\t\t<!-- <input type=\"text\" placeholder=\"请上传封面图片\"> -->\r\n\t\t \t\t\t\t\t\t<text>请上传封面图片</text>\r\n\t\t \t\t\t </view>\t\t\t\t \t\t\t\r\n\t\t </view>\r\n\t\t \t<!-- 上传图片 -->\r\n\t\t \t\t\t<u-upload\r\n\t\t \t\t\t\t:fileList=\"fileList1\"\r\n\t\t \t\t\t\t@afterRead=\"afterRead\"\r\n\t\t \t\t\t\t@delete=\"deletePic\"\r\n\t\t \t\t\t\tname=\"1\"\r\n\t\t \t\t\t\tmultiple\r\n\t\t \t\t\t\t\t:previewFullImage=\"true\"\r\n\t\t \t\t\t\t:maxCount=\"1\"\r\n\t\t \t\t\t\t></u-upload>\r\n\t\t \r\n\t\t <view class=\"xinput\">\r\n\t\t \t\t\t <view class=\"text1\"> <text class=\"hong1\">*</text> 内容</view>\r\n\t\t \t<!-- \t\t<u--textarea v-model=\"newsContent\" placeholder=\"请输入内容\" autoHeight ></u--textarea> -->\r\n\t\t\t\t<Rboy-editor ref=\"RboyEditor\" @uploadFile=\"uploadFile\" :count=\"6\"></Rboy-editor>\r\n\t\t </view>\r\n\t\t <view class=\"xinput\" v-if=\"category \">\r\n\t\t \t\t\t<view class=\"text1\"> <text class=\"hong1\">*</text> 分类</view>\r\n\t\t \t\t\t<view class=\"xz\">\r\n\t\t \t\t\t\t<view :class=\"{'xlan':maneizhi == index}\" class=\"kuang\" v-for=\"(item,index) in taplist\" :key=\"index\" @click=\"getzhi2(index,item.dictValue)\">\r\n\t\t \t\t\t\t\t<view class=\"\">{{item.dictLabel}}</view>\r\n\t\t \t\t\t\t</view>\r\n\t\t \t\t\t</view>\r\n\t\t </view>\r\n\t\t\r\n\t\t\t\t\t\t<view class=\"tinput\">\r\n\t\t\t\t\t\t\t\t <view class=\"text1\"> 上传视频</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 <input type=\"text\" placeholder=\"请上传视频\"> -->\r\n\t\t\t\t\t\t\t\t<text>请上传视频</text>\r\n\t\t\t\t\t\t\t\t </view>\t\t\t\t \t\t\t\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<!-- 上传视频 -->\r\n\t\t\t\t\t\t<view class=\"videobox\" v-if=\"videoList != [] \">\r\n\t\t\t\t\t\t\t<video :src=\"videoList[0].url\" controls></video>\r\n\t\t\t\t\t\t\t<view style=\"color: crimson;\" @click=\"detevideo()\">点击删除</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"\" v-if=\"videoList == [] \">\r\n\t\t\t\t\t\t<u-upload\r\n\t\t\t\t\t\t\t\t:fileList=\"fileList2\"\r\n\t\t\t\t\t\t\t\t@afterRead=\"afterRead1\"\r\n\t\t\t\t\t\t\t\t@delete=\"deletePic1\"\r\n\t\t\t\t\t\t\t\tname=\"2\"\r\n\t\t\t\t\t\t\t\tmultiple\r\n\t\t\t\t\t\t\t\t:maxCount=\"1\"\r\n\t\t\t\t\t\t\t\taccept=\"video\"\r\n\t\t\t\t\t\t\t\t:previewFullImage=\"true\"\r\n\t\t\t\t\t\t\t></u-upload>\r\n\t\t\t\t\t\t</view>\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 RboyEditor from \"@/components/Rboy-editor/Rboy-editor\"\r\n\timport request from '../../utils/request'\r\n\timport config from '@/config'\r\n\timport upload from '@/utils/upload.js'\r\n\texport default{\r\n\t\tdata(){\r\n\t\t\treturn{\r\n\t\t\t\tbaseUrl :\"\",\r\n\t\t\t\t\r\n\t\t\t\tobj:{},\r\n\t\t\t\tfileList1: [],\r\n\t\t\t\tfileList2: [],\r\n\t\t\t\tvideoList:[],\r\n\t\t\t\ttaplist:[],\r\n\t\t\t\tdictValue:[],\r\n\t\t\t\tcategory:'',\r\n\t\t\t\tnewsCover:'',\r\n\t\t\t\tvideoUrl:'',\r\n\t\t\t\tnewsTitle:'',\r\n\t\t\t\tpublishUnit:'',\r\n\t\t\t\tnewsContent:'',\r\n\t\t\t\ttype:'',\r\n\t\t\t\tid:1,\r\n\t\t\t\tcarzhi:0,\t\r\n\t\t\t\tmaneizhi:0,\r\n\t\t\t\tmanei:[\r\n\t\t\t\t\t{text:'行业公告'},\r\n\t\t\t\t],\t\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\tthis.id = option.id\r\n\t\t\tthis.type = option.type\r\n\t\t\t\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.gettap()\r\n\t\t\tthis.baseUrl = this.$baseUrl\r\n\t\t\tconsole.log('????????',this.$baseUrl); \t\r\n\t\t\tthis.postedit()\r\n\t\t},\r\n\t\tcomponents:{\r\n\t\t RboyEditor\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t// 上传图片\r\n\t\t\tasync uploadFile(event) {\r\n\t\t\t\tlet that = this\r\n\t\t\t\tconsole.log(event);\r\n\t\t\t // event 选择的图片\r\n\t\t\t for (var item in event.tempFilePaths) {\r\n\t\t\t // uploadFileApi 为上传到服务端的接口 count大于1 使用 await \r\n\t\t\t\t\tupload({\r\n\t\t\t\t\t\turl:'/common/upload',\r\n\t\t\t\t\t\tfilePath: event.tempFilePaths[item],\t\t\t\t\r\n\t\t\t\t\t}).then((res)=>{\r\n\t\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\tthat.$refs.RboyEditor.editor_insertImage({\r\n\t\t\t\t\t src: this.baseUrl + res.fileName,\r\n\t\t\t\t\t alt: \"图像\",\r\n\t\t\t\t\t})\r\n\t\t\t\t\t})\r\n\t\t\t }\r\n\t\t\t\t},\r\n\t\t\tasync gettap(){\r\n\t\t\t\t\t//行业公告分类\r\n\t\t\t\tlet ress = await request({\r\n\t\t\t\t\turl: '/appInspection/news/editType',\r\n\t\t\t\t\tmethod: 'get',\r\n\t\t\t\t})\r\n\t\t\t\tconsole.log(ress);\r\n\t\t\t\tthis.taplist = ress.data\r\n\t\t\t},\r\n\t\t\tasync postedit(){\r\n\t\t\t\tlet that =this\r\n\t\t\t\tlet res = await request({\r\n\t\t\t\t\turl: '/appInspection/news/getDetail?newsId='+this.id,\r\n\t\t\t\t\tmethod: 'get',\r\n\t\t\t\t})\r\n\t\t\t\tthis.obj = res\t\r\n\t\t\t\tconsole.log('显',res.data.newsContent);\r\n\t\t\t\tthis.newsTitle = res.data.newsTitle,\r\n\t\t\t\tthis.newsCover= res.data.newsCover,\r\n\t\t\t\tthis.publishUnit= res.data.publishUnit\r\n\t\t\t\tthis.newsContent = res.data.newsContent,\r\n\t\t\t\tthis.videoUrl = res.data.videoUrl,\r\n\t\t\t\tthis.category = res.data.category,\r\n\t\t\t\tthis.$refs.RboyEditor.editor_setContentsNew( res.data.newsContent)\r\n\t\t\t\t// this.type = res.type\r\n\t\t\t\tthis.fileList1.push(\r\n\t\t\t\t{\r\n\t\t\t\t\turl:this.baseUrl + res.data.newsCover\r\n\t\t\t\t}\r\n\t\t\t\t) \r\n\t\t\t\tif(res.data.videoUrl != null){\r\n\t\t\t\t\tconsole.log('走这',this.videoList);\r\n\t\t\t\t\tthis.videoList.push({\r\n\t\t\t\t\t\t url:this.baseUrl + res.data.videoUrl\r\n\t\t\t\t\t})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.videoList = \"\"\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t\t// 删除图片\r\n\t\t\t\t\t\tdeletePic(event) {\r\n\t\t\t\t\t\t\tthis[`fileList${event.name}`].splice(event.index, 1)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t// 新增图片\r\n\t\t\t\t\t\tasync afterRead(event) {\r\n\t\t\t\t\t\t\t// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式\r\n\t\t\t\t\t\t\tlet lists = [].concat(event.file)\r\n\t\t\t\t\t\t\tlet fileListLen = this[`fileList${event.name}`].length\r\n\t\t\t\t\t\t\tlists.map((item) => {\r\n\t\t\t\t\t\t\t\tthis[`fileList${event.name}`].push({\r\n\t\t\t\t\t\t\t\t\t...item,\r\n\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\t\t\t\t\t\t\tfor (let i = 0; i < lists.length; i++) {\r\n\t\t\t\t\t\t\t\tconst result = await this.uploadFilePromise(lists[i].url)\r\n\t\t\t\t\t\t\t\tlet item = this[`fileList${event.name}`][fileListLen]\r\n\t\t\t\t\t\t\t\tthis[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {\r\n\t\t\t\t\t\t\t\t\tstatus: 'success',\r\n\t\t\t\t\t\t\t\t\tmessage: '',\r\n\t\t\t\t\t\t\t\t\turl: result\r\n\t\t\t\t\t\t\t\t}))\r\n\t\t\t\t\t\t\t\tfileListLen++\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tuploadFilePromise(url) {\r\n\t\t\t\t\t\t\tconsole.log(url);\r\n\t\t\t\t\t\t\tupload({\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\turl:'/common/upload',\r\n\t\t\t\t\t\t\t\tfilePath: url,\t\t\t\t\r\n\t\t\t\t\t\t\t}).then((res)=>{\r\n\t\t\t\t\t\t\t\tthis.newsCover = res.fileName\r\n\t\t\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tdeletePic1(event) {\r\n\t\t\t\t\t\t\tthis[`fileList${event.name}`].splice(event.index, 1)\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t// 新增图片\r\n\t\t\t\t\t\tasync afterRead1(event) {\r\n\t\t\t\t\t\t\t// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式\r\n\t\t\t\t\t\t\tlet lists = [].concat(event.file)\r\n\t\t\t\t\t\t\tlet fileListLen = this[`fileList${event.name}`].length\r\n\t\t\t\t\t\t\tlists.map((item) => {\r\n\t\t\t\t\t\t\t\tthis[`fileList${event.name}`].push({\r\n\t\t\t\t\t\t\t\t\t...item,\r\n\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\t\t\t\t\t\t\tfor (let i = 0; i < lists.length; i++) {\r\n\t\t\t\t\t\t\t\tconst result = await this.uploadFilePromise1(lists[i].url)\r\n\t\t\t\t\t\t\t\tlet item = this[`fileList${event.name}`][fileListLen]\r\n\t\t\t\t\t\t\t\tthis[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {\r\n\t\t\t\t\t\t\t\t\tstatus: 'success',\r\n\t\t\t\t\t\t\t\t\tmessage: '',\r\n\t\t\t\t\t\t\t\t\turl: result\r\n\t\t\t\t\t\t\t\t}))\r\n\t\t\t\t\t\t\t\tfileListLen++\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tuploadFilePromise1(url) {\r\n\t\t\t\t\t\t\tconsole.log(url);\r\n\t\t\t\t\t\t\tupload({\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\turl:'/common/upload',\r\n\t\t\t\t\t\t\t\tfilePath: url,\t\t\t\t\r\n\t\t\t\t\t\t\t}).then((res)=>{\r\n\t\t\t\t\t\t\t\tthis.videoUrl = res.fileName\r\n\t\t\t\t\t\t\t\tconsole.log(this.videoUrl);\r\n\t\t\t\t\t\t\t\tthis.videoList.push({\r\n\t\t\t\t\t\t\t\t\t url:this.$baseUrl + this.videoUrl\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\r\n\t\t\t\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\t this.newsContent = await this.$refs.RboyEditor.editor_getcontents()\r\n\t\t\t\t\t\t\t if(this.newsTitle==''||this.newsCover==''||this.newsContent==''){\r\n\t\t\t\t\t\t\t uni.showToast({\r\n\t\t\t\t\t\t\t \ttitle:'必填项不能有空!',\r\n\t\t\t\t\t\t\t \ticon:'none'\r\n\t\t\t\t\t\t\t })\r\n\t\t\t\t\t\t\t return\r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\tlet data={\r\n\t\t\t\t\t\t\t\tid:this.id,\r\n\t\t\t\t\t\t\t\tnewsTitle:this.newsTitle,\r\n\t\t\t\t\t\t\t\tnewsCover:this.newsCover,\r\n\t\t\t\t\t\t\t\tpublishUnit:this.publishUnit,\r\n\t\t\t\t\t\t\t\tnewsContent:this.newsContent,\r\n\t\t\t\t\t\t\t\tvideoUrl:this.videoUrl,\r\n\t\t\t\t\t\t\t\tcategory:this.category,\r\n\t\t\t\t\t\t\t\ttype:this.type,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tlet res = await request({\r\n\t\t\t\t\t\t\t\turl: '/appInspection/news/edit',\r\n\t\t\t\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\t\t\t\tdata:data\r\n\t\t\t\t\t\t\t})\r\n\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}\r\n\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t uni.navigateBack()\r\n\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\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\tdetevideo(){\r\n\t\t\t\tthis.fileList2 = \"\"\r\n\t\t\t\tthis.videoList = ''\r\n\t\t\t\tthis.videoUrl = ''\r\n\t\t\t\tconsole.log(this.fileList2,this.videoList);\r\n\t\t\t},\r\n\t\t\tgetzhi(index){\r\n\t\t\t\tthis.carzhi = index\r\n\t\t\t},\r\n\t\t\tgetzhi2(index,dictValue){\r\n\t\t\t\tthis.category =dictValue\r\n\t\t\t\tthis.maneizhi = index\r\n\t\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\tpadding-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}\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}\r\n\t.tb-right{\r\n\t\twidth: 20px;\r\n\t\theight: 26px;\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}\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.kuang{\r\n\t\twidth: 70px;\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}\r\n</style>","import mod from \"-!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./editadd.vue?vue&type=style&index=0&id=6bdeff24&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Soft软件安装器/soft/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./editadd.vue?vue&type=style&index=0&id=6bdeff24&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1720245144957\n var cssReload = require(\"D:/Soft软件安装器/soft/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":""}