Commit ba3c63a8 authored by youjie's avatar youjie

no message

parent 5c7e86d5
...@@ -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){
......
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