| | |
| | | <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-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | |
| | | <!-- <el-col :span="12"> |
| | | <el-form-item prop="reportTime" label="报案时间"> |
| | | <el-date-picker v-model="updateReportForm.reportTime" type="datetime" placeholder="选择日期时间" clearable |
| | |
| | | }, |
| | | 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(',') |
| | | |
| | | |
| | | this.updateReportPrams.pic=this.updateReportForm.pic |
| | | let form = null; |
| | | form = this.updateReportPrams; |
| | |
| | | } else { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "表单不能为空" |
| | | message: res.data.msg |
| | | }) |
| | | } |
| | | } |
| | |
| | | ::v-deep(.el-table thead) { |
| | | color: #000000; |
| | | } |
| | | </style> |
| | | </style> |