|
@@ -86,6 +86,10 @@
|
|
|
<a-icon type="unlock" @click="batchFrozen('1')"/>
|
|
|
解冻
|
|
|
</a-menu-item>
|
|
|
+ <a-menu-item key="4">
|
|
|
+ <a-icon type="edit" @click="showModal()"/>
|
|
|
+ 变更社保/公积金基数
|
|
|
+ </a-menu-item>
|
|
|
</a-menu>
|
|
|
<a-button style="margin-left: 8px">
|
|
|
批量操作
|
|
@@ -93,7 +97,14 @@
|
|
|
</a-button>
|
|
|
</a-dropdown>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div>
|
|
|
+ <a-modal v-model:visible="userVisible" title="变更社保/公积金基数" @ok="handleOk">
|
|
|
+ <p>社保基数</p>
|
|
|
+ <p><a-input-number style="width: 100%;" placeholder="请输入社保基数" v-model="sheBao" :min="1" ></a-input-number></p>
|
|
|
+ <p>公积金基数</p>
|
|
|
+ <p><a-input-number style="width: 100%;" placeholder="请输入公积金基数" v-model="gongJiJin" :min="1" ></a-input-number></p>
|
|
|
+ </a-modal>
|
|
|
+ </div>
|
|
|
<!-- table区域-begin -->
|
|
|
<div>
|
|
|
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
@@ -205,6 +216,9 @@
|
|
|
description: '这是用户管理页面',
|
|
|
queryParam: {},
|
|
|
recycleBinVisible: false,
|
|
|
+ userVisible: false,
|
|
|
+ sheBao: '',
|
|
|
+ gongJiJin: '',
|
|
|
columns: [
|
|
|
/*{
|
|
|
title: '#',
|
|
@@ -288,6 +302,7 @@
|
|
|
list: "/sys/user/list",
|
|
|
delete: "/sys/user/delete",
|
|
|
deleteBatch: "/sys/user/deleteBatch",
|
|
|
+ updateUserBatch: "/sys/user/updateUserBatch",
|
|
|
exportXlsUrl: "/sys/user/exportXls",
|
|
|
importExcelUrl: "sys/user/importExcel",
|
|
|
},
|
|
@@ -302,7 +317,45 @@
|
|
|
getAvatarView: function (avatar) {
|
|
|
return getFileAccessHttpUrl(avatar,this.url.imgerver,"http")
|
|
|
},
|
|
|
-
|
|
|
+ showModal: function () {
|
|
|
+ this.gongJiJin = '';
|
|
|
+ this.sheBao = '';
|
|
|
+ this.userVisible = true;
|
|
|
+ },
|
|
|
+ handleOk() {
|
|
|
+ let ids = "";
|
|
|
+ let that = this;
|
|
|
+ if(this.gongJiJin == '' || this.sheBao == ''){
|
|
|
+ this.$message.warning('请填写要修改的数据!');
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ if (this.selectedRowKeys.length <= 0) {
|
|
|
+ this.$message.warning('请选择一条记录!');
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ that.selectedRowKeys.forEach(function (val) {
|
|
|
+ ids += val + ",";
|
|
|
+ });
|
|
|
+ putAction(this.url.updateUserBatch, {ids:ids,gongJiJin:this.gongJiJin,sheBao:this.sheBao}).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ that.$message.success("操作成功");
|
|
|
+ that.loadData();
|
|
|
+ } else {
|
|
|
+ that.$message.warning(res.message);
|
|
|
+ that.loadData();
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ that.gongJiJin = '';
|
|
|
+ that.sheBao = '';
|
|
|
+ that.selectedRowKeys = [];
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(this.gongJiJin);
|
|
|
+ console.log(this.sheBao);
|
|
|
+ this.userVisible = false;
|
|
|
+ },
|
|
|
batchFrozen: function (status) {
|
|
|
if (this.selectedRowKeys.length <= 0) {
|
|
|
this.$message.warning('请选择一条记录!');
|
|
@@ -347,6 +400,8 @@
|
|
|
this.batchFrozen(2);
|
|
|
} else if (e.key == 3) {
|
|
|
this.batchFrozen(1);
|
|
|
+ }else if (e.key == 4) {
|
|
|
+ this.showModal();
|
|
|
}
|
|
|
},
|
|
|
handleFrozen: function (id, status, username) {
|