Browse Source

增加清空功能

java8
赵宏斌 2 months ago
parent
commit
e5bacef125
  1. 33
      src/views/modules/eam/eamProjectInfo.vue

33
src/views/modules/eam/eamProjectInfo.vue

@ -450,6 +450,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-footer style="height:40px;margin-top: 35px;text-align:center"> <el-footer style="height:40px;margin-top: 35px;text-align:center">
<el-button type="primary" v-if="clearButtonFlag" @click="clearModalFlag = true,clearRadioValue = ''">清空</el-button>
<el-button type="primary" @click="saveData()">保存</el-button> <el-button type="primary" @click="saveData()">保存</el-button>
<el-button @click="modalFlag = false">关闭</el-button> <el-button @click="modalFlag = false">关闭</el-button>
</el-footer> </el-footer>
@ -468,6 +469,18 @@
</el-footer> </el-footer>
</el-dialog> </el-dialog>
<el-dialog title="清空" :close-on-click-modal="false" v-drag :visible.sync="clearModalFlag" width="400px">
<el-radio-group v-model="clearRadioValue">
<el-radio label="文档工程师2">文档工程师2</el-radio>
<el-radio label="IPQC-Hardtag">IPQC-Hardtag</el-radio>
<el-radio label="前道工程师">前道工程师</el-radio>
</el-radio-group>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="clearData()">确定</el-button>
<el-button @click="clearModalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
<!--项目经理选择弹框--> <!--项目经理选择弹框-->
<el-dialog title="PM/Sales" @close="closeProjectManagerInfoDialog" @open="openProjectManagerInfoDialog" :visible.sync="projectManagerFlag" width="559px" v-drag> <el-dialog title="PM/Sales" @close="closeProjectManagerInfoDialog" @open="openProjectManagerInfoDialog" :visible.sync="projectManagerFlag" width="559px" v-drag>
<el-form inline="inline" label-position="top" :model="searchBusinessData" style="margin-left: 7px;margin-top: -5px;"> <el-form inline="inline" label-position="top" :model="searchBusinessData" style="margin-left: 7px;margin-top: -5px;">
@ -1126,6 +1139,9 @@ import {updateColumnSize} from "../../../api/table";
docEngineerFlag:false, docEngineerFlag:false,
docEngineer2Flag:false, docEngineer2Flag:false,
newCustomerFlag:false, newCustomerFlag:false,
clearButtonFlag:false,
clearModalFlag:false,
clearRadioValue: '',
modalData:{ modalData:{
flag:'', flag:'',
bu: '', bu: '',
@ -3384,6 +3400,7 @@ import {updateColumnSize} from "../../../api/table";
} }
this.modalDisableFlag = false this.modalDisableFlag = false
this.modalPartDisableFlag = false this.modalPartDisableFlag = false
this.clearButtonFlag = false
this.modalFlag = true this.modalFlag = true
}, },
updateModal (row) { updateModal (row) {
@ -3454,6 +3471,7 @@ import {updateColumnSize} from "../../../api/table";
} }
this.modalDisableFlag = true this.modalDisableFlag = true
this.modalPartDisableFlag = false this.modalPartDisableFlag = false
this.clearButtonFlag = true
this.modalFlag = true this.modalFlag = true
}, },
// //
@ -3482,6 +3500,20 @@ import {updateColumnSize} from "../../../api/table";
}).catch(() => { }).catch(() => {
}) })
}, },
//
clearData() {
if (this.clearRadioValue === '文档工程师2'){
this.modalData.docEngineer2 = ''
this.modalData.docEngineer2Name = ''
} else if (this.clearRadioValue === 'IPQC-Hardtag'){
this.modalData.ipqcHardTag = ''
this.modalData.ipqcHardTagName = ''
} else if (this.clearRadioValue === '前道工程师'){
this.modalData.cQualityEngineer7 = ''
this.modalData.cQualityEngineer7Name = ''
}
this.clearModalFlag = false
},
saveData () { saveData () {
this.modalData.oriProjectId = this.modalData.projectNo this.modalData.oriProjectId = this.modalData.projectNo
this.modalData.finalCustomerId = this.modalData.customerNo this.modalData.finalCustomerId = this.modalData.customerNo
@ -4362,6 +4394,7 @@ import {updateColumnSize} from "../../../api/table";
} }
this.modalDisableFlag = true this.modalDisableFlag = true
this.modalPartDisableFlag = true this.modalPartDisableFlag = true
this.clearButtonFlag = true
this.modalFlag = true this.modalFlag = true
}, },

Loading…
Cancel
Save