Commit 28c3e396 authored by youjie's avatar youjie

no message

parent 31e42cb3
......@@ -1431,6 +1431,7 @@
} else {
this.noData = true;
}
data.forEach(x => {
x.showB = false;
x.benBalance = Number(x.CurrentRate) * x.Initialbalance;
......@@ -1440,6 +1441,7 @@
allName = allName + y;
});
x.allName = allName;
x.isExamine = this.isExamine
});
this.DataList = data;
this.loading = false;
......@@ -1678,7 +1680,12 @@
},
created() {
Vue.component('table-operation', {
template: `<div style='width:120px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button><el-button v-if="rowData.AccountState==0&isExamine" type="examine" size='mini' icon="el-icon-check avatar-uploader-icon" circle @click="examineRow(rowData,index)"></el-button></div>`,
template: `<div style='width:120px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'>
<el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button>
<el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button>
{{isExamine}}
<el-button v-if="rowData.AccountState==0&&rowData.isExamine" type="examine" size='mini' icon="el-icon-check avatar-uploader-icon" circle
@click="examineRow(rowData,index)"></el-button></div>`,
props: {
rowData: {
type: Object
......@@ -1690,20 +1697,6 @@
type: Number
}
},
data() {
return {
isExamine: false
}
},
mounted() {
if(this.pagesTitle&&this.pagesTitle=='平台账户'){
this.isExamine = true
console.log('可审核----',this.isExamine)
}else{
this.isExamine = false
console.log('不能审核---',this.isExamine)
}
},
methods: {
update() {
let params = {
......
......@@ -9,7 +9,7 @@
components: { PlatformAccount },
data() {
return {
pagesTitle:'审核',
pagesTitle:'平台账户',
};
},
methods: {
......
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