Commit b4035a2c by liang ce

bug修复更新

parent b0bad550
import axios from 'axios'
import qs from 'qs'
// axios.defaults.baseURL = 'http://192.168.1.106:8300/v1/isv' // 本地荣
// axios.defaults.baseURL = 'http://192.168.1.102:8300/v1/isv' // 本地钱
axios.defaults.baseURL = 'http://139.196.213.18:8300/v1/isv' // beta环境
axios.defaults.baseURL = 'http://192.168.1.102:8300/v1/isv' // 本地钱
// axios.defaults.baseURL = 'http://139.196.213.18:8300/v1/isv' // beta环境
let loadingInstance // 创建Loading 的实例
axios.defaults.headers['Authorization'] = `Bearer ${localStorage.getItem('token')}` // 设置请求头为 Authorization
// 配置发送请求前的拦截器可以设置token信息
......
......@@ -278,12 +278,17 @@ export default {
return str.substring(0, str.length - 1)
},
createSubsidy () {
this.visible = false
this.spinning = true
this.form.validateFields((err, fieldsValue) => {
if (err) {
this.$message.error('请完整填写津贴相关信息')
return
}
if (this.userIdListObj.length === 0 && this.departmentIdListObj.length === 0) {
this.$message.error('请完整填写津贴相关信息')
return
}
this.visible = false
this.spinning = true
// Should format date value before submit.
const values = {
...fieldsValue,
......@@ -311,10 +316,11 @@ export default {
this.form.resetFields()
this.userIdListObj = []
this.departmentIdListObj = []
this.$message.success(res.data.data)
this.spinning = false
this.$message.success(res.data.data)
this.queryRecordList()
} else {
this.spinning = false
this.$message.error(res.data.message)
}
})
......
......@@ -9,13 +9,13 @@
style="height: 100%"
@click="routerPush"
>
<a-menu-item key="accountManagement"><div :class="[chooseMenuList === 'accountManagement' ? 'menuIcon menuIcon1_1' : 'menuIcon menuIcon1_2']"></div>账户中心</a-menu-item>
<a-menu-item key="rechargeRecord"><div :class="[chooseMenuList === 'rechargeRecord' ? 'menuIcon menuIcon2_1' : 'menuIcon menuIcon2_2']"></div>充值记录</a-menu-item>
<a-menu-item key="allowancePayment"><div :class="[chooseMenuList === 'allowancePayment' ? 'menuIcon menuIcon3_1' : 'menuIcon menuIcon3_2']"></div>津贴发放</a-menu-item>
<a-menu-item key="recordsOfConsumption"><div :class="[chooseMenuList === 'recordsOfConsumption' ? 'menuIcon menuIcon4_1' : 'menuIcon menuIcon4_2']"></div>消费记录</a-menu-item>
<a-menu-item key="cashierManagement"><div :class="[chooseMenuList === 'cashierManagement' ? 'menuIcon menuIcon5_1' : 'menuIcon menuIcon5_2']"></div>设置管理员</a-menu-item>
<a-menu-item key="systemReconciliation"><div :class="[chooseMenuList === 'systemReconciliation' ? 'menuIcon menuIcon6_1' : 'menuIcon menuIcon6_2']"></div>系统对账</a-menu-item>
<a-menu-item key="paymentManagementSetting"><div :class="[chooseMenuList === 'paymentManagementSetting' ? 'menuIcon menuIcon7_1' : 'menuIcon menuIcon7_2']"></div>设置中心</a-menu-item>
<a-menu-item class="itemFlex" key="accountManagement"><div :class="[chooseMenuList === 'accountManagement' ? 'menuIcon menuIcon1_2' : 'menuIcon menuIcon1_1']"></div>账户中心</a-menu-item>
<a-menu-item class="itemFlex" key="rechargeRecord"><div :class="[chooseMenuList === 'rechargeRecord' ? 'menuIcon menuIcon2_2' : 'menuIcon menuIcon2_1']"></div>充值记录</a-menu-item>
<a-menu-item class="itemFlex" key="allowancePayment"><div :class="[chooseMenuList === 'allowancePayment' ? 'menuIcon menuIcon3_2' : 'menuIcon menuIcon3_1']"></div>津贴发放</a-menu-item>
<a-menu-item class="itemFlex" key="recordsOfConsumption"><div :class="[chooseMenuList === 'recordsOfConsumption' ? 'menuIcon menuIcon4_2' : 'menuIcon menuIcon4_1']"></div>消费记录</a-menu-item>
<a-menu-item class="itemFlex" key="cashierManagement"><div :class="[chooseMenuList === 'cashierManagement' ? 'menuIcon menuIcon5_2' : 'menuIcon menuIcon5_1']"></div>设置管理员</a-menu-item>
<a-menu-item class="itemFlex" key="systemReconciliation"><div :class="[chooseMenuList === 'systemReconciliation' ? 'menuIcon menuIcon6_2' : 'menuIcon menuIcon6_1']"></div>系统对账</a-menu-item>
<a-menu-item class="itemFlex" key="paymentManagementSetting"><div :class="[chooseMenuList === 'paymentManagementSetting' ? 'menuIcon menuIcon7_2' : 'menuIcon menuIcon7_1']"></div>设置中心</a-menu-item>
<!-- <a-menu-item key="operationLog">操作日志</a-menu-item> -->
</a-menu>
</a-layout-sider>
......@@ -53,11 +53,15 @@ export default {
</script>
<style lang="less" scoped>
.itemFlex{
display: flex;
align-items: center;
}
.menuIcon{
width: 13px;
height: 13px;
margin-right: 5px;
margin-top: 3px;
margin-top: 1px;
background-size: cover;
display: inline-block;
}
......
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