|
|
|
@ -128,7 +128,7 @@ |
|
|
|
</el-card> |
|
|
|
</div> |
|
|
|
<!-- 按钮区域 --> |
|
|
|
<div style="margin-left: 10px; margin-top: 10%"> |
|
|
|
<div style="margin-left: 10px; margin-top: 7%"> |
|
|
|
<el-button type="primary" @click="addll">新增</el-button> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button type="primary" @click="editpopup">编辑</el-button> |
|
|
|
@ -308,7 +308,7 @@ export default { |
|
|
|
// 确定新增或者编辑 |
|
|
|
async addoredit() { |
|
|
|
if (this.form.displayName == undefined) { |
|
|
|
this.$message.warning('请输入名称') |
|
|
|
this.$message.warning("请输入名称"); |
|
|
|
} else { |
|
|
|
if (this.title == 1) { |
|
|
|
let res = await addinvoice({ displayName: this.form.displayName }); |
|
|
|
@ -318,6 +318,10 @@ export default { |
|
|
|
this.dialogVisible = false; |
|
|
|
} |
|
|
|
} else if (this.title == 2) { |
|
|
|
console.log(this.form.displayName); |
|
|
|
if (this.form.displayName == "") { |
|
|
|
this.$message.warning("请输入名称"); |
|
|
|
} else { |
|
|
|
modifyinvoiceedit(this.form.id, { |
|
|
|
displayName: this.form.displayName, |
|
|
|
}).then((res) => { |
|
|
|
@ -327,12 +331,13 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
//新增弹框 |
|
|
|
addll() { |
|
|
|
this.dialogVisible = true; |
|
|
|
this.title = 1; |
|
|
|
this.form={} |
|
|
|
this.form = {}; |
|
|
|
}, |
|
|
|
// 点击每一列根据id获取并调用接口 |
|
|
|
rowick(row) { |
|
|
|
|