| | |
| | | <el-button type="primary" @click="search">查询</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="addAduitDialogVisible = true">添加</el-button> |
| | | <el-button type="primary" @click="addAduitAnJian">添加</el-button> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-upload name="multipartFile" class="upload-demo" action="/api/cause/upload " :show-file-list="false" |
| | | :before-upload="beforeAvatarUpload" :on-success="respond" :limit="1"> |
| | | <el-button type="primary">导入</el-button> |
| | | <!-- <el-button type="primary">导入</el-button>--> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | <el-upload name="multipartFile" class="upload-demo" action="/api/cause/reporterUpload" |
| | | :show-file-list="false" :data="{ causeId: this.reportCauseId }" :before-upload="beforeAvatarUpload" |
| | | :on-success="reporterRespond" :limit="1"> |
| | | <el-button type="primary">导入</el-button> |
| | | <!-- <el-button type="primary">导入</el-button>--> |
| | | </el-upload> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column width="200" prop="ctime" label="报案时间"> |
| | | <el-table-column width="200" prop="reportTime" label="报案时间"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.ctime === null ? "2022-07-12 10:32:56" : scope.row.ctime }}</span> |
| | | <span>{{ scope.row.reportTime === null ? "2022-07-12 10:32:56" : scope.row.reportTime }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="medium" @click="updataReport(scope.row)">编辑</el-button> |
| | | <el-button type="text" size="medium" |
| | | @click="leaveReport(scope.row.id, scope.row.causeId, scope.row.groupId)" style="color:#ff0000" |
| | | :disabled="scope.row.isInGroup == 0">退群 </el-button> |
| | | <!-- <el-button type="text" size="medium"--> |
| | | <!-- @click="leaveReport(scope.row.id, scope.row.causeId, scope.row.groupId)" style="color:#ff0000"--> |
| | | <!-- :disabled="scope.row.isInGroup == 0">退群 </el-button>--> |
| | | <el-button type="text" size="medium" @click="removeReport(scope.row.id, scope.row.causeId)" |
| | | style="color:#ff0000" :disabled="scope.row.isInGroup == 1">删除 </el-button> |
| | | </template> |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :span="12"> |
| | | |
| | | <!-- <el-col :span="12"> |
| | | <el-form-item prop="reportTime" label="报案时间"> |
| | | <el-date-picker v-model="updateReportForm.reportTime" type="datetime" placeholder="选择日期时间" clearable |
| | | :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="12"> |
| | | <el-form-item label="被骗时间" prop="cheatTime"> |
| | | <el-date-picker v-model="updateReportForm.cheatTime" type="datetime" placeholder="选择日期时间" clearable |
| | |
| | | <el-form-item label="上传" prop="fileList" required> |
| | | <el-upload ref="reportMaterials" :file-list="updateReportForm.fileList" action="/api/minio/upload" |
| | | list-type="picture" :on-success="handleReporterMaterialSuccess"> |
| | | <img v-if="updateReportForm.reportMaterials!=''" :src="'/minio/img/'+updateReportForm.reportMaterials" style="width: 145px;height: 145px"> |
| | | <el-button size="small" type="primary" icon="el-icon-upload">点击上传</el-button> |
| | | </el-upload> |
| | | </el-form-item> |
| | |
| | | }, |
| | | methods: |
| | | { |
| | | addAduitAnJian(){ |
| | | let date=(new Date()).valueOf();//获取时间戳 |
| | | let txt = '1234567890';//生成的随机机器码 |
| | | let len =13;//机器码有多少位 |
| | | let pwd = '';//定义空变量用来接收机器码 |
| | | for (let i = 0; i < len; i++) { |
| | | pwd += txt.charAt(Math.floor(Math.random() * txt.length));//循环机器码位数随机填充 |
| | | } |
| | | let id= date+pwd; |
| | | this.causeForm.number=id; |
| | | this.addAduitDialogVisible=true; |
| | | }, |
| | | |
| | | //关闭案件的案件人员添加 |
| | | addReportVisibleClose() { |
| | |
| | | this.updateReportPrams.groupId = this.updateReportForm.groupId |
| | | this.updateReportPrams.id = this.updateReportForm.id |
| | | this.updateReportPrams.reportMaterials = this.updateReportPrams.fileList.map(i => i.data).join(',') |
| | | debugger |
| | | |
| | | this.updateReportPrams.pic=this.updateReportForm.pic |
| | | let form = null; |
| | | form = this.updateReportPrams; |
| | |
| | | |
| | | //编辑案件人员 |
| | | updataReport(val) { |
| | | debugger |
| | | this.updateReportVisible = true; |
| | | this.updateReportForm = Object.assign({}, val); |
| | | this.causeId = val.causeId; |
| | |
| | | } else { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "表单不能为空" |
| | | message: res.data.msg |
| | | }) |
| | | } |
| | | } |
| | |
| | | ::v-deep(.el-table thead) { |
| | | color: #000000; |
| | | } |
| | | </style> |
| | | </style> |