tweak code
This commit is contained in:
parent
24c29aeded
commit
64e4ae7330
|
@ -111,8 +111,7 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogFormVisible = false">{{ $t('table.cancel') }}</el-button>
|
<el-button @click="dialogFormVisible = false">{{ $t('table.cancel') }}</el-button>
|
||||||
<el-button v-if="dialogStatus=='create'" type="primary" @click="createData">{{ $t('table.confirm') }}</el-button>
|
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">{{ $t('table.confirm') }}</el-button>
|
||||||
<el-button v-else type="primary" @click="updateData">{{ $t('table.confirm') }}</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue