Commit 5e403896 authored by daywrite's avatar daywrite

修改新增调用方式

parent 2e87f3b5
......@@ -37,7 +37,11 @@ export default {
},
getArrayByKey (key) {
return this.retNewArray.find(item => item.key === this.selectKeyFormat(key))
if (this.retNewArray) {
return this.retNewArray[this.selectKeyFormat(key)]
} else {
return []
}
},
initSetting (params) {
......
......@@ -19,9 +19,7 @@ export default {
},
props: {
formItem: {
type: Number
},
formItem: [Number, String],
formTimeItem: {
type: String
},
......
<template>
<section>
<el-dialog title="新建待办事项" :visible.sync="diaVis" :modal-append-to-body="false" :close="handleClose">
<sidePopup ref="scheduleSidePopup">
<ScheduleForm
:model="model">
</ScheduleForm>
......@@ -8,7 +8,9 @@
<el-button type="cancel" @click="diaVis = false" size="mini">取 消</el-button>
<el-button type="confirm" @click="save" size="mini">确 定</el-button>
</div>
</el-dialog>
</sidePopup>
<!-- <el-dialog title="新建待办事项" :visible.sync="diaVis" :modal-append-to-body="false" :close="handleClose">
</el-dialog> -->
</section>
</template>
<script>
......@@ -49,7 +51,8 @@ export default {
show (model) {
model && UTIL.flatten(this.model, model)
model && (this.model.client_name = model.client.name)
this.diaVis = true
// this.diaVis = true
this.$refs.scheduleSidePopup.show()
},
handleClose () {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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