原创 element-ui el-table多選置灰

el-table多選置灰示例: 1. el-table用法: <el-table ref="multipleTable" :data="dataList" tooltip-effect="dark" style="wid

原创 vue使用vue-simple-uploader僅能選中一個文件上傳

參考:https://github.com/simple-uploader/vue-uploader 需求:項目中要求只能上傳一個文件,這種場景通過代碼已經實現了,但是點擊選擇文件按鈕之後可以拉取多個文件造成多文件同時上傳,如下圖: 解

原创 vue 兩個日期比較大小

d1, d2是後端傳過來的日期字符串 compareDate (d1, d2) { let reg = new RegExp('-', 'g') return ((new Date(d1.replace(reg, '/')))

原创 常用的幾個軟電話客戶端配置

  1.Yate Client(qt) 軟電話客戶端配置   2.MicroSIP軟電話配置 3.X-Lite軟電話客戶端配置  

原创 vue集成stompjs實現消息推送

1. 安裝依賴 npm install stompjs 2. 在vue中使用 2.1 在main.js中定義websocket連接地址: Vue.prototype.$globalWebsocketUrl= ws://local

原创 element-ui的Notification在消息通知上添加按鈕且點擊之後關閉彈窗

下面這段代碼是vue的methohs中某個方法的部分代碼,作用在notifycation上添加按鈕,在點擊按鈕之後實現路由跳轉,同時關閉該消息彈窗 let routeData = this.$router.resolve({ nam

原创 Ubuntu 16.04 x86_64網絡設置(NET模式)

1.安裝環境 VMware 10.0.4 build-2249910 Ubuntu 16.04 x86_64 2.在VMware中,配置網絡環境 VMware在默認安裝完成之後,會創建三個虛擬的網絡環境:VMnet0、VMnet1和VMn

原创 vue常用校驗工具類

/** * 郵箱 * @param {*} s */ export function isEmail (s) { return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_

原创 Element-UI El-Table複選框分頁記憶

轉載:https://www.cnblogs.com/hcxy/p/9482762.html <template> <div class="table-demo"> <el-table ref="multiple

原创 FastDFS結合vue-simple-uploader實現斷點續傳

參考:https://gitee.com/zwlan/renewFastdfs 1. maven依賴 <!--<fast.clent.version>1.26.2</fast.clent.version>--> <!--<hutool.

原创 vue 正則校驗鏈接

1.  <el-form :model="dataForm" :rules="rules" ref="dataForm" label-width="20px" @keyup.enter.native="dataFormSubmit()"

原创 時間戳顯示格式爲幾天前、幾分鐘前、幾秒前及應用---vue過濾器

1.參考: https://www.cnblogs.com/shuihanxiao/p/9670854.html 2. vue中添加filters: filters: {   //時間戳顯示格式爲幾天前、幾分鐘前、幾秒前 getTi

原创 vue使用vue-video-player播放rtmp流進行直播

1. 參考: https://www.npmjs.com/package/vue-video-player https://github.com/surmon-china/vue-video-player/tree/master/exam

原创 Mybatis一對多標籤Collection的使用和接收多參數的用法

CurriculumDao.xml 部分如下: <resultMap type="cn.longrace.wisdom.modules.dataBase.entity.CurriculumEntity" id="curric

原创 springboot集成websocket(stompjs)

1. pom依賴 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</a