Commit 5e403896 authored by daywrite's avatar daywrite

修改新增调用方式

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