|
|
|
@ -86,11 +86,11 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button @click="handleCancel">取消</el-button>
|
|
|
|
|
<el-button :disabled="loading" :loading="submitting" type="primary" @click="handleSave">保存</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div class="form-footer">
|
|
|
|
|
<el-button @click="handleCancel">取消</el-button>
|
|
|
|
|
<el-button :disabled="loading" :loading="submitting" type="primary" @click="handleSave">保存</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -152,6 +152,9 @@
|
|
|
|
|
try {
|
|
|
|
|
await proxy.$validate(refsForm);
|
|
|
|
|
let data = { ...unref(form) };
|
|
|
|
|
if (!data.password) {
|
|
|
|
|
delete data.password;
|
|
|
|
|
}
|
|
|
|
|
data.voucherClueUrls = data.voucherClueUrls || [];
|
|
|
|
|
data.voucherClueUrl = data.voucherClueUrls.join(',');
|
|
|
|
|
let res = await store.dispatch('employee/save', data);
|
|
|
|
@ -216,6 +219,8 @@
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.form-container {
|
|
|
|
|
flex-direction: row-reverse !important;
|
|
|
|
|
align-items: flex-start !important;
|
|
|
|
|
.el-form {
|
|
|
|
|
width: 480px;
|
|
|
|
|
}
|
|
|
|
|