feat(configuration): 添加区域分组页面
This commit is contained in:
parent
b8229da887
commit
2d0e470a73
|
@ -1,95 +1,131 @@
|
||||||
/*
|
/*
|
||||||
* @Descripttion:
|
* @Descripttion:
|
||||||
* @version:
|
* @version:
|
||||||
* @Author: kBank
|
* @Author: kBank
|
||||||
* @Date: 2022-11-10 09:26:08
|
* @Date: 2022-11-10 09:26:08
|
||||||
*/
|
*/
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
//获取体系配置列表
|
// 获取体系配置列表
|
||||||
export function getvertexList(params) {
|
export function getvertexList(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/vertex/list',
|
url: '/system/manage/vertex/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除体系配置
|
// 删除体系配置
|
||||||
export function deleteVertex(pkId) {
|
export function deleteVertex(pkId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/vertex/' + pkId,
|
url: '/system/manage/vertex/' + pkId,
|
||||||
method: 'delete',
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取单条体系配置
|
// 获取单条体系配置
|
||||||
export function getOnevertexList(params) {
|
export function getOnevertexList(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/vertex/detail',
|
url: '/system/manage/vertex/detail',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//修改单条体系配置
|
// 修改单条体系配置
|
||||||
export function updateVertex(data) {
|
export function updateVertex(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/vertex/update',
|
url: '/system/manage/vertex/update',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//添加单条体系配置
|
// 添加单条体系配置
|
||||||
export function saveVertex(data) {
|
export function saveVertex(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/vertex/save',
|
url: '/system/manage/vertex/save',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//注册页面配置-允许禁止枚举
|
// 注册页面配置-允许禁止枚举
|
||||||
export function getYseNoList(params) {
|
export function getYseNoList(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/pub/enums/yes-no',
|
url: '/system/pub/enums/yes-no',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//注册页面配置列表
|
// 注册页面配置列表
|
||||||
export function getRegisterPageList(params) {
|
export function getRegisterPageList(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/register-page/list',
|
url: '/system/manage/register-page/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//体系下拉
|
// 体系下拉
|
||||||
export function findVertex(params) {
|
export function findVertex(params) {
|
||||||
return request({
|
return request({
|
||||||
url: 'system/manage/vertex/find-vertex',
|
url: 'system/manage/vertex/find-vertex',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//保存注册页面配置
|
// 保存注册页面配置
|
||||||
export function saveRegisterPage(data) {
|
export function saveRegisterPage(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/register-page/save',
|
url: '/system/manage/register-page/save',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//刷新体系
|
// 刷新体系
|
||||||
export function flushAll(params) {
|
export function flushAll(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/manage/vertex/flush-all',
|
url: '/system/manage/vertex/flush-all',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取区域体系分组
|
||||||
|
export function getGroupConfigurationList(params) {
|
||||||
|
return request({
|
||||||
|
url: '/system/manage/bd-region-vertex/list',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加区域体系分组
|
||||||
|
export function addGroupConfiguration(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/manage/bd-region-vertex/add',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 更新区域体系分组
|
||||||
|
export function updateGroupConfiguration(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/manage/bd-region-vertex/update',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除区域体系分组
|
||||||
|
export function deleteGroupConfiguration(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/manage/bd-region-vertex/delete',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -1665,11 +1665,17 @@ export const constantRoutes = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'systemconfiguration',
|
path: 'systemconfiguration',
|
||||||
name: 'Systemconfiguration',
|
name: 'SystemconfigurationMenu',
|
||||||
meta: { title: '体系配置' },
|
meta: { title: '体系配置' },
|
||||||
component: ParentView,
|
component: ParentView,
|
||||||
redirect: 'systemconfiguration/index',
|
redirect: 'systemconfiguration/index',
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: 'groupConfiguration',
|
||||||
|
name: 'GroupConfigurationList',
|
||||||
|
component: () => import('@/views/configManage/systemconfiguration/groupConfiguration'),
|
||||||
|
meta: { title: '区域体系分组' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'txpz',
|
path: 'txpz',
|
||||||
name: 'Systemconfiguration',
|
name: 'Systemconfiguration',
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item :label="'会员编号'" prop="memberCode">
|
<el-form-item :label="'会员编号'" prop="memberCode">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="queryParams.memberCode"
|
v-model="queryParams.memberCode"
|
||||||
|
clearable
|
||||||
:placeholder="'请输入'"
|
:placeholder="'请输入'"
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
|
@ -20,36 +20,36 @@
|
||||||
clearable
|
clearable
|
||||||
placeholder=""
|
placeholder=""
|
||||||
>
|
>
|
||||||
<el-option label="是" value="0"></el-option>
|
<el-option label="是" value="0" />
|
||||||
<el-option label="否" value="1"></el-option>
|
<el-option label="否" value="1" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="签呈来源">
|
<el-form-item label="签呈来源">
|
||||||
<el-select
|
<el-select
|
||||||
|
v-model="queryParams.source"
|
||||||
clearable
|
clearable
|
||||||
:placeholder="'请选择'"
|
:placeholder="'请选择'"
|
||||||
v-model="queryParams.source"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in sourceList"
|
v-for="item in sourceList"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
></el-option>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item :label="$t('收益区域')" prop="accountStatus">
|
<el-form-item :label="$t('收益区域')" prop="accountStatus">
|
||||||
<el-cascader
|
<el-cascader
|
||||||
clearable
|
|
||||||
@change="flChange"
|
|
||||||
v-model="address"
|
v-model="address"
|
||||||
|
clearable
|
||||||
:options="areaData"
|
:options="areaData"
|
||||||
:placeholder="'请选择省市区'"
|
:placeholder="'请选择省市区'"
|
||||||
:props="regionParams"
|
:props="regionParams"
|
||||||
|
@change="flChange"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -91,18 +91,15 @@
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@change="changeTime2"
|
@change="changeTime2"
|
||||||
>
|
/>
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<div class="searchbox">
|
<div class="searchbox">
|
||||||
<el-button class="my_search" @click="research()">
|
<el-button class="my_search" @click="research()">
|
||||||
{{ '搜索' }}</el-button
|
{{ '搜索' }}</el-button>
|
||||||
>
|
|
||||||
<el-button class="my_reset" @click="reChongzhi">
|
<el-button class="my_reset" @click="reChongzhi">
|
||||||
{{ '重置' }}</el-button
|
{{ '重置' }}</el-button>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -112,27 +109,25 @@
|
||||||
<div class="maintop">
|
<div class="maintop">
|
||||||
<div class="mainbtn">
|
<div class="mainbtn">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-hasButtons="['memberRetailRegionAdd']"
|
||||||
size="small"
|
size="small"
|
||||||
style="background-color: #48b2fd"
|
style="background-color: #48b2fd"
|
||||||
class="thebtn1"
|
class="thebtn1"
|
||||||
v-hasButtons="['memberRetailRegionAdd']"
|
|
||||||
@click="addRules"
|
@click="addRules"
|
||||||
>{{ '添加' }}</el-button
|
>{{ '添加' }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
|
||||||
v-hasButtons="['memberRetailRegionExport']"
|
v-hasButtons="['memberRetailRegionExport']"
|
||||||
|
size="small"
|
||||||
class="thebtn2"
|
class="thebtn2"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
>
|
>
|
||||||
{{ '导出' }}</el-button
|
{{ '导出' }}</el-button>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
|
:data="tableData"
|
||||||
height="730px"
|
height="730px"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||||||
|
@ -200,21 +195,21 @@
|
||||||
<el-table-column align="center" :label="'操作'" width="150">
|
<el-table-column align="center" :label="'操作'" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-has-buttons="['memberRetailRegionUpdate']"
|
||||||
class="colors"
|
class="colors"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
style="color: #ffad41"
|
style="color: #ffad41"
|
||||||
v-has-buttons="['memberRetailRegionUpdate']"
|
|
||||||
@click.native.prevent="updateShow(scope.row)"
|
@click.native.prevent="updateShow(scope.row)"
|
||||||
>
|
>
|
||||||
{{ $t("修改") }}
|
{{ $t("修改") }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-has-buttons="['memberRetailRegionDel']"
|
||||||
class="colors"
|
class="colors"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
style="color: #c73030"
|
style="color: #c73030"
|
||||||
v-has-buttons="['memberRetailRegionDel']"
|
|
||||||
@click.native.prevent="delRole(scope.row)"
|
@click.native.prevent="delRole(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '删除' }}
|
{{ '删除' }}
|
||||||
|
@ -232,36 +227,35 @@
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:before-close="handleClose"
|
:before-close="handleClose"
|
||||||
>
|
>
|
||||||
<el-form ref="forms" :rules="rules" :model="table" label-width="100px">
|
<el-form ref="forms" :rules="rules" :model="table" label-width="120px">
|
||||||
<el-form-item :label="$t('会员编号')" prop="memberCode">
|
<el-form-item :label="$t('会员编号')" prop="memberCode">
|
||||||
<el-input
|
<el-input
|
||||||
|
v-model="table.memberCode"
|
||||||
style="width: 460px"
|
style="width: 460px"
|
||||||
clearable
|
clearable
|
||||||
:disabled="types == 2 ? true : false"
|
:disabled="types == 2 ? true : false"
|
||||||
v-model="table.memberCode"
|
|
||||||
@input="getmemberinfo"
|
|
||||||
:placeholder="'请输入'"
|
:placeholder="'请输入'"
|
||||||
></el-input>
|
@input="getmemberinfo"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('收益区域')" prop="addressd">
|
<el-form-item :label="$t('收益区域')" prop="addressd">
|
||||||
<el-cascader
|
<el-cascader
|
||||||
style="width: 460px"
|
|
||||||
@change="flChange1"
|
|
||||||
v-model="table.addressd"
|
v-model="table.addressd"
|
||||||
|
style="width: 460px"
|
||||||
:options="areaData"
|
:options="areaData"
|
||||||
:placeholder="'请选择省市区'"
|
:placeholder="'请选择省市区'"
|
||||||
:props="regionParams"
|
:props="regionParams"
|
||||||
|
@change="flChange1"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('生效结束时间')" prop="addressd">
|
<el-form-item :label="$t('生效结束时间')" prop="effectiveEndDate">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="table.effectiveEndDate"
|
v-model="table.effectiveEndDate"
|
||||||
:picker-options="pickerOptions"
|
:picker-options="pickerOptions"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
@change="changeTime3"
|
@change="changeTime3"
|
||||||
>
|
/>
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div style="padding-top: 30px; display: flex; justify-content: center">
|
<div style="padding-top: 30px; display: flex; justify-content: center">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -270,8 +264,7 @@
|
||||||
class="button-style"
|
class="button-style"
|
||||||
@click="handleClose"
|
@click="handleClose"
|
||||||
>
|
>
|
||||||
{{ '取消' }}</el-button
|
{{ '取消' }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-preventReClick="3000"
|
v-preventReClick="3000"
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -296,20 +289,20 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import { getbdmenuList, getPubenumsList } from "@/api/system";
|
import { getbdmenuList, getPubenumsList } from '@/api/system'
|
||||||
import { getgradeRanglist, getAwardsListChiose } from "@/api/level";
|
import { getgradeRanglist, getAwardsListChiose } from '@/api/level'
|
||||||
import * as con from "@/api/configManage.js";
|
import * as con from '@/api/configManage.js'
|
||||||
import * as api from "@/api/manage.js";
|
import * as api from '@/api/manage.js'
|
||||||
import { Message } from "element-ui";
|
import { Message } from 'element-ui'
|
||||||
import { deleteAgreement } from "@/api/configManage";
|
import { deleteAgreement } from '@/api/configManage'
|
||||||
import ImageUpload from "@/components/ImageUpload";
|
import ImageUpload from '@/components/ImageUpload'
|
||||||
import { areaList } from "@/api/site";
|
import { areaList } from '@/api/site'
|
||||||
export default {
|
export default {
|
||||||
name: "Qxpz",
|
name: 'Qxpz',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar,
|
||||||
ImageUpload,
|
ImageUpload
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -318,253 +311,259 @@ export default {
|
||||||
effectiveTime: [],
|
effectiveTime: [],
|
||||||
sourceList: [],
|
sourceList: [],
|
||||||
regionParams: {
|
regionParams: {
|
||||||
label: "name",
|
label: 'name',
|
||||||
value: "id",
|
value: 'id',
|
||||||
children: "children",
|
children: 'children',
|
||||||
expandTrigger: "hover",
|
expandTrigger: 'hover'
|
||||||
},
|
},
|
||||||
title: '添加',
|
title: '添加',
|
||||||
forms: "",
|
forms: '',
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
disabledDate(time) {
|
disabledDate(time) {
|
||||||
const now = new Date();
|
const now = new Date()
|
||||||
now.setHours(0, 0, 0, 0); // Reset to start of today
|
now.setHours(0, 0, 0, 0) // Reset to start of today
|
||||||
return time.getTime() < now.getTime(); // Disable only dates before today
|
return time.getTime() < now.getTime() // Disable only dates before today
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
memberCode: [
|
memberCode: [
|
||||||
{ required: true, message: '请选择发布位置', trigger: "blur" },
|
{ required: true, message: '请输入会员编号', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
|
addressd: [
|
||||||
|
{ required: true, message: '请选择收益区域', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
effectiveEndDate: [
|
||||||
|
{ required: true, message: '请选择生效结束时间', trigger: 'blur' }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
memberCode: "",
|
memberCode: '',
|
||||||
pkMember: "",
|
pkMember: '',
|
||||||
addressd: ["", "", ""],
|
addressd: ['', '', ''],
|
||||||
effectiveEndDate: "",
|
effectiveEndDate: ''
|
||||||
},
|
},
|
||||||
ruleShow: false,
|
ruleShow: false,
|
||||||
moren: "memberRetailRegion",
|
moren: 'memberRetailRegion',
|
||||||
topList: [
|
topList: [
|
||||||
{
|
{
|
||||||
name: this.$t("收益区域配置"),
|
name: this.$t('收益区域配置'),
|
||||||
path: "memberRetailRegion",
|
path: 'memberRetailRegion'
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
defaultParams: {
|
defaultParams: {
|
||||||
label: "label",
|
label: 'label',
|
||||||
value: "value",
|
value: 'value',
|
||||||
children: "enumList",
|
children: 'enumList'
|
||||||
},
|
},
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
effective: "0",
|
effective: '0'
|
||||||
},
|
},
|
||||||
gradeRangList: [],
|
gradeRangList: [],
|
||||||
awardsList: [],
|
awardsList: [],
|
||||||
statusList: [
|
statusList: [
|
||||||
{ name: '立即发送', id: "1" },
|
{ name: '立即发送', id: '1' },
|
||||||
{ name: '定时发送', id: "2" },
|
{ name: '定时发送', id: '2' }
|
||||||
],
|
],
|
||||||
statusList1: [
|
statusList1: [
|
||||||
{ name: '未发送', id: "0" },
|
{ name: '未发送', id: '0' },
|
||||||
{ name: '已发送', id: "1" },
|
{ name: '已发送', id: '1' }
|
||||||
],
|
],
|
||||||
menuOptions: [],
|
menuOptions: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
types: "",
|
types: '',
|
||||||
formId: "",
|
formId: '',
|
||||||
getPostionList: [],
|
getPostionList: [],
|
||||||
address: "",
|
address: '',
|
||||||
areaData: [],
|
areaData: [],
|
||||||
pkIds: "",
|
pkIds: ''
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.research();
|
this.research()
|
||||||
this.getsignSource();
|
this.getsignSource()
|
||||||
this.getAllArea();
|
this.getAllArea()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.$confirm('是否确认导出所有数据项?', '警告', {
|
this.$confirm('是否确认导出所有数据项?', '警告', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
}).then((_) => {
|
}).then((_) => {
|
||||||
this.download(
|
this.download(
|
||||||
"/member/manage/cu-member-retail-region/export",
|
'/member/manage/cu-member-retail-region/export',
|
||||||
{ ...this.queryParams },
|
{ ...this.queryParams },
|
||||||
`${this.$t("会员收益区域配置")}}${new Date().getTime()}.xlsx`
|
`${this.$t('会员收益区域配置')}}${new Date().getTime()}.xlsx`
|
||||||
);
|
)
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getmemberinfo(member) {
|
getmemberinfo(member) {
|
||||||
con.getQueryMemberInfo({ memberCode: member }).then((res) => {
|
con.getQueryMemberInfo({ memberCode: member }).then((res) => {
|
||||||
this.table.pkMember = res.data.pkId;
|
this.table.pkMember = res.data.pkId
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
getAllArea() {
|
getAllArea() {
|
||||||
areaList().then((res) => {
|
areaList().then((res) => {
|
||||||
this.areaData = res.data;
|
this.areaData = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
flChange(value) {
|
flChange(value) {
|
||||||
this.queryParams.county = "";
|
this.queryParams.county = ''
|
||||||
this.queryParams.province = "";
|
this.queryParams.province = ''
|
||||||
this.queryParams.city = "";
|
this.queryParams.city = ''
|
||||||
|
|
||||||
this.queryParams.province = value[0];
|
this.queryParams.province = value[0]
|
||||||
this.queryParams.city = value[1];
|
this.queryParams.city = value[1]
|
||||||
this.queryParams.county = value[2];
|
this.queryParams.county = value[2]
|
||||||
},
|
},
|
||||||
flChange1(value) {
|
flChange1(value) {
|
||||||
this.table.county = "";
|
this.table.county = ''
|
||||||
this.table.province = "";
|
this.table.province = ''
|
||||||
this.table.city = "";
|
this.table.city = ''
|
||||||
this.table.province = value[0];
|
this.table.province = value[0]
|
||||||
this.table.city = value[1];
|
this.table.city = value[1]
|
||||||
this.table.county = value[2];
|
this.table.county = value[2]
|
||||||
},
|
},
|
||||||
getsignSource() {
|
getsignSource() {
|
||||||
api.noticeWebsiteType().then((res) => {
|
api.noticeWebsiteType().then((res) => {
|
||||||
this.sourceList = res.data;
|
this.sourceList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
addRules() {
|
addRules() {
|
||||||
this.types = 1;
|
this.types = 1
|
||||||
this.ruleShow = true;
|
this.ruleShow = true
|
||||||
this.title = '添加';
|
this.title = '添加'
|
||||||
},
|
},
|
||||||
submitBtn() {
|
submitBtn() {
|
||||||
// 添加角色
|
// 添加角色
|
||||||
this.ruleSubmit();
|
this.ruleSubmit()
|
||||||
},
|
},
|
||||||
updateShow(item) {
|
updateShow(item) {
|
||||||
this.types = 2;
|
this.types = 2
|
||||||
this.title = '修改';
|
this.title = '修改'
|
||||||
this.table = item;
|
this.table = item
|
||||||
let arr = [item.province + "", item.city + "", (item.county || "") + ""];
|
let arr = [item.province + '', item.city + '', (item.county || '') + '']
|
||||||
arr = arr.filter((item) => item != "");
|
arr = arr.filter((item) => item != '')
|
||||||
this.$set(this.table, "addressd", arr);
|
this.$set(this.table, 'addressd', arr)
|
||||||
this.$forceUpdate();
|
this.$forceUpdate()
|
||||||
console.log(this.table.addressd, "table");
|
console.log(this.table.addressd, 'table')
|
||||||
this.pkIds = item.pkId;
|
this.pkIds = item.pkId
|
||||||
this.ruleShow = true;
|
this.ruleShow = true
|
||||||
},
|
},
|
||||||
delRole(item) {
|
delRole(item) {
|
||||||
this.$confirm(this.$t("确认要删除该配置吗?"), '提示', {
|
this.$confirm(this.$t('确认要删除该配置吗?'), '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
con.delRetailRegion(item.pkId).then((res) => {
|
con.delRetailRegion(item.pkId).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
Message({
|
Message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
this.research();
|
this.research()
|
||||||
} else {
|
} else {
|
||||||
Message({
|
Message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "error",
|
type: 'error'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
ruleSubmit() {
|
ruleSubmit() {
|
||||||
const datas = {};
|
const datas = {}
|
||||||
const that = this;
|
const that = this
|
||||||
this.$refs["forms"].validate((valid) => {
|
this.$refs['forms'].validate((valid) => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
return false;
|
return false
|
||||||
} else {
|
} else {
|
||||||
if (this.types === 1) {
|
if (this.types === 1) {
|
||||||
datas.pkMember = this.table.pkMember;
|
datas.pkMember = this.table.pkMember
|
||||||
datas.province = this.table.addressd[0];
|
datas.province = this.table.addressd[0]
|
||||||
datas.city = this.table.addressd[1];
|
datas.city = this.table.addressd[1]
|
||||||
datas.county = this.table.addressd[2];
|
datas.county = this.table.addressd[2]
|
||||||
datas.effectiveEndDate = this.table.effectiveEndDate;
|
datas.effectiveEndDate = this.table.effectiveEndDate
|
||||||
con.retailRegionAdd(datas).then((res) => {
|
con.retailRegionAdd(datas).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
Message({
|
Message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
that.ruleShow = false;
|
that.ruleShow = false
|
||||||
that.table = {
|
that.table = {
|
||||||
pkMember: "",
|
pkMember: '',
|
||||||
addressd: ["", "", ""],
|
addressd: ['', '', '']
|
||||||
};
|
}
|
||||||
that.research();
|
that.research()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
if (this.types === 2) {
|
if (this.types === 2) {
|
||||||
datas.pkMember = this.table.pkMember;
|
datas.pkMember = this.table.pkMember
|
||||||
datas.pkId = this.pkIds;
|
datas.pkId = this.pkIds
|
||||||
datas.province = this.table.addressd[0];
|
datas.province = this.table.addressd[0]
|
||||||
datas.city = this.table.addressd[1];
|
datas.city = this.table.addressd[1]
|
||||||
datas.county = this.table.addressd[2];
|
datas.county = this.table.addressd[2]
|
||||||
datas.effectiveEndDate = this.table.effectiveEndDate;
|
datas.effectiveEndDate = this.table.effectiveEndDate
|
||||||
con.retailRegionUpdate(datas).then((res) => {
|
con.retailRegionUpdate(datas).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
Message({
|
Message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
that.ruleShow = false;
|
that.ruleShow = false
|
||||||
that.table = {
|
that.table = {
|
||||||
pkMember: "",
|
pkMember: '',
|
||||||
addressd: ["", "", ""],
|
addressd: ['', '', '']
|
||||||
};
|
}
|
||||||
that.research();
|
that.research()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
statusChange(value) {
|
statusChange(value) {
|
||||||
if (this.table.status.length > 1) {
|
if (this.table.status.length > 1) {
|
||||||
this.table.status.splice(0, 1);
|
this.table.status.splice(0, 1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.ruleShow = false;
|
this.ruleShow = false
|
||||||
this.table = {
|
this.table = {
|
||||||
pkMember: "",
|
pkMember: '',
|
||||||
addressd: ["", "", ""],
|
addressd: ['', '', '']
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
changeBox(row) {
|
changeBox(row) {
|
||||||
console.error(row);
|
console.error(row)
|
||||||
},
|
},
|
||||||
addFrom() {},
|
addFrom() {},
|
||||||
addRule() {},
|
addRule() {},
|
||||||
changeTime(value) {
|
changeTime(value) {
|
||||||
this.queryParams.startDate = value[0] ? value[0] : "";
|
this.queryParams.startDate = value[0] ? value[0] : ''
|
||||||
this.queryParams.endDate = value[1] ? value[1] : "";
|
this.queryParams.endDate = value[1] ? value[1] : ''
|
||||||
},
|
},
|
||||||
changeTime1(value) {
|
changeTime1(value) {
|
||||||
this.queryParams.startDateModify = value[0] ? value[0] : "";
|
this.queryParams.startDateModify = value[0] ? value[0] : ''
|
||||||
this.queryParams.endDateModify = value[1] ? value[1] : "";
|
this.queryParams.endDateModify = value[1] ? value[1] : ''
|
||||||
},
|
},
|
||||||
changeTime2(value) {
|
changeTime2(value) {
|
||||||
this.queryParams.effectiveStaDateStr = value[0] ? value[0] : "";
|
this.queryParams.effectiveStaDateStr = value[0] ? value[0] : ''
|
||||||
this.queryParams.effectiveEndDateStr = value[1] ? value[1] : "";
|
this.queryParams.effectiveEndDateStr = value[1] ? value[1] : ''
|
||||||
},
|
},
|
||||||
changeTime3(value) {
|
changeTime3(value) {
|
||||||
this.table.effectiveEndDate = value;
|
this.table.effectiveEndDate = value
|
||||||
},
|
},
|
||||||
disabledDates(time) {
|
disabledDates(time) {
|
||||||
const now = new Date(); // 当前时间
|
const now = new Date() // 当前时间
|
||||||
const currentDateTime = new Date(
|
const currentDateTime = new Date(
|
||||||
now.getFullYear(),
|
now.getFullYear(),
|
||||||
now.getMonth(),
|
now.getMonth(),
|
||||||
|
@ -572,30 +571,30 @@ export default {
|
||||||
now.getHours(),
|
now.getHours(),
|
||||||
now.getMinutes(),
|
now.getMinutes(),
|
||||||
now.getSeconds()
|
now.getSeconds()
|
||||||
);
|
)
|
||||||
return time.getTime() < currentDateTime.getTime(); // 禁止当前时间之前的日期和时间
|
return time.getTime() < currentDateTime.getTime() // 禁止当前时间之前的日期和时间
|
||||||
},
|
},
|
||||||
handleChangeMunu(value) {
|
handleChangeMunu(value) {
|
||||||
console.log("🌈", value[value.length - 1]);
|
console.log('🌈', value[value.length - 1])
|
||||||
this.queryParams.menuId = value[value.length - 1];
|
this.queryParams.menuId = value[value.length - 1]
|
||||||
},
|
},
|
||||||
// 菜单下拉选
|
// 菜单下拉选
|
||||||
getPubenumsList() {
|
getPubenumsList() {
|
||||||
getPubenumsList().then((res) => {
|
getPubenumsList().then((res) => {
|
||||||
this.menuOptions = res.data;
|
this.menuOptions = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 等级范围选择
|
// 等级范围选择
|
||||||
getgradeRanglist() {
|
getgradeRanglist() {
|
||||||
getgradeRanglist().then((res) => {
|
getgradeRanglist().then((res) => {
|
||||||
this.gradeRangList = res.data;
|
this.gradeRangList = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 奖衔下拉列表
|
// 奖衔下拉列表
|
||||||
getAwardsListChiose() {
|
getAwardsListChiose() {
|
||||||
getAwardsListChiose().then((res) => {
|
getAwardsListChiose().then((res) => {
|
||||||
this.awardsList = res.rows;
|
this.awardsList = res.rows
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
research() {
|
research() {
|
||||||
// // 日期传入改为起止两个字段
|
// // 日期传入改为起止两个字段
|
||||||
|
@ -603,27 +602,27 @@ export default {
|
||||||
// this.queryParams.creationTimeStart = this.queryParams.creationTime[0];
|
// this.queryParams.creationTimeStart = this.queryParams.creationTime[0];
|
||||||
// this.queryParams.creationTimeEnd = this.queryParams.creationTime[1];
|
// this.queryParams.creationTimeEnd = this.queryParams.creationTime[1];
|
||||||
// }
|
// }
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
con.getRetailRegionList(this.queryParams).then((res) => {
|
con.getRetailRegionList(this.queryParams).then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
this.total = res.total;
|
this.total = res.total
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
reChongzhi() {
|
reChongzhi() {
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50
|
||||||
};
|
}
|
||||||
this.modifiedTime = [];
|
this.modifiedTime = []
|
||||||
this.modifiedTime1 = [];
|
this.modifiedTime1 = []
|
||||||
this.effectiveTime = [];
|
this.effectiveTime = []
|
||||||
this.address = [];
|
this.address = []
|
||||||
this.research();
|
this.research()
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val
|
||||||
},
|
},
|
||||||
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||||
// if (columnIndex === 0) {
|
// if (columnIndex === 0) {
|
||||||
|
@ -642,14 +641,14 @@ export default {
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
if (rowIndex % 2 == 1) {
|
if (rowIndex % 2 == 1) {
|
||||||
return "warning-row";
|
return 'warning-row'
|
||||||
} else if (rowIndex % 2 == 0) {
|
} else if (rowIndex % 2 == 0) {
|
||||||
return "success-row";
|
return 'success-row'
|
||||||
}
|
}
|
||||||
return "";
|
return ''
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
::v-deep .el-upload--picture-card {
|
::v-deep .el-upload--picture-card {
|
||||||
|
|
|
@ -0,0 +1,303 @@
|
||||||
|
<template>
|
||||||
|
<div class="page">
|
||||||
|
<topBar
|
||||||
|
v-if="topList.length > 0"
|
||||||
|
:top-list="topList"
|
||||||
|
:moren="moren"
|
||||||
|
/>
|
||||||
|
<div class="thetopbox">
|
||||||
|
<el-form label-width="auto">
|
||||||
|
<el-row :gutter="10">
|
||||||
|
<el-col :span="4">
|
||||||
|
<el-form-item label="分组名称" prop="name">
|
||||||
|
<el-input v-model="queryParams.name" clearable />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="4">
|
||||||
|
<div class="searchbox">
|
||||||
|
<el-button class="delBtn" @click="handleSearch()">
|
||||||
|
{{ '搜索' }}</el-button>
|
||||||
|
<el-button @click="reset"> {{ '重置' }}</el-button>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<div class="main">
|
||||||
|
<div class="maintop">
|
||||||
|
<div class="mainbtn">
|
||||||
|
<el-button
|
||||||
|
size="small"
|
||||||
|
class="thebtn1"
|
||||||
|
@click="handleAddOrEdit(true)"
|
||||||
|
>添加</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="maintable">
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
height="740px"
|
||||||
|
style="width: 100%"
|
||||||
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||||||
|
:row-class-name="tableRowClassName"
|
||||||
|
:data="tableData"
|
||||||
|
>
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" />
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
prop="name"
|
||||||
|
label="分组名称"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
prop="creationTime"
|
||||||
|
:label="'创建日期'"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
prop="modifyTime"
|
||||||
|
label="修改时间"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
prop="time"
|
||||||
|
:label="'操作'"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
class="button-s"
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
style="color: #6962f6"
|
||||||
|
@click.native.prevent="handleAddOrEdit(false, scope.row)"
|
||||||
|
>
|
||||||
|
{{ '修改' }}
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
class="button-s"
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
style="color: #c73030"
|
||||||
|
@click.native.prevent="deleteRow(scope.row)"
|
||||||
|
>
|
||||||
|
{{ '删除' }}
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getGroupConfigurationList"
|
||||||
|
/>
|
||||||
|
<el-dialog
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:visible.sync="updateDialogVisibe"
|
||||||
|
:title="updateTitle"
|
||||||
|
width="500px"
|
||||||
|
@close="handleClose"
|
||||||
|
>
|
||||||
|
<el-form :model="form" label-width="100px">
|
||||||
|
<el-form-item label="分组名称">
|
||||||
|
<el-input v-model="form.name" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div class="footer" style="text-align: center; margin-top: 20px">
|
||||||
|
<el-button @click="updateDialogVisibe = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="handleConfirm">确定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import topBar from '@/components/topBar'
|
||||||
|
import { topList } from './mixins'
|
||||||
|
import { getGroupConfigurationList, addGroupConfiguration, updateGroupConfiguration, deleteGroupConfiguration } from '@/api/systemconfiguration'
|
||||||
|
export default {
|
||||||
|
name: 'Txpz',
|
||||||
|
components: {
|
||||||
|
topBar
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
form: {
|
||||||
|
name: undefined // 分组名称
|
||||||
|
},
|
||||||
|
moren: 'groupConfiguration',
|
||||||
|
topList: topList,
|
||||||
|
tableData: [],
|
||||||
|
loading: false,
|
||||||
|
multipleSelection: [],
|
||||||
|
total: 0,
|
||||||
|
cjsj: '',
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 50,
|
||||||
|
name: ''
|
||||||
|
},
|
||||||
|
updateShow: false,
|
||||||
|
updateDialogVisibe: false, // 添加还是修改 true添加 false修改
|
||||||
|
updateTitle: '',
|
||||||
|
isAdd: false,
|
||||||
|
vertexList: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getGroupConfigurationList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
reset() {
|
||||||
|
this.queryParams.pageNum = 1
|
||||||
|
this.queryParams.name = ''
|
||||||
|
this.getGroupConfigurationList()
|
||||||
|
},
|
||||||
|
handleSearch() {
|
||||||
|
this.queryParams.pageNum = 1
|
||||||
|
this.getGroupConfigurationList()
|
||||||
|
},
|
||||||
|
getGroupConfigurationList() {
|
||||||
|
this.loading = true
|
||||||
|
if (this.cjsj) {
|
||||||
|
this.queryParams.createStartDate = this.cjsj[0]
|
||||||
|
this.queryParams.createEndDate = this.cjsj[1]
|
||||||
|
}
|
||||||
|
getGroupConfigurationList({
|
||||||
|
...this.queryParams,
|
||||||
|
name: this.queryParams.name || undefined
|
||||||
|
}).then((res) => {
|
||||||
|
this.tableData = res.rows
|
||||||
|
this.total = res.total
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
tableRowClassName({ row, rowIndex }) {
|
||||||
|
if (rowIndex % 2 == 1) {
|
||||||
|
return 'warning-row'
|
||||||
|
} else if (rowIndex % 2 == 0) {
|
||||||
|
return 'success-row'
|
||||||
|
}
|
||||||
|
return ''
|
||||||
|
},
|
||||||
|
handleAddOrEdit(isAdd, row) {
|
||||||
|
this.isAdd = isAdd
|
||||||
|
if (isAdd) {
|
||||||
|
this.updateDialogVisibe = true
|
||||||
|
this.updateTitle = '添加'
|
||||||
|
} else {
|
||||||
|
this.updateDialogVisibe = true
|
||||||
|
this.updateTitle = '修改'
|
||||||
|
this.form = JSON.parse(JSON.stringify(row))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleConfirm() {
|
||||||
|
const api = this.isAdd ? addGroupConfiguration : updateGroupConfiguration
|
||||||
|
api(this.form).then((res) => {
|
||||||
|
if (res.code !== 200) return
|
||||||
|
this.updateDialogVisibe = false
|
||||||
|
this.getGroupConfigurationList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deleteRow(row) {
|
||||||
|
this.$confirm('确定删除该分组吗?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
deleteGroupConfiguration(row).then((res) => {
|
||||||
|
if (res.code !== 200) return
|
||||||
|
this.getGroupConfigurationList()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleClose() {
|
||||||
|
this.form.name = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
::v-deep .el-table .warning-row {
|
||||||
|
background: #f9f9f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-table .success-row {
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
::v-deep .el-table thead {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
::v-deep .el-row {
|
||||||
|
// margin-top: 20px;
|
||||||
|
}
|
||||||
|
.page {
|
||||||
|
padding: 20px;
|
||||||
|
background: #f9f9f9;
|
||||||
|
font-size: 14px;
|
||||||
|
.thetopbox {
|
||||||
|
padding: 0 20px 0px 20px !important;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
.searchbox {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.searchtitle {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.searchbtn {
|
||||||
|
background: #08143f;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.main {
|
||||||
|
//margin-top: 20px;
|
||||||
|
background: #f9f9f9;
|
||||||
|
//border-radius: 8px;
|
||||||
|
//box-shadow: 0px 2px 20px 0px rgba(238, 238, 238, 0.5);
|
||||||
|
|
||||||
|
.maintop {
|
||||||
|
display: flex;
|
||||||
|
padding: 0px 0;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.mainbtn {
|
||||||
|
.thebtn1 {
|
||||||
|
background: #3181e5;
|
||||||
|
color: #ffffff;
|
||||||
|
width: 68px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
.thebtn2 {
|
||||||
|
background: #ffad41;
|
||||||
|
color: #ffffff;
|
||||||
|
width: 68px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.maintable {
|
||||||
|
// max-height: 550px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
::v-deep .el-range-editor {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
::v-deep .el-select {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -2,15 +2,15 @@
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<topBar
|
<topBar
|
||||||
v-if="topList.length > 0"
|
v-if="topList.length > 0"
|
||||||
:topList="topList"
|
:top-list="topList"
|
||||||
:moren="moren"
|
:moren="moren"
|
||||||
></topBar>
|
/>
|
||||||
<div class="thetopbox">
|
<div class="thetopbox">
|
||||||
<el-form label-width="auto">
|
<el-form label-width="auto">
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item :label="'体系名称'" prop="vertexName">
|
<el-form-item :label="'体系名称'" prop="vertexName">
|
||||||
<el-input clearable v-model="queryParams.vertexName"></el-input>
|
<el-input v-model="queryParams.vertexName" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="4">
|
<!-- <el-col :span="4">
|
||||||
|
@ -28,15 +28,13 @@
|
||||||
:end-placeholder="'结束日期'"
|
:end-placeholder="'结束日期'"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
:unlink-panels="true"
|
:unlink-panels="true"
|
||||||
>
|
/>
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<div class="searchbox">
|
<div class="searchbox">
|
||||||
<el-button class="delBtn" @click="getvertexList()">
|
<el-button class="delBtn" @click="getvertexList()">
|
||||||
{{ '搜索' }}</el-button
|
{{ '搜索' }}</el-button>
|
||||||
>
|
|
||||||
<el-button @click="reChongzhi"> {{ '重置' }}</el-button>
|
<el-button @click="reChongzhi"> {{ '重置' }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -51,58 +49,58 @@
|
||||||
size="small"
|
size="small"
|
||||||
class="thebtn1"
|
class="thebtn1"
|
||||||
@click="adddate()"
|
@click="adddate()"
|
||||||
>{{ '添加' }}</el-button
|
>{{ '添加' }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-hasButtons="['SystemconfigurationExport']"
|
v-hasButtons="['SystemconfigurationExport']"
|
||||||
size="small"
|
size="small"
|
||||||
class="thebtn2"
|
class="thebtn2"
|
||||||
>
|
>
|
||||||
{{ '导出' }}</el-button
|
{{ '导出' }}</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-hasButtons="['SystemconfigurationUpAll']"
|
v-hasButtons="['SystemconfigurationUpAll']"
|
||||||
size="small"
|
size="small"
|
||||||
class="tjBtn"
|
class="tjBtn"
|
||||||
@click="upData"
|
@click="upData"
|
||||||
>更新全部</el-button
|
>更新全部</el-button>
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="maintable">
|
<div class="maintable">
|
||||||
<el-table
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
height="740px"
|
height="740px"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-loading="loading"
|
|
||||||
:header-cell-style="{ background: '#EEEEEE' }"
|
:header-cell-style="{ background: '#EEEEEE' }"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55"> </el-table-column>
|
<el-table-column type="selection" width="55" />
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="vertexName"
|
prop="vertexName"
|
||||||
:label="'体系名称'"
|
:label="'体系名称'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="memberCode"
|
prop="memberCode"
|
||||||
:label="'会员编号'"
|
:label="'会员编号'"
|
||||||
>
|
/>
|
||||||
</el-table-column>
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
prop="vertexName"
|
||||||
|
label="所属区域"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="creationTime"
|
prop="creationTime"
|
||||||
:label="'创建日期'"
|
:label="'创建日期'"
|
||||||
></el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="sort"
|
prop="sort"
|
||||||
label="序号"
|
label="序号"
|
||||||
></el-table-column>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
align="center"
|
align="center"
|
||||||
prop="time"
|
prop="time"
|
||||||
|
@ -112,28 +110,28 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
class="button-s"
|
class="button-s"
|
||||||
@click.native.prevent="update(scope.row)"
|
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
style="color: #6962f6"
|
style="color: #6962f6"
|
||||||
|
@click.native.prevent="update(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '修改' }}
|
{{ '修改' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="button-s"
|
class="button-s"
|
||||||
@click.native.prevent="deleteRow(scope.row)"
|
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
style="color: #c73030"
|
style="color: #c73030"
|
||||||
|
@click.native.prevent="deleteRow(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '删除' }}
|
{{ '删除' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="button-s"
|
class="button-s"
|
||||||
@click.native.prevent="updateTeam(scope.row)"
|
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
style="color: #48b2fd"
|
style="color: #48b2fd"
|
||||||
|
@click.native.prevent="updateTeam(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '更新体系' }}
|
{{ '更新体系' }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -167,19 +165,19 @@
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'体系名称'" prop="vertexName">
|
<el-form-item :label="'体系名称'" prop="vertexName">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="formd.vertexName"
|
v-model="formd.vertexName"
|
||||||
|
clearable
|
||||||
:placeholder="'请输入体系名称'"
|
:placeholder="'请输入体系名称'"
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'会员编号'" prop="memberCode">
|
<el-form-item :label="'会员编号'" prop="memberCode">
|
||||||
<el-input
|
<el-input
|
||||||
clearable
|
|
||||||
v-model="formd.memberCode"
|
v-model="formd.memberCode"
|
||||||
|
clearable
|
||||||
:placeholder="'请输入会员编号'"
|
:placeholder="'请输入会员编号'"
|
||||||
></el-input>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -187,22 +185,29 @@
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="'上级体系'">
|
<el-form-item :label="'上级体系'">
|
||||||
<el-select
|
<el-select
|
||||||
|
v-model="formd.pkParent"
|
||||||
clearable
|
clearable
|
||||||
:placeholder="'请选择'"
|
:placeholder="'请选择'"
|
||||||
v-model="formd.pkParent"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in vertexList"
|
v-for="item in vertexList"
|
||||||
:key="item.pkId"
|
:key="item.pkId"
|
||||||
:label="item.vertexName"
|
:label="item.vertexName"
|
||||||
:value="item.pkId"
|
:value="item.pkId"
|
||||||
></el-option>
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="区域分组">
|
||||||
|
<el-select v-model="formd.regionVertexPkId" clearable>
|
||||||
|
<el-option v-for="item in groupList" :key="item.pkId" :label="item.name" :value="item.pkId" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="序号">
|
<el-form-item label="序号">
|
||||||
<el-input clearable v-model="formd.sort"></el-input>
|
<el-input v-model="formd.sort" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -220,7 +225,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from "@/components/topBar";
|
import topBar from '@/components/topBar'
|
||||||
import {
|
import {
|
||||||
getvertexList,
|
getvertexList,
|
||||||
deleteVertex,
|
deleteVertex,
|
||||||
|
@ -229,131 +234,137 @@ import {
|
||||||
saveVertex,
|
saveVertex,
|
||||||
findVertex,
|
findVertex,
|
||||||
flushAll,
|
flushAll,
|
||||||
} from "@/api/systemconfiguration";
|
getGroupConfigurationList
|
||||||
import { updateVertexs } from "@/api/settle";
|
} from '@/api/systemconfiguration'
|
||||||
|
import { updateVertexs } from '@/api/settle'
|
||||||
|
import { topList } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: "Txpz",
|
name: 'Txpz',
|
||||||
components: {
|
components: {
|
||||||
topBar,
|
topBar
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formd: {
|
formd: {
|
||||||
vertexName: "", //体系名称
|
vertexName: '', // 体系名称
|
||||||
// memberCode: "", //体系编号
|
// memberCode: "", //体系编号
|
||||||
memberCode: "", //体系编号
|
memberCode: '', // 体系编号
|
||||||
|
regionVertexPkId: '' // 区域分组
|
||||||
},
|
},
|
||||||
moren: "txpz",
|
moren: 'txpz',
|
||||||
topList: [
|
topList: topList,
|
||||||
{
|
|
||||||
name: '体系配置',
|
|
||||||
path: "txpz",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
tableData: [],
|
tableData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
cjsj: "",
|
cjsj: '',
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
vertexName: "", //体系名称
|
vertexName: '', // 体系名称
|
||||||
memberCode: "", //体系编号
|
memberCode: '', // 体系编号
|
||||||
createStartDate: "", //创建时间起始
|
createStartDate: '', // 创建时间起始
|
||||||
createEndDate: "", //创建时间结束
|
createEndDate: '' // 创建时间结束
|
||||||
},
|
},
|
||||||
updateShow: false,
|
updateShow: false,
|
||||||
addOrEdit: "", //添加还是修改 true添加 false修改
|
addOrEdit: '', // 添加还是修改 true添加 false修改
|
||||||
updateTitle: "",
|
updateTitle: '',
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
vertexName: [
|
vertexName: [
|
||||||
{ required: true, message: '请输入体系名称', trigger: "blur" },
|
{ required: true, message: '请输入体系名称', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
memberCode: [
|
memberCode: [
|
||||||
{ required: true, message: '请输入会员编号', trigger: "blur" },
|
{ required: true, message: '请输入会员编号', trigger: 'blur' }
|
||||||
],
|
]
|
||||||
memberCode: [
|
|
||||||
{ required: true, message: '请输入会员编号', trigger: "blur" },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
vertexList: [],
|
vertexList: [],
|
||||||
};
|
groupList: []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getvertexList();
|
this.getvertexList()
|
||||||
this.getData();
|
this.getData()
|
||||||
|
this.getGroupList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getData() {
|
getData() {
|
||||||
findVertex().then((res) => {
|
findVertex().then((res) => {
|
||||||
this.vertexList = res.data;
|
this.vertexList = res.data
|
||||||
});
|
})
|
||||||
|
},
|
||||||
|
getGroupList() {
|
||||||
|
getGroupConfigurationList({
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 999
|
||||||
|
}).then((res) => {
|
||||||
|
this.groupList = res.rows
|
||||||
|
console.log(this.vertexList, 'vertexList')
|
||||||
|
})
|
||||||
},
|
},
|
||||||
upData() {
|
upData() {
|
||||||
this.$confirm("是否确认更新该体系?", "", {
|
this.$confirm('是否确认更新该体系?', '', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
text: "Loading",
|
text: 'Loading',
|
||||||
spinner: "el-icon-loading",
|
spinner: 'el-icon-loading',
|
||||||
background: "rgba(0, 0, 0, 0.7)",
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
});
|
})
|
||||||
flushAll().then((res) => {
|
flushAll().then((res) => {
|
||||||
if (res.code == "200") {
|
if (res.code == '200') {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
loading.close();
|
loading.close()
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 更新团队
|
// 更新团队
|
||||||
updateTeam(row) {
|
updateTeam(row) {
|
||||||
this.$confirm("是否确认更新该体系?", "", {
|
this.$confirm('是否确认更新该体系?', '', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
updateVertexs(row.pkId).then((res) => {
|
updateVertexs(row.pkId).then((res) => {
|
||||||
if (res.code == "200") {
|
if (res.code == '200') {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
//保存
|
// 保存
|
||||||
onSubmit(formName) {
|
onSubmit(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let url = "";
|
let url = ''
|
||||||
if (this.addOrEdit == true) {
|
if (this.addOrEdit == true) {
|
||||||
url = saveVertex;
|
url = saveVertex
|
||||||
} else {
|
} else {
|
||||||
url = updateVertex;
|
url = updateVertex
|
||||||
}
|
}
|
||||||
url(this.formd).then((res) => {
|
url(this.formd).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.updateShow = false;
|
this.updateShow = false
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
this.getvertexList();
|
this.getvertexList()
|
||||||
this.formd = {
|
this.formd = {
|
||||||
vertexName: "", //体系名称
|
vertexName: '', // 体系名称
|
||||||
// memberCode: "", //体系编号
|
// memberCode: "", //体系编号
|
||||||
memberCode: "", //会员编号
|
memberCode: '' // 会员编号
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// else {
|
// else {
|
||||||
|
@ -362,103 +373,103 @@ export default {
|
||||||
// type: "warning",
|
// type: "warning",
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
//删除
|
// 删除
|
||||||
deleteRow(row) {
|
deleteRow(row) {
|
||||||
this.$confirm('确认删除?', '提示', {
|
this.$confirm('确认删除?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
deleteVertex(row.pkId).then((res) => {
|
deleteVertex(row.pkId).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "success",
|
type: 'success'
|
||||||
});
|
})
|
||||||
this.getvertexList();
|
this.getvertexList()
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: "warning",
|
type: 'warning'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
//修改
|
// 修改
|
||||||
update(row) {
|
update(row) {
|
||||||
console.log(
|
console.log(
|
||||||
"%c [ row ]-266",
|
'%c [ row ]-266',
|
||||||
"font-size:13px; background:#a7ae35; color:#ebf279;",
|
'font-size:13px; background:#a7ae35; color:#ebf279;',
|
||||||
row
|
row
|
||||||
);
|
)
|
||||||
this.updateTitle = '修改';
|
this.updateTitle = '修改'
|
||||||
this.updateShow = true;
|
this.updateShow = true
|
||||||
this.addOrEdit = false;
|
this.addOrEdit = false
|
||||||
getOnevertexList({ pkId: row.pkId }).then((res) => {
|
getOnevertexList({ pkId: row.pkId }).then((res) => {
|
||||||
this.formd = res.data;
|
this.formd = res.data
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
//添加
|
// 添加
|
||||||
adddate() {
|
adddate() {
|
||||||
this.updateShow = true;
|
this.updateShow = true
|
||||||
this.updateTitle = '添加';
|
this.updateTitle = '添加'
|
||||||
this.addOrEdit = true;
|
this.addOrEdit = true
|
||||||
this.formd = {
|
this.formd = {
|
||||||
vertexName: "", //体系名称
|
vertexName: '', // 体系名称
|
||||||
// memberCode: "", //体系编号
|
// memberCode: "", //体系编号
|
||||||
memberCode: "", //会员编号
|
memberCode: '', // 会员编号
|
||||||
pkParent: "",
|
pkParent: ''
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
//获取体系配置列表
|
// 获取体系配置列表
|
||||||
getvertexList() {
|
getvertexList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
if (this.cjsj) {
|
if (this.cjsj) {
|
||||||
this.queryParams.createStartDate = this.cjsj[0];
|
this.queryParams.createStartDate = this.cjsj[0]
|
||||||
this.queryParams.createEndDate = this.cjsj[1];
|
this.queryParams.createEndDate = this.cjsj[1]
|
||||||
}
|
}
|
||||||
getvertexList(this.queryParams).then((res) => {
|
getvertexList(this.queryParams).then((res) => {
|
||||||
this.tableData = res.rows;
|
this.tableData = res.rows
|
||||||
this.total = res.total;
|
this.total = res.total
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
//重置
|
// 重置
|
||||||
reChongzhi() {
|
reChongzhi() {
|
||||||
this.cjsj = "";
|
this.cjsj = ''
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
vertexName: "", //体系名称
|
vertexName: '', // 体系名称
|
||||||
memberCode: "", //体系编号
|
memberCode: '', // 体系编号
|
||||||
createStartDate: "", //创建时间起始
|
createStartDate: '', // 创建时间起始
|
||||||
createEndDate: "", //创建时间结束
|
createEndDate: '' // 创建时间结束
|
||||||
};
|
}
|
||||||
this.getvertexList();
|
this.getvertexList()
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.updateShow = false;
|
this.updateShow = false
|
||||||
this.$refs["form"].clearValidate();
|
this.$refs['form'].clearValidate()
|
||||||
this.$refs["form"].resetFields();
|
this.$refs['form'].resetFields()
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.multipleSelection = val;
|
this.multipleSelection = val
|
||||||
},
|
},
|
||||||
tableRowClassName({ row, rowIndex }) {
|
tableRowClassName({ row, rowIndex }) {
|
||||||
if (rowIndex % 2 == 1) {
|
if (rowIndex % 2 == 1) {
|
||||||
return "warning-row";
|
return 'warning-row'
|
||||||
} else if (rowIndex % 2 == 0) {
|
} else if (rowIndex % 2 == 0) {
|
||||||
return "success-row";
|
return 'success-row'
|
||||||
}
|
}
|
||||||
return "";
|
return ''
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
export const topList = [
|
||||||
|
{
|
||||||
|
name: '体系配置',
|
||||||
|
path: 'txpz'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '区域体系分组',
|
||||||
|
path: 'groupConfiguration'
|
||||||
|
}
|
||||||
|
]
|
|
@ -44,7 +44,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
'/prod-api': {
|
'/prod-api': {
|
||||||
target: 'http://localhost:8080',
|
target: 'http://192.168.0.104:8080',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^/prod-api': '' }
|
pathRewrite: { '^/prod-api': '' }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue