一毛钱活动

This commit is contained in:
“wanyongkang”
2021-02-05 16:10:32 +08:00
parent ddc1cba0f7
commit bcde90b735
2 changed files with 38 additions and 3 deletions

View File

@@ -32,6 +32,20 @@
<el-table-column prop="Name" label="姓名"></el-table-column>
<el-table-column prop="id_code" label="身份证号"></el-table-column>
<el-table-column prop="is_verify" label="实名状态"></el-table-column>
<el-table-column label="一毛钱天卡" >
<template slot-scope="scope">
<el-tooltip content="请先查看是否已经使用" placement="top">
<el-switch
v-model="scope.row.ProductAccountCount"
active-color="#13ce66"
inactive-color="#ff4949"
@change="day(scope.row)"
active-value="0"
inactive-value="1">
</el-switch>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="操作" width="400px">
<template slot-scope="scope">
<span class="handel cursor edit" @click="showUpdateTest(scope.row)">设置测试</span>
@@ -325,6 +339,11 @@ export default {
info: r.LoginCode
}).then(res => {})
},
day(r){
this.$api.post(this.$api.phpURL + "user/user/setDay", r).then(res => {
});
},
dataExport () {
this.$api.getDownloadFile('/baseinfo/v1/user/Export')
// eslint-disable-next-line camelcase

View File

@@ -25,6 +25,20 @@
{{scope.row.TestCountLimit==0?'3':scope.row.TestCountLimit}}/{{scope.row.UseTestCount==0?'--':scope.row.UseTestCount}}
</template>
</el-table-column>
<el-table-column label="一毛钱天卡" >
<template slot-scope="scope">
<el-tooltip content="请先查看是否已经使用" placement="top">
<el-switch
v-model="scope.row.ProductAccountCount"
active-color="#13ce66"
inactive-color="#ff4949"
@change="day(scope.row)"
active-value="0"
inactive-value="1">
</el-switch>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="操作" width="400px">
<template slot-scope="scope">
<span class="handel cursor edit" @click="showUpdateTest(scope.row)">设置测试</span>
@@ -295,9 +309,11 @@ export default {
this.detailAmountData = res.Data;
});
},
dataExport(){
this.$api.getDownloadFile("/baseinfo/v1/user/Export");
}
day(r){
this.$api.post(this.$api.phpURL + "user/user/setDay", r).then(res => {
});
},
}
};
</script>