| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <template>
- <el-form label-width="100px" v-loading="loading" style="padding-top: 40px;padding-right: 20px;width: 400px;">
- <el-form-item label="10万项目">
- <el-input v-model="ruleForm.user_bond_config.money_10"></el-input>
- </el-form-item>
- <el-form-item label="5万项目">
- <el-input v-model="ruleForm.user_bond_config.money_5"></el-input>
- </el-form-item>
- <el-form-item label="2万项目">
- <el-input v-model="ruleForm.user_bond_config.money_2"></el-input>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" @click="save()">保存</el-button>
- </el-form-item>
- </el-form>
- </template>
- <script>
- export default {
- components: {},
- props: {
- id: {
- type: Number,
- default: 0
- },
- back:{
- type:Object
- }
- },
- async mounted() {
- this.getInfo();
- },
- data() {
- return {
- loading:false,
- ruleForm: {
- user_bond_config:{}
- },
- user_module_list:[],
- menu:[],
- };
- },
- methods: {
- handleClose:function()
- {
- this.back.child_page.type="";
- },
- async getInfo()
- {
- this.loading=true;
- let res = await this.$post("/uapi/pub/info/admin/config/admin_get",{key:"user_bond_config"});
- if (res.status == 1) {
- this.ruleForm.user_bond_config=res.data;
- }
- this.loading=false;
- },
- async save()
- {
- this.loading=true;
- let res = await this.$post("/uapi/pub/info/admin/config/admin_save",{key:"user_bond_config",val:JSON.stringify(this.ruleForm.user_bond_config)});
- if (res.status == 1) {
- this.$message({
- type: 'success',
- message: '保存成功!'
- });
- }
- this.loading=false;
- }
- }
- }
- </script>
|