| | |
| | | @close="onClose"> |
| | | <slot></slot> |
| | | <template slot="footer"> |
| | | <template v-if="isView"> |
| | | <el-button type="info" @click="close()">{{ $t('close') }}</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <template v-if="stepMarker && stepMarker.indexOf('first')>0"> |
| | | <el-button type="warning" @click="formSubmit('zc')">暂存</el-button> |
| | | <el-button type="warning" @click="formSubmit('tj')" v-if="">提交 |
| | |
| | | </el-button> |
| | | <el-button type="warning" @click="formSubmit('bc')" v-else-if="editAble">保存 |
| | | </el-button> |
| | | |
| | | <el-button @click="visible = false" v-if="editAble||stepMarker">{{ $t('cancel') }}</el-button> |
| | | <el-button type="info" @click="close()" v-else>{{ $t('close') }}</el-button> |
| | | |
| | | </template> |
| | | <slot name="footer"></slot> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | data() { |
| | | return { |
| | | dataFormBack: null, |
| | | visible: false |
| | | visible: false, |
| | | isView:true, |
| | | //editAble: true // 是否可编辑 |
| | | } |
| | | }, |