parent
550875da40
commit
76ae8c4fb1
|
@ -69,7 +69,7 @@
|
|||
</div>
|
||||
</el-dialog>
|
||||
<!--编辑-->
|
||||
<el-dialog :visible.sync="editLoading" width="600px">
|
||||
<el-dialog :visible.sync="editLoading" width="600px">
|
||||
<el-form ref="form" :model="form" label-width="110px" style="width: 500px;">
|
||||
<el-form-item label="车队名称:">
|
||||
<el-input v-model="form.ADD_MOTORCADE_NAME" placeholder="请输入车队名称" class="filter-item" style="width: 200px;"/>
|
||||
|
@ -128,10 +128,10 @@ export default{
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
getAuditType(IS_AUDIT){
|
||||
if (IS_AUDIT === '1'){
|
||||
getAuditType(IS_AUDIT) {
|
||||
if (IS_AUDIT === '1') {
|
||||
return '审核通过'
|
||||
}else {
|
||||
} else {
|
||||
return '未审核'
|
||||
}
|
||||
},
|
||||
|
@ -161,10 +161,11 @@ export default{
|
|||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
handleAdd(){
|
||||
handleAdd() {
|
||||
this.form.ADD_MOTORCADE_NAME = ''
|
||||
this.addLoading = true
|
||||
},
|
||||
saveMotorcade(){
|
||||
saveMotorcade() {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
requestFN(
|
||||
|
@ -181,19 +182,20 @@ export default{
|
|||
this.addLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.error('请填写完整信息');
|
||||
this.$message.error('请填写完整信息')
|
||||
}
|
||||
})
|
||||
},
|
||||
handleEdit(row){
|
||||
handleEdit(row) {
|
||||
this.form.MOTORCADE_ID = row.MOTORCADE_ID
|
||||
this.form.ADD_MOTORCADE_NAME = row.MOTORCADE_NAME
|
||||
this.editLoading = true
|
||||
},
|
||||
editMotorcade(){
|
||||
editMotorcade() {
|
||||
requestFN(
|
||||
'/mkmj/management/motorcadeInfoManagement',
|
||||
{
|
||||
MOTORCADE_ID : this.form.MOTORCADE_ID,
|
||||
MOTORCADE_ID: this.form.MOTORCADE_ID,
|
||||
MOTORCADE_NAME: this.form.ADD_MOTORCADE_NAME,
|
||||
CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID
|
||||
}
|
||||
|
@ -214,11 +216,11 @@ export default{
|
|||
requestFN(
|
||||
'/mkmj/management/deleteMotorCade',
|
||||
{
|
||||
MOTORCADE_ID : row.MOTORCADE_ID
|
||||
MOTORCADE_ID: row.MOTORCADE_ID
|
||||
}
|
||||
).then((data) => {
|
||||
this.listLoading = false
|
||||
this.getList()
|
||||
this.listLoading = false
|
||||
this.getList()
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue