| | |
| | | <el-row class="title-center"> |
| | | <el-col :span="7"> |
| | | <el-radio-group v-model="listQuery.form.alter_status"> |
| | | <el-radio-button v-for="item in statusList" :label="item.value" :key="item.value"></el-radio-button> |
| | | <el-radio-button v-for="item in statusList" :label="item.value" :key="item.value" @change.native="getPageList"></el-radio-button> |
| | | </el-radio-group> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | type="primary" |
| | | class="btns" |
| | | size="small" |
| | | v-show="buttomShow" |
| | | icon="el-icon-bottom" |
| | | >导入 |
| | | </el-button |
| | |
| | | type="primary" |
| | | class="btns" |
| | | size="small" |
| | | v-show="buttomShow" |
| | | icon="el-icon-download" |
| | | >下载模板 |
| | | </el-button |
| | |
| | | class="btns" |
| | | type="primary" |
| | | size="small" |
| | | v-show="buttomShow" |
| | | @click="fillRectification()" |
| | | >填写整改 |
| | | </el-button |
| | |
| | | >填写督查 |
| | | </el-button |
| | | > |
| | | <el-button class="btns" type="primary" icon="el-icon-plus" @click="jump" size="small" |
| | | <el-button |
| | | class="btns" |
| | | type="primary" |
| | | size="small" |
| | | v-show="!buttomShow" |
| | | @click="cancel()" |
| | | >撤销 |
| | | </el-button |
| | | > |
| | | <el-button class="btns" type="primary" icon="el-icon-plus" @click="jump" size="small" v-show="buttomShow" |
| | | >添加 |
| | | </el-button |
| | | > |
| | | <el-button size="small" @click="deleteBath" |
| | | <el-button size="small" @click="deleteBath" v-show="buttomShow" |
| | | >批量删除 |
| | | </el-button |
| | | > |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | buttomShow:true, |
| | | fileList: [], |
| | | statusList: [], |
| | | options: [], |
| | |
| | | this.initBC() |
| | | this.initJCLB() |
| | | this.initReformStatus() |
| | | }, |
| | | watch:{ |
| | | "listQuery.form.alter_status":function (newVal,oldVal) { |
| | | console.log(newVal) |
| | | if(newVal == "整改完成"){ |
| | | this.buttomShow = false; |
| | | }else{ |
| | | this.buttomShow = true; |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | initReformStatus() { |
| | |
| | | } |
| | | return true |
| | | }, |
| | | |
| | | cancel(){ |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请勾选需要撤销的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | }, |
| | | |
| | | deleteBath() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请选择勾选需要删除的数据!", duration: 3000}) |
| | | this.$message({type: 'warn', message: "请勾选需要删除的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | var deleteIds = ""; |