index.vue 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443
  1. <template>
  2. <div class="app-container" style="height: 100vh;">
  3. <!-- v-loading="loading" -->
  4. <!-- element-loading-text="拼命加载中" -->
  5. <!-- element-loading-spinner="el-icon-loading" -->
  6. <!-- element-loading-background="rgba(0, 0, 0, 0.8)" -->
  7. <div class="ntgs" style="padding: 0;">
  8. <el-row :gutter="10" class="mb8">
  9. <div class="iuer" style="margin-bottom:10px;">
  10. </div>
  11. </el-row>
  12. <div>
  13. <el-row :gutter="20">
  14. <!-- postList -->
  15. <el-col :span='4'>
  16. <div style="background-color: #fff;border-radius: 10px;padding: 20px 20px;height: 95vh;">
  17. <p
  18. style="margin: 0;border-left: 6px solid #03BF8A;margin-left: -20px;padding-left: 10px;font-weight: 800;">
  19. 通道管理</p>
  20. <div :class="ishge == index ? 'anche' : ''"
  21. style=" height: 36px;;line-height: 36px;margin-top: 10px;padding: 0 10px;"
  22. v-for="(item,index) in channelNumberList" :key="index">
  23. <div @click="ishg(item,index)"
  24. style="display: flex;align-items: center;justify-content: space-between;">
  25. <el-tooltip class="item" effect="dark" :content="item.channelNum == null?'暂无数据' : item.channelNum" placement="top-start">
  26. <div style="font-size: 16px;
  27. color: #333333; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"> {{item.channelNum == null?'暂无数据' : item.channelNum}}</div>
  28. </el-tooltip>
  29. <img src="../../../assets/images/icon_htgl_zd.png" alt="" style="width: 10px;height: 12px;">
  30. </div>
  31. </div>
  32. </div>
  33. </el-col>
  34. <!-- v-if="isshoe" -->
  35. <el-col :span='14'
  36. style="padding-left: 30px; background-color: #fff;border-radius: 10px;padding: 20px; height: 95vh;">
  37. <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom: 18px;">
  38. <p
  39. style="margin: 0;border-left: 6px solid #03BF8A;margin-left: -20px;padding-left: 10px;font-weight: 800;">
  40. 坐标点配置
  41. <!-- <span style="font-size: 12px; color: red;cursor: pointer;" @click="xiazag">下载插件</span> -->
  42. </p>
  43. <div>
  44. <!-- <el-button type="danger" plain>删除</el-button> -->
  45. <span style="font-size: 12px; color: red;">(点击保存之前,请先确认参数配置和坐标点配置都完成)</span>
  46. <el-button type="warning" v-hasPermi="['manage:parameterSet:add']" plain @click="submitForm">保存</el-button>
  47. <el-button type="success" plain>关闭</el-button>
  48. </div>
  49. </div>
  50. <div>
  51. <div class="tool-box" style="margin: 0;padding: 0;height: 80px;text-align: left;">
  52. <!-- <div>
  53. <el-button
  54. size="mini"
  55. :type="isDrawing ? 'warning' : 'primary'"
  56. @click="startDraw"
  57. >绘制区域</el-button
  58. >
  59. <el-button
  60. size="mini"
  61. type="danger"
  62. :disabled="isDrawing"
  63. @click="clearAll"
  64. >全部清除</el-button
  65. >
  66. <el-button
  67. size="mini"
  68. type="success"
  69. :disabled="isDrawing"
  70. @click="savePoints"
  71. >保存</el-button
  72. >
  73. </div> -->
  74. <div class=" ">
  75. <div style="display: flex;">
  76. <el-button :type="isDrawing ? 'warning' : 'primary'" @click="startDraw">绘制区域</el-button>
  77. <el-button type="primary" :disabled="isDrawing" plain @click="savePoints">保存</el-button>
  78. <el-button type="primary" plain @click="clearAll">全部清除</el-button>
  79. </div>
  80. <!-- <div style="flex: 1;"></div> -->
  81. <!-- <el-button type="primary" plain @click="clickCapturePic">抓图</el-button> -->
  82. </div>
  83. <div style="margin-top: 5px;">
  84. <p style="text-align: left; margin: 0;font-size: 13px;color: #FF6969;">每次绘制前,点击绘制按钮开始绘制,单击鼠标左键即是当前点绘制完成可绘制下一个点, 双击鼠标左键即本次绘制完成。</p>
  85. </div>
  86. </div>
  87. <div class="canvas-wrap">
  88. <canvas id="imgCanvas" ref="canvaxbox"></canvas>
  89. <!--用来和鼠标进行交互操作的canvas-->
  90. <canvas
  91. id="drawCanvas"
  92. ref="canvas"
  93. :style="{ cursor: isDrawing ? 'crosshair' : 'default' }"
  94. >
  95. </canvas>
  96. <!--存储已生成的点线,避免被清空-->
  97. <canvas id="saveCanvas" ref="canvasSave"></canvas>
  98. </div>
  99. </div>
  100. <!-- <div style="width: 100%; height: 70vh;">
  101. <div v-if="isfse" id="divPlugin" style="width: 100%; height: 69vh;"></div>
  102. </div> -->
  103. <!-- <img src="../../../assets/images/pic_ssyl_lt.png" alt="" style="width: 100%; margin-top: 20px;"> -->
  104. <!-- 344 -->
  105. <!-- <video id="video" controls autoplay muted width="100%" height="480px"style="margin-top: 20px;"></video> -->
  106. <!-- <video
  107. class="videosmall"
  108. ref="videosmallone"
  109. preload="auto"
  110. muted
  111. autoplay
  112. width="95%"
  113. type="rtmp/flv"
  114. >
  115. <source src="" />
  116. </video> -->
  117. </el-col>
  118. <el-col :span="6">
  119. <div style="background-color: #fff;border-radius: 10px;padding: 20px 20px;height: 95vh;">
  120. <p
  121. style="margin: 0;border-left: 6px solid #03BF8A;margin-left: -20px;padding-left: 10px;font-weight: 800;">
  122. 参数配置</p>
  123. <div>
  124. <el-form ref="form" :model="form" :rules="rules" label-width="60px">
  125. <p style="margin: 0; margin-top: 10px; color:#03BF8A ; margin-bottom: 10px;">时间配置(分钟 <span
  126. style="font-size: 12px;color: #FEA71B;">只能输入正数</span>)</p>
  127. <el-form-item label="离岗" prop="leaveTime">
  128. <el-input :min="0" type="number" v-model="form.leaveTime" placeholder="请输入离岗时间设置 默认:10 分钟" />
  129. </el-form-item>
  130. <el-form-item label="玩手机" prop="playTime">
  131. <el-input :min="0" type="number" v-model="form.playTime" placeholder="请输入玩手机时间设置 默认:10 分钟" />
  132. </el-form-item>
  133. <p style="margin: 0; margin-top: 10px; color:#03BF8A ; margin-bottom: 10px;">相似度配置<span
  134. style="font-size: 12px;color: #FEA71B;">(只能输入正数)</span></p>
  135. <el-form-item label="离岗" prop="leaveRate">
  136. <el-input :min="0" :max="1" type="number" v-model="form.leaveRate"
  137. placeholder="请输入离岗时间相似度设置 默认:0.5" />
  138. </el-form-item>
  139. <el-form-item label="玩手机" prop="playRate">
  140. <el-input :min="0" :max="1" type="number" v-model="form.playRate"
  141. placeholder="请输入玩手机相似度设置 默认:0.5" />
  142. </el-form-item>
  143. </el-form>
  144. </div>
  145. <p
  146. style="margin: 0;border-left: 6px solid #03BF8A;margin-left: -20px;padding-left: 10px;font-weight: 800;">
  147. 绘制区域</p>
  148. <div class="drawings-list">
  149. <div class="tflex" v-for="(shape, index) in shapes" :key="index">
  150. <!-- :class="{ selected: selectedIndex === index }" -->
  151. <div class="txt">
  152. <el-popover placement="top-start" width="200" trigger="hover">
  153. <div v-for="(ite,idx) in shape.points">
  154. {{ite.x}},{{ite.y}}
  155. </div>
  156. <div slot="reference" class="snhseinu">
  157. <el-input v-model="shape.name" placeholder="请输入内容"></el-input>
  158. </div>
  159. </el-popover>
  160. </div>
  161. <img class="delimg" src="../../../assets/images/del.png"
  162. @click.stop="clickDelSnapPolygon(shape.id,index)" />
  163. </div>
  164. </div>
  165. </div>
  166. </el-col>
  167. <!-- <el-col :span="24">
  168. <div class="ihgswq wrapper" ref="wrapper" style=" overflow: hidden;">
  169. <div class="fijge content nhgwesvq" ref="content" style="width:1610px;">
  170. <div class='shotw ' v-for="(item,index) in postList" :key="index" @click="isfgw(item)" >
  171. <img src="../../../assets/images/fengm.png" alt="">
  172. <img src="../../../assets/images/icon_spjk_play.png" alt="" class="iges">
  173. <p style="font-size: 14px;">{{item.name}}</p>
  174. </div>
  175. </div>
  176. </div>
  177. </el-col> -->
  178. </el-row>
  179. <!-- <pagination
  180. v-show="total>0"
  181. :total="total"
  182. :page.sync="queryParams.pageNo"
  183. :limit.sync="queryParams.pageSize"
  184. @pagination="getList"
  185. /> -->
  186. </div>
  187. </div>
  188. <!-- 添加或修改岗位对话框 -->
  189. <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
  190. </el-dialog>
  191. <el-dialog :title="titles" :visible.sync="opens" width="1000px" append-to-body>
  192. </el-dialog>
  193. <el-dialog title="页面二维码" :visible.sync="opent" width="200px" style="padding: 0;" class="nhgrls" append-to-body>
  194. <div v-show="opent" style="display: flex;justify-content: center;align-items: center;">
  195. <!-- <span>{{'https://qszdh.qs163.cn/pages/index/index?id=' + this.bg}}</span> -->
  196. <!-- <vue-qr :text="'https://qszdh.qs163.cn/pages/index/index?id=' + this.bg" :size="200"></vue-qr> -->
  197. </div>
  198. </el-dialog>
  199. </div>
  200. </template>
  201. <script>
  202. import {
  203. listChannelNumber,
  204. listChannelNumbernopa,
  205. getChannelNumber,
  206. delChannelNumber,
  207. addChannelNumber,
  208. updateChannelNumber
  209. } from "@/api/system/channelNumber"
  210. import {
  211. listWarnManage,
  212. getWarnManage,
  213. delWarnManage,
  214. addWarnManage,
  215. updateWarnManage
  216. } from "@/api/manage/warnManage"
  217. import {
  218. listParameterSet,
  219. getParameterSet,
  220. delParameterSet,
  221. addParameterSet,
  222. updateParameterSet
  223. } from "@/api/manage/parameterSet"
  224. // import { listReservat,camera,cameraIndexCode, listReservatd, getReservat, delReservat, addReservat, updateReservat,setPass,delReservathx,openDz,closeDz } from "@/api/tonggi/houtai";
  225. // import vueQr from "vue-qr";
  226. // import videojs from 'video.js'
  227. // import 'video.js/dist/video-js.css'
  228. // import {videoPlayer} from 'vue-video-player'
  229. // import 'videojs-flash'
  230. // import flvjs from 'flv.js/dist/flv.min.js'
  231. // import flvjs from "flv.js";
  232. import Bscroll from "better-scroll";
  233. import logoImg from '@/assets/images/ceshi.png'
  234. const defaultSettings = require("@/settings.js");
  235. export default {
  236. name: "Post",
  237. dicts: ['sys_normal_disable', 'sys_yes_no', 'youke', 'tjzh', 'youkes', 'lafafen', 'fange', 'jluly'],
  238. // components: {
  239. // vueQr,
  240. // videoPlayer
  241. // },
  242. data() {
  243. return {
  244. // 遮罩层
  245. loading: true,
  246. opent: false,
  247. bg: null,
  248. titles: '',
  249. editableTabsValue: '6',
  250. opens: false,
  251. // 通道管理表格数据
  252. channelNumberList: [],
  253. imageUrl: '@/assets/logo/logo.png',
  254. printObj: {
  255. id: "nhgrew", // 这里是要打印元素的ID
  256. popTitle: "", // 打印的标题
  257. },
  258. pickerOptions: {
  259. disabledDate(time) {
  260. //disabledDate 文档上:设置禁用状态,参数为当前日期,要求返回 Boolean
  261. // return time.getTime() > Date.now()//选当前时间之前的时间
  262. return time.getTime() < Date.now() - 8.64e7; //选当前时间之后的时间
  263. }
  264. },
  265. // 选中数组
  266. ids: [],
  267. // 非单个禁用
  268. single: true,
  269. checkedScoreDataDetails: [],
  270. scoreDataDetailsList: [],
  271. tabPosition: 'left',
  272. // 非多个禁用
  273. multiple: true,
  274. defaultSettings:defaultSettings,
  275. // 显示搜索条件
  276. showSearch: true,
  277. // 总条数
  278. total: 0,
  279. // 岗位表格数据
  280. postList: [],
  281. // 弹出层标题
  282. title: "",
  283. // 是否显示弹出层
  284. open: false,
  285. // 查询参数
  286. queryParams: {
  287. pageNo: 1,
  288. pageSize: 500,
  289. name: null,
  290. postCode: undefined,
  291. postName: undefined,
  292. status: undefined,
  293. reservatType: undefined
  294. },
  295. // 表单参数
  296. form: {},
  297. // 表单校验
  298. rules: {
  299. receptionId: [{
  300. required: true,
  301. message: "不能为空",
  302. trigger: "blur"
  303. }],
  304. },
  305. ruless: {
  306. visitName: [{
  307. required: true,
  308. message: "不能为空",
  309. trigger: "blur"
  310. }],
  311. visitPhone: [{
  312. required: true,
  313. message: "不能为空",
  314. trigger: "blur"
  315. }],
  316. visitNum: [{
  317. required: true,
  318. message: "不能为空",
  319. trigger: "blur"
  320. }],
  321. visitDate: [{
  322. required: true,
  323. message: "不能为空",
  324. trigger: "blur"
  325. }],
  326. visitTime: [{
  327. required: true,
  328. message: "不能为空",
  329. trigger: "blur"
  330. }],
  331. },
  332. forms: {
  333. parameterId: null,
  334. channelId: null,
  335. equipmentId: null,
  336. equipmentNum: null,
  337. equipmentName: null,
  338. channelNum: null,
  339. channelRange: null,
  340. leaveTime: 10,
  341. playTime: 10,
  342. leaveRate: 0.5,
  343. playRate: 0.5,
  344. delFlag: null,
  345. createBy: null,
  346. createTime: null,
  347. updateBy: null,
  348. updateTime: null,
  349. remark: null
  350. },
  351. tableMaxHeight: '200',
  352. kje: 0,
  353. ksjegsg: [],
  354. Scroll: null,
  355. videoShow: false,
  356. flvPlayer: null,
  357. player: null,
  358. name: null,
  359. isshiwa: false,
  360. isjfwe: {},
  361. isshoe: false,
  362. webRtcServer: null,
  363. camera_ip: '127.0.0.1:8000',
  364. g_iWndIndex: 0,
  365. iRtspPort: '', //预览中的ip
  366. szDeviceIdentify: '', //ip_port,
  367. isfse: false,
  368. g_bEnableDraw: false,
  369. // 所有绘制的图形
  370. shapes: [],
  371. // 禁用
  372. isdisflag: false,
  373. connectionStatus: '',
  374. isConnected: false,
  375. connecting: false,
  376. messages: [{
  377. type: 'sent',
  378. content: '',
  379. timestamp: ''
  380. }],
  381. messageToSend: [],
  382. mqttConfig: {
  383. url: 'ws://13.229.167.76:1884/mqtt',
  384. topic: 'detection/rect'
  385. },
  386. mqttThemeName: {
  387. url: 'ws://13.229.167.76:1884/mqtt',
  388. topic: 'detection/rect'
  389. },
  390. ishge: 0,
  391. ips: '',
  392. isdesl: false,
  393. imgUrl: "../../../assets/images/fengm.png",
  394. isDrawing: false, // 是否正在绘制
  395. ratio: 1,
  396. imgWidth: 3020,
  397. imgHeight: 1080,
  398. wrapWidth: 600,
  399. wrapHeight: 300,
  400. canvasWidth: 600,
  401. canvasHeight: 300,
  402. drawingPoints: [],
  403. drawedPoints: [],
  404. imgCanvas: null,
  405. imgCtx: null,
  406. drawCanvas: null,
  407. drawCtx: null,
  408. saveCanvas: null,
  409. saveCtx: null,
  410. srt:logoImg,
  411. submitData: [
  412. ],
  413. connectionStatus:'',
  414. isConnected:false,
  415. connecting:false,
  416. messages:[{ type: 'sent' , content: '', timestamp: '' }],
  417. messageToSend:[],
  418. };
  419. },
  420. created() {
  421. this.isfse = false
  422. // this.getList();
  423. this.getListtd()
  424. window.onresize = () => {
  425. this.changeTableMaxHeight()
  426. }
  427. this.changeTableMaxHeight()
  428. },
  429. mounted() {
  430. // this.toggleConnection()
  431. // this.webRtcServer = new WebRtcStreamer('video', location.protocol + '//' + this.camera_ip)
  432. // //需要查看的rtsp地址,根据自己的摄像头传入对应的rtsp地址即可。注意:视频编码格式必须是H264的,否则无法正常显示,编码格式可在摄像头的后台更改
  433. // this.webRtcServer.connect('rtsp://admin:zxy123456@192.168.101.64:554/h264/ch1/main/av_stream')
  434. window.onresize = () => {
  435. this.changeTableMaxHeight()
  436. this.initCanvas();
  437. this.getImage();
  438. }
  439. this.changeTableMaxHeight()
  440. this.$nextTick(() => {
  441. this.initScroll()
  442. })
  443. },
  444. beforeDestroy() {
  445. },
  446. methods: {
  447. /** 查询通道管理列表 */
  448. getListtd() {
  449. this.loading = true
  450. let queryParams = {}
  451. listChannelNumbernopa().then(response => {
  452. this.channelNumberList = response.rows
  453. if (this.channelNumberList.length != 0) {
  454. getChannelNumber(this.channelNumberList[0].channelId).then(response => {
  455. this.form.photoAddress = response.data.photoAddress
  456. let that = this
  457. setTimeout(function() {
  458. that.initCanvas();
  459. that.getImage(response.data.photoAddress);
  460. }, 2000);
  461. if (response.data.isChannel != 'N') {
  462. this.shapes = JSON.parse(response.data.parameterSet.channelRange)
  463. this.form = response.data.parameterSet
  464. let result = (this.form.leaveTime / 60).toFixed(1);
  465. let resultl = (this.form.playTime / 60).toFixed(1);
  466. this.form.channelId = response.data.channelId
  467. this.form.isChannel = response.data.isChannel
  468. this.form.equipmentNum = response.data.equipmentNum
  469. this.form.equipmentId = response.data.equipmentId
  470. this.form.equipmentName = response.data.equipmentName
  471. this.form.channelNum = response.data.channelNum
  472. this.ips = response.data.videoAddress
  473. this.form.leaveTime = result
  474. this.form.playTime = resultl
  475. let that = this
  476. setTimeout(function() {
  477. that.nshgehuixw()
  478. }, 5000);
  479. } else {
  480. this.form = {
  481. parameterId: null,
  482. channelId: response.data.channelId,
  483. equipmentId: response.data.equipmentId,
  484. equipmentNum: response.data.equipmentNum,
  485. equipmentName: response.data.equipmentName,
  486. channelNum: response.data.channelNum,
  487. channelRange: null,
  488. isChannel: response.data.isChannel,
  489. leaveTime: 10,
  490. playTime: 10,
  491. leaveRate: 0.5,
  492. playRate: 0.5,
  493. delFlag: null,
  494. createBy: null,
  495. createTime: null,
  496. updateBy: null,
  497. updateTime: null,
  498. remark: null
  499. }
  500. this.ips = response.data.videoAddress
  501. }
  502. // this.form.photoAddress = response.data.photoAddress
  503. // let that = this
  504. // setTimeout(function() {
  505. // that.initCanvas();
  506. // that.getImage(that.form.photoAddress);
  507. // }, 4000);
  508. // this.initCanvas();
  509. // this.getImage(this.form.photoAddress);
  510. })
  511. }
  512. this.loading = false
  513. // getWarnManage(this.$route.query.id).then(response => {
  514. // this.form = response.data
  515. this.loading = false
  516. })
  517. },
  518. // 回显
  519. nshgehuixw(){
  520. let sngseju = []
  521. this.shapes.filter(rou=>{
  522. let sngsejutoe = []
  523. for(var i=0; i< rou.points.length;i++ ){
  524. let sngsejq = []
  525. sngsejq.push(rou.points[i].x,rou.points[i].y)
  526. sngsejutoe.push(sngsejq)
  527. }
  528. console.log(sngsejutoe)
  529. sngseju.push(sngsejutoe)
  530. })
  531. this.drawedPoints = sngseju
  532. let objectPoints = [];
  533. // "object": [{"polygon": {"x1":700,"y1":273,"x2":975,"y2":278,"x3":1107,"y3":368,"x4":718,"y4":354} }]
  534. objectPoints = this.drawedPoints.map((area) => {
  535. console.log(area)
  536. let polygon = {};
  537. area.forEach((point, i) => {
  538. console.log(point)
  539. polygon[`x${i + 1}`] = (point[0] * this.drawCanvas.width).toFixed(1);
  540. polygon[`y${i + 1}`] = (point[1] * this.drawCanvas.height).toFixed(1);
  541. });
  542. // console.log(polygon)
  543. return {
  544. polygon: polygon,
  545. };
  546. });
  547. this.submitData = objectPoints;
  548. // console.log("最终提交数据", objectPoints);
  549. this.messageToSend = this.submitData
  550. console.log(this.drawedPoints,this.submitData)
  551. this.renderDatas()
  552. },
  553. // 画图
  554. initCanvas() {
  555. // 初始化canvas画布
  556. let canvasWrap = document.getElementsByClassName("canvas-wrap");
  557. this.wrapWidth = canvasWrap[0].clientWidth;
  558. this.wrapHeight = canvasWrap[0].clientHeight;
  559. this.imgCanvas = document.getElementById("imgCanvas");
  560. this.imgCtx = this.imgCanvas.getContext("2d");
  561. // 绘制canvas
  562. this.drawCanvas = document.getElementById("drawCanvas");
  563. this.drawCtx = this.drawCanvas.getContext("2d");
  564. // 保存绘制区域 saveCanvas
  565. this.saveCanvas = document.getElementById("saveCanvas");
  566. this.saveCtx = this.saveCanvas.getContext("2d");
  567. // this.initImgCanvas()
  568. },
  569. initImgCanvas() {
  570. // 计算宽高比
  571. let ww = this.wrapWidth; // 画布宽度
  572. let wh = this.wrapHeight; // 画布高度
  573. let iw = this.imgWidth; // 图片宽度
  574. let ih = this.imgHeight; // 图片高度
  575. if (iw / ih < ww / wh) {
  576. // 以高为主
  577. this.ratio = ih / wh;
  578. this.canvasHeight = wh;
  579. this.canvasWidth = (wh * iw) / ih;
  580. } else {
  581. // 以宽为主
  582. this.ratio = iw / ww;
  583. this.canvasWidth = ww;
  584. this.canvasHeight = (ww * ih) / iw;
  585. }
  586. // 初始化画布大小
  587. this.imgCanvas.width = this.canvasWidth;
  588. this.imgCanvas.height = this.canvasHeight;
  589. this.drawCanvas.width = this.canvasWidth;
  590. this.drawCanvas.height = this.canvasHeight;
  591. this.saveCanvas.width = this.canvasWidth;
  592. this.saveCanvas.height = this.canvasHeight;
  593. // 图片加载绘制
  594. let img = document.createElement("img");
  595. img.src = this.imgUrl;
  596. console.log(this.imgUrl)
  597. img.onload = () => {
  598. console.log("图片已加载");
  599. this.imgCtx.drawImage(img, 0, 0, this.canvasWidth, this.canvasHeight);
  600. this.renderDatas(); // 渲染原有数据
  601. };
  602. },
  603. startDraw() {
  604. // 绘制区域
  605. if (this.isDrawing) return;
  606. this.isDrawing = true;
  607. // 绘制逻辑
  608. this.drawCanvas.addEventListener("click", this.drawImageClickFn);
  609. this.drawCanvas.addEventListener("dblclick", this.drawImageDblClickFn);
  610. this.drawCanvas.addEventListener("mousemove", this.drawImageMoveFn);
  611. },
  612. clearAll() {
  613. // 清空所有绘制区域
  614. this.saveCtx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
  615. this.drawedPoints = [];
  616. this.shapes = []
  617. },
  618. getImage(row) {
  619. // 这里请求接口 ...
  620. // this.srt = row
  621. this.imgUrl = this.defaultSettings.urls + process.env.VUE_APP_BASE_API + row ;
  622. // this.imgUrl = this.srt
  623. // this.imgWidth = 1920;
  624. // this.imgHeight = 1080;
  625. // this.imgUrl =JSON.parse(this.$route.query.src)
  626. this.imgWidth = 660;
  627. this.imgHeight = 380;
  628. console.log(this.imgUrl,98)
  629. this.imgUrl && this.initImgCanvas();
  630. },
  631. drawImageClickFn(e) {
  632. let drawCtx = this.drawCtx;
  633. if (e.offsetX || e.layerX) {
  634. let pointX = e.offsetX == undefined ? e.layerX : e.offsetX;
  635. let pointY = e.offsetY == undefined ? e.layerY : e.offsetY;
  636. let lastPoint = this.drawingPoints[this.drawingPoints.length - 1] || [];
  637. if (lastPoint[0] !== pointX || lastPoint[1] !== pointY) {
  638. this.drawingPoints.push([pointX, pointY]);
  639. }
  640. }
  641. },
  642. drawImageMoveFn(e) {
  643. let drawCtx = this.drawCtx;
  644. if (e.offsetX || e.layerX) {
  645. let pointX = e.offsetX == undefined ? e.layerX : e.offsetX;
  646. let pointY = e.offsetY == undefined ? e.layerY : e.offsetY;
  647. // 绘制
  648. drawCtx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
  649. // 绘制点
  650. drawCtx.fillStyle = "blue";
  651. this.drawingPoints.forEach((item, i) => {
  652. drawCtx.beginPath();
  653. drawCtx.arc(...item, 6, 0, 180);
  654. drawCtx.fill(); //填充
  655. // console.log(item)
  656. });
  657. // 绘制动态区域
  658. drawCtx.save();
  659. drawCtx.beginPath();
  660. this.drawingPoints.forEach((item, i) => {
  661. drawCtx.lineTo(...item);
  662. });
  663. drawCtx.lineTo(pointX, pointY);
  664. drawCtx.lineWidth = "3";
  665. drawCtx.strokeStyle = "blue";
  666. drawCtx.fillStyle = "rgba(255, 0, 0, 0.3)";
  667. drawCtx.stroke();
  668. drawCtx.fill(); //填充
  669. drawCtx.restore();
  670. }
  671. },
  672. drawImageDblClickFn(e) {
  673. let drawCtx = this.drawCtx;
  674. let saveCtx = this.saveCtx;
  675. if (e.offsetX || e.layerX) {
  676. let pointX = e.offsetX == undefined ? e.layerX : e.offsetX;
  677. let pointY = e.offsetY == undefined ? e.layerY : e.offsetY;
  678. let lastPoint = this.drawingPoints[this.drawingPoints.length - 1] || [];
  679. if (lastPoint[0] !== pointX || lastPoint[1] !== pointY) {
  680. this.drawingPoints.push([pointX, pointY]);
  681. }
  682. }
  683. // 清空绘制图层
  684. drawCtx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
  685. // 绘制区域至保存图层
  686. this.drawSaveArea(this.drawingPoints);
  687. this.drawedPoints.push(this.drawingPoints);
  688. this.drawingPoints = [];
  689. this.isDrawing = false;
  690. // 绘制结束逻辑
  691. this.drawCanvas.removeEventListener("click", this.drawImageClickFn);
  692. this.drawCanvas.removeEventListener("dblclick", this.drawImageDblClickFn);
  693. this.drawCanvas.removeEventListener("mousemove", this.drawImageMoveFn);
  694. },
  695. drawSaveArea(points) {
  696. console.log(points, "points");
  697. if (points.length === 0) return;
  698. this.saveCtx.save();
  699. this.saveCtx.beginPath();
  700. points.forEach((item, i) => {
  701. this.saveCtx.lineTo(...item);
  702. });
  703. this.saveCtx.closePath();
  704. this.saveCtx.lineWidth = "2";
  705. this.saveCtx.fillStyle = "rgba(255,0, 255, 0.3)";
  706. this.saveCtx.strokeStyle = "red";
  707. this.saveCtx.stroke();
  708. this.saveCtx.fill(); //填充
  709. this.saveCtx.restore();
  710. },
  711. savePoints() {
  712. // 将画布坐标数据转换成提交数据
  713. let objectPoints = [];
  714. // "object": [{"polygon": {"x1":700,"y1":273,"x2":975,"y2":278,"x3":1107,"y3":368,"x4":718,"y4":354} }]
  715. console.log(this.drawedPoints,)
  716. objectPoints = this.drawedPoints.map((area,t) => {
  717. console.log(t)
  718. let polygon = [];
  719. let name = '绘制区域' + (t+1)
  720. area.forEach((point, i) => {
  721. let nsdfs = {x:null,y:null}
  722. console.log(point,93)
  723. nsdfs.x = point[0] ;
  724. nsdfs.y = point[1] ;
  725. nsdfs.x = ( nsdfs.x / this.drawCanvas.width ).toFixed(6)
  726. nsdfs.y = ( nsdfs.y / this.drawCanvas.height).toFixed(6)
  727. polygon.push(nsdfs)
  728. this.shapes.filter(rou=>{
  729. if(rou.points[0].x == nsdfs.x ){
  730. if(rou.points[0].y == nsdfs.y ){
  731. name = rou.name
  732. }
  733. }
  734. })
  735. });
  736. console.log(polygon,this.shapes,9123)
  737. return {
  738. points: polygon,
  739. id:t+1,
  740. name:name,
  741. ip:this.ips
  742. };
  743. });
  744. this.submitData = objectPoints;
  745. this.shapes = objectPoints
  746. console.log("最终提交数据", objectPoints,this.shapes);
  747. this.messageToSend = this.submitData
  748. // this.sendMessage()
  749. // this.$router.go(-1)
  750. },
  751. renderDatas() {
  752. // 将提交数据数据转换成画布坐标
  753. this.drawedPoints = this.submitData.map((item) => {
  754. // console.log(item.polygon,item,19)
  755. let polygon = item.polygon;
  756. let points = [];
  757. for (let i = 1; i < Object.keys(polygon).length / 2 + 1; i++) {
  758. if (!isNaN(polygon[`x${i}`]) && !isNaN(polygon[`y${i}`])) {
  759. points.push([
  760. polygon[`x${i}`] ,
  761. polygon[`y${i}`] ,
  762. ]);
  763. }
  764. }
  765. // console.log(points)
  766. this.drawSaveArea(points);
  767. return points;
  768. });
  769. },
  770. //删除图形
  771. clickDelSnapPolygon(szId, idx) {
  772. console.log(3)
  773. this.shapes.splice(idx, 1)
  774. // this.shapes.splice(idx,1)
  775. let shzou = []
  776. // "object": [{"polygon": {"x1":700,"y1":273,"x2":975,"y2":278,"x3":1107,"y3":368,"x4":718,"y4":354} }]
  777. for(var i = 0 ; i <this.shapes.length; i++){
  778. this.shapes[i].id= i+ 1
  779. }
  780. this.saveCtx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
  781. this.nshgehuixw()
  782. // this.submitData = this.shapes
  783. // this.drawedPoints = this.shapes
  784. // this.renderDatas()
  785. console.log(this.shapes,shzou)
  786. },
  787. // 通道点击
  788. ishg(val, row) {
  789. this.isfse = false
  790. this.ishge = row
  791. getChannelNumber(val.channelId).then(response => {
  792. if (response.data.isChannel == 'Y') {
  793. this.form = response.data.parameterSet
  794. let result = (this.form.leaveTime / 60).toFixed(1);
  795. let resultl = (this.form.playTime / 60).toFixed(1);
  796. this.shapes = JSON.parse(this.form.channelRange)
  797. this.form.channelId = response.data.channelId
  798. this.form.isChannel = response.data.isChannel
  799. this.form.equipmentNum = response.data.equipmentNum
  800. this.form.equipmentId = response.data.equipmentId
  801. this.form.equipmentName = response.data.equipmentName
  802. this.form.channelNum = response.data.channelNum
  803. this.ips = response.data.videoAddress
  804. this.form.leaveTime = result
  805. this.form.playTime = resultl
  806. this.form.photoAddress = response.data.photoAddress
  807. this.initCanvas();
  808. this.getImage(this.form.photoAddress);
  809. this.saveCtx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
  810. this.nshgehuixw()
  811. } else {
  812. this.form = {
  813. parameterId: null,
  814. channelId: response.data.channelId,
  815. equipmentId: response.data.equipmentId,
  816. equipmentNum: response.data.equipmentNum,
  817. equipmentName: response.data.equipmentName,
  818. channelNum: response.data.channelNum,
  819. channelRange: null,
  820. isChannel: response.data.isChannel,
  821. leaveTime: 10,
  822. playTime: 10,
  823. leaveRate: 0.5,
  824. playRate: 0.5,
  825. delFlag: null,
  826. createBy: null,
  827. createTime: null,
  828. updateBy: null,
  829. updateTime: null,
  830. remark: null
  831. }
  832. this.shapes = []
  833. // this.drawSaveArea = []
  834. this.submitData = []
  835. this.ips = response.data.videoAddress
  836. this.form.photoAddress = response.data.photoAddress
  837. this.initCanvas();
  838. this.getImage(this.form.photoAddress);
  839. this.saveCtx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
  840. // this.ips = snghst[0]
  841. }
  842. })
  843. // this.clickStartRealPlay('192.168.101.64', '80',1, 0, 1);
  844. },
  845. initScroll() {
  846. // 给内层盒子设置宽度,不设置宽度的话无法滚动
  847. // let width = this.goods.length * 60
  848. // // 如果有外边距,可以这样写。需要去掉最后一个元素的外边距,在后面减一下
  849. // let width = this.goodslength * (60 + 10) - 10
  850. let width = 6 * (200 + 10) - 10
  851. // this.$refs.content.style.width = width + 'px'
  852. this.$nextTick(() => {
  853. if (!this.Scroll) {
  854. this.Scroll = new Bscroll(this.$refs.wrapper, {
  855. click: true, // 配置允许点击事件
  856. scrollX: true, // 开启横向滚动
  857. eventPassthrough: 'vertical', // 当设置 eventPassthrough 为 'vertical' 的时候,scrollY 无效
  858. mouseWheel: true,
  859. scrollbar: { // 滚动条, 要加相对位置
  860. fade: true
  861. }
  862. })
  863. } else {
  864. this.Scroll.refresh() // 重新计算 better-scroll,当 DOM 结构发生变化的时确保滚动效果正常
  865. }
  866. })
  867. },
  868. // 取消按钮
  869. cancel() {
  870. this.open = false;
  871. this.opens = false;
  872. this.reset();
  873. },
  874. // 表单重置
  875. reset() {
  876. this.form = {
  877. receptionId: undefined,
  878. receptionPhone: undefined,
  879. // postSort: 0,
  880. // status: "0",
  881. receptionName: undefined
  882. };
  883. this.resetForm("form");
  884. },
  885. iszheg(event) {
  886. console.log(event);
  887. // 校验身份证:
  888. console.log(reg.test(this.form.idCard), 23741)
  889. if (reg.test(this.form.idCard) || _IDre15.test(this.form.idCard)) {
  890. // this.idea();
  891. this.go(this.form.idCard);
  892. // callback()
  893. } else {
  894. if (ncjsle.test(this.form.idCard) || nhyeli.test(this.form.idCard)) {
  895. console.log(3)
  896. } else {
  897. if (gnse.test(this.form.idCard)) {
  898. console.log(4)
  899. } else {
  900. if (tw.test(this.form.idCard) || twe.test(this.form.idCard)) {
  901. console.log(5)
  902. } else {
  903. this.$message.error('证件格式不正确');
  904. }
  905. }
  906. }
  907. }
  908. },
  909. erw(row) {
  910. this.$router.push({
  911. path: '/reny/ewm',
  912. query: {
  913. 'tenantId': row.investigateTableId
  914. }
  915. })
  916. },
  917. /** 成绩_子序号 */
  918. rowScoreDataDetailsIndex({
  919. row,
  920. rowIndex
  921. }) {
  922. row.index = rowIndex + 1;
  923. },
  924. /** 删除按钮操作 */
  925. handleDelete(row) {
  926. const postIds = row.recordId || this.ids;
  927. delReservat(postIds).then(response => {
  928. this.$modal.msgSuccess("操作成功");
  929. this.getList();
  930. });
  931. // this.$modal.confirm('是否确认删除数据项?').then(function() {
  932. // return delPost(postIds);
  933. // }).then(() => {
  934. // this.getList();
  935. // this.$modal.msgSuccess("删除成功");
  936. // }).catch(() => {});
  937. },
  938. handleDeletehx(row) {
  939. const postIds = row.reservatId || this.ids;
  940. let nhg = {}
  941. nhg.reservatId = postIds
  942. delReservathx(nhg).then(response => {
  943. this.$modal.msgSuccess("操作成功");
  944. this.getList();
  945. });
  946. // this.$modal.confirm('是否确认删除数据项?').then(function() {
  947. // return delPost(postIds);
  948. // }).then(() => {
  949. // this.getList();
  950. // this.$modal.msgSuccess("删除成功");
  951. // }).catch(() => {});
  952. },
  953. // 发送短信
  954. handleUpdatefas(row) {
  955. updateFs(row).then(response => {
  956. this.$modal.msgSuccess("发送成功");
  957. // this.getList();
  958. });
  959. },
  960. handleDeletegx(row) {
  961. updateGx(row).then(response => {
  962. this.$modal.msgSuccess("发送成功");
  963. // this.getList();
  964. });
  965. },
  966. /** 导出按钮操作 */
  967. handleExport() {
  968. this.download('system/reservat/export', {
  969. ...this.queryParams
  970. }, `预约人员.xlsx`)
  971. },
  972. // 获取屏幕高度
  973. showFilterForm() {
  974. this.filterActive = !this.filterActive
  975. this.changeTableMaxHeight()
  976. },
  977. changeTableMaxHeight() {
  978. let height = document.body.offsetHeight // 网页可视区域高度
  979. // if (this.filterActive) {
  980. // this.tableMaxHeight = height - 320
  981. // } else {
  982. this.tableMaxHeight = height - 350
  983. // }
  984. console.log(height)
  985. },
  986. /** 提交按钮 */
  987. submitForm() {
  988. this.$refs["form"].validate(valid => {
  989. if (valid) {
  990. // console.log(this.form)
  991. // return
  992. this.form.leaveTime = (this.form.leaveTime - 0) * 60
  993. this.form.playTime = (this.form.playTime - 0) * 60
  994. this.form.channelRange = JSON.stringify(this.shapes)
  995. if (this.form.isChannel != 'N') {
  996. updateParameterSet(this.form).then(response => {
  997. this.$modal.msgSuccess("修改成功")
  998. this.open = false
  999. let result = (this.form.leaveTime / 60).toFixed(1);
  1000. let resultl = (this.form.playTime / 60).toFixed(1);
  1001. this.form.leaveTime = result
  1002. this.form.playTime = resultl
  1003. // this.$router.go(-1)
  1004. })
  1005. } else {
  1006. addParameterSet(this.form).then(response => {
  1007. this.$modal.msgSuccess("新增成功")
  1008. this.open = false
  1009. // this.$router.go(-1)
  1010. let result = (this.form.leaveTime / 60).toFixed(1);
  1011. let resultl = (this.form.playTime / 60).toFixed(1);
  1012. this.form.leaveTime = result
  1013. this.form.playTime = resultl
  1014. })
  1015. }
  1016. }
  1017. })
  1018. },
  1019. xiazag() {
  1020. var loadUrl = 'http://172.28.195.154:15010/prod-api/profile/HCWebSDKPluginsUserSetup.exe'
  1021. window.open(loadUrl, );
  1022. // const x = new XMLHttpRequest()
  1023. // x.open('GET', 'http://192.168.9.240:5010/profile/HCWebSDKPluginsUserSetup.zip', true)
  1024. // x.responseType = 'blob'
  1025. // x.onload = function() {
  1026. // const url = window.URL.createObjectURL(x.response)
  1027. // const a = document.createElement('a')
  1028. // a.href = 'http://192.168.9.240:5010/profile/HCWebSDKPluginsUserSetup.zip'
  1029. // a.download = ''
  1030. // a.click()
  1031. // }
  1032. // x.send()
  1033. }
  1034. }
  1035. };
  1036. </script>
  1037. <style lang="scss">
  1038. .snhseinu {
  1039. .el-input--medium .el-input__inner {
  1040. border: none;
  1041. }
  1042. }
  1043. .isjses {
  1044. .el-tabs--left .el-tabs__nav-wrap.is-left::after {
  1045. width: 6px;
  1046. }
  1047. .el-tabs--left .el-tabs__active-bar.is-left,
  1048. {
  1049. width: 6px;
  1050. }
  1051. }
  1052. .ingaqe {
  1053. .el-input--medium {
  1054. width: 100%;
  1055. }
  1056. }
  1057. .nhgrls {
  1058. .el-dialog__body {
  1059. padding: 0;
  1060. }
  1061. }
  1062. .hyr {
  1063. span {
  1064. text-decoration: underline;
  1065. }
  1066. }
  1067. </style>
  1068. <style scoped lang="scss">
  1069. .tool-box {
  1070. width: 98%;
  1071. height: 40px;
  1072. padding: 5px 30px;
  1073. margin: 20px auto 0;
  1074. box-sizing: border-box;
  1075. text-align: right;
  1076. }
  1077. .canvas-wrap {
  1078. // width: 80vw;
  1079. // height: 45vw;
  1080. width:100%;
  1081. height: 69vh;
  1082. margin: 0px auto;
  1083. background-color: #fff; //#fff;
  1084. border: 3px;
  1085. border-color: #333;
  1086. position: relative;
  1087. }
  1088. #imgCanvas,
  1089. #drawCanvas,
  1090. #saveCanvas {
  1091. background: rgba(255, 0, 255, 0);
  1092. position: absolute;
  1093. top: 50%;
  1094. left: 50%;
  1095. transform: translate(-50%, -50%);
  1096. }
  1097. #drawCanvas {
  1098. z-index: 2;
  1099. }
  1100. .nghwgq {
  1101. display: flex;
  1102. flex-direction: column;
  1103. justify-content: center;
  1104. align-items: center;
  1105. margin-top: 90px;
  1106. div {
  1107. color: #aaa;
  1108. }
  1109. }
  1110. .ihgswq {
  1111. // width:100%;
  1112. // overflow-x: hidden;
  1113. // margin-top: 30px;
  1114. }
  1115. .fijge {
  1116. // width: 110%;
  1117. display: flex;
  1118. display: -webkit-flex;
  1119. justify-content: space-between;
  1120. .shotw {
  1121. position: relative;
  1122. // width:32%;
  1123. width: 238px;
  1124. height: 140px;
  1125. margin-left: 0;
  1126. margin-right: 20px;
  1127. margin-bottom: 15px;
  1128. img {
  1129. height: 100%;
  1130. cursor: pointer;
  1131. }
  1132. p {
  1133. // bottom:-10px;
  1134. margin: 0;
  1135. font-weight: bold;
  1136. font-size: 16px;
  1137. padding: 5px 10px;
  1138. cursor: pointer;
  1139. }
  1140. .iges {
  1141. position: absolute;
  1142. top: 50%;
  1143. left: 50%;
  1144. width: 30px;
  1145. height: 30px;
  1146. transform: translate(-50%, -50%);
  1147. cursor: pointer;
  1148. }
  1149. }
  1150. }
  1151. .nhgwesvq {
  1152. width: 1610px !important;
  1153. }
  1154. .shotw {
  1155. position: relative;
  1156. margin-left: -20px;
  1157. margin-right: -20px;
  1158. img {
  1159. width: 100%;
  1160. height: 80vh;
  1161. }
  1162. p {
  1163. position: absolute;
  1164. bottom: 0;
  1165. left: 0;
  1166. background-color: rgba(0, 0, 0, .5);
  1167. width: 100%;
  1168. padding: 13px 5px;
  1169. color: #fff;
  1170. font-weight: bold;
  1171. font-size: 18px;
  1172. }
  1173. .p {
  1174. top: 0px;
  1175. height: 60px;
  1176. margin: 0;
  1177. padding-left: 20px;
  1178. }
  1179. }
  1180. .ksfpo {
  1181. background-color: #3464EB;
  1182. padding: 6px 12px;
  1183. border-radius: 4px;
  1184. color: #fff;
  1185. cursor: pointer;
  1186. }
  1187. .ksfpok {
  1188. background-color: #FFFFFF;
  1189. padding: 5px 11px;
  1190. border-radius: 4px;
  1191. color: #3464EB;
  1192. border: 1px solid #3464EB;
  1193. margin-left: 10px;
  1194. cursor: pointer;
  1195. }
  1196. .ksfpofg {
  1197. background-color: #75DB75;
  1198. padding: 5px 11px;
  1199. border-radius: 4px;
  1200. color: #FFFFFF;
  1201. border: 1px solid #75DB75;
  1202. margin-left: 10px;
  1203. cursor: pointer;
  1204. }
  1205. .iuer {
  1206. display: flex;
  1207. justify-content: space-between;
  1208. align-items: center;
  1209. .ite {
  1210. display: flex;
  1211. justify-content: space-between;
  1212. align-items: center;
  1213. p {
  1214. cursor: pointer;
  1215. margin: 0;
  1216. font-size: 15px;
  1217. font-family: PingFang SC;
  1218. font-weight: 500;
  1219. color: #666666;
  1220. padding: 4px 12px;
  1221. background: #Fff;
  1222. border-radius: 4px;
  1223. margin-right: 20px;
  1224. position: relative;
  1225. }
  1226. .actt {
  1227. background: #fff;
  1228. // border-bottom: 3px solid #5974E0;
  1229. // border-radius: 0;
  1230. // border-bottom-right-radius: 4px;
  1231. color: #5974E0;
  1232. }
  1233. .actt {
  1234. &::after {
  1235. content: "";
  1236. width: 40%;
  1237. height: 5px;
  1238. border-radius: 3px;
  1239. transform: translate(-50%);
  1240. background-color: #5974E0;
  1241. position: absolute;
  1242. left: 50%;
  1243. bottom: -3px;
  1244. }
  1245. }
  1246. }
  1247. }
  1248. .lqw {
  1249. padding: 0 10px;
  1250. margin: 0;
  1251. margin-bottom: 20px;
  1252. }
  1253. .nhgel {
  1254. height: 170px;
  1255. background-color: #313b61;
  1256. width: 100%;
  1257. position: absolute;
  1258. top: 0;
  1259. left: 0;
  1260. z-index: 0;
  1261. }
  1262. .app-container {
  1263. background-color: #f3f4f6;
  1264. padding-top: 10px;
  1265. height: 180vh;
  1266. }
  1267. .ntgs {
  1268. position: relative;
  1269. // background-color: #fff;
  1270. padding: 5px;
  1271. // border-radius: 5px;
  1272. padding-top: 10px;
  1273. padding: 10px 20px;
  1274. .pagination-container {
  1275. height: 50px;
  1276. }
  1277. }
  1278. .nghfs {
  1279. position: relative;
  1280. background-color: #fff;
  1281. padding-top: 18px !important;
  1282. padding: 5px;
  1283. // border-radius: 5px;
  1284. // margin-bottom: 20px;
  1285. }
  1286. .ksf {
  1287. img {
  1288. width: 100%;
  1289. height: 100%;
  1290. }
  1291. }
  1292. .ingwfaq {
  1293. font-weight: bold;
  1294. font-size: 16px;
  1295. }
  1296. .dflex {
  1297. display: flex;
  1298. }
  1299. .dflext {
  1300. display: flex;
  1301. align-items: flex-start;
  1302. }
  1303. .drawings-list {
  1304. width: 100%;
  1305. flex: 0 0 auto;
  1306. padding-left: 10px;
  1307. line-height: 36px;
  1308. .delimg {
  1309. width: 15px;
  1310. height: 15px;
  1311. margin-left: 5px;
  1312. }
  1313. .txt {
  1314. font-size: 12px;
  1315. padding-left: 5px;
  1316. flex: 1;
  1317. }
  1318. .tflex {
  1319. display: flex;
  1320. align-items: center;
  1321. }
  1322. }
  1323. .disbtn {
  1324. display: flex;
  1325. align-items: center;
  1326. flex: 0 0 auto;
  1327. min-height: 34px;
  1328. cursor: pointer;
  1329. img {
  1330. width: 14px;
  1331. height: 14px;
  1332. margin-right: 10px;
  1333. }
  1334. font-weight: 500;
  1335. font-size: 14px;
  1336. color: #444444;
  1337. }
  1338. .anche {
  1339. background: #E7F1EE !important;
  1340. border-radius: 4px !important;
  1341. font-weight: 400;
  1342. div {
  1343. color: #03BF8A !important;
  1344. }
  1345. }
  1346. </style>