init
This commit is contained in:
@@ -38,7 +38,7 @@ export function updateUserCameraAudit(data) {
|
|||||||
export function batchAuditCameraAudit(data) {
|
export function batchAuditCameraAudit(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/cai/userCameraAudit/batch/audit',
|
url: '/cai/userCameraAudit/batch/audit',
|
||||||
method: 'put',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<svg-icon icon-class="message" @click="getList"/>
|
<svg-icon icon-class="message" @click="getList"/>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
<!-- 弹出列表 -->
|
<!-- 弹出列表 -->
|
||||||
|
<el-empty v-if="unreadAllCount === 0" description="所有数据已审核"></el-empty>
|
||||||
<el-row class="message-fid" v-show="unreadInfo.accountCashCount > 0">
|
<el-row class="message-fid" v-show="unreadInfo.accountCashCount > 0">
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-link @click="goToAudit('accountCash')" type="warning">提现待审核</el-link>
|
<el-link @click="goToAudit('accountCash')" type="warning">提现待审核</el-link>
|
||||||
@@ -103,7 +104,7 @@ export default {
|
|||||||
userGreetCount: 0,
|
userGreetCount: 0,
|
||||||
userAvatarCount: 0,
|
userAvatarCount: 0,
|
||||||
},
|
},
|
||||||
// 未读数量,
|
unreadAllCount: 0,
|
||||||
unreadCount: 1,
|
unreadCount: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -120,6 +121,14 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
getUnreadNotifyMessageList().then(response => {
|
getUnreadNotifyMessageList().then(response => {
|
||||||
this.unreadInfo = response.data;
|
this.unreadInfo = response.data;
|
||||||
|
let allNum = 0;
|
||||||
|
for (const i in this.unreadInfo){
|
||||||
|
let val = this.unreadInfo[i]
|
||||||
|
if(val){
|
||||||
|
allNum = allNum + val
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.unreadAllCount = allNum
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
<cai-dict-tag :options="genderList" :value="scope.row.gender"/>
|
<cai-dict-tag :options="genderList" :value="scope.row.gender"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="申请时间" align="center" prop="auditTime" width="180"/>
|
||||||
<el-table-column label="审核时间" align="center" prop="auditTime" width="180"/>
|
<el-table-column label="审核时间" align="center" prop="auditTime" width="180"/>
|
||||||
<!-- <el-table-column label="审核备注" align="center" prop="auditRemark"/>-->
|
<!-- <el-table-column label="审核备注" align="center" prop="auditRemark"/>-->
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="220">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="220">
|
||||||
|
|||||||
104
src/views/cai/goods/goods-add-or-update-dialog.vue
Normal file
104
src/views/cai/goods/goods-add-or-update-dialog.vue
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="700px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="名称" prop="name">
|
||||||
|
<el-input v-model="form.name" placeholder="请输入标题" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="充值金额" prop="price">
|
||||||
|
<el-input v-model="form.price" placeholder="请输入充值金额" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="云贝数量" prop="amount">
|
||||||
|
<el-input v-model="form.amount" placeholder="请输入云贝数量" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="说明" prop="remark">
|
||||||
|
<el-input v-model="form.remark" placeholder="请输入说明" type="textarea" :rows="2"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="open = false">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { addGoods, getGoods, updateGoods } from '@/api/cai/goods'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
open: false,
|
||||||
|
title: '',
|
||||||
|
form:{
|
||||||
|
id: undefined,
|
||||||
|
name: undefined,
|
||||||
|
price: undefined,
|
||||||
|
amount: undefined,
|
||||||
|
remark: undefined,
|
||||||
|
},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
amount: [
|
||||||
|
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
price: [
|
||||||
|
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
name: [
|
||||||
|
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
},
|
||||||
|
buttonLoading: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init (id) {
|
||||||
|
this.form.id = id || undefined;
|
||||||
|
this.title = (id ? "修改" : "新增") + "充值配置";
|
||||||
|
this.open = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs['form'].resetFields();
|
||||||
|
if(this.form.id){
|
||||||
|
getGoods(id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 表单提交
|
||||||
|
submitForm () {
|
||||||
|
this.$refs['form'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.buttonLoading = true;
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateGoods(this.form).then(data => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.$modal.buttonLoading = false;
|
||||||
|
this.open = false
|
||||||
|
this.$emit('refreshDataList')
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
addGoods(this.form).then(data => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.buttonLoading = false;
|
||||||
|
this.open = false
|
||||||
|
this.$emit('refreshDataList')
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -15,6 +15,20 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['cai:goods:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="goodsList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="goodsList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column label="ID" align="center" prop="id"/>
|
<el-table-column label="ID" align="center" prop="id"/>
|
||||||
<el-table-column label="名称" align="center" prop="name" />
|
<el-table-column label="名称" align="center" prop="name" />
|
||||||
@@ -31,8 +45,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="说明" align="center" prop="remark" />
|
<el-table-column label="说明" align="center" prop="remark" />
|
||||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template v-slot="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -48,7 +62,7 @@
|
|||||||
v-hasPermi="['cai:goods:remove']"
|
v-hasPermi="['cai:goods:remove']"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>-->
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
@@ -58,16 +72,23 @@
|
|||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<goods-add-or-update-dialog v-if="goodsAddOrUpdateDialogVisible" ref="goodsAddOrUpdateDialog" @refreshDataList="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {listGoods, updateGoods} from "@/api/cai/goods";
|
import { delGoods, listGoods, updateGoods } from '@/api/cai/goods'
|
||||||
|
import GoodsAddOrUpdateDialog from '@/views/cai/goods/goods-add-or-update-dialog.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Goods",
|
name: "Goods",
|
||||||
|
components: {
|
||||||
|
GoodsAddOrUpdateDialog
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
goodsAddOrUpdateDialogVisible: false,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
@@ -133,6 +154,31 @@ export default {
|
|||||||
row.status = row.status === 1 ? 0 : 1
|
row.status = row.status === 1 ? 0 : 1
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleAdd(){
|
||||||
|
this.goodsAddOrUpdateDialogVisible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.goodsAddOrUpdateDialog.init()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleUpdate(row){
|
||||||
|
this.goodsAddOrUpdateDialogVisible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.goodsAddOrUpdateDialog.init(row.id)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleDelete(row){
|
||||||
|
this.$modal.confirm('是否确认删除充值配置为"' + row.name + '"的数据项?').then(() => {
|
||||||
|
this.loading = true;
|
||||||
|
return delGoods(row.id);
|
||||||
|
}).then(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -76,9 +76,9 @@
|
|||||||
<image-preview :src="scope.row.photo" width="33px" height="33px"/>
|
<image-preview :src="scope.row.photo" width="33px" height="33px"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="申请时间" align="center" prop="createTime" width="160"/>
|
||||||
<el-table-column label="审核次数" align="center" prop="auditCount" />
|
<el-table-column label="审核次数" align="center" prop="auditCount" />
|
||||||
<el-table-column label="操作ip" align="center" prop="operateIp" show-overflow-tooltip />
|
<el-table-column label="操作ip" align="center" prop="operateIp" show-overflow-tooltip />
|
||||||
<el-table-column label="提交时间" align="center" prop="createTime" width="160"/>
|
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="90" fixed="right">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="90" fixed="right">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
|||||||
@@ -6,6 +6,21 @@
|
|||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['cai:withdrawExchange:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="withdrawExchangeList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="withdrawExchangeList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column label="ID" align="center" prop="id"/>
|
<el-table-column label="ID" align="center" prop="id"/>
|
||||||
<el-table-column label="兑换金额" align="center" prop="money" />
|
<el-table-column label="兑换金额" align="center" prop="money" />
|
||||||
@@ -21,8 +36,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="说明" align="center" prop="remark" />
|
<el-table-column label="说明" align="center" prop="remark" />
|
||||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template v-slot="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@@ -38,7 +53,7 @@
|
|||||||
v-hasPermi="['cai:withdrawExchange:remove']"
|
v-hasPermi="['cai:withdrawExchange:remove']"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>-->
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
@@ -48,16 +63,23 @@
|
|||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<withdraw-exchange-add-or-update-dialog v-if="withdrawExchangeAddOrUpdateDialogVisible" ref="withdrawExchangeAddOrUpdateDialog" @refreshDataList="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {listWithdrawExchange, updateWithdrawExchange} from "@/api/cai/withdrawExchange";
|
import { delWithdrawExchange, listWithdrawExchange, updateWithdrawExchange } from '@/api/cai/withdrawExchange'
|
||||||
|
import WithdrawExchangeAddOrUpdateDialog from '@/views/cai/withdrawExchange/withdraw-exchange-add-or-update-dialog.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "WithdrawExchange",
|
name: "WithdrawExchange",
|
||||||
|
components:{
|
||||||
|
WithdrawExchangeAddOrUpdateDialog
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
withdrawExchangeAddOrUpdateDialogVisible: false,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
@@ -110,7 +132,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleStatusChange(row) {
|
handleStatusChange(row) {
|
||||||
let text = row.status === 0 ? '开启' : '取消'
|
let text = row.status === 0 ? '开启' : '取消'
|
||||||
this.$confirm('确认要' + text + '[' + row.name + ']吗?', '警告', {
|
this.$confirm('确认要' + text + '[' + row.id + ']吗?', '警告', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
@@ -122,6 +144,31 @@ export default {
|
|||||||
row.status = row.status === 1 ? 0 : 1
|
row.status = row.status === 1 ? 0 : 1
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleAdd(){
|
||||||
|
this.withdrawExchangeAddOrUpdateDialogVisible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.withdrawExchangeAddOrUpdateDialog.init()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleUpdate(row){
|
||||||
|
this.withdrawExchangeAddOrUpdateDialogVisible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.withdrawExchangeAddOrUpdateDialog.init(row.id)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleDelete(row){
|
||||||
|
this.$modal.confirm('是否确认删除提现兑换配置id为"' + row.id + '"的数据项?').then(() => {
|
||||||
|
this.loading = true;
|
||||||
|
return delWithdrawExchange(row.id);
|
||||||
|
}).then(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -0,0 +1,97 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="700px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="兑换金额" prop="money">
|
||||||
|
<el-input v-model="form.money" placeholder="请输入充值金额" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所需货币" prop="coinNum">
|
||||||
|
<el-input v-model="form.coinNum" placeholder="请输入云贝数量" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="说明" prop="remark">
|
||||||
|
<el-input v-model="form.remark" placeholder="请输入说明" type="textarea" :rows="2"/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="open = false">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { addWithdrawExchange, getWithdrawExchange, updateWithdrawExchange } from '@/api/cai/withdrawExchange'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
open: false,
|
||||||
|
title: '',
|
||||||
|
form:{
|
||||||
|
id: undefined,
|
||||||
|
money: undefined,
|
||||||
|
coinNum: undefined,
|
||||||
|
remark: undefined,
|
||||||
|
},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
money: [
|
||||||
|
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
coinNum: [
|
||||||
|
{ required: true, message: "数据不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
},
|
||||||
|
buttonLoading: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init (id) {
|
||||||
|
this.form.id = id || undefined;
|
||||||
|
this.title = (id ? "修改" : "新增") + "提现兑换配置";
|
||||||
|
this.open = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs['form'].resetFields();
|
||||||
|
if(this.form.id){
|
||||||
|
getWithdrawExchange(id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 表单提交
|
||||||
|
submitForm () {
|
||||||
|
this.$refs['form'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.buttonLoading = true;
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateWithdrawExchange(this.form).then(data => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.$modal.buttonLoading = false;
|
||||||
|
this.open = false
|
||||||
|
this.$emit('refreshDataList')
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
addWithdrawExchange(this.form).then(data => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.buttonLoading = false;
|
||||||
|
this.open = false
|
||||||
|
this.$emit('refreshDataList')
|
||||||
|
}).finally(() => {
|
||||||
|
this.buttonLoading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -74,7 +74,7 @@ export default {
|
|||||||
codeUrl: "",
|
codeUrl: "",
|
||||||
loginForm: {
|
loginForm: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "admin123",
|
password: "",
|
||||||
rememberMe: false,
|
rememberMe: false,
|
||||||
code: "",
|
code: "",
|
||||||
uuid: ""
|
uuid: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user