|
@@ -6,10 +6,7 @@
|
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="3">
|
|
<a-col :span="3">
|
|
|
<a-form-item label="">
|
|
<a-form-item label="">
|
|
|
- <j-input
|
|
|
|
|
- placeholder="名称"
|
|
|
|
|
- v-model="queryParam.name"
|
|
|
|
|
- ></j-input>
|
|
|
|
|
|
|
+ <j-input placeholder="名称" v-model="queryParam.name"></j-input>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
@@ -125,12 +122,12 @@
|
|
|
import { JeecgListMixin } from "@/mixins/JeecgListMixin";
|
|
import { JeecgListMixin } from "@/mixins/JeecgListMixin";
|
|
|
import { filterObj } from "@/utils/util";
|
|
import { filterObj } from "@/utils/util";
|
|
|
import { getAction } from "@/api/manage";
|
|
import { getAction } from "@/api/manage";
|
|
|
-import DepositoryModal from './modules/DepositoryModal.vue';
|
|
|
|
|
|
|
+import DepositoryModal from "./modules/DepositoryModal.vue";
|
|
|
export default {
|
|
export default {
|
|
|
name: "memberList",
|
|
name: "memberList",
|
|
|
mixins: [JeecgListMixin],
|
|
mixins: [JeecgListMixin],
|
|
|
components: {
|
|
components: {
|
|
|
- DepositoryModal
|
|
|
|
|
|
|
+ DepositoryModal,
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -193,110 +190,12 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
- // this.loadData()
|
|
|
|
|
- },
|
|
|
|
|
- methods: {
|
|
|
|
|
- // searchQuery() {
|
|
|
|
|
- // this.loadData(1);
|
|
|
|
|
- // },
|
|
|
|
|
- // loadData(arg) {
|
|
|
|
|
- // //加载数据 若传入参数1则加载第一页的内容
|
|
|
|
|
- // if (arg === 1) {
|
|
|
|
|
- // this.ipagination.current = 1;
|
|
|
|
|
- // }
|
|
|
|
|
- // var params = this.getQueryParams(); //查询条件
|
|
|
|
|
- // getAction(this.url.list, params).then((res) => {
|
|
|
|
|
- // if (res.success) {
|
|
|
|
|
- // this.dataSource1 = res.result.records;
|
|
|
|
|
- // this.ipagination.total = res.result.total;
|
|
|
|
|
- // }
|
|
|
|
|
- // });
|
|
|
|
|
- // },
|
|
|
|
|
- // getQueryParams() {
|
|
|
|
|
- // var param = Object.assign({}, this.queryParam, this.isorter);
|
|
|
|
|
- // param.pageNo = this.ipagination.current;
|
|
|
|
|
- // param.pageSize = this.ipagination.pageSize;
|
|
|
|
|
- // return filterObj(param);
|
|
|
|
|
- // },
|
|
|
|
|
- getAvatarView: function (avatar) {
|
|
|
|
|
- return getFileAccessHttpUrl(avatar);
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- batchFrozen: function (status) {
|
|
|
|
|
- if (this.selectedRowKeys.length <= 0) {
|
|
|
|
|
- this.$message.warning("请选择一条记录!");
|
|
|
|
|
- return false;
|
|
|
|
|
- } else {
|
|
|
|
|
- let ids = "";
|
|
|
|
|
- let that = this;
|
|
|
|
|
- let isAdmin = false;
|
|
|
|
|
- that.selectionRows.forEach(function (row) {
|
|
|
|
|
- if (row.username == "admin") {
|
|
|
|
|
- isAdmin = true;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- if (isAdmin) {
|
|
|
|
|
- that.$message.warning("管理员账号不允许此操作,请重新选择!");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- that.selectedRowKeys.forEach(function (val) {
|
|
|
|
|
- ids += val + ",";
|
|
|
|
|
- });
|
|
|
|
|
- that.$confirm({
|
|
|
|
|
- title: "确认操作",
|
|
|
|
|
- content: "是否" + (status == 1 ? "解冻" : "冻结") + "选中账号?",
|
|
|
|
|
- onOk: function () {
|
|
|
|
|
- frozenBatch({ ids: ids, status: status }).then((res) => {
|
|
|
|
|
- if (res.success) {
|
|
|
|
|
- that.$message.success(res.message);
|
|
|
|
|
- that.loadData();
|
|
|
|
|
- that.onClearSelected();
|
|
|
|
|
- } else {
|
|
|
|
|
- that.$message.warning(res.message);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- handleMenuClick(e) {
|
|
|
|
|
- if (e.key == 1) {
|
|
|
|
|
- this.batchDel();
|
|
|
|
|
- } else if (e.key == 2) {
|
|
|
|
|
- this.batchFrozen(2);
|
|
|
|
|
- } else if (e.key == 3) {
|
|
|
|
|
- this.batchFrozen(1);
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- handleFrozen: function (id, status, username) {
|
|
|
|
|
- let that = this;
|
|
|
|
|
- //TODO 后台校验管理员角色
|
|
|
|
|
- if ("admin" == username) {
|
|
|
|
|
- that.$message.warning("管理员账号不允许此操作!");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- frozenBatch({ ids: id, status: status }).then((res) => {
|
|
|
|
|
- if (res.success) {
|
|
|
|
|
- that.$message.success(res.message);
|
|
|
|
|
- that.loadData();
|
|
|
|
|
- } else {
|
|
|
|
|
- that.$message.warning(res.message);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- handleChangePassword(username) {
|
|
|
|
|
- this.$refs.passwordmodal.show(username);
|
|
|
|
|
- },
|
|
|
|
|
- passwordModalOk() {
|
|
|
|
|
- //TODO 密码修改完成 不需要刷新页面,可以把datasource中的数据更新一下
|
|
|
|
|
- },
|
|
|
|
|
- onSyncFinally({ isToLocal }) {
|
|
|
|
|
- // 同步到本地时刷新下数据
|
|
|
|
|
- if (isToLocal) {
|
|
|
|
|
- this.loadData();
|
|
|
|
|
|
|
+ getAction("/finance/summary/financeSummaryPage", {}).then((res) => {
|
|
|
|
|
+ if (res.success) {
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
|
|
+ methods: {},
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style scoped>
|
|
<style scoped>
|