Commit 1d897c75 authored by huai.li's avatar huai.li

修复图标

parent d8354aee
......@@ -62,4 +62,11 @@
.ec-page-wrapper .el-form-item__label {
color: white;
}
.chart-avatar {
width: 34px;
height: 34px;
}
.img-circle {
}
}
......@@ -142,10 +142,19 @@ export default {
val.forEach(item => {
this.$set(this.list, item.key, this.list[item.key] || item.value)
})
this.$emit('update:list', this.list)
// this.$emit('update:list', this.list)
}, {deep: true})
},
watch: {
'list': {
handler (newVal, oldVal) {
this.$emit('update:list', newVal)
},
deep: true
}
},
mounted () {
},
......@@ -156,6 +165,11 @@ export default {
remove (key) {
let _index = this.quantityArr.findIndex(ele => ele.key === key)
this.quantityArr.splice(_index, 1)
this.list = {}
this.quantityArr.forEach(item => {
this.$set(this.list, item.key, this.list[item.key] || item.value)
})
this.$emit('update:list', this.list)
},
getNew () {
......
......@@ -44,16 +44,16 @@ export default {
alarm_before: '',
engineer_id: '',
description: '',
quantity: []
caseServices: []
}
}
},
methods: {
formatList (val) {
this.model.quantity = []
this.model.caseServices = []
Object.keys(val).forEach(item => {
this.model.quantity[item] = val[item]
this.model.caseServices[item] = val[item]
})
},
show (model) {
......@@ -79,13 +79,9 @@ export default {
},
save () {
debugger
let _model = Object.assign({}, this.model)
let _params = Object.assign({}, setModule({quantity: this.model.quantity}, 'CaseServices'))
delete _model['quantity']
let _params1 = Object.assign(_params, setModule(_model, 'Cases'))
_params1['CaseAssignments[engineer_id]'] = _params1['Cases[engineer_id]']
delete _params1['Cases[engineer_id]']
let _params = Object.assign({}, setModule(this.model, 'Cases'))
_params['CaseAssignments[engineer_id]'] = _params['Cases[engineer_id]']
delete _params['Cases[engineer_id]']
let _apiUrl = !this.model.id ? api.saveCaseNew : api.saveCaseEdit
!this.model.id && delete _params['Cases[id]']
this.$refs['form']._validate(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment