用户证书审核申请菜单管理,民警版说明文档上传,附件上传类型调整
| | |
| | | <meta charset="UTF-8" /> |
| | | <meta http-equiv="X-UA-Compatible" content="ie=edge" /> |
| | | <title>Document</title> |
| | | <link rel="stylesheet" type="text/css" |
| | | href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/dijit/themes/tundra/tundra.css" /> |
| | | <link rel="stylesheet" type="text/css" |
| | | href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/esri/css/esri.css" /> |
| | | <link rel="stylesheet" type="text/css" href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/dijit/themes/tundra/tundra.css" /> |
| | | <link rel="stylesheet" type="text/css" href="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/esri/css/esri.css" /> |
| | | <link rel="stylesheet" href="./lib/layui/css/layui.css" /> |
| | | <link rel="stylesheet" href="./css/forestry-map.css" /> |
| | | <link type="text/css" rel="stylesheet" href="framework.css" /> |
| | |
| | | <script src="./lib/layui/layui.js"></script> |
| | | <script src="env.js"></script> |
| | | |
| | | <script type="text/javascript" |
| | | src="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/init.js"></script> |
| | | <script type="text/javascript" src="https://web.byisf.com/arcgis_js_v318_api/arcgis_js_api/library/3.18/3.18/init.js"></script> |
| | | <script src='./lib/zTree_v3/js/jquery.ztree.all.js'></script> |
| | | <script> |
| | | var _framework = null; |
| | |
| | | if(ISinit == null){ |
| | | init(openId,null); |
| | | } |
| | | |
| | | function locations(res) { |
| | | require(["dojo/topic"], |
| | | function (topic) { |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | function init(openId,locationObj) { |
| | | require(["base/framework", "base/AppEvent"], |
| | | function (framework, AppEvent) { |
| | |
| | | } |
| | | _AppEvent.addAppEventListener("mapLoad", function(map){ |
| | | if (locationObj && locationObj != null) { |
| | | map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 16); |
| | | map.centerAndZoom(new esri.geometry.Point(locationObj.x, locationObj.y, new esri.SpatialReference({ |
| | | wkid: 4326 |
| | | })), 16); |
| | | } |
| | | }); |
| | | if (openId) showFun(openId); |
| | |
| | | function showFun(id) { |
| | | _AppEvent.dispatchAppEvent(_AppEvent.RUN_WIDGET, id); |
| | | } |
| | | |
| | | |
| | | </script> |
| | | </head> |
| | | |
| | |
| | | this._map.addLayer(this.addOneEntitys); |
| | | }, |
| | | startup: function() { |
| | | console.log(111111111111111); |
| | | objThis._map.addLayer(objThis._siteLayer); |
| | | var that = this; |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | |
| | | <div class="userSManual"> |
| | | <!-- {{ form.link }} --> |
| | | <basic-container id="PDFmain"> |
| | | <!-- <embed :src="form.link" type="application/pdf" width="800" height="800" /> --> |
| | | <!-- <object |
| | | :data="form.link" |
| | | type="application/pdf" |
| | | width="800" |
| | | height="800" |
| | | ></object> --> |
| | | <iframe |
| | | id="PDFmainIFRAM" |
| | | src="/pfd/build/generic/web/viewer.html" |
| | |
| | | :option="option" |
| | | v-model="form" |
| | | @submit="handleSubmit" |
| | | @tab-click="handleTabClick" |
| | | :upload-before="uploadBefore" |
| | | :upload-after="uploadAfter" |
| | | ></avue-form> |
| | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import { add, getDetails } from "@/api/resource/attach"; |
| | | import func from "@/util/func"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "上传用户手册-民警版", |
| | | prop: "info", |
| | | column: [ |
| | | { |
| | | label: "用户手册", |
| | | type: "upload", |
| | | // listType: "picture-img", |
| | | propsHttp: { |
| | | res: "data", |
| | | url: "link", |
| | | }, |
| | | // canvasOption: { |
| | | // text: " ", |
| | | // ratio: 0.1, |
| | | // }, |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | // action: "/api/blade-resource/oss/endpoint/put-file-attach", |
| | | // tip: "只能上传jpg/png用户头像,且不超过500kb", |
| | | span: 24, |
| | | row: true, |
| | | prop: "link", |
| | | labelWidth: 180, |
| | | }, |
| | | { |
| | | label: "首次上传时间", |
| | | span: 24, |
| | | row: true, |
| | | prop: "createTime", |
| | | labelWidth: 180, |
| | | type: "datetime", |
| | | disabled: true, |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | }, |
| | | { |
| | | label: "上次更新时间", |
| | | span: 24, |
| | | row: true, |
| | | prop: "updateTime", |
| | | labelWidth: 180, |
| | | type: "datetime", |
| | | disabled: true, |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | form: {}, |
| | |
| | | ...mapGetters(["userInfo"]), |
| | | }, |
| | | created() { |
| | | if (this.userInfo.role_name == "民警") { |
| | | this.index = 1; |
| | | } |
| | | this.handleWitch(); |
| | | if (this.userInfo.role_name == "administrator") { |
| | | this.userSManual_upBut = "block"; |
| | | } else { |
| | | this.userSManual_upBut = "none"; |
| | | } |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | openUps() { |
| | |
| | | if (this.index === 0) { |
| | | form["type"] = 10; |
| | | form["link"] = this.link; |
| | | // console.log(form); |
| | | // return; |
| | | add(form).then( |
| | | (res) => { |
| | | if (res.data.success) { |
| | | this.handleWitch(); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "用户手册上传成功!", |
| | | }); |
| | | } else { |
| | | this.$message({ |
| | | type: "error", |
| | | message: res.data.msg, |
| | | }); |
| | | } |
| | | done(); |
| | | this.link = ""; |
| | | this.form = {}; |
| | | this.openUp = false; |
| | | }, |
| | | (error) => { |
| | | window.console.log(error); |
| | | done(); |
| | | } |
| | | ); |
| | | } |
| | | if (this.index === 1) { |
| | | form["type"] = 11; |
| | | form["link"] = this.link; |
| | | add(form).then( |
| | | (res) => { |
| | | if (res.data.success) { |
| | |
| | | this.intime = setInterval(() => { |
| | | let havePdf = this.havepdf(); |
| | | if (havePdf) { |
| | | // console.log("已加载完"); |
| | | havePdf.setUrl(url); |
| | | // console.log(this.intime, 1); |
| | | clearInterval(this.intime); |
| | | // console.log(this.intime, 2); |
| | | this.intime = ""; |
| | | // console.log(this.intime, 3); |
| | | } else { |
| | | // console.log("没加载玩"); |
| | | } |
| | | // var pdf = document.getElementById("PDFmainIFRAM").contentWindow; |
| | | // pdf.setUrl(url); |
| | | }, 500); |
| | | }, |
| | | handleTabClick(tabs) { |
| | | this.index = func.toInt(tabs.index); |
| | | this.handleWitch(); |
| | | }, |
| | | handleWitch() { |
| | | if (this.index === 0) { |
| | |
| | | }; |
| | | }); |
| | | } |
| | | if (this.index === 1) { |
| | | getDetails(11).then((res) => { |
| | | const att = res.data.data; |
| | | if (this.intime) { |
| | | clearInterval(this.intime); |
| | | this.setUrl(att.link); |
| | | } else { |
| | | this.setUrl(att.link); |
| | | } |
| | | this.form = { |
| | | id: att.id, |
| | | link: att.link, |
| | | createTime: att.createTime, |
| | | updateTime: att.updateTime, |
| | | }; |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | </template> |
| | | <!-- 地图插入 --> |
| | | <template slot-scope="{ type, disabled }" slot="lineForm"> |
| | | <div class="mapClassMain" style="width: 860px; height: 400px"> |
| | | <div class="mapClassMain" style="width: 1000px; height: 400px"> |
| | | <Map ref="modalForm" /> |
| | | </div> |
| | | </template> |
| | |
| | | } |
| | | |
| | | .mapClassMain { |
| | | padding-left: 25px !important; |
| | | padding-left: 5rem !important; |
| | | } |
| | | |
| | | .lod { |
| | |
| | | icon="el-icon-money" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="permission.securityGuard_check" |
| | | v-if="permission.securityGuard_check_apply" |
| | | @click.stop="rowCheckApply(row)" |
| | | >证件核实申请 |
| | | </el-button> |
| | |
| | | if(this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "administrator" || this.userInfo.role_name == "民警"){ |
| | | this.isImg = true; |
| | | //查询图片 |
| | | getDetails(10).then((res) => { |
| | | getDetails(12).then((res) => { |
| | | const att = res.data.data; |
| | | this.img = att.link; |
| | | }); |
| | |
| | | }, |
| | | canvasOption: { |
| | | text: " ", |
| | | ratio: 0.1, |
| | | ratio: 1, |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | tip: "只能上传jpg/png用户头像,且不超过500kb", |
| | |
| | | if (this.index === 0) { |
| | | form["type"] = 9; |
| | | }else{ |
| | | form["type"] = 10; |
| | | form["type"] = 12; |
| | | } |
| | | add(form).then( |
| | | (res) => { |
| | |
| | | }; |
| | | }); |
| | | }else { |
| | | getDetails(10).then((res) => { |
| | | getDetails(12).then((res) => { |
| | | const att = res.data.data; |
| | | this.form = { |
| | | id: att.id, |