Commit f1816078 by liang ce

测试

parent ab321d4a
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<a href="javascript:;" @click="toAllowanceDetails(record, text, index)">查看详情</a> <a href="javascript:;" @click="toAllowanceDetails(record, text, index)">查看详情</a>
</span> </span>
</a-table> </a-table>
<a-spin :spinning="spinning" :delay="delayTime">
<a-modal title="发放津贴" v-model="visible" @ok="createSubsidy()"> <a-modal title="发放津贴" v-model="visible" @ok="createSubsidy()">
<a-form :form="form"> <a-form :form="form">
<a-form-item <a-form-item
...@@ -82,6 +83,7 @@ ...@@ -82,6 +83,7 @@
</a-form-item> </a-form-item>
</a-form> </a-form>
</a-modal> </a-modal>
</a-spin>
</div> </div>
</template> </template>
...@@ -94,6 +96,8 @@ export default { ...@@ -94,6 +96,8 @@ export default {
name: 'AllowancePayment', name: 'AllowancePayment',
data () { data () {
return { return {
spinning: false,
delayTime: 100,
formItemLayout: { formItemLayout: {
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
...@@ -274,6 +278,7 @@ export default { ...@@ -274,6 +278,7 @@ export default {
return str.substring(0, str.length - 1) return str.substring(0, str.length - 1)
}, },
createSubsidy () { createSubsidy () {
this.spinning = true;
this.form.validateFields((err, fieldsValue) => { this.form.validateFields((err, fieldsValue) => {
if (err) { if (err) {
return return
...@@ -307,6 +312,7 @@ export default { ...@@ -307,6 +312,7 @@ export default {
this.userIdListObj = [] this.userIdListObj = []
this.departmentIdListObj = [] this.departmentIdListObj = []
this.$message.success('发放成功') this.$message.success('发放成功')
this.spinning = false;
this.queryRecordList() this.queryRecordList()
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
......
...@@ -2,7 +2,7 @@ import Vue from 'vue' ...@@ -2,7 +2,7 @@ import Vue from 'vue'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import store from './store' import store from './store'
import { Menu, Layout, Breadcrumb, Icon, Button, DatePicker, Input, Table, Tag, Divider, Dropdown, Modal, Form, Select, message, Pagination, LocaleProvider } from 'ant-design-vue' import { Menu, Layout, Breadcrumb, Icon, Button, DatePicker, Input, Table, Tag, Divider, Dropdown, Modal, Form, Select, message, Pagination, LocaleProvider, Spin } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css' import 'ant-design-vue/dist/antd.css'
import { config } from './api/config' import { config } from './api/config'
import axios from 'axios' import axios from 'axios'
...@@ -11,6 +11,7 @@ import qs from 'qs' ...@@ -11,6 +11,7 @@ import qs from 'qs'
Vue.use(Layout) Vue.use(Layout)
Vue.use(LocaleProvider) Vue.use(LocaleProvider)
Vue.use(Menu) Vue.use(Menu)
Vue.use(Spin)
Vue.use(Breadcrumb) Vue.use(Breadcrumb)
Vue.use(Icon) Vue.use(Icon)
Vue.use(Button) Vue.use(Button)
......
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