| | |
| | | <template> |
| | | <el-row class="layout"> |
| | | <el-col :span="10"> |
| | | <el-col :span="$slots.summary ? 10 : 24"> |
| | | <el-form :inline="true" :model="formSearch"> |
| | | <el-form-item label="总任务"> |
| | | <!-- <el-input v-model="formSearch.topTaskId" placeholder="总任务" /> --> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <FYOptionScene |
| | | :allOption="true" |
| | | :allOption="false" |
| | | :type="2" |
| | | v-model:value="formSearch.scenetype" |
| | | ></FYOptionScene> |
| | | <el-form-item> |
| | | <el-form-item v-show="btnShow"> |
| | | <el-button type="primary" @click="onSubmit">查询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-col> |
| | | <el-col :span="14"> |
| | | <el-col :span="$slots.summary ? 14 : 0"> |
| | | <el-row justify="end"> |
| | | <slot name="summary"></slot> |
| | | </el-row> |
| | |
| | | |
| | | export default { |
| | | emits: ['onSubmit'], |
| | | props: { |
| | | btnShow: { |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | init: { |
| | | type: Boolean, |
| | | default: true |
| | | } |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | topTasks: [], |
| | |
| | | }); |
| | | this.topTasks = list; |
| | | this.formSearch.topTaskId = list[0].value; |
| | | this.onSubmit(); |
| | | if (this.init) { |
| | | this.onSubmit(); |
| | | } |
| | | }); |
| | | }, |
| | | //查询子任务统计信息 |
| | |
| | | ); |
| | | const param = { |
| | | topTask: task ? task.data : {}, |
| | | sceneTypeId: this.formSearch.scenetype.value |
| | | sceneTypeId: this.formSearch.scenetype.value, |
| | | sceneTypeName: this.formSearch.scenetype.label, |
| | | }; |
| | | // console.log(param); |
| | | |
| | |
| | | }, |
| | | mounted() { |
| | | this.getOptions(); |
| | | } |
| | | }, |
| | | expose: ['onSubmit'] |
| | | }; |
| | | </script> |
| | | |