diff --git a/src/components/AudioPlayer/AudioPlayer.vue b/src/components/AudioPlayer/AudioPlayer.vue new file mode 100644 index 0000000..4636b14 --- /dev/null +++ b/src/components/AudioPlayer/AudioPlayer.vue @@ -0,0 +1,235 @@ + + + + + + diff --git a/src/components/AudioPlayer/AudioPlayer.vue b/src/components/AudioPlayer/AudioPlayer.vue new file mode 100644 index 0000000..4636b14 --- /dev/null +++ b/src/components/AudioPlayer/AudioPlayer.vue @@ -0,0 +1,235 @@ + + + + + + diff --git a/src/utils/stringutils.js b/src/utils/stringutils.js new file mode 100644 index 0000000..4ff753d --- /dev/null +++ b/src/utils/stringutils.js @@ -0,0 +1,13 @@ +export function realFormatSecond(second) { + var secondType = typeof second + if (secondType === 'number' || secondType === 'string') { + second = parseInt(second) + var hours = Math.floor(second / 3600) + second = second - hours * 3600 + var mimute = Math.floor(second / 60) + second = second - mimute * 60 + return hours + ':' + ('0' + mimute).slice(-2) + ':' + ('0' + second).slice(-2) + } else { + return '0:00:00' + } +} diff --git a/src/components/AudioPlayer/AudioPlayer.vue b/src/components/AudioPlayer/AudioPlayer.vue new file mode 100644 index 0000000..4636b14 --- /dev/null +++ b/src/components/AudioPlayer/AudioPlayer.vue @@ -0,0 +1,235 @@ + + + + + + diff --git a/src/utils/stringutils.js b/src/utils/stringutils.js new file mode 100644 index 0000000..4ff753d --- /dev/null +++ b/src/utils/stringutils.js @@ -0,0 +1,13 @@ +export function realFormatSecond(second) { + var secondType = typeof second + if (secondType === 'number' || secondType === 'string') { + second = parseInt(second) + var hours = Math.floor(second / 3600) + second = second - hours * 3600 + var mimute = Math.floor(second / 60) + second = second - mimute * 60 + return hours + ':' + ('0' + mimute).slice(-2) + ':' + ('0' + second).slice(-2) + } else { + return '0:00:00' + } +} diff --git a/src/views/callCase/callCase.vue b/src/views/callCase/callCase.vue index 5aa10b7..5941e6c 100644 --- a/src/views/callCase/callCase.vue +++ b/src/views/callCase/callCase.vue @@ -36,7 +36,7 @@ -
+
历史记录 地图查询
@@ -146,8 +146,8 @@
- 小时 - 分钟 + 小时 + 分钟
@@ -174,7 +174,14 @@
- + + + 图片 + 音频 + 视频 + + + + + + + + + 提交 @@ -231,12 +250,16 @@ import { Uploadimg } from '@/api/common' import TianDiTuMap from '@/components/Map/tiandiMap' import ArcgisMapComp from '@/components/Map/arcGISMap' +import VideoUpload from './components/videoUpload' +import AudioUpload from './components/audioUpload' export default { name: 'CallCase', components: {// 注册组件 TianDiTuMap: TianDiTuMap, - ArcgisMapComp: ArcgisMapComp + ArcgisMapComp: ArcgisMapComp, + VideoUpload: VideoUpload, + AudioUpload: AudioUpload }, data() { const phoneValidator = (rule, value, callback) => { @@ -299,7 +322,8 @@ }, // 表单验证 hideUpload: false, fileList: [], - uploadPath: process.env.BASE_API + 'imageUpload', // 图片上传路径 + uploadPath: this.baseConfig.baseUrl + '/file/upload', // 图片上传路径 + token: '', dialogImageUrl: '', dialogVisible: false, mapDialogVisible: false, // 地图对话框 @@ -315,7 +339,8 @@ showVerifyPerson: true, showCaseTypesTime: false, caseTypeCodeAuto: '', // 自动生成的案卷大类代码 - caseTypeDetailCodeAuto: '' // 自动生成的案卷小类代码 + caseTypeDetailCodeAuto: '', // 自动生成的案卷小类代码 + fileType: '' } }, computed: { @@ -359,8 +384,17 @@ this.initCaseEorC() this.initDept() this.initVerifyPerson() + + this.token = this.$store.getters.token }, methods: { + // todo 视频列表 + submitVideo(videoList) { + console.log('videoList', videoList) + }, + submitAudio(audioList) { + console.log('audioList', audioList) + }, initDept() { getDeptList().then(response => { this.deptOpts = response.data @@ -739,6 +773,12 @@ border-top: 12px solid #ebebeb; padding: 20px; } + .file-radio { + //margin: 10px; + } + .el-radio-group { + display: flex; + } /deep/ .el-input__count-inner, .el-input__count{ line-height: initial !important diff --git a/src/components/AudioPlayer/AudioPlayer.vue b/src/components/AudioPlayer/AudioPlayer.vue new file mode 100644 index 0000000..4636b14 --- /dev/null +++ b/src/components/AudioPlayer/AudioPlayer.vue @@ -0,0 +1,235 @@ + + + + + + diff --git a/src/utils/stringutils.js b/src/utils/stringutils.js new file mode 100644 index 0000000..4ff753d --- /dev/null +++ b/src/utils/stringutils.js @@ -0,0 +1,13 @@ +export function realFormatSecond(second) { + var secondType = typeof second + if (secondType === 'number' || secondType === 'string') { + second = parseInt(second) + var hours = Math.floor(second / 3600) + second = second - hours * 3600 + var mimute = Math.floor(second / 60) + second = second - mimute * 60 + return hours + ':' + ('0' + mimute).slice(-2) + ':' + ('0' + second).slice(-2) + } else { + return '0:00:00' + } +} diff --git a/src/views/callCase/callCase.vue b/src/views/callCase/callCase.vue index 5aa10b7..5941e6c 100644 --- a/src/views/callCase/callCase.vue +++ b/src/views/callCase/callCase.vue @@ -36,7 +36,7 @@
-
+
历史记录 地图查询
@@ -146,8 +146,8 @@
- 小时 - 分钟 + 小时 + 分钟
@@ -174,7 +174,14 @@
- + + + 图片 + 音频 + 视频 + + + + + + + + + 提交 @@ -231,12 +250,16 @@ import { Uploadimg } from '@/api/common' import TianDiTuMap from '@/components/Map/tiandiMap' import ArcgisMapComp from '@/components/Map/arcGISMap' +import VideoUpload from './components/videoUpload' +import AudioUpload from './components/audioUpload' export default { name: 'CallCase', components: {// 注册组件 TianDiTuMap: TianDiTuMap, - ArcgisMapComp: ArcgisMapComp + ArcgisMapComp: ArcgisMapComp, + VideoUpload: VideoUpload, + AudioUpload: AudioUpload }, data() { const phoneValidator = (rule, value, callback) => { @@ -299,7 +322,8 @@ }, // 表单验证 hideUpload: false, fileList: [], - uploadPath: process.env.BASE_API + 'imageUpload', // 图片上传路径 + uploadPath: this.baseConfig.baseUrl + '/file/upload', // 图片上传路径 + token: '', dialogImageUrl: '', dialogVisible: false, mapDialogVisible: false, // 地图对话框 @@ -315,7 +339,8 @@ showVerifyPerson: true, showCaseTypesTime: false, caseTypeCodeAuto: '', // 自动生成的案卷大类代码 - caseTypeDetailCodeAuto: '' // 自动生成的案卷小类代码 + caseTypeDetailCodeAuto: '', // 自动生成的案卷小类代码 + fileType: '' } }, computed: { @@ -359,8 +384,17 @@ this.initCaseEorC() this.initDept() this.initVerifyPerson() + + this.token = this.$store.getters.token }, methods: { + // todo 视频列表 + submitVideo(videoList) { + console.log('videoList', videoList) + }, + submitAudio(audioList) { + console.log('audioList', audioList) + }, initDept() { getDeptList().then(response => { this.deptOpts = response.data @@ -739,6 +773,12 @@ border-top: 12px solid #ebebeb; padding: 20px; } + .file-radio { + //margin: 10px; + } + .el-radio-group { + display: flex; + } /deep/ .el-input__count-inner, .el-input__count{ line-height: initial !important diff --git a/src/views/callCase/components/audioUpload.vue b/src/views/callCase/components/audioUpload.vue new file mode 100644 index 0000000..bb9252a --- /dev/null +++ b/src/views/callCase/components/audioUpload.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/src/components/AudioPlayer/AudioPlayer.vue b/src/components/AudioPlayer/AudioPlayer.vue new file mode 100644 index 0000000..4636b14 --- /dev/null +++ b/src/components/AudioPlayer/AudioPlayer.vue @@ -0,0 +1,235 @@ + + + + + + diff --git a/src/utils/stringutils.js b/src/utils/stringutils.js new file mode 100644 index 0000000..4ff753d --- /dev/null +++ b/src/utils/stringutils.js @@ -0,0 +1,13 @@ +export function realFormatSecond(second) { + var secondType = typeof second + if (secondType === 'number' || secondType === 'string') { + second = parseInt(second) + var hours = Math.floor(second / 3600) + second = second - hours * 3600 + var mimute = Math.floor(second / 60) + second = second - mimute * 60 + return hours + ':' + ('0' + mimute).slice(-2) + ':' + ('0' + second).slice(-2) + } else { + return '0:00:00' + } +} diff --git a/src/views/callCase/callCase.vue b/src/views/callCase/callCase.vue index 5aa10b7..5941e6c 100644 --- a/src/views/callCase/callCase.vue +++ b/src/views/callCase/callCase.vue @@ -36,7 +36,7 @@
-
+
历史记录 地图查询
@@ -146,8 +146,8 @@
- 小时 - 分钟 + 小时 + 分钟
@@ -174,7 +174,14 @@
- + + + 图片 + 音频 + 视频 + + + + + + + + + 提交 @@ -231,12 +250,16 @@ import { Uploadimg } from '@/api/common' import TianDiTuMap from '@/components/Map/tiandiMap' import ArcgisMapComp from '@/components/Map/arcGISMap' +import VideoUpload from './components/videoUpload' +import AudioUpload from './components/audioUpload' export default { name: 'CallCase', components: {// 注册组件 TianDiTuMap: TianDiTuMap, - ArcgisMapComp: ArcgisMapComp + ArcgisMapComp: ArcgisMapComp, + VideoUpload: VideoUpload, + AudioUpload: AudioUpload }, data() { const phoneValidator = (rule, value, callback) => { @@ -299,7 +322,8 @@ }, // 表单验证 hideUpload: false, fileList: [], - uploadPath: process.env.BASE_API + 'imageUpload', // 图片上传路径 + uploadPath: this.baseConfig.baseUrl + '/file/upload', // 图片上传路径 + token: '', dialogImageUrl: '', dialogVisible: false, mapDialogVisible: false, // 地图对话框 @@ -315,7 +339,8 @@ showVerifyPerson: true, showCaseTypesTime: false, caseTypeCodeAuto: '', // 自动生成的案卷大类代码 - caseTypeDetailCodeAuto: '' // 自动生成的案卷小类代码 + caseTypeDetailCodeAuto: '', // 自动生成的案卷小类代码 + fileType: '' } }, computed: { @@ -359,8 +384,17 @@ this.initCaseEorC() this.initDept() this.initVerifyPerson() + + this.token = this.$store.getters.token }, methods: { + // todo 视频列表 + submitVideo(videoList) { + console.log('videoList', videoList) + }, + submitAudio(audioList) { + console.log('audioList', audioList) + }, initDept() { getDeptList().then(response => { this.deptOpts = response.data @@ -739,6 +773,12 @@ border-top: 12px solid #ebebeb; padding: 20px; } + .file-radio { + //margin: 10px; + } + .el-radio-group { + display: flex; + } /deep/ .el-input__count-inner, .el-input__count{ line-height: initial !important diff --git a/src/views/callCase/components/audioUpload.vue b/src/views/callCase/components/audioUpload.vue new file mode 100644 index 0000000..bb9252a --- /dev/null +++ b/src/views/callCase/components/audioUpload.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/src/views/callCase/components/videoUpload.vue b/src/views/callCase/components/videoUpload.vue new file mode 100644 index 0000000..375ff38 --- /dev/null +++ b/src/views/callCase/components/videoUpload.vue @@ -0,0 +1,210 @@ + + + + +