tweak code
This commit is contained in:
parent
63ff44f8e5
commit
98a8277a37
|
@ -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