| | |
| | | </el-table> |
| | | <!--申请延期弹窗--> |
| | | <el-dialog |
| | | title="提示" |
| | | title="申请延期" |
| | | :visible.sync="dialogVisible" |
| | | :close-on-click-modal="false" |
| | | width="30%" |
| | |
| | | :auto-upload="true" |
| | | > |
| | | <el-button slot="trigger" size="small" type="primary" class="btns">选择文件</el-button> |
| | | <div slot="tip" class="el-upload__tip">只能上传.jpg,.gif,.bmp,.png,.jpeg格式的图片</div> |
| | | <div slot="tip" class="el-upload__tip">只能上传.jpg,.gif,.bmp,.png,.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx,.rar,.zip格式的图片</div> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | }, |
| | | beforeUpload(file) { |
| | | var FileExt = file.name.replace(/.+\./, ""); |
| | | if (['jpg', 'png', 'bmp', 'gif', 'jpeg'].indexOf(FileExt.toLowerCase()) === -1) { |
| | | //.jpg,.gif,.bmp,.png,.doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx,.rar,.zip |
| | | if (['jpg', 'png', 'bmp', 'gif', 'jpeg','doc','docx','pdf','ppt','xls','pptx','xls','xlsx','rar','zip'].indexOf(FileExt.toLowerCase()) === -1) { |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '请上传后缀名为jpg、png、bmp、gif、jpeg的图片!' |
| | | message: '请上传后缀名为jpg,gif,bmp,png,doc,docx,pdf,ppt,pptx,xls,xlsx,rar,zip的图片!' |
| | | }); |
| | | return false; |
| | | } |
| | |
| | | </el-table> |
| | | <!--批量复查弹窗--> |
| | | <el-dialog |
| | | title="提示" |
| | | title="发送隐患单" |
| | | :visible.sync="dialogVisible" |
| | | :close-on-click-modal="false" |
| | | width="30%" |
| | |
| | | |
| | | <!--批量复查弹窗--> |
| | | <el-dialog |
| | | title="提示" |
| | | :title="titleStr" |
| | | :visible.sync="dialogVisible" |
| | | :close-on-click-modal="false" |
| | | width="40%" |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | titleStr:"", |
| | | dialogVisible: false, |
| | | checked: [], |
| | | YHType: '0', |
| | |
| | | }) |
| | | }, |
| | | supervision(type) { |
| | | if(type == '1'){ |
| | | this.titleStr = "督查督办"; |
| | | }else{ |
| | | this.titleStr = "举一反三"; |
| | | } |
| | | var selectDataList = this.$refs.pageTable.selection; |
| | | this.buttonType = type; |
| | | if (selectDataList.length != 1) { |