| | |
| | | |
| | | <el-button class="button1" size="mini" type="text" @click="handleAdd" v-hasPermi="['system:role:add']"> |
| | | <sapn v-html="'\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'"></sapn> </el-button> |
| | | <el-table v-loading="loading" :data="memoList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;width: 60%;"> |
| | | <el-table v-loading="loading" border :data="memoList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;width: 60%;"> |
| | | <el-table-column label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="150"/> |
| | | |
| | | <el-table-column label="时间" prop="happenTime" sortable width="180px" align="center"> |
| | |
| | | ></video> |
| | | <img v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | :src="file.url" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 100%; height: 100%" |
| | | fit="cover"> |
| | |
| | | ></video> |
| | | <img v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | :src="file.url" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 100%; height: 100%" |
| | | fit="cover"> |
| | |
| | | id:undefined, |
| | | content: undefined, |
| | | happenTime: undefined, |
| | | fid:2007, |
| | | fid:2031, |
| | | cid:undefined, |
| | | url:'' |
| | | }, |
| | |
| | | id:undefined, |
| | | content: undefined, |
| | | happenTime: undefined, |
| | | fid:2007, |
| | | fid:2031, |
| | | cid:undefined, |
| | | url:''}, |
| | | // 弹出层标题 |
| | |
| | | // 数据范围选项 |
| | | // 数据范围选项 |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng','.M4A'], |
| | | fileList:[ |
| | | ], |
| | | fileList1:[], |
| | |
| | | id:undefined, |
| | | content: undefined, |
| | | happenTime: undefined, |
| | | fid:2007, |
| | | fid:2031, |
| | | cid:undefined, |
| | | url:'' |
| | | }, |
| | |
| | | |
| | | const cid = this.$route.params && this.$route.params.id; |
| | | |
| | | this.getList(2007,cid); |
| | | this.getList(2031,cid); |
| | | |
| | | }, |
| | | methods: { |
| | |
| | | formData.append("files", elem) |
| | | }) |
| | | const cid = this.$route.params && this.$route.params.id; |
| | | const fid =2007; |
| | | this.formDat.fid = 2007; |
| | | const fid =2031; |
| | | this.formDat.fid = 2031; |
| | | this.formDat.cid = parseInt(cid) ; |
| | | let _this = this |
| | | |
| | |
| | | submitDataScope6: function() { |
| | | |
| | | const cid = this.$route.params && this.$route.params.id; |
| | | const fid =2007; |
| | | this.formDat.fid = 2007; |
| | | const fid =2031; |
| | | this.formDat.fid = 2031; |
| | | this.formDat.cid = cid ; |
| | | // console.log(this.formDat,'formDatformDatformDatformDat') |
| | | // console.log(this.isEdit1) |
| | |
| | | this.handleRemoveFile(this.fileListOther[0]); |
| | | } |
| | | this.isEdit1 = false; |
| | | this.getList(2007,cid); |
| | | this.getList(2031,cid); |
| | | }).catch(error => { |
| | | console.log(error,'erroerro1'); |
| | | this.isEdit1 = false; |
| | |
| | | for(let i = 0; i < this.fileListOther.length; i++){ |
| | | this.handleRemoveFile(this.fileListOther[0]); |
| | | } |
| | | this.getList(2007,cid); |
| | | this.getList(2031,cid); |
| | | }).catch(error => { |
| | | console.log(error,'erroerro2'); |
| | | this.open = false; |
| | |
| | | this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0] |
| | | this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1] |
| | | |
| | | listNote(cid, 2007).then(response => { |
| | | listNote(cid, 2031).then(response => { |
| | | this.memoList = response.data; |
| | | // console.log(response,'formDataformDataformDataformDataformData') |
| | | this.loading = false; |
| | |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | const fid = 2007; |
| | | const fid = 2031; |
| | | const cid = this.$route.params && this.$route.params.id; |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(fid,cid); |
| | |
| | | /** 提交按钮(数据权限) */ |
| | | submitDataScope: function() { |
| | | const cid = this.$route.params && this.$route.params.id; |
| | | const fid =2007; |
| | | const fid =2031; |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | let uls = this.fileListOther.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | this.formDat.fid = 2007; |
| | | this.formDat.fid = 2031; |
| | | this.formDat.cid = cid ; |
| | | this.formDat.url = ul+","+uls |
| | | |
| | |
| | | Object.keys(this.formDat).forEach(key => { |
| | | this.formDat[key] = ''; |
| | | }); |
| | | this.getList(2007,cid); |
| | | this.getList(2031,cid); |
| | | |
| | | }); |
| | | } |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const id = row.id || this.id; |
| | | const fid = 2007; |
| | | const fid = 2031; |
| | | const cid = this.$route.params && this.$route.params.id; |
| | | this.$modal.confirm('是否确认删除所选数据项?').then(function() { |
| | | return delNote(id); |