Commit c035e518 authored by 沈良进's avatar 沈良进
parents 31abe0e0 aa3fdec3
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
class="normalBtn" class="normalBtn"
value="查询" value="查询"
/> />
<input type="button" @click="AddAccount" class="normalBtn" :value="$t('pub.addBtn')" /> <input type="button" @click="AddAccountBank" class="normalBtn" :value="$t('pub.addBtn')" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -169,7 +169,9 @@ ...@@ -169,7 +169,9 @@
<td class="empBankAccountIcon"> <td class="empBankAccountIcon">
<el-button-group> <el-button-group>
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start">
<el-button @click="outerVisible = true,dialogTitle=$t('ground.xiugaizhanghu'),updateData(item.ID)" type="primary" style='background:#409EFF; border-color:#409EFF' icon="iconfont icon-bianji-smal" ></el-button> <el-button @click="outerVisible = true,dialogTitle=$t('ground.xiugaizhanghu'),updateData(item.ID)"
type="primary" style='background:#409EFF; border-color:#409EFF'
icon="iconfont icon-bianji-smal" ></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')" placement="top-start">
<el-button v-if='item.Status==1' @click="deleteData(item.ID)" type="primary" style='background:#09D49D; border-color:#09D49D' icon="iconfont icon-qidong" ></el-button> <el-button v-if='item.Status==1' @click="deleteData(item.ID)" type="primary" style='background:#09D49D; border-color:#09D49D' icon="iconfont icon-qidong" ></el-button>
...@@ -266,14 +268,13 @@ ...@@ -266,14 +268,13 @@
this.changeTitle() this.changeTitle()
}, },
methods: { methods: {
AddAccount(){ AddAccountBank(){
if(this.list&&this.list.length==1){ if(this.list&&this.list.length>0){
this.$message.info('已有账户,试试编辑已有账户吧!') return this.$message.info('已有账户,试试编辑已有账户吧!')
return
} }
this.outerVisible = true this.outerVisible = true
this.dialogTitle= this.$t('ground.xinzengzhanghu') this.dialogTitle= this.$t('ground.xinzengzhanghu')
this.resetForm('addMsg') this.resetForm('addMsg')
}, },
changeTitle(){ changeTitle(){
if(this.addMsg.AccountClassify==1){ if(this.addMsg.AccountClassify==1){
...@@ -300,7 +301,7 @@ ...@@ -300,7 +301,7 @@
} }
}, },
getList() { //获取列表数据 getList() { //获取列表数据
this.loading = true
this.apipost("admin_get_GetEmpBankAccountPageList", this.msg, res => { this.apipost("admin_get_GetEmpBankAccountPageList", this.msg, res => {
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.list = res.data.data.pageData; this.list = res.data.data.pageData;
...@@ -385,22 +386,25 @@ ...@@ -385,22 +386,25 @@
// this.addMsg.Status = this.dataList[index].Status.toString(); // this.addMsg.Status = this.dataList[index].Status.toString();
}, },
deleteData(id){ deleteData(id){
this.$confirm(this.$t('ground.querenqiyong'), '提示', { let that = this
confirmButtonText: this.$t('pub.sureBtn'), this.$confirm(that.$t('ground.querenqiyong'), '提示', {
cancelButtonText: this.$t('pub.cancelBtn'), confirmButtonText: that.$t('pub.sureBtn'),
cancelButtonText: that.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.apipost('admin_post_DelEmpBankAccount', { this.apipost('admin_post_DelEmpBankAccount', {
BAId:id BAId:id
}, res => { }, res => {
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.$message.success(this.$t('pub.saveYes')) that.$message.success('操作成功')
this.getList(); that.getList();
} }else{
that.$message.info('操作失败')
}
}, err => {}) }, err => {})
}).catch(() => { }).catch(() => {
this.$message.info(this.$t('ground.yiquxiao')) that.$message.info('操作失败')
}); });
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment