00008691 by renchao@pashanhoo.com

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcjg-web into dev

2 parents 1fb1e5fb 5a08c379
Showing 221 changed files with 3563 additions and 758 deletions
......@@ -17,7 +17,10 @@ import {
putAction
} from './manageApi'
/** 角色管理开始 */
// 获取角色列表 by categoryId
/**
* @description: 获取角色列表 by categoryId
* @author: renchao
*/
export const getRolesById = categoryIdList => {
const conditionGroup = {
conditions: [
......@@ -34,7 +37,12 @@ export const getRolesById = categoryIdList => {
}
/** 角色管理结束 */
/** 授权管理开始 */
// 获取权限列表
/**
* @description: 获取权限列表
* @param {*} productId
* @param {*} subsystemCode
* @author: renchao
*/
export const getAuthorityListAction = (productId, subsystemCode) => {
const conditionGroup = {
conditions: [
......@@ -56,10 +64,11 @@ export const getAuthorityListAction = (productId, subsystemCode) => {
}
/**
* 获取角色的权限 id operationCodes resourceCategoryCode
* id 授权id
* operationCodes 操作符集合
* resourceCategoryCode 菜单默认MENU
* @description: 获取角色的权限 id operationCodes resourceCategoryCode
* @param {*} id 授权id
* @param {*} operationCodes 操作符集合
* @param {*} resourceCategoryCode 菜单默认MENU
* @author: renchao
*/
export const getRoleAuthorityList = (
id,
......@@ -71,15 +80,21 @@ export const getRoleAuthorityList = (
resourceCategoryCode: resourceCategoryCode
})
}
// 角色授权
/**
* @description: 角色授权
* @param {*} id
* @param {*} permissionDtos
* @author: renchao
*/
export const roleAuthority = (id, permissionDtos) => {
return putAction(`${api.rolePermissions}/${id}`, permissionDtos)
}
// 获取父级菜单
// id是系统id
/**
* @description: 获取父级菜单
* @param {*} id 系统id
* @author: renchao
*/
export const getParentMenuListAction = (id) => {
let conditionGroup = {}
if (id && id !== '') {
......
......@@ -39,6 +39,7 @@ export function getAreaReportPage (data) {
/**
* @description: 接入数据上报分页
* @param {*} data
* @author: renchao
*/
export function getReceiveDataReportPage (data) {
......@@ -51,6 +52,7 @@ export function getReceiveDataReportPage (data) {
/**
* @description: 数据上报分页
* @param {*} data
* @author: renchao
*/
export function getDataReportPage (data) {
......@@ -61,6 +63,11 @@ export function getDataReportPage (data) {
})
}
/**
* @description: 获取数据上报数据
* @param {*} data
* @author: renchao
*/
export function getSjsbReportPage (data) {
return request({
url: urlHeader + 'getSjsbReportPage',
......@@ -70,6 +77,7 @@ export function getSjsbReportPage (data) {
}
/**
* @description: 查询数据上报详情tabs选项卡
* @param {*} params
* @author: renchao
*/
export function getTabsDetail (params) {
......@@ -81,6 +89,7 @@ export function getTabsDetail (params) {
}
/**
* @description: 查询数据上报详情
* @param {*} params
* @author: renchao
*/
export function getReportDetail (params) {
......
/*
* @Description :字典api文件
* @Description :字典模块api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:02:25
* @LastEditTime : 2023-05-17 10:25:38
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/*
获取全部字典数据
*/
/**
* @description: 获取全部字典数据
* @author: renchao
*/
export function getAllDict () {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getAllDict',
method: 'post'
})
}
/**
* @description: 获取字典类型列表
* @param {*} data
* @author: renchao
*/
export function getQlxxDictList (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getDictList',
......@@ -21,9 +27,11 @@ export function getQlxxDictList (data) {
data
})
}
/*
获取字典子级列表
*/
/**
* @description: 获取字典子级列表
* @param {*} bsmDict
* @author: renchao
*/
export function getChildDictList (bsmDict) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/getChildDictList',
......@@ -33,9 +41,11 @@ export function getChildDictList (bsmDict) {
}
})
}
/*
编辑字典数据
*/
/**
* @description: 编辑字典数据
* @param {*} data
* @author: renchao
*/
export function editDictNode (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/editDictNode',
......@@ -44,9 +54,10 @@ export function editDictNode (data) {
})
}
/*
刷新字典缓存
*/
/**
* @description: 刷新字典缓存
* @author: renchao
*/
export function refreshDictCache () {
return request({
url: SERVER.SERVERAPI + '/rest/sys/dict/refreshDictCache',
......
/*
* @Description :登记登簿信息api文件
* @Description : 登记簿模块api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:03:11
* @LastEditTime : 2023-05-17 10:21:54
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class djfDjDb {
/*
登记登簿信息
*/
/**
* @description: 登记登簿信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getDjfDjDbById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjDb/detail",
......@@ -19,9 +21,11 @@ class djfDjDb {
},
});
}
/*
修改登记登簿信息
*/
/**
* @description: 修改登记登簿信息
* @param {*} data
* @author: renchao
*/
async updateDjfDjDb (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjDb/edit",
......
/*
* @Description : 登记收件信息api文件
* @Description :登记收件相关api
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:05:47
* @LastEditTime : 2023-05-17 10:28:23
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class djfDjSj {
//登记收件信息
/**
* @description: 登记收件信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getDjfDjSjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/detail",
......@@ -17,7 +21,11 @@ class djfDjSj {
},
});
}
//修改登记收件信息
/**
* @description: 修改登记收件信息
* @param {*} data
* @author: renchao
*/
async updateDjfDjSj (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSj/edit",
......
/*
* @Description :申请人属性信息api文件
* @Description :申请人属性信息相关api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:07:59
* @LastEditTime : 2023-05-17 10:28:49
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class djfDjSqr {
// 申请人属性信息-业务表单
/**
* @description: 申请人属性信息-业务表单
* @param {*} bsmSjsb
* @author: renchao
*/
async getDjfDjSqrById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/detail",
......@@ -18,11 +22,10 @@ class djfDjSqr {
});
}
/**
* @description: 业务-修改数据
* @param {}data
* @author: miaofang
* @description: 申请人属性信息-业务-修改
* @param {*} data
* @author: renchao
*/
// 申请人属性信息-业务-修改
async updateDjfDjSqr (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSqr/edit",
......
/*
* @Description :登记缮证信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:08:21
* @LastEditTime : 2023-05-17 10:30:48
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class djfDjSz {
//登记缮证信息
/**
* @description: 登记缮证信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getDjfDjSzById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/detail",
......@@ -17,7 +21,11 @@ class djfDjSz {
},
});
}
//修改登记缮证信息
/**
* @description: 修改登记缮证信息
* @param {*} data
* @author: renchao
*/
async updateDjfDjSz (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjfDjSz/edit",
......
/*
* @Description :登记受理申请信息
* @Description :登记受理申请信息相关api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:09:14
* @LastEditTime : 2023-05-17 10:31:20
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class djtDjSlsq {
// 登记受理申请信息 -- 业务表单
/**
* @description: 登记受理申请信息 -- 业务表单
* @param {*} bsmSjsb
* @author: renchao
*/
async getDjtDjSlsqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/detail",
......@@ -17,7 +21,11 @@ class djtDjSlsq {
},
});
}
// 登记受理申请信息 -- 业务修改
/**
* @description: 登记受理申请信息 -- 业务修改
* @param {*} data
* @author: renchao
*/
async updateDjtDjSlsq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/edit",
......@@ -25,7 +33,11 @@ class djtDjSlsq {
data,
});
}
//修改登记受理申请信息
/**
* @description: 修改登记受理申请信息
* @param {*} data
* @author: renchao
*/
async updateDjtDjSlsq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/DjtDjSlsq/updateDjtDjSlsq",
......
/*
* @Description :获取各区县业务api文件
* @Description :对应的业务的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:09:19
* @LastEditTime : 2023-05-17 10:32:39
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class efficient {
/*
获取对应的业务量总数
startDate:开始日期
endDate:结束日期
*/
/**
* @description: 获取对应的业务量总数
* @param {*} startDate:开始日期
* @param {*} endDate:结束日期
* @param {*} qxdm
* @author: renchao
*/
async getProcessCounts (startDate, endDate, qxdm) {
return request({
url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessCounts",
......@@ -23,12 +25,13 @@ class efficient {
},
});
}
/*
获取各区县业务对应的天数
recType:业务代码
startDate:开始日期
endDate:结束日期
*/
/**
* @description: 获取各区县业务对应的天数
* @param {*} recType:业务代码
* @param {*} startDate:开始日期
* @param {*} endDate:结束日期
* @author: renchao
*/
async getProcessDays (recType, startDate, endDate) {
return request({
url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessDays",
......
/*
* @Description :非结构化文档
* @Description :非结构化文档的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:13:12
* @LastEditTime : 2023-05-17 10:33:26
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class fjF100 {
// 非结构化文档
/**
* @description: 非结构化文档
* @param {*} bsmSjsb
* @author: renchao
*/
async getFjF100ById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/FjF100/detail',
......@@ -18,7 +22,11 @@ class fjF100 {
})
}
//非结构化文档-修改
/**
* @description: 非结构化文档-修改
* @param {*} data
* @author: renchao
*/
async updateFjF100 (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/FjF100/edit',
......
/*
* @Description :点状定着物信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:13:23
* @LastEditTime : 2023-05-17 10:33:43
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class ktfQtDzdzw {
// 点状定着物信息
/**
* @description: 点状定着物信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getKtfQtDzdzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/detail',
......@@ -17,7 +21,11 @@ class ktfQtDzdzw {
}
})
}
// 点状定着物信息-修改
/**
* @description: 点状定着物信息-修改
* @param {*} data
* @author: renchao
*/
async updateKtfQtDzdzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtDzdzw/edit',
......
/*
* @Description :面状定着物api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:16:57
* @LastEditTime : 2023-05-17 10:34:06
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class ktfQtMzdzw {
// 面状定着物
/**
* @description: 面状定着物
* @param {*} bsmSjsb
* @author: renchao
*/
async getKtfQtMzdzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/detail',
......@@ -17,7 +21,11 @@ class ktfQtMzdzw {
}
})
}
// 面状定着物-修改
/**
* @description: 面状定着物-修改
* @param {*} data
* @author: renchao
*/
async updateKtfQtMzdzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtMzdzw/edit',
......
/*
* @Description :线状定着物api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:17:29
* @LastEditTime : 2023-05-17 10:34:38
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class ktfQtXzdzw {
// 线状定着物
/**
* @description: 线状定着物
* @param {*} bsmSjsb
* @author: renchao
*/
async getKtfQtXzdzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/detail',
......@@ -17,7 +21,11 @@ class ktfQtXzdzw {
}
})
}
// 线状定着物-修改
/**
* @description: 线状定着物-修改
* @param {*} data
* @author: renchao
*/
async updateKtfQtXzdzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfQtXzdzw/edit',
......
/*
* @Description :宗地变化情况api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:17:38
* @LastEditTime : 2023-05-17 10:34:59
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class ktfZdbhqk {
//宗地变化情况
/**
* @description: 宗地变化情况
* @param {*} bsmSjsb
* @author: renchao
*/
async getKtfZdbhqkById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/detail',
......@@ -17,7 +21,11 @@ class ktfZdbhqk {
}
})
}
//修改宗地变化情况
/**
* @description: 修改宗地变化情况
* @param {*} data
* @author: renchao
*/
async updateKtfZdbhqk (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZdbhqk/edit',
......
/*
* @Description :用海,用岛坐标api文件
* @Description :用海,用岛坐标相关api
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:18:28
* @LastEditTime : 2023-05-17 10:35:22
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class ktfZhYhydzb {
// 用海,用岛坐标
/**
* @description: 用海,用岛坐标
* @param {*} bsmSjsb
* @author: renchao
*/
async getKtfZhYhydzbById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/detail',
......@@ -17,7 +21,11 @@ class ktfZhYhydzb {
}
})
}
// 用海,用岛坐标-修改
/**
* @description: 用海,用岛坐标-修改
* @param {*} data
* @author: renchao
*/
async updateKtfZhYhydzb (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhydzb/edit',
......
/*
* @Description : 用海状况api文件
* @Description :用海状况相关api
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:19:11
* @LastEditTime : 2023-05-17 10:35:41
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class ktfZhYhzk {
//用海状况
/**
* @description: 用海状况
* @param {*} bsmSjsb
* @author: renchao
*/
async getKtfZhYhzkById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/detail',
......@@ -17,7 +21,11 @@ class ktfZhYhzk {
}
})
}
//修改用海状况
/**
* @description: 修改用海状况
* @param {*} data
* @author: renchao
*/
async updateKtfZhYhzk (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/edit',
......@@ -27,4 +35,3 @@ class ktfZhYhzk {
}
}
export default new ktfZhYhzk()
......
/*
* @Description :层信息- 业务api文件
* @Description :层信息- 业务相关api
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:19:27
* @LastEditTime : 2023-05-17 10:36:46
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttFwC {
// 层信息- 业务表单
/**
* @description: 层信息- 业务表单
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttFwCById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwC/detail",
......@@ -17,7 +21,11 @@ class kttFwC {
},
});
}
// 层信息-业务-修改
/**
* @description: 层信息-业务-修改
* @param {*} data
* @author: renchao
*/
async updateKttFwC (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwC/edit",
......
/*
* @Description :户信息- 业务
* @Description :户信息- 业务api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:20:10
* @LastEditTime : 2023-05-17 10:37:11
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttFwH {
// 户信息- 业务表单
/**
* @description: 户信息- 业务表单
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttFwHById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwH/detail",
......@@ -17,7 +21,11 @@ class kttFwH {
},
});
}
// 户信息-业务-修改
/**
* @description: 户信息-业务-修改
* @param {*} data
* @author: renchao
*/
async updateKttFwH (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwH/edit",
......
/*
* @Description :逻辑幢信息 -- 业务api文件
* @Description :逻辑幢信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:20:15
* @LastEditTime : 2023-05-17 10:37:24
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttFwLjz {
// 逻辑幢信息 -- 业务表单
/**
* @description: 逻辑幢信息 -- 业务表单
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttFwLjzById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/detail",
......@@ -17,7 +21,11 @@ class kttFwLjz {
},
});
}
// 逻辑幢信息 -- 业务修改
/**
* @description: 逻辑幢信息 -- 业务修改
* @param {*} data
* @author: renchao
*/
async updateKttFwLjz (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/KttFwLjz/edit",
......
/*
* @Description :自然幢信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:20:39
* @LastEditTime : 2023-05-17 10:37:44
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttFwZrz {
// 自然幢信息
/**
* @description: 自然幢信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttFwZrzById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/detail',
......@@ -17,7 +21,11 @@ class kttFwZrz {
}
})
}
// 自然幢信息-修改
/**
* @description: 自然幢信息-修改
* @param {*} data
* @author: renchao
*/
async updateKttFwZrz (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/edit',
......
/*
* @Description :界址点api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:21:40
* @LastEditTime : 2023-05-17 10:37:58
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttGyJzd {
//界址点
/**
* @description: 界址点
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttGyJzdById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/detail',
......@@ -17,7 +21,11 @@ class kttGyJzd {
}
})
}
//修改界址点
/**
* @description: 修改界址点
* @param {*} data
* @author: renchao
*/
async updateKttGyJzd (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGyJzd/edit',
......
/*
* @Description :界址线信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:21:57
* @LastEditTime : 2023-05-17 10:38:10
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttGyJzx {
//界址线信息
/**
* @description: 界址线信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttGyJzxById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/detail',
......@@ -17,7 +21,11 @@ class kttGyJzx {
}
})
}
//修改界址线信息
/**
* @description: 修改界址线信息
* @param {*} data
* @author: renchao
*/
async updateKttGyJzx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/edit',
......
/*
* @Description :构筑物api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:22:14
* @LastEditTime : 2023-05-17 10:38:29
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttGzw {
//构筑物
/**
* @description: 构筑物
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttGzwById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGzw/detail',
......@@ -17,7 +21,11 @@ class kttGzw {
}
})
}
//修改构筑物
/**
* @description: 修改构筑物
* @param {*} data
* @author: renchao
*/
async updateKttGzw (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGzw/edit',
......
/*
* @Description : 宗地基本信息api文件
* @Description :宗地基本信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:22:47
* @LastEditTime : 2023-05-17 10:38:51
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttZdjbxx {
// 宗地基本信息
/**
* @description: 宗地基本信息
* @param {*} bsmSjsb
* @author: renchao
*/
async kttZdjbxxDetail (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/detail',
......@@ -17,7 +21,11 @@ class kttZdjbxx {
}
})
}
// 宗地基本信息-修改
/**
* @description: 宗地基本信息-修改
* @param {*} data
* @author: renchao
*/
async updateKttZdjbxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/edit',
......
/*
* @Description :宗海基本信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:23:09
* @LastEditTime : 2023-05-17 10:39:09
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class kttZhjbxx {
//宗海基本信息
/**
* @description: 宗海基本信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getKttZhjbxxById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/detail',
......@@ -17,7 +21,11 @@ class kttZhjbxx {
}
})
}
//修改宗海基本信息
/**
* @description: 修改宗海基本信息
* @param {*} data
* @author: renchao
*/
async updateKttZhjbxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/edit',
......
......@@ -5,12 +5,22 @@
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/**
* @description: loginIn
* @param {*} username
* @param {*} password
* @author: renchao
*/
export function loginIn (username, password) {
return request({
url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`,
method: "post",
});
}
/**
* @description: logout
* @author: renchao
*/
export function logout () {
return request({
url: `${SERVER.MANAGEMENTAPI}/logout`,
......
......@@ -88,7 +88,12 @@ export const api = {
crudDatasources: crud + '/rest/datasources', // crudDatasources
}
// 根据code获取字典 params={isTree:true})
/**
* @description: 根据code获取字典
* @param {*} code
* @param {*} params params={isTree:true}
* @author: renchao
*/
export function getDictItems (code, params = {}) {
return request({
url: `${api.baseDataCategory}/${code}/base-datas`,
......@@ -96,21 +101,34 @@ export function getDictItems (code, params = {}) {
params
})
}
// 获取一级字典值下级接口
/**
* @description: 获取一级字典值下级接口
* @param {*} id
* @author: renchao
*/
export function getDictItemsChild (id) {
return request({
url: `${api.baseData}/dict/${id}`,
method: 'get'
})
}
// 获取传入字段的所有级别字典值
/**
* @description: 获取传入字段的所有级别字典值
* @param {*} name
* @author: renchao
*/
export function getAllDictItems (name) {
return request({
url: `${api.baseDataCategory}/${name}/base-datas`,
method: 'get'
})
}
// get公共方法
/**
* @description: get公共方法
* @param {*} url
* @param {*} data
* @author: renchao
*/
export function getAction (url, params = {}) {
return request({
url,
......@@ -118,7 +136,12 @@ export function getAction (url, params = {}) {
params
})
}
// post公共方法
/**
* @description: post公共方法
* @param {*} url
* @param {*} data
* @author: renchao
*/
export function postAction (url, data = null) {
return request({
url,
......@@ -126,7 +149,13 @@ export function postAction (url, data = null) {
data
})
}
// method= {post | put}
/**
* @description: method= {post | put}
* @param {*} url
* @param {*} data
* @param {*} method
* @author: renchao
*/
export function httpAction (url, data, method) {
return request({
url,
......@@ -134,7 +163,12 @@ export function httpAction (url, data, method) {
data
})
}
// put公共方法
/**
* @description: put公共方法
* @param {*} url
* @param {*} data
* @author: renchao
*/
export function putAction (url, data = null) {
return request({
url,
......@@ -142,7 +176,12 @@ export function putAction (url, data = null) {
data
})
}
// delete
/**
* @description: delete
* @param {*} url
* @param {*} data
* @author: renchao
*/
export function deleteAction (url, data = null) {
return request({
url,
......@@ -151,7 +190,12 @@ export function deleteAction (url, data = null) {
})
}
// 批量删除
/**
* @description: 批量删除
* @param {*} url
* @param {*} data
* @author: renchao
*/
export function deleteBranch (url, data) {
return request({
url,
......
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/*
更新排序
record-排序整条数据
operate-BOTTOM(置底), DOWN(向下), TOP(置顶), UP(向上)
/**
* @description: 更新排序
* @param {*} url
* @param {*} record 排序整条数据
* @param {*} operate BOTTOM(置底), DOWN(向下), TOP(置顶), UP(向上)
* @param {*} swapId
* @author: renchao
*/
export function updateOrder (url, record, operate, swapId) {
return request({
......
......@@ -15,14 +15,28 @@ import {
} from './manageApi'
import { getParams } from './util'
/**
* @description: updateUserPassword
* @param {*} data
* @author: renchao
*/
export const updateUserPassword = (data) => {
return putAction(`${api.users}/update-password`, data)
}
// 根据条件获取用户
/**
* @description: 根据条件获取用户
* @param {*} params
* @author: renchao
*/
export const getUserList = (params) => {
return getAction(api.users, params)
}
/**
* @description: getUserLists
* @param {*} queryParam
* @author: renchao
*/
export const getUserLists = (queryParam) => {
const conditionGroup = {
conditions: [],
......@@ -41,21 +55,38 @@ export const getUserLists = (queryParam) => {
const params = getParams(conditionGroup)
return getAction(api.users, params)
}
// 重置用户密码
/**
* @description: 重置用户密码
* @param {*} id
* @author: renchao
*/
// export const resetPassword = id => {
// return putAction(`${api.users}/${id}/reset-password`)
// }
// 重置用户密码
/**
* @description: 重置用户密码
* @param {*} ids
* @author: renchao
*/
export const resetPassword = (ids) => {
return putAction(`${api.users}/reset-passwords?ids=${ids}`)
}
// 人员列表
/**
* @description: 人员列表
* @param {*} id
* @author: renchao
*/
export const getUserRoles = (id) => {
return getAction(`${api.userRoles}/${id}/users`)
}
// 更新人员
/**
* @description: 更新人员
* @param {*} id
* @param {*} data
* @author: renchao
*/
export const updateUser = (id, data) => {
return putAction(`${api.userRoles}/${id}/users`, data)
}
......
/*
* @Description :房地产权_项目内多幢房屋项目属性api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:25:14
* @LastEditTime : 2023-05-17 10:41:13
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfFwFdcqDzXm {
// 房地产权_项目内多幢房屋项目属性
/**
* @description: 房地产权_项目内多幢房屋项目属性
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfFwFdcqDzXmById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/detail',
......@@ -17,7 +21,11 @@ class qlfFwFdcqDzXm {
}
})
}
// 房地产权_项目内多幢房屋项目属性-修改
/**
* @description: 房地产权_项目内多幢房屋项目属性-修改
* @param {*} data
* @author: renchao
*/
async updateQlfFwFdcqDzXm (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/edit',
......
/*
* @Description :建筑物区分所有权业主共有部分信息api文件
* @Description :建筑物区分所有权业主共有部分信息相关api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:26:59
* @LastEditTime : 2023-05-17 10:43:26
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfFwFdcqQfsyq {
// 建筑物区分所有权业主共有部分信息
/**
* @description: 建筑物区分所有权业主共有部分信息
* @param {*} data
* @author: renchao
*/
async getQlfFwFdcqQfsyqList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/getDataPage",
......@@ -15,7 +19,11 @@ class qlfFwFdcqQfsyq {
data,
});
}
//建筑物区分所有权业主共有部分信息
/**
* @description: 建筑物区分所有权业主共有部分信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfFwFdcqQfsyqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/detail",
......@@ -25,7 +33,11 @@ class qlfFwFdcqQfsyq {
},
});
}
//修改建筑物区分所有权业主共有部分信息
/**
* @description: 修改建筑物区分所有权业主共有部分信息
* @param {*} data
* @author: renchao
*/
async updateQlfFwFdcqQfsyq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfFwFdcqQfsyq/edit",
......
/*
* @Description :查封登记信息api文件
* @Description : 查封登记信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:27:25
* @LastEditTime : 2023-05-17 10:43:49
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlCfdj {
// 查封登记信息
/**
* @description: 查封登记信息
* @param {*} data
* @author: renchao
*/
async getQlfQlCfdjList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlCfdj {
data,
});
}
// 查封登记信息
/**
* @description:
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlCfdjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/detail",
......@@ -25,7 +33,11 @@ class qlfQlCfdj {
},
});
}
// 查封登记信息-修改
/**
* @description: 查封登记信息-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlCfdj (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/edit",
......
/*
* @Description :抵押权api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:27:37
* @LastEditTime : 2023-05-17 10:44:04
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlDyaq {
// 抵押权登记
/**
* @description: 抵押权登记
* @param {*} data
* @author: renchao
*/
async getQlfQlDyaqList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlDyaq {
data,
});
}
// 抵押权
/**
* @description: 抵押权
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlDyaqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/detail",
......@@ -25,7 +33,11 @@ class qlfQlDyaq {
},
});
}
// 抵押权-修改
/**
* @description: 抵押权-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlDyaq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/edit",
......
/*
* @Description :地役权api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:27:56
* @LastEditTime : 2023-05-17 10:45:02
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlDyiq {
// 地役权
/**
* @description: 地役权
* @param {*} data
* @author: renchao
*/
async getQlfQlDyiqList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlDyiq {
data,
});
}
// 地役权信息
/**
* @description: 地役权信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlDyiqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/detail",
......@@ -25,7 +33,11 @@ class qlfQlDyiq {
},
});
}
// 地役权信息-修改
/**
* @description: 地役权信息-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlDyiq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyiq/edit",
......
/*
* @Description :更正登记信息api文件
* @Description :更正登记信息相关api
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:28:53
* @LastEditTime : 2023-05-17 10:45:14
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlGzdj {
// 更正登记信息
/**
* @description: 更正登记信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlGzdjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/detail',
......@@ -17,7 +21,11 @@ class qlfQlGzdj {
}
})
}
// 更正登记信息-修改
/**
* @description: 更正登记信息-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlGzdj (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/edit',
......
/*
* @Description :海域(含无居民海岛)使用权api文件
* @Description :海域(含无居民海岛)使用权api
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:29:12
* @LastEditTime : 2023-05-17 10:45:34
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlHysyq {
// 海域(含无居民海岛)使用权
/**
* @description: 海域(含无居民海岛)使用权
* @param {*} data
* @author: renchao
*/
async getQlfQlHysyqByConditon (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlHysyq {
data,
});
}
//海域(含无居民海岛)使用权
/**
* @description: 海域(含无居民海岛)使用权
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlHysyqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/detail",
......@@ -25,7 +33,11 @@ class qlfQlHysyq {
},
});
}
//修改海域(含无居民海岛)使用权
/**
* @description: 修改海域(含无居民海岛)使用权
* @param {*} data
* @author: renchao
*/
async updateQlfQlHysyq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/edit",
......
/*
* @Description :建设用地、宅基地使用权api文件
* @Description :建设用地、宅基地使用权api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:30:15
* @LastEditTime : 2023-05-17 10:45:43
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlJsydsyq {
// 建设用地、宅基地使用权
/**
* @description: 建设用地、宅基地使用权
* @param {*} data
* @author: renchao
*/
async getQlfQlJsydsyqList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlJsydsyq/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlJsydsyq {
data,
});
}
//建设用地、宅基地使用权
/**
* @description: 建设用地、宅基地使用权
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlJsydsyqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/detail',
......@@ -25,7 +33,11 @@ class qlfQlJsydsyq {
}
})
}
//修改建设用地、宅基地使用权
/**
* @description: 修改建设用地、宅基地使用权
* @param {*} data
* @author: renchao
*/
async updateQlfQlJsydsyq (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlJsydsyq/edit',
......
/*
* @Description :农用地使用权(非林地)api文件
* @Description :农用地使用权(非林地)api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:30:45
* @LastEditTime : 2023-05-17 10:46:08
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlNydsyq {
// 农用地使用权(非林地)
/**
* @description: 农用地使用权(非林地)
* @param {*} data
* @author: renchao
*/
async getQlfQlNydsyqByConditon (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlNydsyq {
data,
});
}
//农用地使用权(非林地)
/**
* @description: 农用地使用权(非林地)
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlNydsyqByID (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/detail",
......@@ -25,7 +33,11 @@ class qlfQlNydsyq {
},
});
}
//修改农用地使用权(非林地)
/**
* @description: 修改农用地使用权(非林地)
* @param {*} data
* @author: renchao
*/
async updateQlfQlNydsyq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/edit",
......
/*
* @Description :其他相关权利api文件
* @Description :其他相关权利api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:30:58
* @LastEditTime : 2023-05-17 10:46:25
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlQtxgql {
// 其他相关权利
/**
* @description: 其他相关权利
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlQtxgqlById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/detail',
......@@ -17,7 +21,11 @@ class qlfQlQtxgql {
}
})
}
// 其他相关权利-修改
/**
* @description: 其他相关权利-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlQtxgql (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/edit',
......
/*
* @Description : 土地所有权api文件
* @Description :土地所有权的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:31:42
* @LastEditTime : 2023-05-17 10:46:41
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlTdsyq {
// 土地所有权
/**
* @description: 土地所有权
* @param {*} data
* @author: renchao
*/
async getQlfQlTdsyqList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlTdsyq/getDataPage",
......@@ -16,6 +20,11 @@ class qlfQlTdsyq {
});
}
//土地所有权
/**
* @description: 土地所有权
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlTdsyqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/detail',
......@@ -25,7 +34,11 @@ class qlfQlTdsyq {
}
})
}
//修改土地所有权
/**
* @description: 修改土地所有权
* @param {*} data
* @author: renchao
*/
async updateQlfQlTdsyq (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlTdsyq/edit',
......
/*
* @Description : 预告登记信息api文件
* @Description :预告登记信息的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:31:47
* @LastEditTime : 2023-05-17 10:47:47
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlYgdj {
// 预告登记信息
/**
* @description: 预告登记信息
* @param {*} data
* @author: renchao
*/
async getQlfQlYgdjList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlYgdj {
data,
});
}
// 预告登记信息
/**
* @description: 预告登记信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlYgdjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/detail",
......@@ -25,7 +33,11 @@ class qlfQlYgdj {
},
});
}
// 预告登记信息-修改
/**
* @description: 预告登记信息-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlYgdj (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/edit",
......
/*
* @Description :异议登记信息api文件
* @Description :异议登记信息api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:32:25
* @LastEditTime : 2023-05-17 10:48:01
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlYydj {
// 异议登记信息
/**
* @description: 异议登记信息
* @param {*} data
* @author: renchao
*/
async getQlfQlYydjList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlYydj {
data,
});
}
// 异议登记信息
/**
* @description: 异议登记信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlYydjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/detail",
......@@ -25,7 +33,11 @@ class qlfQlYydj {
},
});
}
// 异议登记信息-修改
/**
* @description: 异议登记信息-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlYydj (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlYydj/edit",
......
/*
* @Description :注销登记api文件
* @Description : 注销登记的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:32:43
* @LastEditTime : 2023-05-17 10:48:11
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qlfQlZxdj {
// 注销登记
/**
* @description: 注销登记
* @param {*} data
* @author: renchao
*/
async getQlfQlZxdjList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/getDataPage",
......@@ -15,7 +19,11 @@ class qlfQlZxdj {
data,
});
}
// 注销登记信息
/**
* @description: 注销登记信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getQlfQlZxdjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/detail",
......@@ -25,7 +33,11 @@ class qlfQlZxdj {
},
});
}
//注销登记信息 - 修改
/**
* @description: 注销登记信息-修改
* @param {*} data
* @author: renchao
*/
async updateQlfQlZxdj (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlZxdj/edit",
......
/*
* @Description :房地产权_项目内多幢房屋信息api文件
* @Description : 房地产权_项目内多幢房屋信息的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:32:55
* @LastEditTime : 2023-05-17 10:50:59
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qltFwFdcqDz {
// 房地产权_项目内多幢房屋信息
/**
* @description: 房地产权_项目内多幢房屋信息
* @param {*} data
* @author: renchao
*/
async getQltFwFdcqDzList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqDz/getDataPage",
......@@ -15,7 +19,11 @@ class qltFwFdcqDz {
data,
});
}
//房地产权_项目内多幢房屋信息
/**
* @description: 房地产权_项目内多幢房屋信息
* @param {*} bsmSjsb
* @author: renchao
*/
async getQltFwFdcqDzById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/detail',
......@@ -25,7 +33,11 @@ class qltFwFdcqDz {
}
})
}
//修改房地产权_项目内多幢房屋信息
/**
* @description: 修改房地产权_项目内多幢房屋信息
* @param {*} data
* @author: renchao
*/
async updateQltFwFdcqDz (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqDz/edit',
......
/*
* @Description :房地产权(独幢、层、套、间、房屋)api文件
* @Description :房地产权(独幢、层、套、间、房屋)api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:33:07
* @LastEditTime : 2023-05-17 10:51:21
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qltFwFdcqYz {
// 房地产权(独幢、层、套、间、房屋)
/**
* @description: 房地产权(独幢、层、套、间、房屋)
* @param {*} data
* @author: renchao
*/
async getQltFwFdcqYzList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltFwFdcqYz/getDataPage",
......@@ -15,7 +19,11 @@ class qltFwFdcqYz {
data,
});
}
//房地产权(独幢、层、套、间、房屋)
/**
* @description: 房地产权(独幢、层、套、间、房屋)
* @param {*} bsmSjsb
* @author: renchao
*/
async getQltFwFdcqYzById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/detail',
......@@ -25,7 +33,11 @@ class qltFwFdcqYz {
}
})
}
//修改房地产权(独幢、层、套、间、房屋)
/**
* @description: 修改房地产权(独幢、层、套、间、房屋)
* @param {*} data
* @author: renchao
*/
async updateQltFwFdcqYz (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QltFwFdcqYz/edit',
......
/*
* @Description :构(建)筑物所有权api文件
* @Description : 房地产权(独幢、层、套、间、房屋)的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:34:05
* @LastEditTime : 2023-05-17 10:51:33
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qltQlGjzwsyq {
// 构(建)筑物所有权
/**
* @description: 构(建)筑物所有权
* @param {*} data
* @author: renchao
*/
async getQltQlGjzwsyqList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/getDataPage",
......@@ -15,7 +19,11 @@ class qltQlGjzwsyq {
data,
});
}
// 构(建)筑物所有权
/**
* @description: 构(建)筑物所有权
* @param {*} bsmSjsb
* @author: renchao
*/
async getQltQlGjzwsyqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/detail",
......@@ -25,7 +33,11 @@ class qltQlGjzwsyq {
},
});
}
//构(建)筑物所有权 - 修改
/**
* @description: 构(建)筑物所有权 - 修改
* @param {*} data
* @author: renchao
*/
async updateQltQlGjzwsyq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/edit",
......
/*
* @Description : 林权api文件
* @Description :林权的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:34:17
* @LastEditTime : 2023-05-17 10:51:57
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class qltQlLq {
// 林权
/**
* @description: 林权
* @param {*} data
* @author: renchao
*/
async getQltQlLqList (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/getDataPage",
......@@ -15,7 +19,11 @@ class qltQlLq {
data,
});
}
//林权
/**
* @description: 林权
* @param {*} bsmSjsb
* @author: renchao
*/
async getQltQlLqById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/detail",
......@@ -25,7 +33,11 @@ class qltQlLq {
},
});
}
//修改林权
/**
* @description: 修改林权
* @param {*} data
* @author: renchao
*/
async updateQltQlLq (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/edit",
......
......@@ -10,6 +10,7 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/'
/**
* @description: 登簿日志分页
* @param {*} data
* @author: renchao
*/
export function getRecordLogPage (data) {
......
/*
* @Description :编辑界面列表查询的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 10:52:19
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class ruleConfig {
// 列表查询
/**
* @description: 列表查询
* @param {*} data
* @author: renchao
*/
async getSysYwsjbList (data) {
return request({
url: SERVER.SERVERAPI + '/rest/SysYwsjb/getSysYwsjbList',
......@@ -9,7 +18,11 @@ class ruleConfig {
data
})
}
// 编辑界面列表查询
/**
* @description: 编辑界面列表查询
* @param {*} id
* @author: renchao
*/
async eidtConfigRule (id) {
return request({
url: SERVER.SERVERAPI + '/rest/SysYwsjb/getSysYwsjbWithSysYwsjbFieldByBsmYwsjb',
......@@ -19,7 +32,11 @@ class ruleConfig {
}
})
}
// 编辑
/**
* @description: 编辑
* @param {*} data
* @author: renchao
*/
async editSysYwsjbWithSysYwsjbField (data) {
return request({
url: SERVER.SERVERAPI + '/rest/SysYwsjb/editSysYwsjbWithSysYwsjbField',
......@@ -27,7 +44,11 @@ class ruleConfig {
data
})
}
// 编辑
/**
* @description: 编辑
* @param {*} id
* @author: renchao
*/
async deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb (id) {
return request({
url: SERVER.SERVERAPI + '/rest/SysYwsjb/deleteSysYwsjbWithSysYwsjbFieldByBsmYwsjb',
......@@ -37,7 +58,11 @@ class ruleConfig {
}
})
}
// 编辑界面列表查询----根据数据表名查询
/**
* @description: 编辑界面列表查询----根据数据表名查询
* @param {*} bsmYwsjb
* @author: renchao
*/
async getRuleList (bsmYwsjb) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getTableColumn',
......@@ -48,4 +73,4 @@ class ruleConfig {
})
}
}
export default new ruleConfig()
\ No newline at end of file
export default new ruleConfig()
......
......@@ -11,7 +11,7 @@ const urlHeader = SERVER.SERVERAPI + '/rest/searchRecord'
/**
* @description: 获取列表
* @param {*}
* @param {*} data
* @author:
*/
export function getSearchRecordList (data) {
......
/*
* @Description :数据上报表头api文件
* @Description :数据上报表头api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:40:30
* @LastEditTime : 2023-05-17 10:52:42
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class sjsbFunctionOper {
// 数据上报表头相关接口
/**
* @description: 数据上报表头相关接口
* @param {*} id
* @author: renchao
*/
async getQltFwFdcqYzByCondition (id) {
return request({
url: '/sjsbFunctionOper/getSjsbTableInfo',
......@@ -17,7 +21,11 @@ class sjsbFunctionOper {
}
})
}
// xml
/**
* @description: xml
* @param {*} id
* @author: renchao
*/
async queryXML (id) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/sjsbFunctionOper/queryXML',
......
/*
* @Description :定时任务api文件
* @Description :定时任务的相关api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:40:57
* @LastEditTime : 2023-05-17 10:53:00
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class sjsbTask {
// 定时任务
// 定时任务查询接口
/**
* @description: 定时任务查询接口
* @param {*} data
* @author: renchao
*/
async getTaskListByName (data) {
return request({
url: SERVER.SERVERAPI + '/rest/schedule/getScheduleList',
......@@ -20,7 +24,11 @@ class sjsbTask {
}
})
}
// 定时任务新增接口
/**
* @description: 定时任务新增接口
* @param {*} data
* @author: renchao
*/
async sjsbTaskSave (data) {
return request({
url: SERVER.SERVERAPI + '/rest/schedule/add',
......@@ -28,7 +36,11 @@ class sjsbTask {
data
})
}
// 修改定时任务执行时间接口
/**
* @description: 修改定时任务执行时间接口
* @param {*} data
* @author: data
*/
async updateCron (data) {
return request({
url: SERVER.SERVERAPI + '/rest/schedule/update',
......@@ -36,7 +48,11 @@ class sjsbTask {
data
})
}
// 定时任务删除接口
/**
* @description: 定时任务删除接口
* @param {*} id
* @author: renchao
*/
async sjsbTaskRemove (id) {
return request({
url: SERVER.SERVERAPI + '/rest/schedule/delete',
......@@ -46,7 +62,11 @@ class sjsbTask {
}
})
}
// 恢复任务接口
/**
* @description: 恢复任务接口
* @param {*} id
* @author: renchao
*/
async recover (id) {
return request({
url: SERVER.SERVERAPI + '/rest/schedule/recover',
......@@ -56,7 +76,11 @@ class sjsbTask {
}
})
}
// 激活任务接口
/**
* @description: 激活任务接口
* @param {*} id
* @author: renchao
*/
async active (id) {
return request({
url: SERVER.SERVERAPI + '/rest/schedule/active',
......
/*
* @Description: 菜单用户api文件
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-24 09:28:25
*/
import request from '@/utils/request'
// let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// 获取用户信息
/**
* @description: 获取用户信息
* @author: renchao
*/
export function getUserInfo () {
return request({
url: SERVER.SERVERAPI + '/rest/user/getUserInfo',
......@@ -14,7 +17,11 @@ export function getUserInfo () {
})
}
// 获取菜单信息
/**
* @description: 获取菜单信息
* @param {*} data
* @author: renchao
*/
export function getMenuInfo (data) {
return request({
url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus',
......
......@@ -7,7 +7,11 @@ import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class work {
// 登记类型总量
/**
* @description: 登记类型总量
* @param {*} data
* @author: renchao
*/
async getDjlxtotal (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/getDjlxtotal',
......@@ -15,7 +19,11 @@ class work {
data
})
}
// 登记业务量
/**
* @description: 登记业务量
* @param {*} data
* @author: renchao
*/
async getdjywltotal (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/getdjywltotal',
......@@ -23,7 +31,11 @@ class work {
data
})
}
// 省厅汇交-区县接入
/**
* @description: 省厅汇交-区县接入
* @param {*} data
* @author: renchao
*/
async getsthjqxjrtotal (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/getsthjqxjrtotal',
......@@ -31,7 +43,11 @@ class work {
data
})
}
// 地图区县总量统计,code区县编码,汉中为:A20
/**
* @description: 地图区县总量统计,code区县编码,汉中为:A20
* @param {*} code
* @author: renchao
*/
async mapViews (code) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/mapViews',
......@@ -41,7 +57,11 @@ class work {
}
})
}
// 数据趋势
/**
* @description: 数据趋势
* @param {*} code
* @author: renchao
*/
async dataTrend (code) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/dataTrend',
......@@ -51,7 +71,11 @@ class work {
}
})
}
// 新建国有房屋信息
/**
* @description: 新建国有房屋信息
* @param {*} code
* @author: renchao
*/
async addhousetotal (code) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/addhousetotal',
......@@ -61,8 +85,12 @@ class work {
}
})
}
// 新建国有房屋信息
// /bdcsjsb/rest/reg/work/qxmrjrsb
/**
* @description: 新建国有房屋信息
* @param {*} code
* @author: renchao
*/
async qxmrjrsb (code) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/qxmrjrsb',
......@@ -73,7 +101,11 @@ class work {
})
}
// 地图区县成功失败统计,code区县编码,汉中为:A20
/**
* @description: 地图区县成功失败统计,code区县编码,汉中为:A20
* @param {*} code
* @author: renchao
*/
async submitViews (code) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/work/submitViews',
......
/*
* @Description :宗地空间属性api文件
* @Description :宗地空间属性api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:42:32
* @LastEditTime : 2023-05-17 10:57:25
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class zdK103 {
//宗地空间属性
/**
* @description: 宗地空间属性
* @param {*} bsmSjsb
* @author: renchao
*/
async getZdK103ById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/ZdK103/detail',
......@@ -17,7 +21,11 @@ class zdK103 {
}
})
}
//修改宗地空间属性
/**
* @description: 修改宗地空间属性
* @param {*} data
* @author: renchao
*/
async updateZdK103 (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/ZdK103/edit',
......
/*
* @Description :宗海空间属性api文件
* @Description :宗海空间属性api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:42:45
* @LastEditTime : 2023-05-17 10:57:40
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class zhK105 {
// 宗海空间属性
/**
* @description: 宗海空间属性
* @param {*} bsmSjsb
* @author: renchao
*/
async getZhK105ById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/ZhK105/detail',
......@@ -18,7 +22,11 @@ class zhK105 {
})
}
// 宗海空间属性-修改
/**
* @description: 宗海空间属性-修改
* @param {*} data
* @author: renchao
*/
async updateZhK105 (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/ZhK105/edit',
......
/*
* @Description :权利人api文件
* @Description :权利人 -- 业务表单的api文件
* @Autor : miaofang
* @LastEditTime : 2023-05-17 16:42:56
* @LastEditTime : 2023-05-17 10:57:52
*/
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class zttGyQlr {
// 权利人 -- 业务表单
/**
* @description: 权利人 -- 业务表单
* @param {*} bsmSjsb
* @author: renchao
*/
async getZttGyQlrById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/detail",
......@@ -17,7 +21,11 @@ class zttGyQlr {
},
});
}
// 权利人 -- 业务表单修改
/**
* @description: 权利人 -- 业务表单修改
* @param {*} data
* @author: renchao
*/
async updateZttGyQlr (data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/edit",
......
......@@ -73,6 +73,10 @@ export default {
this.chart = null;
},
methods: {
/**
* @description: initChart
* @author: renchao
*/
initChart () {
// 初始化echart
this.chart = this.$echarts.init(this.$el, "tdTheme");
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-20 16:36:51
-->
......@@ -32,6 +32,10 @@ export default {
this.getBreadcrumb();
},
methods: {
/**
* @description: getBreadcrumb
* @author: renchao
*/
getBreadcrumb () {
// only show routes with meta.title
this.levelList = this.$route.matched.filter(
......@@ -41,6 +45,11 @@ export default {
this.levelList = this.levelList.slice(-1)
}
},
/**
* @description: isDashboard
* @param {*} route
* @author: renchao
*/
isDashboard (route) {
const name = route && route.name;
if (!name) {
......@@ -50,6 +59,11 @@ export default {
name.trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase()
);
},
/**
* @description: pathCompile
* @param {*} path
* @author: renchao
*/
pathCompile (path) {
const { params } = this.$route;
var toPath = pathToRegexp.compile(path);
......@@ -57,4 +71,4 @@ export default {
}
}
}
</script>
\ No newline at end of file
</script>
......
......@@ -144,6 +144,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await djfDjDb.getDjfDjDbById(this.bsmSjsb);
......@@ -153,6 +157,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -229,6 +229,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await djfDjFz.getDjfDjFzDetailById(this.bsmSjsb);
......@@ -238,6 +242,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -183,6 +183,10 @@ export default {
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await djfDjGd.getDjfDjGdById(this.bsmSjsb)
......@@ -192,6 +196,10 @@ export default {
this.$refs.msg.messageShow()
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -251,6 +251,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await djfDjSf.getDjfDjSfById(this.bsmSjsb);
......@@ -260,6 +264,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -183,6 +183,11 @@
};
},
methods: {
/**
* @description: changeTraceEnd
* @param {*} item
* @author: renchao
*/
changeTraceEnd (item) {
if (item.SHJSSJ !== null) {
//当前值为空 也会进行判断 所以条件最好不要非空验证
......@@ -196,6 +201,11 @@
}
},
//跟踪API结束时间限制开始时间
/**
* @description: 跟踪API结束时间限制开始时间
* @param {*} item
* @author: renchao
*/
changeTraceStart (item) {
if (item.SHKSSJ !== null) {
//当前值为空 也会进行判断 所以条件最好不要非空验证
......@@ -208,6 +218,10 @@
item.traceEnd = {};
}
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await djfDjSh.getDjfDjShById(this.bsmSjsb);
......@@ -217,6 +231,10 @@
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -202,6 +202,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await djfDjSj.getDjfDjSjById(this.bsmSjsb);
......@@ -211,6 +215,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -365,6 +365,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await djfDjSqr.getDjfDjSqrById(this.bsmSjsb);
......@@ -374,6 +378,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -156,6 +156,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await djfDjSz.getDjfDjSzById(this.bsmSjsb);
......@@ -165,6 +169,10 @@
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -268,6 +268,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await djtDjSlsq.getDjtDjSlsqById(this.bsmSjsb);
......@@ -277,6 +281,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -67,6 +67,10 @@ export default {
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await fjF100.getFjF100ById(this.bsmSjsb)
......@@ -76,6 +80,10 @@ export default {
this.$refs.msg.messageShow()
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -169,6 +169,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await ktfQtDzdzw.getKtfQtDzdzwById(this.bsmSjsb);
......@@ -177,6 +181,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -168,6 +168,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await ktfQtMzdzw.getKtfQtMzdzwById(this.bsmSjsb);
......@@ -177,6 +181,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -169,6 +169,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await ktfQtXzdzw.getKtfQtXzdzwById(this.bsmSjsb);
......@@ -178,6 +182,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -115,6 +115,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await ktfZdbhqk.getKtfZdbhqkById(this.bsmSjsb);
......@@ -124,6 +128,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -97,6 +97,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await ktfZhYhydzb.getKtfZhYhydzbById(
......@@ -108,6 +112,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -109,6 +109,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await ktfZhYhzk.getKtfZhYhzkById(this.bsmSjsb);
......@@ -118,6 +122,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -103,6 +103,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await zhK105.getZhK105ById(this.bsmSjsb);
......@@ -112,6 +116,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -218,6 +218,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await kttFwC.getKttFwCById(this.bsmSjsb);
......@@ -227,6 +231,10 @@
this.$refs.msg.messageShow()
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -518,6 +518,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb);
......@@ -527,6 +531,10 @@
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -321,6 +321,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await kttFwLjz.getKttFwLjzById(this.bsmSjsb);
......@@ -330,6 +334,10 @@
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -371,6 +371,10 @@
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await kttFwZrz.getKttFwZrzById(this.bsmSjsb);
......@@ -380,6 +384,10 @@
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -160,6 +160,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await kttGyJzd.getKttGyJzdById(this.bsmSjsb);
......@@ -169,6 +173,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -189,6 +189,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await kttGyJzx.getKttGyJzxById(this.bsmSjsb);
......@@ -198,6 +202,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -160,6 +160,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await kttGzw.getKttGzwById(this.bsmSjsb);
......@@ -169,6 +173,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -445,6 +445,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await kttZdjbxx.kttZdjbxxDetail(this.bsmSjsb);
......@@ -454,6 +458,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -437,6 +437,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await kttZhjbxx.getKttZhjbxxById(this.bsmSjsb);
......@@ -446,6 +450,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -164,6 +164,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfFwFdcqDzXm.getQlfFwFdcqDzXmById(
......@@ -175,6 +179,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -222,6 +222,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfFwFdcqQfsyq.getQlfFwFdcqQfsyqById(
......@@ -233,6 +237,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -311,6 +311,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlCfdj.getQlfQlCfdjById(this.bsmSjsb);
......@@ -320,6 +324,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -319,6 +319,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlDyaq.getQlfQlDyaqById(this.bsmSjsb);
......@@ -328,6 +332,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -340,6 +340,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlDyiq.getQlfQlDyiqById(this.bsmSjsb);
......@@ -349,6 +353,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -210,6 +210,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlGzdj.getQlfQlGzdjById(this.bsmSjsb);
......@@ -219,6 +223,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -297,6 +297,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlHysyq.getQlfQlHysyqById(this.bsmSjsb);
......@@ -306,6 +310,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -273,6 +273,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlJsydsyq.getQlfQlJsydsyqById(
......@@ -284,6 +288,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -353,6 +353,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlNydsyq.getQlfQlNydsyqByID(
......@@ -364,6 +368,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -344,6 +344,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlQtxgql.getQlfQlQtxgqlById(
......@@ -355,6 +359,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -316,6 +316,10 @@ export default {
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await qlfQlTdsyq.getQlfQlTdsyqById(this.bsmSjsb)
......@@ -325,6 +329,10 @@ export default {
this.$refs.msg.messageShow()
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -430,6 +430,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlYgdj.getQlfQlYgdjById(this.bsmSjsb);
......@@ -439,6 +443,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -212,6 +212,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlYydj.getQlfQlYydjById(this.bsmSjsb);
......@@ -221,6 +225,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -182,6 +182,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qlfQlZxdj.getQlfQlZxdjById(this.bsmSjsb);
......@@ -191,6 +195,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -315,6 +315,10 @@ export default {
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await qltFwFdcqDz.getQltFwFdcqDzById(this.bsmSjsb)
......@@ -324,6 +328,10 @@ export default {
this.$refs.msg.messageShow()
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -410,6 +410,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await qltFwFdcqYz.getQltFwFdcqYzById(
......@@ -421,6 +425,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -339,6 +339,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qltQlGjzwsyq.getQltQlGjzwsyqById(
......@@ -350,6 +354,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -388,6 +388,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await qltQlLq.getQltQlLqById(this.bsmSjsb);
......@@ -397,6 +401,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve, reject) => {
try {
......
......@@ -119,6 +119,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await zdK103.getZdK103ById(this.bsmSjsb);
......@@ -128,6 +132,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -92,6 +92,10 @@ export default {
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData() {
try {
let { result: res } = await zhK105.getZhK105ById(this.bsmSjsb);
......@@ -101,6 +105,10 @@ export default {
this.$refs.msg.messageShow();
}
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm() {
return new Promise(async (resolve) => {
try {
......
......@@ -433,12 +433,20 @@
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb);
this.obligeeForm.obligeeList = res;
} catch (error) { }
},
/**
* @description: handleUpdateForm
* @author: renchao
*/
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
......
......@@ -25,6 +25,11 @@
}
},
methods: {
/**
* @description: handleClick
* @param {*} evt
* @author: renchao
*/
handleClick (evt) {
this.$emit('click', evt);
}
......
......@@ -74,6 +74,10 @@ export default {
}
},
methods: {
/**
* @description: close
* @author: renchao
*/
close () {
this.$emit('close')
}
......
......@@ -96,6 +96,10 @@ export default {
}
},
methods: {
/**
* @description: handleFullscreen
* @author: renchao
*/
handleFullscreen () {
this.fullscreen = !this.fullscreen
if (!this.fullscreen) {
......@@ -104,11 +108,19 @@ export default {
this.scrollerHeight = (window.innerHeight - 120) + 'px'
}
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm () {
if (this.isButton) {
this.$emit('submitForm');
}
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.key++
this.$emit('input', false)
......
......@@ -52,6 +52,10 @@ export default {
LbRender
},
methods: {
/**
* @description: setColumn
* @author: renchao
*/
setColumn () {
if (this.column.type) {
this.column.renderHeader = forced[this.column.type].renderHeader
......
/*
* FileName: lb-table.vue
* Remark: element table
* Project: lb-element-table
* Author: 任超
* File Created: Tuesday, 19th March 2019 9:55:27 am
* Last Modified: Tuesday, 19th March 2019 9:55:34 am
* Modified By: 任超
*/
* FileName: lb-table.vue
* Remark: element table
* Project: lb-element-table
* Author: 任超
* File Created: Tuesday, 19th March 2019 9:55:27 am
* Last Modified: Tuesday, 19th March 2019 9:55:34 am
* Modified By: 任超
*/
<template>
<div :class="['lb-table', customClass]">
<el-table v-if="!heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }" ref="elTable" :border='border'
:row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs"
:height="tableHeight" v-on="$listeners" :data="data" style="width: 100%"
:span-method="this.merge ? this.mergeMethod : this.spanMethod">
:row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs"
:height="tableHeight" v-on="$listeners" :data="data" style="width: 100%"
:span-method="this.merge ? this.mergeMethod : this.spanMethod">
<el-table-column width="45" align="center" v-if="isRadio">
<template slot-scope="scope">
<el-radio v-model="selected" :label="scope.$index"></el-radio>
......@@ -27,8 +27,8 @@
</el-table>
<br>
<el-pagination class="lb-table-pagination" v-if="pagination" v-bind="$attrs" v-on="$listeners" background
layout="total, prev, pager, next" @current-change="paginationCurrentChange"
:style="{ 'margin-top': paginationTop, 'text-align': paginationAlign }">
layout="total, prev, pager, next" @current-change="paginationCurrentChange"
:style="{ 'margin-top': paginationTop, 'text-align': paginationAlign }">
</el-pagination>
</div>
</template>
......@@ -112,15 +112,30 @@ export default {
},
methods: {
// 单选
/**
* @description: 单选
* @param {*} row
* @author: renchao
*/
singleElection (row) {
this.selected = this.data.indexOf(row);
},
/**
* @description: tableRowClassName
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
tableRowClassName ({ row, rowIndex }) {
if (rowIndex % 2 === 1) {
return 'interlaced';
}
},
/**
* @description: getHeight
* @author: renchao
*/
getHeight () {
if (!this.heightNumSetting) {
let _this = this
......@@ -137,6 +152,12 @@ export default {
}
}
},
/**
* @description: calcHeightx
* @param {*} value
* @param {*} wappered
* @author: renchao
*/
calcHeightx (value, wappered = true) {
//项目自定义的公共header部分的高度,可忽略
let header = document.querySelector(".from-clues-header").offsetHeight;
......@@ -156,36 +177,91 @@ export default {
}
return res;
},
/**
* @description: clearSelection
* @author: renchao
*/
clearSelection () {
this.$refs.elTable.clearSelection()
},
/**
* @description: toggleRowSelection
* @param {*} row
* @param {*} selected
* @author: renchao
*/
toggleRowSelection (row, selected) {
this.$refs.elTable.toggleRowSelection(row, selected)
},
/**
* @description: toggleAllSelection
* @author: renchao
*/
toggleAllSelection () {
this.$refs.elTable.toggleAllSelection()
},
/**
* @description: toggleRowExpansion
* @param {*} row
* @param {*} expanded
* @author: renchao
*/
toggleRowExpansion (row, expanded) {
this.$refs.elTable.toggleRowExpansion(row, expanded)
},
/**
* @description: setCurrentRow
* @param {*} row
* @author: renchao
*/
setCurrentRow (row) {
this.$refs.elTable.setCurrentRow(row)
},
/**
* @description: clearSort
* @author: renchao
*/
clearSort () {
this.$refs.elTable.clearSort()
},
/**
* @description: clearFilter
* @param {*} columnKey
* @author: renchao
*/
clearFilter (columnKey) {
this.$refs.elTable.clearFilter(columnKey)
},
/**
* @description: doLayout
* @author: renchao
*/
doLayout () {
this.$refs.elTable.doLayout()
},
/**
* @description: sort
* @param {*} prop
* @param {*} order
* @author: renchao
*/
sort (prop, order) {
this.$refs.elTable.sort(prop, order)
},
/**
* @description: paginationCurrentChange
* @param {*} val
* @author: renchao
*/
paginationCurrentChange (val) {
this.$emit('p-current-change', val)
},
/**
* @description: getMergeArr
* @param {*} tableData
* @param {*} merge
* @author: renchao
*/
getMergeArr (tableData, merge) {
if (!merge) return
this.mergeLine = {}
......@@ -208,6 +284,14 @@ export default {
})
})
},
/**
* @description: mergeMethod
* @param {*} row
* @param {*} column
* @param {*} rowIndex
* @param {*} columnIndex
* @author: renchao
*/
mergeMethod ({ row, column, rowIndex, columnIndex }) {
const index = this.merge.indexOf(column.property)
if (index > -1) {
......@@ -249,3 +333,4 @@ export default {
display: none;
}
</style>
......
......@@ -25,6 +25,12 @@
},
},
methods: {
/**
* @description: hexToRgba
* @param {*} hex
* @param {*} opacity
* @author: renchao
*/
hexToRgba (hex, opacity) {
let rgbaColor = "";
let reg = /^#[\da-f]{6}$/i;
......@@ -35,6 +41,11 @@
}
return rgbaColor;
},
/**
* @description: fontSize
* @param {*} res
* @author: renchao
*/
fontSize (res) {
let docEl = document.documentElement,
clientWidth =
......
......@@ -35,6 +35,10 @@
});
},
methods: {
/**
* @description: dataTrend
* @author: renchao
*/
async dataTrend () {
try {
let { result: res } = await work.dataTrend();
......
......@@ -25,6 +25,10 @@
this.submitViews();
},
methods: {
/**
* @description: submitViews
* @author: renchao
*/
async submitViews () {
try {
let { result: res } = await work.submitViews("A20");
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-04 13:54:34
-->
......@@ -30,6 +30,10 @@
}, 10000) // 10s
},
methods: {
/**
* @description: getDjlxtotal
* @author: renchao
*/
getDjlxtotal () {
return new Promise(async (resolve) => {
try {
......
......@@ -184,6 +184,10 @@
},
methods: {
// 开启定时器
/**
* @description: 开启定时器
* @author: renchao
*/
startInterval () {
const _self = this;
// 应通过接口获取配置时间,暂时写死5s
......@@ -196,6 +200,10 @@
}, time);
},
// 重新随机选中地图区域
/**
* @description: 重新随机选中地图区域
* @author: renchao
*/
reSelectMapRandomArea () {
const length = 9;
this.$nextTick(() => {
......@@ -226,6 +234,10 @@
}
});
},
/**
* @description: handleMapRandomSelect
* @author: renchao
*/
handleMapRandomSelect () {
this.$nextTick(() => {
try {
......
......@@ -27,6 +27,10 @@
}, 10000) // 10s
},
methods: {
/**
* @description: mapViews
* @author: renchao
*/
async mapViews () {
try {
let { result: res } = await work.mapViews("A20");
......
......@@ -39,6 +39,10 @@
});
},
methods: {
/**
* @description: addhousetotal
* @author: renchao
*/
async addhousetotal () {
if (this.cdata == 0) {
this.cdata = [];
......@@ -61,6 +65,11 @@
}
},
// 处理数据方法
/**
* @description: 处理数据方法
* @param {*} delarr
* @author: renchao
*/
setadat (delarr) {
this.cdata = delarr.splice(0, 6);
let sum = 0
......
......@@ -193,6 +193,12 @@
};
},
methods: {
/**
* @description: dicStatus
* @param {*} val
* @param {*} code
* @author: renchao
*/
dicStatus (val, code) {
let data = this.dicData[code],
name = ''
......@@ -205,8 +211,18 @@
return name
}
},
/**
* @description: handleTitleTab
* @param {*} val
* @author: renchao
*/
handleTitleTab (val) {
},
/**
* @description: isShow
* @param {*} item
* @author: renchao
*/
isShow (item) {
if (item.bizMsgid) {
this.$set(this.bwoptions, 0, {
......@@ -240,6 +256,11 @@
}
},
// 获取列表接口
/**
* @description: 获取列表接口
* @param {*} data
* @author: renchao
*/
_getList (data) {
getTabsDetail({ bsmReport: data.bsmReport || data.bsmSjsb }).then((res) => {
if (res.code == 200) {
......@@ -250,6 +271,11 @@
}
});
},
/**
* @description: changeList
* @param {*} val
* @author: renchao
*/
changeList (val) {
let _index = val.index;
if (_index > this.index) {
......@@ -263,10 +289,19 @@
// }
// });
},
/**
* @description: loadView
* @param {*} view
* @author: renchao
*/
loadView (view) {
return (r) =>
require.ensure([], () => r(require(`@/components/Business/${view}.vue`)));
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.dialogVisible = false;
//关闭弹框时将tabs项置空
......
......@@ -60,16 +60,36 @@ export default {
this.iconList = icoNameList
},
methods: {
/**
* @description: show
* @param {*} show
* @author: renchao
*/
show(show) {
this.visible = show
},
/**
* @description: handleClick
* @param {*} tab
* @param {*} event
* @author: renchao
*/
handleClick(tab, event) {
},
/**
* @description: changeData
* @param {*} iconName
* @author: renchao
*/
changeData(iconName) {
this.visible = false
// 传递图标名称给父级
this.$emit('iconName', iconName)
},
/**
* @description: changeIconName
* @author: renchao
*/
changeIconName() {
this.visible = false
// 传递图标名称给父级
......
......@@ -52,6 +52,10 @@ export default {
LbRender
},
methods: {
/**
* @description: setColumn
* @author: renchao
*/
setColumn () {
if (this.column.type) {
this.column.renderHeader = forced[this.column.type].renderHeader
......
......@@ -125,15 +125,30 @@ export default {
},
methods: {
// 单选
/**
* @description: 单选
* @param {*} row
* @author: renchao
*/
singleElection (row) {
this.selected = this.data.indexOf(row);
},
/**
* @description: tableRowClassName
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
tableRowClassName ({ row, rowIndex }) {
if (rowIndex % 2 === 1) {
return 'interlaced';
}
},
/**
* @description: getHeight
* @author: renchao
*/
getHeight () {
if (!this.heightNumSetting) {
let _this = this
......@@ -169,6 +184,12 @@ export default {
})
}
},
/**
* @description: calcHeightx
* @param {*} value
* @param {*} wappered
* @author: renchao
*/
calcHeightx (value, wappered = true) {
//项目自定义的公共header部分的高度,可忽略
let header = document.querySelector(".from-clues-header").offsetHeight;
......@@ -194,36 +215,91 @@ export default {
}
return res;
},
/**
* @description: clearSelection
* @author: renchao
*/
clearSelection () {
this.$refs.elTable.clearSelection()
},
/**
* @description: toggleRowSelection
* @param {*} row
* @param {*} selected
* @author: renchao
*/
toggleRowSelection (row, selected) {
this.$refs.elTable.toggleRowSelection(row, selected)
},
/**
* @description: toggleAllSelection
* @author: renchao
*/
toggleAllSelection () {
this.$refs.elTable.toggleAllSelection()
},
/**
* @description: toggleRowExpansion
* @param {*} row
* @param {*} expanded
* @author: renchao
*/
toggleRowExpansion (row, expanded) {
this.$refs.elTable.toggleRowExpansion(row, expanded)
},
/**
* @description: setCurrentRow
* @param {*} row
* @author: renchao
*/
setCurrentRow (row) {
this.$refs.elTable.setCurrentRow(row)
},
/**
* @description: clearSort
* @author: renchao
*/
clearSort () {
this.$refs.elTable.clearSort()
},
/**
* @description: clearFilter
* @param {*} columnKey
* @author: renchao
*/
clearFilter (columnKey) {
this.$refs.elTable.clearFilter(columnKey)
},
/**
* @description: doLayout
* @author: renchao
*/
doLayout () {
this.$refs.elTable.doLayout()
},
/**
* @description: sort
* @param {*} prop
* @param {*} order
* @author: renchao
*/
sort (prop, order) {
this.$refs.elTable.sort(prop, order)
},
/**
* @description: paginationCurrentChange
* @param {*} val
* @author: renchao
*/
paginationCurrentChange (val) {
this.$emit('p-current-change', val)
},
/**
* @description: getMergeArr
* @param {*} tableData
* @param {*} merge
* @author: renchao
*/
getMergeArr (tableData, merge) {
if (!merge) return
this.mergeLine = {}
......@@ -246,6 +322,14 @@ export default {
})
})
},
/**
* @description: mergeMethod
* @param {*} row
* @param {*} column
* @param {*} rowIndex
* @param {*} columnIndex
* @author: renchao
*/
mergeMethod ({ row, column, rowIndex, columnIndex }) {
const index = this.merge.indexOf(column.property)
if (index > -1) {
......
import service from './src/index';
export default {
/**
* @description: install
* @param {*} Vue
* @author: renchao
*/
install (Vue) {
Vue.prototype.$loading = service;
},
......
......@@ -20,6 +20,10 @@ let fullscreenLoading;
LoadingConstructor.prototype.originalPosition = '';
LoadingConstructor.prototype.originalOverflow = '';
/**
* @description: close
* @author: renchao
*/
LoadingConstructor.prototype.close = function() {
if (this.fullscreen) {
fullscreenLoading = undefined;
......@@ -38,6 +42,13 @@ LoadingConstructor.prototype.close = function() {
this.visible = false;
};
/**
* @description: addStyle
* @param {*} options
* @param {*} parent
* @param {*} instance
* @author: renchao
*/
const addStyle = (options, parent, instance) => {
let maskStyle = {};
if (options.fullscreen) {
......@@ -64,6 +75,11 @@ const addStyle = (options, parent, instance) => {
});
};
/**
* @description: Loading
* @param {*} options
* @author: renchao
*/
const Loading = (options = {}) => {
if (Vue.prototype.$isServer) return;
options = merge({}, defaults, options);
......
......@@ -28,9 +28,18 @@ export default {
},
methods: {
/**
* @description: handleAfterLeave
* @author: renchao
*/
handleAfterLeave () {
this.$emit('after-leave');
},
/**
* @description: setText
* @param {*} text
* @author: renchao
*/
setText (text) {
this.text = text;
}
......@@ -46,4 +55,4 @@ export default {
height: 80px;
}
}
</style>
\ No newline at end of file
</style>
......
......@@ -43,6 +43,10 @@ const MessageBoxConstructor = Vue.extend(msgboxVue);
let currentMsg, instance;
let msgQueue = [];
/**
* @description: defaultCallback
* @author: renchao
*/
const defaultCallback = action => {
if (currentMsg) {
let callback = currentMsg.callback;
......@@ -56,6 +60,10 @@ const defaultCallback = action => {
}
};
/**
* @description: initInstance
* @author: renchao
*/
const initInstance = () => {
instance = new MessageBoxConstructor({
el: document.createElement('div')
......@@ -64,6 +72,10 @@ const initInstance = () => {
instance.callback = defaultCallback;
};
/**
* @description: showNextMsg
* @author: renchao
*/
const showNextMsg = () => {
if (!instance) {
initInstance();
......@@ -109,6 +121,12 @@ const showNextMsg = () => {
}
};
/**
* @description: MessageBox
* @param {*} options
* @param {*} callback
* @author: renchao
*/
const MessageBox = function (options, callback) {
if (Vue.prototype.$isServer) return;
if (typeof options === 'string' || isVNode(options)) {
......@@ -143,10 +161,21 @@ const MessageBox = function (options, callback) {
}
};
/**
* @description: setDefaults
* @author: renchao
*/
MessageBox.setDefaults = defaults => {
MessageBox.defaults = defaults;
};
/**
* @description: alert
* @param {*} title
* @param {*} message
* @param {*} options
* @author: renchao
*/
MessageBox.alert = (title, message, options) => {
if (typeof title === 'object') {
options = title;
......@@ -163,6 +192,10 @@ MessageBox.alert = (title, message, options) => {
}, options));
};
/**
* @description: close
* @author: renchao
*/
MessageBox.close = () => {
instance.doClose();
instance.visible = false;
......
<template>
<transition name="msgbox-fade">
<div class="el-message-box__wrapper" tabindex="-1" v-show="visible" @click.self="handleWrapperClick" role="dialog"
aria-modal="true" :aria-label="title || 'dialog'">
aria-modal="true" :aria-label="title || 'dialog'">
<div class="el-message-box" :class="[customClass, center && 'el-message-box--center']">
<div class="el-message-box__header" v-if="title !== null">
<div class="el-message-box__title">
<span>标题:{{ title }}</span>
</div>
<button type="button" class="el-message-box__headerbtn" aria-label="Close" v-if="showClose"
@click="handleAction(distinguishCancelAndClose ? 'close' : 'cancel')"
@keydown.enter="handleAction(distinguishCancelAndClose ? 'close' : 'cancel')">
@click="handleAction(distinguishCancelAndClose ? 'close' : 'cancel')"
@keydown.enter="handleAction(distinguishCancelAndClose ? 'close' : 'cancel')">
<i class="el-message-box__close el-icon-close"></i>
</button>
</div>
......@@ -18,7 +18,7 @@
</div>
<div class="el-message-box__btns">
<el-button :loading="cancelButtonLoading" :class="[cancelButtonClasses]" :round="roundButton" size="small"
@click.native="handleAction('cancel')" @keydown.enter="handleAction('cancel')">
@click.native="handleAction('cancel')" @keydown.enter="handleAction('cancel')">
{{ cancelButtonText || t('el.messagebox.cancel') }}
</el-button>
</div>
......@@ -97,6 +97,10 @@ export default {
},
methods: {
/**
* @description: getSafeClose
* @author: renchao
*/
getSafeClose () {
const currentId = this.uid;
return () => {
......@@ -105,6 +109,10 @@ export default {
});
};
},
/**
* @description: doClose
* @author: renchao
*/
doClose () {
if (!this.visible) return;
this.visible = false;
......@@ -122,18 +130,31 @@ export default {
});
},
/**
* @description: handleWrapperClick
* @author: renchao
*/
handleWrapperClick () {
if (this.closeOnClickModal) {
this.handleAction(this.distinguishCancelAndClose ? 'close' : 'cancel');
}
},
/**
* @description: handleInputEnter
* @author: renchao
*/
handleInputEnter () {
if (this.inputType !== 'textarea') {
return this.handleAction('confirm');
}
},
/**
* @description: handleAction
* @param {*} action
* @author: renchao
*/
handleAction (action) {
if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) {
return;
......@@ -147,6 +168,10 @@ export default {
}
},
/**
* @description: validate
* @author: renchao
*/
validate () {
if (this.$type === 'prompt') {
const inputPattern = this.inputPattern;
......@@ -174,15 +199,27 @@ export default {
removeClass(this.getInputElement(), 'invalid');
return true;
},
/**
* @description: getFirstFocus
* @author: renchao
*/
getFirstFocus () {
const btn = this.$el.querySelector('.el-message-box__btns .el-button');
const title = this.$el.querySelector('.el-message-box__btns .el-message-box__title');
return btn || title;
},
/**
* @description: getInputElement
* @author: renchao
*/
getInputElement () {
const inputRefs = this.$refs.input.$refs;
return inputRefs.input || inputRefs.textarea;
},
/**
* @description: handleClose
* @author: renchao
*/
handleClose () {
this.handleAction('close');
}
......@@ -294,4 +331,4 @@ export default {
/deep/.el-message-box__content {
padding-top: 0;
}
</style>
\ No newline at end of file
</style>
......
......@@ -3,6 +3,10 @@ import Popup from './index.vue'
const PopupBox = Vue.extend(Popup)
let popuping = undefined
/**
* @description: close
* @author: renchao
*/
PopupBox.prototype.close = function () {
// 如果Popup 有引用,则去掉引用
if (popuping) {
......@@ -19,6 +23,14 @@ PopupBox.prototype.close = function () {
}, 300)
}
/**
* @description: Popup1
* @param {*} title
* @param {*} editItem
* @param {*} data
* @param {*} formData
* @author: renchao
*/
const Popup1 = (title, editItem, data, formData) => {
// 如果组件已渲染,则返回即可
if (popuping) {
......
......@@ -74,9 +74,17 @@
}, 300)
},
methods: {
/**
* @description: onCancel
* @author: renchao
*/
onCancel () {
Popup1().close()
},
/**
* @description: onConfirm
* @author: renchao
*/
onConfirm () {
this.loading = true
let res = new Promise((resolve, reject) => {
......@@ -87,9 +95,19 @@
this.isShow = false
}
},
/**
* @description: loadingFn
* @param {*} e
* @author: renchao
*/
loadingFn (e) { //加载状态
this.loading = e
},
/**
* @description: loadViewFn
* @param {*} view
* @author: renchao
*/
loadViewFn (view) {
return (r) =>
require.ensure([], () =>
......
......@@ -62,10 +62,14 @@
}
},
mounted () {
this.initHandle()
this.initHandle()
},
methods: {
// 初始化值
/**
* @description: 初始化值
* @author: renchao
*/
initHandle () {
if (this.valueId && this.options.length!=0) {
this.valueTitle = this.$refs.selectTree.getNode(this.valueId).data[
......@@ -77,6 +81,10 @@
this.initScroll()
},
// 初始化滚动条
/**
* @description: 初始化滚动条
* @author: renchao
*/
initScroll () {
this.$nextTick(() => {
let scrollWrap = document.querySelectorAll(
......@@ -91,6 +99,11 @@
})
},
// 切换选项
/**
* @description: 切换选项
* @param {*} node
* @author: renchao
*/
handleNodeClick (node) {
this.valueId = node[this.props.value]
this.valueTitle = node[this.props.label]
......@@ -122,6 +135,10 @@
// return temp
// },
// 清除选中
/**
* @description: 清除选中
* @author: renchao
*/
clearHandle () {
this.valueTitle = ''
this.valueId = null
......@@ -130,10 +147,20 @@
this.$emit('getValue', null)
},
/* 清空选中样式 */
/**
* @description: 清空选中样式
* @author: renchao
*/
clearSelected () {
let allNode = document.querySelectorAll('#tree-option .el-tree-node')
allNode.forEach((element) => element.classList.remove('is-current'))
},
/**
* @description: filterNode
* @param {*} value
* @param {*} data
* @author: renchao
*/
filterNode (value, data) {
if (!value) return true
return data.name.indexOf(value) !== -1
......@@ -181,4 +208,4 @@
padding: 0 5px;
box-sizing: border-box;
}
</style>
\ No newline at end of file
</style>
......
/*
* FileName: lb-column.vue
* Remark: element-column
* Project: lb-element-table
* Author: 任超
* File Created: Tuesday, 19th March 2019 9:58:23 am
* Last Modified: Tuesday, 19th March 2019 10:14:42 am
* Modified By: 任超
*/
<template>
<el-table-column v-bind="$attrs" v-on="$listeners" :prop="column.prop" :label="column.label" :type="column.type"
:index="column.index" :column-key="column.columnKey" :width="column.width" :min-width="column.minWidth"
:fixed="column.fixed" :scoped-slot="column.renderHeader" :sortable="column.sortable || false"
:sort-method="column.sortMethod" :sort-by="column.sortBy" :sort-orders="column.sortOrders"
:resizable="column.resizable || true" :formatter="column.formatter"
:show-overflow-tooltip="column.showOverflowTooltip || false" :align="column.align || align || 'center'"
:header-align="column.headerAlign || headerAlign || column.align || align || 'center'"
:class-name="column.className" :label-class-name="column.labelClassName" :selectable="column.selectable"
:reserve-selection="column.reserveSelection || false" :filters="column.filters"
:filter-placement="column.filterPlacement" :filter-multiple="column.filterMultiple"
:filter-method="column.filterMethod" :filtered-value="column.filteredValue">
<template slot="header" slot-scope="scope">
<lb-render v-if="column.renderHeader" :scope="scope" :render="column.renderHeader">
</lb-render>
<span v-else>{{ scope.column.label }}</span>
</template>
<template slot-scope="scope">
<lb-render :scope="scope" :render="column.render">
</lb-render>
</template>
<template v-if="column.children">
<lb-column v-for="(col, index) in column.children" :key="index" :column="col">
</lb-column>
</template>
</el-table-column>
</template>
<script>
import LbRender from './LbRender'
import forced from './forced.js'
export default {
name: 'LbColumn',
props: {
column: Object,
headerAlign: String,
align: String
},
components: {
LbRender
},
methods: {
setColumn () {
if (this.column.type) {
this.column.renderHeader = forced[this.column.type].renderHeader
this.column.render = this.column.render || forced[this.column.type].renderCell
}
if (this.column.formatter) {
this.column.render = (h, scope) => {
return <span>{scope.column.formatter(scope.row, scope.column, scope.row, scope.$index)}</span>
}
}
if (!this.column.render) {
this.column.render = (h, scope) => {
return <span>{scope.row[scope.column.property]}</span>
}
}
}
},
watch: {
column: {
handler () {
this.setColumn()
},
immediate: true
}
}
}
</script>
/*
* FileName: lb-render.vue
* Remark: 自定义render
* Project: lb-element-table
* Author: 任超
* File Created: Tuesday, 19th March 2019 10:15:30 am
* Last Modified: Tuesday, 19th March 2019 10:15:32 am
* Modified By: 任超
*/
<script>
export default {
name: 'LbRender',
functional: true,
props: {
scope: Object,
render: Function
},
render: (h, ctx) => {
return ctx.props.render ? ctx.props.render(h, ctx.props.scope) : ''
}
}
</script>
export default {
selection: {
renderHeader: (h, { store }) => {
return (
<el-checkbox
disabled={store.states.data && store.states.data.length === 0}
indeterminate={
store.states.selection.length > 0 && !store.states.isAllSelected
}
nativeOn-click={store.toggleAllSelection}
value={store.states.isAllSelected}
/>
)
},
renderCell: (h, { row, column, store, $index }) => {
return (
<el-checkbox
nativeOn-click={event => event.stopPropagation()}
value={store.isSelected(row)}
disabled={
column.selectable
? !column.selectable.call(null, row, $index)
: false
}
on-input={() => {
store.commit('rowSelectedChanged', row)
}}
/>
)
},
sortable: false,
resizable: false
},
index: {
renderHeader: (h, scope) => {
return <span>{scope.column.label || '#'}</span>
},
renderCell: (h, { $index, column }) => {
let i = $index + 1
const index = column.index
if (typeof index === 'number') {
i = $index + index
} else if (typeof index === 'function') {
i = index($index)
}
return <div>{i}</div>
},
sortable: false
},
expand: {
renderHeader: (h, scope) => {
return <span>{scope.column.label || ''}</span>
},
renderCell: (h, { row, store }, proxy) => {
const expanded = store.states.expandRows.indexOf(row) > -1
return (
<div
class={
'el-table__expand-icon ' +
(expanded ? 'el-table__expand-icon--expanded' : '')
}
on-click={e => proxy.handleExpandClick(row, e)}
>
<i class='el-icon el-icon-arrow-right' />
</div>
)
},
sortable: false,
resizable: false,
className: 'el-table__expand-column'
}
}
/*
* FileName: lb-table.vue
* Remark: element table
* Project: lb-element-table
* Author: 任超
* File Created: Tuesday, 19th March 2019 9:55:27 am
* Last Modified: Tuesday, 19th March 2019 9:55:34 am
* Modified By: 任超
*/
<template>
<div :class="['lb-table', customClass]">
<el-table v-if="!heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }" ref="elTable" :border='border'
:row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs"
:height="tableHeight" v-on="$listeners" :data="data" style="width: 100%"
:span-method="this.merge ? this.mergeMethod : this.spanMethod">
<el-table-column width="45" align="center" v-if="isRadio">
<template slot-scope="scope">
<el-radio v-model="selected" :label="scope.$index"></el-radio>
</template>
</el-table-column>
<el-table-column :label="downTitle" align="center">
<lb-column v-bind="$attrs" v-for="(item, index) in column" :key="index" :column="item">
</lb-column>
</el-table-column>
</el-table>
<br>
<el-pagination class="lb-table-pagination" v-if="pagination" v-bind="$attrs" v-on="$listeners" background
layout="total, prev, pager, next" @current-change="paginationCurrentChange"
:style="{ 'margin-top': paginationTop, 'text-align': paginationAlign }">
</el-pagination>
</div>
</template>
<script>
import LbColumn from './LbColumn'
export default {
props: {
column: Array,
data: Array,
spanMethod: Function,
pagination: {
type: Boolean,
default: true,
},
downExcel: {
type: Boolean,
default: false,
},
downTitle: {
type: String,
default: '标题'
},
isRadio: {
type: Boolean,
default: false,
},
border: {
type: Boolean,
default: false,
},
showHeader: {
type: Boolean,
default: true,
},
paginationTop: {
type: String,
default: '0',
},
heightNum: {
type: Number,
default: 355,
},
maxHeight: {
type: Number,
default: 500
},
heightNumSetting: {
type: Boolean,
default: false,
},
customClass: {
type: String,
default: '',
},
paginationAlign: {
type: String,
default: 'left',
},
merge: Array,
},
components: {
LbColumn,
},
data () {
return {
tableHeight: 'auto',
mergeLine: {},
mergeIndex: {},
selected: ''
}
},
created () {
this.getMergeArr(this.data, this.merge)
this.getHeight()
},
computed: {
dataLength () {
return [] || this.data.length
},
},
methods: {
// 单选
singleElection (row) {
this.selected = this.data.indexOf(row);
},
tableRowClassName ({ row, rowIndex }) {
if (rowIndex % 2 === 1) {
return 'interlaced';
}
},
getHeight () {
if (!this.heightNumSetting) {
let _this = this
if (this.heightNum) {
_this.$nextTick(() => {
window.addEventListener('resize', () => {
_this.tableHeight = _this.calcHeightx(230)
});
_this.tableHeight = _this.calcHeightx(230)
})
} else {
_this.tableHeight = window.innerHeight - _this.heightNum
}
}
},
calcHeightx (value, wappered = true) {
//项目自定义的公共header部分的高度,可忽略
let header = document.querySelector(".from-clues-header").offsetHeight;
//value为动态计算table界面高度时,减去的其他空白部分,需自行在调试找到临界值,剩下的就是table表格的高度(包含header+body部分)
value = value == undefined ? 100 : value;
let res = window.innerHeight - parseInt(header) - value;
if (wappered) {
//通过原生方法,获取dom节点的高度------获取element-ui table表格body的元素
let wapper = window.document.getElementsByClassName('el-table__body-wrapper');
//通过原生方法,获取dom节点的高度------获取element-ui table表格header的元素
let header = window.document.getElementsByClassName('el-table__header-wrapper');
//必须加延时,要不然赋不上去值
setTimeout(() => {
//通过上边计算得到的table高度的value值,减去table表格的header高度,剩下的通过dom节点直接强行赋给table表格的body
wapper[0].style.height = (value - header[0].clientHeight)
}, 100)
}
return res;
},
clearSelection () {
this.$refs.elTable.clearSelection()
},
toggleRowSelection (row, selected) {
this.$refs.elTable.toggleRowSelection(row, selected)
},
toggleAllSelection () {
this.$refs.elTable.toggleAllSelection()
},
toggleRowExpansion (row, expanded) {
this.$refs.elTable.toggleRowExpansion(row, expanded)
},
setCurrentRow (row) {
this.$refs.elTable.setCurrentRow(row)
},
clearSort () {
this.$refs.elTable.clearSort()
},
clearFilter (columnKey) {
this.$refs.elTable.clearFilter(columnKey)
},
doLayout () {
this.$refs.elTable.doLayout()
},
sort (prop, order) {
this.$refs.elTable.sort(prop, order)
},
paginationCurrentChange (val) {
this.$emit('p-current-change', val)
},
getMergeArr (tableData, merge) {
if (!merge) return
this.mergeLine = {}
this.mergeIndex = {}
merge.forEach((item, k) => {
tableData.forEach((data, i) => {
if (i === 0) {
this.mergeIndex[item] = this.mergeIndex[item] || []
this.mergeIndex[item].push(1)
this.mergeLine[item] = 0
} else {
if (data[item] === tableData[i - 1][item]) {
this.mergeIndex[item][this.mergeLine[item]] += 1
this.mergeIndex[item].push(0)
} else {
this.mergeIndex[item].push(1)
this.mergeLine[item] = i
}
}
})
})
},
mergeMethod ({ row, column, rowIndex, columnIndex }) {
const index = this.merge.indexOf(column.property)
if (index > -1) {
const _row = this.mergeIndex[this.merge[index]][rowIndex]
const _col = _row > 0 ? 1 : 0
return {
rowspan: _row,
colspan: _col,
}
}
},
},
watch: {
merge () {
this.getMergeArr(this.data, this.merge)
},
dataLength () {
this.getMergeArr(this.data, this.merge)
}
},
}
</script>
<style rel="stylesheet/scss" scoped lang="scss">
.lb-table {
margin-top: 1px;
.interlaced {
background: #fafcff;
border: 1px solid #ebf2fa;
}
}
/deep/.el-table .cell {
padding-left: 3px;
padding-right: 3px;
}
/deep/.el-radio__label {
display: none;
}
</style>
## 这是对于element-table 进行的二次封装
### 文档地址
<!-- table 已经全局注册不需要每个页面单独注册 -->
[Windows/Mac/Linux 全平台客户端](https://github.liubing.me/lb-element-table/zh/guide/)
export const theme = {
/**
* @description: bind
* @param {*} el
* @param {*} binding
* @param {*} vnode
* @author: renchao
*/
bind: function (el, binding, vnode) {
setEleStyleColorAttribute(el, binding);
},
/**
* @description: update
* @param {*} el
* @param {*} binding
* @param {*} vnode
* @author: renchao
*/
update: function (el, binding, vnode) {
setEleStyleColorAttribute(el, binding);
},
/**
* @description: componentUpdated
* @param {*} el
* @param {*} binding
* @param {*} vnode
* @author: renchao
*/
componentUpdated: function (el, binding, vnode) {
setEleStyleColorAttribute(el, binding);
}
}
/**
* @description: setEleStyleColorAttribute
* @param {*} el
* @param {*} binding
* @author: renchao
*/
function setEleStyleColorAttribute (el, binding) {
const { name, value, arg, expression, modifiers } = binding;
const { background, font, border } = modifiers;
if (background) el.style['background-color'] = value;
if (font) el.style.color = value;
if (border) el.style['border-color'] = value;
}
\ No newline at end of file
}
......
......@@ -35,6 +35,10 @@
}
},
methods: {
/**
* @description: handleDataView
* @author: renchao
*/
onCancel () {
logout()
.then((res) => {
......
......@@ -10,6 +10,10 @@ export default {
this.fixBugIniOS()
},
methods: {
/**
* @description: fixBugIniOS
* @author: renchao
*/
fixBugIniOS() {
const $subMenu = this.$refs.subMenu
if ($subMenu) {
......
......@@ -53,6 +53,12 @@ export default {
return {}
},
methods: {
/**
* @description: hasOneShowingChild
* @param {*} children
* @param {*} parent
* @author: renchao
*/
hasOneShowingChild (children = [], parent) {
const showingChildren = children.filter(item => {
if (item.hidden) {
......@@ -77,6 +83,11 @@ export default {
return false
},
/**
* @description: resolvePath
* @param {*} routePath
* @author: renchao
*/
resolvePath (routePath) {
if (isExternal(routePath)) {
return routePath
......@@ -88,4 +99,4 @@ export default {
}
}
}
</script>
\ No newline at end of file
</script>
......
......@@ -26,14 +26,28 @@ export default {
this.scrollWrapper.removeEventListener('scroll', this.emitScroll)
},
methods: {
/**
* @description: handleScroll
* @param {*} e
* @author: renchao
*/
handleScroll (e) {
const eventDelta = e.wheelDelta || -e.deltaY * 40
const $scrollWrapper = this.scrollWrapper
$scrollWrapper.scrollLeft = $scrollWrapper.scrollLeft + eventDelta / 4
},
/**
* @description: emitScroll
* @author: renchao
*/
emitScroll () {
this.$emit('scroll')
},
/**
* @description: moveToTarget
* @param {*} currentTag
* @author: renchao
*/
moveToTarget (currentTag) {
const $container = this.$refs.scrollContainer.$el
const $containerWidth = $container.offsetWidth
......
......@@ -59,12 +59,28 @@ export default {
this.addTags()
},
methods: {
/**
* @description: isActive
* @param {*} route
* @author: renchao
*/
isActive (route) {
return route.path === this.$route.path
},
/**
* @description: isAffix
* @param {*} tag
* @author: renchao
*/
isAffix (tag) {
return tag.meta && tag.meta.affix
},
/**
* @description: filterAffixTags
* @param {*} routes
* @param {*} basePath
* @author: renchao
*/
filterAffixTags (routes, basePath = '/') {
let tags = []
routes.forEach(route => {
......@@ -86,6 +102,10 @@ export default {
})
return tags
},
/**
* @description: initTags
* @author: renchao
*/
initTags () {
const affixTags = this.affixTags = this.filterAffixTags(this.routes)
for (const tag of affixTags) {
......@@ -95,6 +115,10 @@ export default {
}
}
},
/**
* @description: addTags
* @author: renchao
*/
addTags () {
const { name } = this.$route
if (name) {
......@@ -102,6 +126,10 @@ export default {
}
return false
},
/**
* @description: moveToCurrentTag
* @author: renchao
*/
moveToCurrentTag () {
const tags = this.$refs.tag
this.$nextTick(() => {
......@@ -117,6 +145,11 @@ export default {
}
})
},
/**
* @description: refreshSelectedTag
* @param {*} view
* @author: renchao
*/
refreshSelectedTag (view) {
this.$store.dispatch('tagsView/delCachedView', view).then(() => {
const { fullPath } = view
......@@ -127,6 +160,11 @@ export default {
})
})
},
/**
* @description: closeSelectedTag
* @param {*} view
* @author: renchao
*/
closeSelectedTag (view) {
this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
if (this.isActive(view)) {
......@@ -134,12 +172,21 @@ export default {
}
})
},
/**
* @description: closeOthersTags
* @author: renchao
*/
closeOthersTags () {
this.$router.push(this.selectedTag)
this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => {
this.moveToCurrentTag()
})
},
/**
* @description: closeAllTags
* @param {*} view
* @author: renchao
*/
closeAllTags (view) {
this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => {
if (this.affixTags.some(tag => tag.path === view.path)) {
......@@ -148,6 +195,12 @@ export default {
this.toLastView(visitedViews, view)
})
},
/**
* @description: toLastView
* @param {*} visitedViews
* @param {*} view
* @author: renchao
*/
toLastView (visitedViews, view) {
const latestView = visitedViews.slice(-1)[0]
if (latestView) {
......@@ -163,6 +216,12 @@ export default {
}
}
},
/**
* @description: openMenu
* @param {*} tag
* @param {*} e
* @author: renchao
*/
openMenu (tag, e) {
const menuMinWidth = 105
const offsetLeft = this.$el.getBoundingClientRect().left // container margin left
......@@ -180,9 +239,17 @@ export default {
this.visible = true
this.selectedTag = tag
},
/**
* @description: closeMenu
* @author: renchao
*/
closeMenu () {
this.visible = false
},
/**
* @description: handleScroll
* @author: renchao
*/
handleScroll () {
this.closeMenu()
}
......
......@@ -27,10 +27,19 @@ export default {
methods: {
// use $_ for mixins properties
// https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential
/**
* @description: use $_ for mixins properties
* https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential
* @author: renchao
*/
$_isMobile() {
const rect = body.getBoundingClientRect()
return rect.width - 1 < WIDTH
},
/**
* @description: $_resizeHandler
* @author: renchao
*/
$_resizeHandler() {
if (!document.hidden) {
const isMobile = this.$_isMobile()
......
......@@ -32,6 +32,11 @@ export const TableListMixin = {
},
methods: {
// 加载表格数据
/**
* @description: 加载表格数据
* @param {*} arg
* @author: renchao
*/
loadData(arg) {
if (!this.tableUrl) {
console.log('请设置tableUrl属性为接口地址!')
......@@ -63,22 +68,45 @@ export const TableListMixin = {
})
},
// 字典值配置
/**
* @description: 字典值配置
* @author: renchao
*/
initDictConfig() {
// console.log('假初始化字典值方法!')
},
// 选择所有和取消所有
/**
* @description: 选择所有和取消所有
* @param {*} checked
* @param {*} records
* @author: renchao
*/
selectAllEvent({ checked, records }) {
this.selectionRows = records
},
// 选中节点
/**
* @description: 选中节点
* @param {*} records
* @author: renchao
*/
selectChangeEvent({ records }) {
this.selectionRows = records
},
// 使用查询条件查询
/**
* @description: 使用查询条件查询
* @author: renchao
*/
searchQuery() {
this.loadData()
},
// 获取查询条件
/**
* @description: 获取查询条件
* @author: renchao
*/
getQueryParams() {
if (this.queryOptions !== '') {
this.queryParam.queryOptions = JSON.stringify(this.queryOptions)
......@@ -86,17 +114,32 @@ export const TableListMixin = {
return this.$filterNullObj(this.queryParam)
},
// 新增
/**
* @description: 新增
* @author: renchao
*/
handleAdd: function() {
this.$refs.dialogForm.add()
this.$refs.dialogForm.title = '新增'
},
// 修改
/**
* @description: 修改
* @param {*} record
* @author: renchao
*/
handleEdit: function(record) {
localStorage.setItem('record', JSON.stringify(record))
this.$refs.dialogForm.edit(record)
this.$refs.dialogForm.title = '修改'
},
// 删除
/**
* @description: 删除
* @param {*} id
* @param {*} content
* @author: renchao
*/
handleDelete: function(id, content = '') {
this.$confirm(
`<div class="customer-message-wrapper">
......@@ -137,6 +180,10 @@ export const TableListMixin = {
.catch(() => {})
},
// 批量删除
/**
* @description: 批量删除
* @author: renchao
*/
batchDel: function() {
if (!this.tableUrl) {
this.$message.error({
......@@ -174,10 +221,20 @@ export const TableListMixin = {
.catch(() => {})
},
// 新增或修改成功时,重载列表
/**
* @description: 新增或修改成功时,重载列表
* @author: renchao
*/
dialogFormOk() {
this.loadData()
},
// 导出
/**
* @description: 导出
* @param {*} data
* @param {*} name
* @author: renchao
*/
handleExportXls(data, name) {
if (name === '菜单' || name === '部门' || name === '机构' ||
name === '资源' || name === '资源分类' || name === '数据字典' || name === '行政区划') {
......@@ -205,6 +262,10 @@ export const TableListMixin = {
}
},
/* 导入 */
/**
* @description: 导入
* @author: renchao
*/
handleImportExcel(info) {}
}
}
......
......@@ -16,8 +16,16 @@ let mixin = {
this.featchData()
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
featchData () {
},
/**
* @description: verificationForm
* @author: renchao
*/
verificationForm () {
return new Promise((resolve) => {
this.$refs['formList'].validate((valid) => {
......@@ -29,9 +37,17 @@ let mixin = {
})
})
},
/**
* @description: changeCertificate
* @author: renchao
*/
changeCertificate() {
},
/**
* @description: featchRule
* @author: renchao
*/
async featchRule () {
try {
let { result: { sysywsjbfieldlist } } = await ruleConfig.getRuleList(this.bsmYwsjb)
......@@ -75,4 +91,4 @@ let mixin = {
}
}
}
export default mixin
\ No newline at end of file
export default mixin
......
......@@ -21,13 +21,27 @@ let mixin = {
},
methods: {
// 表格索引得问题
/**
* @description: 表格索引得问题
* @param {*} index
* @author: renchao
*/
indexMethod (index) {
return index + 1 + (this.form.currentPage - 1) * this.formData.pageSize;
},
/**
* @description: handleSizeChange
* @param {*} val
* @author: renchao
*/
handleSizeChange (val) {
this.formData.pageSize = val
this.featchData()
},
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () {
this.form.currentPage = 1
this.tableData.data = []
......@@ -38,15 +52,29 @@ let mixin = {
this.queryClick()
}
},
/**
* @description: handleCurrentChange
* @param {*} val
* @author: renchao
*/
handleCurrentChange (val) {
this.form.currentPage = val
this.featchData()
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
this.tableData.data = []
this.featchData()
},
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleEdit (row) {
this.$refs.editLog.isShow(row);
if (row.rectypeName) {
......@@ -70,6 +98,10 @@ let mixin = {
}
},
// 重置表单
/**
* @description: 重置表单
* @author: renchao
*/
resetForm () {
if (!this.form) return
Object.keys(this.form).forEach((key) => {
......
......@@ -15,6 +15,11 @@ const mutations = {
}
const actions = {
/**
* @description: generateDic
* @param {*} commit
* @author: renchao
*/
generateDic ({ commit }) {
return new Promise(async (resolve) => {
let { result: res } = await getAllDict()
......@@ -22,6 +27,11 @@ const actions = {
resolve(true)
})
},
/**
* @description: resetdict
* @param {*} commit
* @author: renchao
*/
resetdict ({ commit }) {
commit('RESET_DICT')
}
......
......@@ -25,6 +25,12 @@ const mutations = {
}
const actions = {
// 添加全部菜单
/**
* @description: 添加全部菜单
* @param {*} commit
* @param {*} getMenuInfo
* @author: renchao
*/
generateRoutes ({ commit }, getMenuInfo) {
let Layout = r => require.ensure([], () => r(require(`@/layout`)))
function asyncRouter (routers) {
......@@ -63,11 +69,22 @@ const actions = {
})
},
// 重置路由
/**
* @description: 重置路由
* @param {*} commit
* @author: renchao
*/
resetRoutes ({ commit }) {
commit('RESET_ROUTE')
}
}
// 树转数组
/**
* @description: 树转数组
* @param {*} root
* @param {*} fVisit
* @author: renchao
*/
function dfs (root, fVisit) {
let stack = Array.isArray(root) ? [...root] : [root];
while (stack.length) {
......@@ -81,6 +98,12 @@ function dfs (root, fVisit) {
}
// 数组转树
//需要插入父节点id,pid为null或'',就是找root节点,然后root节点再去找自己的子节点
/**
* @description: 数组转树
* @param {*} data
* @param {*} pid
* @author: renchao
*/
function array2Tree (data, pid) {
let res = [];
data.forEach(item => {
......
/*
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-07 09:38:47
*/
......@@ -20,6 +20,11 @@ const mutations = {
};
const actions = {
/**
* @description: getUserInfo
* @param {*} commit
* @author: renchao
*/
getUserInfo ({ commit }) {
return new Promise(async (resolve) => {
let { result: res } = await getUserInfo();
......@@ -27,6 +32,11 @@ const actions = {
resolve(true);
});
},
/**
* @description: resetState
* @param {*} commit
* @author: renchao
*/
resetState ({ commit }) {
commit("RESET_USER");
},
......
......@@ -3,6 +3,10 @@
var CreatedOKLodopObject, CLodopIsLocal, CLodopJsState;
//==判断是否需要CLodop(那些不支持插件的浏览器):==
/**
* @description: ==判断是否需要CLodop(那些不支持插件的浏览器):==
* @author: renchao
*/
function needCLodop () {
try {
var ua = navigator.userAgent;
......@@ -45,6 +49,10 @@ function needCLodop () {
}
//==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):==
/**
* @description: ==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):==
* @author: renchao
*/
function loadCLodop () {
if (CLodopJsState == "loading" || CLodopJsState == "complete") return;
CLodopJsState = "loading";
......@@ -63,7 +71,12 @@ function loadCLodop () {
if (needCLodop()) { loadCLodop(); }//加载
//==获取LODOP对象主过程,判断是否安装、需否升级:==
/**
* @description: ==获取LODOP对象主过程,判断是否安装、需否升级:==
* @param {*} oOBJECT
* @param {*} oEMBED
* @author: renchao
*/
export function getLodop (oOBJECT, oEMBED) {
var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>";
var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>";
......
/*
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-23 15:26:37
*/
......@@ -12,6 +12,11 @@ if (ApiUrl.THEME == 'sb') {
Layout = r => require.ensure([], () => r(require(`@/layout`)))
}
/**
* @description: filterAsyncRouter
* @param {*} routers
* @author: renchao
*/
export default function filterAsyncRouter (routers) {
routers.forEach(item => {
if (!item.children) {
......@@ -32,6 +37,11 @@ export default function filterAsyncRouter (routers) {
})
return routers
}
/**
* @description: loadView
* @param {*} view
* @author: renchao
*/
function loadView (view) {
return r => require.ensure([], () => r(require(`@/views${view}.vue`)))
}
......
......@@ -28,6 +28,10 @@ export default {
window.removeEventListener('resize', this.resize)
},
methods: {
/**
* @description: calcRate
* @author: renchao
*/
calcRate () {
const appRef = this.$refs["appRef"]
if (!appRef) return
......@@ -47,6 +51,10 @@ export default {
}
}
},
/**
* @description: resize
* @author: renchao
*/
resize () {
clearTimeout(this.drawTiming)
this.drawTiming = setTimeout(() => {
......
......@@ -2,17 +2,33 @@ import store from '@/store'
// table 内部过滤器 由于过滤器只能在模板中使用 所以 就有了 jsx内部方法过滤器
export default class filter {
// 业务来源
/**
* @description: 业务来源
* @param {*} val
* @author: renchao
*/
busSource(val) {
let status = { 1: '办事大厅', 2: '微信小程序' }
return status[val]
}
//申请分类(1:正常申请,2:一并申请,3:补录申请)
/**
* @description: 申请分类(1:正常申请,2:一并申请,3:补录申请)
* @param {*} val
* @author: renchao
*/
sqfls(val) {
let status = { 1: '正常申请', 2: '一并申请', 3: '补录申请' }
return status[val]
}
// 字典
/**
* @description: 字典
* @param {*} val
* @param {*} code
* @author: renchao
*/
dicStatus(val, code) {
let data = store.getters.dicData[code],
name = ''
......@@ -25,6 +41,11 @@ export default class filter {
return name
}
}
/**
* @description: stateStatus
* @param {*} val
* @author: renchao
*/
stateStatus(val) {
let index = val + 1;
// -1 : 不存在 ,0 : 待激活,1:正常,2:暂停,3 : 出错, 4:阻塞
......
/*
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-16 13:31:27
*/
......@@ -7,6 +7,11 @@
import Vue from 'vue'
const title = Vue.prototype.BASE_API.TITLE
/**
* @description: getPageTitle
* @param {*} pageTitle
* @author: renchao
*/
export default function getPageTitle (pageTitle) {
if (pageTitle) {
return `${pageTitle} - ${title}`
......
/**
* @description: debounce
* @param {Function} fn 防抖函数
* @param {Number} delay 延迟时间
* @author: renchao
*/
export function debounce(fn, delay) {
var timer;
......@@ -15,8 +17,10 @@ export function debounce(fn, delay) {
}
/**
* @description: formatTime
* @param {date} time 需要转换的时间
* @param {String} fmt 需要转换的格式 如 yyyy-MM-dd、yyyy-MM-dd HH:mm:ss
* @author: renchao
*/
export function formatTime(time, fmt) {
if (!time) return '';
......
......@@ -18,23 +18,41 @@ export default {
}
},
methods: {
/**
* @description: handleSizeChange
* @param {*} val
* @author: renchao
*/
handleSizeChange (val) {
this.pageData.currentPage = 1
this.pageData.pageSize = val
this.queryClick()
},
/**
* @description: handleCurrentChange
* @param {*} val
* @author: renchao
*/
handleCurrentChange (val) {
this.pageData.currentPage = val
if (this.queryClick) {
this.queryClick()
}
},
/**
* @description: handleDel
* @author: renchao
*/
handleDel () {
let deleteAfterPage = Math.ceil((this.tableData.total - 1) / this.pageData.pageSize)
let currentPage = this.pageData.currentPage > deleteAfterPage ? deleteAfterPage : this.pageData.currentPage
this.pageData.currentPage = currentPage < 1 ? 1 : currentPage
},
// 重置表单
/**
* @description: 重置表单
* @author: renchao
*/
resetForm () {
if (!this.form) return
Object.keys(this.form).forEach((key) => {
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-11 16:31:01
*/
import { Message } from "element-ui";
/**
* @description: removeTreeListItem
* @param {*} treeList
* @param {*} dictId
* @param {*} idName
* @author: renchao
*/
export function removeTreeListItem (treeList, dictId, idName = 'dictid') {
if (!treeList || !treeList.length) {
return
......@@ -12,6 +24,12 @@ export function removeTreeListItem (treeList, dictId, idName = 'dictid') {
}
}
// 创造id
/**
* @description: 创造id
* @param {*} len
* @param {*} radix
* @author: renchao
*/
export function getUuid (len, radix) {
var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split(
""
......@@ -34,6 +52,11 @@ export function getUuid (len, radix) {
}
return uuid.join("");
}
/**
* @description: judgeSort
* @param {*} arr
* @author: renchao
*/
export function judgeSort (arr) {
if (arr.length) {
for (let i in arr) {
......@@ -47,6 +70,13 @@ export function judgeSort (arr) {
return arr
}
// 上下移动
/**
* @description: 上下移动
* @param {*} bsmDict
* @param {*} operate
* @param {*} data
* @author: renchao
*/
export function realMove (bsmDict, operate, data) {
function changeSort (arr, bsmDict) {
if (arr.length) {
......@@ -72,6 +102,12 @@ export function realMove (bsmDict, operate, data) {
data = judgeSort(changeSort(data, bsmDict));
}
// 获取所有父节点
/**
* @description: 获取所有父节点
* @param {*} treeData
* @param {*} bsmDict
* @author: renchao
*/
export function findParents (treeData, bsmDict) {
if (treeData.length == 0) return
for (let i = 0; i < treeData.length; i++) {
......@@ -88,6 +124,12 @@ export function findParents (treeData, bsmDict) {
}
}
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} data
* @author: renchao
*/
export function upward (index, data) {
if (index > 0) {
let upData = data[index - 1];
......@@ -99,6 +141,12 @@ export function upward (index, data) {
});
}
}
/**
* @description: down
* @param {*} index
* @param {*} data
* @author: renchao
*/
export function down (index, data) {
if ((index + 1) == data.length) {
Message({
......@@ -110,7 +158,12 @@ export function down (index, data) {
data.splice(index, 0, downData);
}
}
/**
* @description: timeFormat
* @param {*} date
* @param {*} end
* @author: renchao
*/
export function timeFormat (date, end) {
if (!date || typeof (date) === "string") {
this.error("参数异常,请检查...");
......@@ -125,7 +178,11 @@ export function timeFormat (date, end) {
} else {
return y + "-" + m + "-" + d + ' 00:00:00';
}
}
}/**
* @description: getFirstDayOfSeason
* @param {*} d
* @author: renchao
*/
export function getFirstDayOfSeason (d) {
let date = d || new Date()
var month = date.getMonth();
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-11 16:31:01
*/
import Popup from '@/components/Popup/index'
/**
* @description: popupDialog
* @param {*} title
* @param {*} url
* @param {*} params
* @param {*} width
* @param {*} height
* @param {*} btnShow
* @param {*} callback
* @author: renchao
*/
export function popupDialog (title, url, params, width = '75%', height, btnShow = false, callback) {
// Popup.install
Popup(title, url, {
......@@ -15,6 +31,10 @@ export function popupDialog (title, url, params, width = '75%', height, btnShow
})
}
/**
* @description: popupCacel
* @author: renchao
*/
export function popupCacel () {
Popup1().close()
}
\ No newline at end of file
}
......
/**
* @description: deleteDomStr
* @author: renchao
*/
const deleteDomStr = content => {
return `<div class="customer-message-wrapper"><h5 class="title">您确认要执行该操作用于以下信息:</h5><p class="content">${content}</p><p class="result">执行后,数据将<span >无法恢复</span></p></div>`
}
......
......@@ -61,6 +61,11 @@ service.interceptors.response.use(
}
);
//对错误信息的处理函数
/**
* @description: 对错误信息的处理函数
* @param {*} errMes
* @author: renchao
*/
function handleErrorData (status) {
switch (status) {
case 401:
......
/**
* @description: deleteDomStr
* @author: renchao
*/
import Loading from '@/components/Loading/index.js';
// 定义 loading
// 定义 loading
let loading
// loading开始 方法
/**
* @description: loading开始 方法
* @param {*} loadingText
* @author: renchao
*/
function startLoading (loadingText = '正在加载中...') {
loading = Loading.service({
text: loadingText,
......@@ -13,6 +22,10 @@ function startLoading (loadingText = '正在加载中...') {
}
// loading结束 方法
/**
* @description: loading开始 方法
* @author: renchao
*/
function endLoading () {
loading.close()
}
......@@ -23,6 +36,13 @@ let loadingCount = 0
* 调用一次startLoadingAddCount() 方法 开启Loading 并 loadingCount + 1
* 调用一次endLoadingSubCount() 方法 loadingCount - 1 直到为0 关闭loading
*/
/**
* @description: 调用一次startLoadingAddCount() 方法 开启Loading 并 loadingCount + 1
* 调用一次endLoadingSubCount() 方法 loadingCount - 1 直到为0 关闭loading
* @param {*} LoadingText
* @param {*} target
* @author: renchao
*/
export function startLoadingAddCount (LoadingText, target) {
if (loadingCount === 0) {
startLoading(LoadingText, target)
......@@ -30,9 +50,13 @@ export function startLoadingAddCount (LoadingText, target) {
loadingCount++
}
/**
* @description: endLoadingSubCount
* @author: renchao
*/
export function endLoadingSubCount () {
loadingCount--
if (loadingCount === 0) {
endLoading()
}
}
\ No newline at end of file
}
......
/**
* @description: deleteDomStr
* @author: renchao
*/
import Vue from 'vue'
// 下载,导出
/**
* @description: 下载,导出
* @param {*} name
* @param {*} href
* @author: renchao
*/
Vue.prototype.$download = function (name, href) {
var a = document.createElement('a') // 创建a标签
var e = document.createEvent('MouseEvents') // 创建鼠标事件对象
......@@ -10,6 +20,12 @@ Vue.prototype.$download = function (name, href) {
a.dispatchEvent(e) // 给指定的元素,执行事件click事件
}
// 导出json文件
/**
* @description: 导出json文件
* @param {*} data
* @param {*} name
* @author: renchao
*/
Vue.prototype.$downloadJson = function (data, name) {
// 1 生成文件的 blob 对象
const blobData = new Blob([JSON.stringify(data)], {
......@@ -46,6 +62,13 @@ const validConfig = [
}
]
// 校验手机号
/**
* @description: 校验手机号
* @param {*} rule
* @param {*} value
* @param {*} callback
* @author: renchao
*/
const checkTel = (rule, value, callback) => {
const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/
const rel = /^[0]\d{2,3}-[1-9]\d{7}$/
......@@ -57,6 +80,13 @@ const checkTel = (rule, value, callback) => {
}, 500)
}
// 检验系统代码
/**
* @description: 检验系统代码
* @param {*} rule
* @param {*} value
* @param {*} callback
* @author: renchao
*/
const checkCode = (rule, value, callback) => {
const rel = /^[0-9A-Z]+$/
if (!value) return callback(new Error('请输入代码'))
......@@ -84,6 +114,11 @@ const checkCode = (rule, value, callback) => {
// }
// }
// 日期格式转换 "yyyy-MM-dd HH:mm:ss"
/**
* @description: 日期格式转换 "yyyy-MM-dd HH:mm:ss"
* @param {*} date
* @author: renchao
*/
Vue.prototype.$formdate = function (date) {
if (!date) {
return ""
......@@ -98,18 +133,39 @@ Vue.prototype.$formdate = function (date) {
return YY + MM + DD + " " + hh + mm + ss
}
// 时间格式过滤
/**
* @description: 时间格式过滤
* @param {*} timeStr
* @author: renchao
*/
Vue.filter('timeFilter', function (timeStr) {
if (timeStr) {
return timeStr.substring(0, 10)
}
})
/**
* @description: getType
* @param {*} o
* @author: renchao
*/
export function getType (o) {
return Object.prototype.toString.call(o).slice(8, -1)
}
/**
* @description: isKeyType
* @param {*} o
* @param {*} type
* @author: renchao
*/
export function isKeyType (o, type) {
return getType(o).toLowerCase() === type.toLowerCase()
}
// 深拷贝全局挂载
/**
* @description: 深拷贝全局挂载
* @param {*} sth
* @author: renchao
*/
Vue.prototype.$deepCopy = function (sth) {
// 深度复制数组
// if (Object.prototype.toString.call(obj) === "[object Array]") {
......@@ -153,6 +209,10 @@ Vue.prototype.$deepCopy = function (sth) {
return null
}
// 递归处理树形数据children为空数组
/**
* @description: 递归处理树形数据children为空数组
* @author: renchao
*/
Vue.prototype.$dealArrChildren = arr => {
if (arr.length) {
for (const i in arr) {
......@@ -166,6 +226,10 @@ Vue.prototype.$dealArrChildren = arr => {
return arr
}
// 过滤对象中为空的属性
/**
* @description: 过滤对象中为空的属性
* @author: renchao
*/
Vue.prototype.$filterNullObj = obj => {
if (!(typeof obj === 'object')) {
return
......@@ -181,6 +245,10 @@ Vue.prototype.$filterNullObj = obj => {
return obj
}
// 递归处理树形数据可选择项
/**
* @description: 递归处理树形数据可选择项
* @author: renchao
*/
Vue.prototype.$dealArrNotDisabled = arr => {
if (arr.length) {
for (const i in arr) {
......@@ -207,6 +275,12 @@ Vue.prototype.$dealArrNotDisabled = arr => {
return arr
}
// 递归处理树形数据不可选择项
/**
* @description: 递归处理树形数据不可选择项
* @param {*} arr
* @param {*} id
* @author: renchao
*/
Vue.prototype.$dealArrDisabled = (arr, id) => {
if (arr.length) {
for (const i in arr) {
......@@ -233,6 +307,12 @@ Vue.prototype.$dealArrDisabled = (arr, id) => {
return arr
}
// 根据子节点id递归获取子节点路径id数组
/**
* @description: 根据子节点id递归获取子节点路径id数组
* @param {*} val
* @param {*} id
* @author: renchao
*/
Vue.prototype.$getNodeRoute = (val, id) => {
let cid_list = []
val.forEach((item, index) => {
......@@ -279,6 +359,10 @@ Vue.prototype.$getNodeRoute = (val, id) => {
return result(cid_list)
}
// 扁平化树形数组
/**
* @description: 扁平化树形数组
* @author: renchao
*/
Vue.prototype.$treeConvertToArr = tree => {
let arrs = []
const result = []
......@@ -446,6 +530,11 @@ Vue.prototype.$setChildArr = (
}
}
// 处理localStorage获取值转换boolean为string问题 json字符串转为json
/**
* @description: 对错误信息的处理函数
* @param {*} errMes
* @author: renchao
*/
Vue.prototype.$getLocalStorage = (name, type) => {
let data = localStorage.getItem(name)
if (type === 'boolean') {
......
/**
* @description: deleteDomStr
* @author: renchao
*/
import XLSX2 from "xlsx";
import XLSX from "xlsx-style";
/**
......@@ -18,6 +21,11 @@ export function getType (o) {
export function isKeyType (o, type) {
return getType(o).toLowerCase() === type.toLowerCase();
}
/**
* @description: deepCopy
* @param {*} sth
* @author: renchao
*/
export function deepCopy (sth) {
let copy;
if (null == sth || "object" != typeof sth) return sth;
......@@ -58,7 +66,11 @@ export function hideCode (str, frontLen, endLen = 0) {
return str.substring(0, frontLen) + xing + str.substring(str.length - endLen);
};
// 数组去重
/**
* @description: 数组去重
* @param {*} arr
* @author: renchao
*/
export function unique (arr) {
var obj = {};
return arr.filter(function (item, index, arr) {
......@@ -66,7 +78,12 @@ export function unique (arr) {
})
}
// 创造id
/**
* @description: 创造id
* @param {*} len
* @param {*} radix
* @author: renchao
*/
export function getUuid (len, radix) {
var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split(
""
......@@ -91,6 +108,12 @@ export function getUuid (len, radix) {
}
//js计算两个时间戳之间的时间差 (月)
/**
* @description: js计算两个时间戳之间的时间差 (月)
* @param {*} startTime
* @param {*} endTime
* @author: renchao
*/
export function intervalTime (startTime, endTime) {
// var timestamp=new Date().getTime(); //计算当前时间戳
var timestamp = (Date.parse(new Date())) / 1000;//计算当前时间戳 (毫秒级)
......@@ -109,12 +132,22 @@ export function intervalTime (startTime, endTime) {
return mon
}
// 日期转时间戳
/**
* @description: 日期转时间戳
* @param {*} str_time
* @author: renchao
*/
export function js_strto_time (str_time) {
var str = str_time.replace(/-/g, '/') // 将-替换成/,因为下面这个构造函数只支持/分隔的日期字符串
var date = new Date(str) // 构造一个日期型数据,值为传入的字符串
return date.getTime()
}
// 时间戳转日期
/**
* @description: 时间戳转日期
* @param {*} timestamp
* @author: renchao
*/
export function timestampToTime (timestamp) {
var date = new Date(timestamp)//时间戳为10位需*1000,时间戳为13位的话不需乘1000
var Y = date.getFullYear() + '-'
......@@ -123,7 +156,11 @@ export function timestampToTime (timestamp) {
return Y + M + D
}
/**
* @description: formatDate
* @param {*} value
* @author: renchao
*/
function formatDate (value) {
var date = new Date(value);
var y = date.getFullYear(),
......@@ -135,6 +172,11 @@ function formatDate (value) {
return t;
}
/**
* @description: getCurrentDate
* @param {*} date
* @author: renchao
*/
export function getCurrentDate (date = 'firstDay') {
var now = new Date() // 当前日期
var nowYear = now.getFullYear() //当前年
......@@ -147,6 +189,11 @@ export function getCurrentDate (date = 'firstDay') {
}
}
/**
* @description: setExport2Excel
* @param {*} exportName
* @author: renchao
*/
export function setExport2Excel (exportName) {
/* generate workbook object from table */
var wb = XLSX2.utils.table_to_sheet(document.querySelector("#mytable"), { raw: true });//mytable为表格的id名
......@@ -210,6 +257,12 @@ export function setExport2Excel (exportName) {
openDownloadDialog(filedata, exportName + ".xlsx")
}
//为合并项添加边框
/**
* @description: 为合并项添加边框
* @param {*} range
* @param {*} ws
* @author: renchao
*/
function addRangeBorder (range, ws) {
let arr = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
......@@ -226,6 +279,12 @@ function addRangeBorder (range, ws) {
return ws;
}
//将一个sheet转成最终的excel文件的blob对象,然后利用URL.createObjectURL下载
/**
* @description: 将一个sheet转成最终的excel文件的blob对象,然后利用URL.createObjectURL下载
* @param {*} sheet
* @param {*} sheetName
* @author: renchao
*/
function sheet2blob (sheet, sheetName) {
sheetName = sheetName || 'sheet1';
var workbook = {
......@@ -251,6 +310,12 @@ function sheet2blob (sheet, sheetName) {
}
return blob;
}
/**
* @description: openDownloadDialog
* @param {*} url
* @param {*} saveName
* @author: renchao
*/
function openDownloadDialog (url, saveName) {
if (typeof url == 'object' && url instanceof Blob) {
url = URL.createObjectURL(url); // 创建blob地址
......@@ -267,9 +332,11 @@ function openDownloadDialog (url, saveName) {
aLink.dispatchEvent(event);
}
/**
* @description: judgeListComplete
* @param {*} list
* @author: renchao
*/
export function judgeListComplete (list) {
function judgeObjectComplete (obj) {
let flag = false
......
/**
* @description: isExternal
* @param {string} path
* @returns {Boolean}
*/
......@@ -7,16 +8,37 @@ export function isExternal (path) {
}
// ex: {validator:validateCode,trigger:'blur'}
// 验证code
/**
* @description: 验证code
* @param {*} rule
* @param {*} value
* @param {*} callback
* @author: renchao
*/
export const validateCode = (rule, value, callback) => {
const reg = /^[A-Z]{1}[A-Za-z0-9]*$/
!reg.test(value) ? callback('字母开头、数字和字母组成') : callback()
}
// 验证 网址
/**
* @description: 验证 网址
* @param {*} rule
* @param {*} value
* @param {*} callback
* @author: renchao
*/
export const validateUrl = (rule, value, callback) => {
const reg = /^(((ht|f)tps?):\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/
!reg.test(value) ? callback('URL格式不正确') : callback()
}
// 验证 电话
/**
* @description: 验证 电话
* @param {*} rule
* @param {*} value
* @param {*} callback
* @author: renchao
*/
export const validatePhone = (rule, value, callback) => {
const phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/
const rel = /^[0]\d{2,3}-[1-9]\d{7}$/
......
......@@ -180,6 +180,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: { list, total, pages: pageSize, pageNum: current }
......
......@@ -146,6 +146,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: { list, total, pages: pageSize, pageNum: current }
......
......@@ -151,6 +151,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......
......@@ -147,10 +147,19 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectmanyQL.blur()
if (!e) this.$refs.selectmanyDJ.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......@@ -167,6 +176,12 @@
// this.$refs.msg.messageShow()
}
},
/**
* @description: handlDatadetails
* @param {*} index
* @param {*} row
* @author: renchao
*/
async handlDatadetails (index, row) {
let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB)
if (res != null) {
......
......@@ -111,9 +111,18 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectshareQL.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......@@ -129,6 +138,12 @@
this.message = error
}
},
/**
* @description: handlDatadetails
* @param {*} index
* @param {*} row
* @author: renchao
*/
async handlDatadetails (index, row) {
let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB)
if (res != null) {
......
......@@ -179,10 +179,19 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectsingleQL.blur()
if (!e) this.$refs.selectsingleDJ.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......@@ -199,6 +208,12 @@
// this.$refs.msg.messageShow()
}
},
/**
* @description: handlDatadetails
* @param {*} index
* @param {*} row
* @author: renchao
*/
async handlDatadetails (index, row) {
let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB)
if (res != null) {
......
......@@ -139,10 +139,19 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectownershipQL.blur()
if (!e) this.$refs.selectownershipDJ.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......
......@@ -146,10 +146,19 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectseaAreaQL.blur()
if (!e) this.$refs.selectseaAreaDJ.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......
......@@ -139,10 +139,19 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectbuildQL.blur()
if (!e) this.$refs.selectbuildDJ.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......@@ -159,6 +168,12 @@
// this.$refs.msg.messageShow()
}
},
/**
* @description: handlDatadetails
* @param {*} index
* @param {*} row
* @author: renchao
*/
async handlDatadetails (index, row) {
let { result: res, message } = await sjsbFunctionOper.getQltFwFdcqYzByCondition(row.BSM_SJSB)
if (res != null) {
......
......@@ -134,6 +134,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......
......@@ -140,6 +140,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......
......@@ -135,6 +135,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......
......@@ -138,10 +138,19 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectnoticeRegQL.blur()
if (!e) this.$refs.selectnoticeRegDJ.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
let { result: { list, total, pages: pageSize, pageNum: current }
......
......@@ -134,10 +134,19 @@
},
methods: {
// 是否显示下拉框
/**
* @description: 是否显示下拉框
* @param {*} e
* @author: renchao
*/
isShowSelectOptions (e) {
if (!e) this.$refs.selectobjectionRegQL.blur()
if (!e) this.$refs.selectobjectionRegDJ.blur()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......@@ -154,6 +163,12 @@
this.$refs.msg.messageShow()
}
},
/**
* @description: handlDatadetails
* @param {*} index
* @param {*} row
* @author: renchao
*/
handledetails (index, row) {
}
}
......
......@@ -122,6 +122,10 @@
}
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......
......@@ -19,6 +19,10 @@ export default {
}
},
methods: {
/**
* @description: nextTo
* @author: renchao
*/
nextTo () {
this.$router.push({
path: this.redirect || '/',
......
......@@ -27,6 +27,10 @@ export default {
window.addEventListener("resize", this.debounce(this.setScale));
},
methods: {
/**
* @description: getScale
* @author: renchao
*/
getScale() {
// 固定好16:9的宽高比,计算出最合适的缩放比
const { width, height } = this;
......@@ -34,6 +38,10 @@ export default {
const ww = window.innerWidth / width;
return ww < wh ? ww : wh;
},
/**
* @description: setScale
* @author: renchao
*/
setScale() {
// 获取到缩放比例,设置它
this.scale = this.getScale();
......@@ -41,6 +49,12 @@ export default {
this.$refs.ScaleBox.style.setProperty("--scale", this.scale);
}
},
/**
* @description: debounce
* @param {*} fn
* @param {*} delay
* @author: renchao
*/
debounce(fn, delay) {
const delays = delay || 500;
let timer;
......
......@@ -56,6 +56,10 @@
clearInterval(this.timing);
},
methods: {
/**
* @description: cancelLoading
* @author: renchao
*/
cancelLoading () {
setTimeout(() => {
this.loading = false;
......
......@@ -91,6 +91,10 @@
},
},
methods: {
/**
* @description: getsthjqxjrtotal
* @author: renchao
*/
getsthjqxjrtotal () {
return new Promise(async (resolve) => {
try {
......@@ -119,6 +123,10 @@
}
});
},
/**
* @description: handleSthj
* @author: renchao
*/
handleSthj () {
this.$router.push({
path: '/sthj/sbbwcx',
......
......@@ -58,6 +58,10 @@
},
methods: {
// 获取登记业务量玫瑰图数据
/**
* @description: 获取登记业务量玫瑰图数据
* @author: renchao
*/
async getdjywltotal () {
try {
let p = {
......
......@@ -36,6 +36,10 @@
clearInterval(this.timing);
},
methods: {
/**
* @description: cancelLoading
* @author: renchao
*/
cancelLoading () {
setTimeout(() => {
this.loading = false;
......
......@@ -4,7 +4,7 @@
<div class="map-box" ref="mapContainProvince" />
</div>
</template>
<script>
export default {
data () {
......@@ -56,6 +56,12 @@ export default {
};
},
methods: {
/**
* @description: drawProvinceMap
* @param {*} provinceName
* @param {*} mapName
* @author: renchao
*/
drawProvinceMap (provinceName, mapName) {
this.provinceName = provinceName;
this.mapName = mapName;
......
......@@ -76,10 +76,19 @@
...mapGetters(["dicData"]),
},
methods: {
/**
* @description: endTimeChange
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true);
},
//查询各区县办件数量
/**
* @description: 查询各区县办件数量
* @author: renchao
*/
async getProcessCounts () {
this.pieChartsData = [];
let { result: res } = await efficient.getProcessCounts(
......@@ -106,6 +115,10 @@
});
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.form = {
startTime: getFirstDayOfSeason(),
......@@ -114,6 +127,10 @@
this.getProcessCounts();
},
//玫瑰图初始化
/**
* @description: 玫瑰图初始化
* @author: renchao
*/
echartInit () {
let _this = this;
// 基于准备好的dom,初始化echarts实例
......@@ -178,6 +195,11 @@
});
},
//柱图初始化
/**
* @description: 柱图初始化
* @param {*} recType
* @author: renchao
*/
async barChartInit (recType) {
//请求recType对应业务的各区县数据
let { result: res } = await efficient.getProcessDays(
......
......@@ -87,9 +87,18 @@
...mapGetters(["dicData"]),
},
methods: {
/**
* @description: endTimeChange
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
/**
* @description: getSuucessRate
* @author: renchao
*/
async getSuucessRate () {
this.recTypeArr = [];
this.chartData = [];
......@@ -113,6 +122,10 @@
});
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.form = {
startTime: getFirstDayOfSeason(),
......@@ -121,6 +134,10 @@
};
this.getSuucessRate();
},
/**
* @description: echartInit
* @author: renchao
*/
echartInit () {
let _this = this;
// 基于准备好的dom,初始化echarts实例
......
......@@ -130,12 +130,26 @@
this.generateFileName()
},
methods: {
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () { },
// 生成文件名
/**
* @description: 生成文件名
* @author: renchao
*/
generateFileName () {
var reg = /(\d{4})\-(\d{2})\-(\d{2})/;
this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}${this.form.endTime.replace(reg, "$1年$2月$3日")})`
},
/**
* @description: headerStyle
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle ({ row, rowIndex }) {
if (rowIndex == 4) {
row[2].rowSpan = 2;
......@@ -143,6 +157,12 @@
row[4].rowSpan = 2;
}
},
/**
* @description: headerStyle1
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle1 ({ row, rowIndex }) {
if (rowIndex == 3) {
row[2].rowSpan = 2;
......@@ -150,6 +170,11 @@
row[4].rowSpan = 2;
}
},
/**
* @description: handlesetExport2Excel
* @param {*} val
* @author: renchao
*/
handlesetExport2Excel (val) {
this.disableds = true
setTimeout(() => {
......@@ -159,6 +184,10 @@
setExport2Excel(val)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchDataSelf () {
dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => {
let records = res.result
......@@ -166,6 +195,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
handleResetForm () {
this.form.startTime = getCurrentDate()
this.form.endTime = getCurrentDate('time')
......
......@@ -127,14 +127,27 @@
},
methods: {
// 生成文件名
/**
* @description: 生成文件名
* @author: renchao
*/
generateFileName () {
var reg = /(\d{4})\-(\d{2})\-(\d{2})/;
this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}${this.form.endTime.replace(reg, "$1年$2月$3日")})`
},
/**
* @description: handlesetExport2Excel
* @param {*} val
* @author: renchao
*/
handlesetExport2Excel (val) {
setExport2Excel(val)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchDataSelf () {
nonNullSta(this.form.startTime, this.form.endTime).then(res => {
let records = res.result
......@@ -142,6 +155,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
handleResetForm () {
this.form.startTime = getCurrentDate()
this.form.endTime = getCurrentDate('time')
......
......@@ -4,9 +4,9 @@
* @LastEditors: Please set LastEditors
* @LastEditTime: 2023-05-11 10:11:15
* @FilePath: \bdcjg-web\src\views\statistics\registerBookQuality\index.vue
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
<!-- 接入质量评价表 -->
<template>
......@@ -149,15 +149,34 @@
},
methods: {
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () { },
// 生成文件名
/**
* @description: 生成文件名
* @author: renchao
*/
generateFileName () {
var reg = /(\d{4})\-(\d{2})\-(\d{2})/;
this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}${this.form.endTime.replace(reg, "$1年$2月$3日")})`
},
/**
* @description: handlesetExport2Excel
* @param {*} val
* @author: renchao
*/
handlesetExport2Excel (val) {
setExport2Excel(val)
},
/**
* @description: headerStyle
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle ({ row, rowIndex }) {
if (rowIndex == 1) {
row.forEach(item => {
......@@ -165,6 +184,12 @@
})
}
},
/**
* @description: headerStyle1
* @param {*} row
* @param {*} rowIndex
* @author: renchao
*/
headerStyle1 ({ row, rowIndex }) {
if (rowIndex == 2) {
row.forEach(item => {
......@@ -173,6 +198,10 @@
}
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchDataSelf () {
registerBookQuality(this.form.startTime, this.form.endTime).then(res => {
let records = res.result
......@@ -180,6 +209,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
handleResetForm () {
this.form.startTime = getCurrentDate()
this.form.endTime = getCurrentDate('time')
......
......@@ -86,9 +86,18 @@
...mapGetters(["dicData"]),
},
methods: {
/**
* @description: endTimeChange
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
/**
* @description: getProcessCounts
* @author: renchao
*/
async getProcessCounts () {
this.chartData = [];
let { result: res } = await efficient.getProcessCounts(
......@@ -105,6 +114,10 @@
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.form = {
startTime: getFirstDayOfSeason(),
......@@ -114,6 +127,11 @@
this.getProcessCounts();
},
//图表渲染
/**
* @description: 图表渲染
* @param {*} chartArr
* @author: renchao
*/
echartInit (chartArr) {
// 基于准备好的dom,初始化echarts实例
let myChart = this.$echarts.init(document.getElementById("myChart"));
......
......@@ -45,6 +45,11 @@ export default {
},
methods: {
//记住用户名
/**
* @description: 记住用户名
* @param {*} flag
* @author: renchao
*/
checkUserName: function (flag) {
this.user.checkStatus = flag;
if (this.user.checkStatus) {
......@@ -59,6 +64,11 @@ export default {
this.user.account = localStorage.getItem("accountId");
}
},
/**
* @description: login
* @param {*} user
* @author: renchao
*/
login (user) {
var self = this
this.$refs[user].validate(async (valid) => {
......
......@@ -186,10 +186,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.receiveEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClickSearch () {
saveSearchRecord({ ...this.form, ...this.formData }).then(
(res) => {
......@@ -202,15 +211,31 @@
)
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
},
/**
* @description: featchData
* @author: renchao
*/
featchData () { },
/**
* @description: handleSearchResult
* @author: renchao
*/
handleSearchResult () {
this.queryClickSearch()
},
// 详情
/**
* @description: 详情
* @author: renchao
*/
handleDetails (row) {
}
}
......
......@@ -176,10 +176,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.receiveEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
getSearchRecordList({ ...this.form, ...this.formData }).then(
(res) => {
......@@ -193,21 +202,37 @@
)
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.queryClick();
},
/**
* @description: featchData
* @author: renchao
*/
featchData () {
this.queryClick();
},
// 详情
/**
* @description: 详情
* @author: renchao
*/
handleDetails (row) {
editSearchRecord(row.bsm).then(res => {
this.dialogVisible = true
this.dataDetail = res.result
})
},
/**
* @description: save
* @author: renchao
*/
save () {
this.dialogVisible = true
}
......
......@@ -22,7 +22,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="接收日期" prop="receiveStartTime">
<el-form-item label="受理时间" prop="receiveStartTime">
<el-date-picker type="date" class="width100" placeholder="开始日期" :picker-options="pickerOptionsStart"
clearable v-model="form.receiveStartTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item>
......@@ -238,6 +238,11 @@
};
},
methods: {
/**
* @description: uploadRecord
* @param {*} file
* @author: renchao
*/
uploadRecord (file) {
this.requested = true
this.files = file;
......@@ -253,6 +258,11 @@
}
return (extension) && isLt5M
},
/**
* @description: fileChange
* @param {*} res
* @author: renchao
*/
fileChange (res) {
let fd = new FormData()
fd.append('files', res.raw)// 文件对象
......@@ -269,10 +279,19 @@
})
},
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.receiveEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
getReceiveDataReportPage({ ...this.form, ...this.formData }).then(
(res) => {
......@@ -286,19 +305,37 @@
)
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.queryClick();
},
/**
* @description: featchData
* @author: renchao
*/
featchData () {
this.queryClick();
},
// 结果
/**
* @description: 结果
* @param {*} row
* @author: renchao
*/
handleResult (row) {
this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row)
},
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetails (row) {
if (row.rectypeName) {
this.title = row.rectypeName
......
......@@ -297,10 +297,19 @@
},
methods: {
// 关闭弹框事件
/**
* @description: 关闭弹框事件
* @author: renchao
*/
closeDialog () {
this.dialogVisible = false;
},
// 展示弹框
/**
* @description: 展示弹框
* @param {*} item
* @author: renchao
*/
isShow (item) {
this.title = '登薄日志(' + item.ACCESSDATE + ')'
this.titleName = 'sjmx'
......@@ -310,6 +319,7 @@
},
/**
* @description: 获取列表接口
* @param {*} data
* @author: renchao
*/
_getDetails (data) {
......@@ -356,6 +366,10 @@
})
},
// 当日登薄详单
/**
* @description: 当日登薄详单
* @author: renchao
*/
handleDBAdd () {
this.tableDBData.data.push({
YWH: '',
......@@ -371,6 +385,11 @@
this.$set(item, 'index', index)
})
},
/**
* @description: handleDBMinus
* @param {*} row
* @author: renchao
*/
handleDBMinus (row) {
this.$confirm('此操作将删除列表, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -393,6 +412,10 @@
})
},
// 当日上报详单
/**
* @description: 当日上报详单
* @author: renchao
*/
handleSBAdd () {
this.tableSBData.data.push({
YWH: '',
......@@ -404,6 +427,11 @@
this.$set(item, 'index', index)
})
},
/**
* @description: handleSBMinus
* @param {*} row
* @author: renchao
*/
handleSBMinus (row) {
this.$confirm('此操作将删除列表, 是否继续?', '提示', {
confirmButtonText: '确定',
......
......@@ -129,9 +129,18 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
/**
* @description: featchData
* @author: renchao
*/
featchData () {
getRecordLogPage({ ...this.form }).then(res => {
if (res.code === 200) {
......@@ -143,12 +152,21 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.currentPage = 1
this.featchData();
},
// 编辑
/**
* @description: 编辑
* @param {*} row
* @author: renchao
*/
handleEdit (row) {
this.$refs.editLog.isShow(row);
this.$store.dispatch('business/setReportLogEdit')
......
......@@ -82,9 +82,17 @@ export default {
}
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit('input', false)
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
this.$emit('input', false)
}
......
......@@ -202,10 +202,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.exchangeEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchData () {
getDataReportPage({ ...this.form }).then((res) => {
if (res.code === 200) {
......@@ -217,8 +226,17 @@
});
},
// 上报
/**
* @description: 上报
* @author: renchao
*/
handleEscalation () { },
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetail (row) {
this.title = row.rectypeName;
this.$refs.editLog.isShow(row);
......@@ -229,6 +247,10 @@
}
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.exchangeEndTime = ""
......
......@@ -82,9 +82,17 @@ export default {
}
},
methods: {
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit('input', false)
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
this.$emit('input', false)
}
......
......@@ -219,10 +219,19 @@
},
methods: {
//截止日期变化
/**
* @description: 截止日期变化
* @param {*} val
* @author: renchao
*/
endTimeChange (val) {
this.form.exchangeEndTime = timeFormat(new Date(val), true)
},
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
featchData () {
getSjsbReportPage({ ...this.form, ...this.formData }).then((res) => {
if (res.code === 200) {
......@@ -234,8 +243,17 @@
});
},
// 上报
/**
* @description: 上报
* @author: renchao
*/
handleEscalation () { },
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleDetail (row) {
this.title = row.rectypeName;
this.$refs.editLog.isShow(row);
......@@ -246,12 +264,21 @@
}
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.ruleForm.resetFields();
this.form.exchangeEndTime = ""
this.form.currentPage = 1
this.featchData();
},
/**
* @description: ywhClick
* @param {*} item
* @author: renchao
*/
ywhClick (item) {
window.open('http://192.168.2.38/bdcdj#/workFrame?bsmSlsq=4582b05a4d49c25673eb0880b5787e58&bestepid=sl&bsmBusiness=&sqywbm=A03100', '_blank')
//判断用户是否拥有该任务的权限,若有则跳转,无权限则给予提示并刷新页面
......
......@@ -92,6 +92,10 @@
},
methods: {
// 保存新增或关闭事件
/**
* @description: 保存新增或关闭事件
* @author: renchao
*/
submitForm () {
this.$refs.form.validate((valid) => {
if (valid) {
......@@ -152,6 +156,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.dialogForm = {
roleName: '',
......@@ -159,6 +167,10 @@
this.$refs.form.resetFields()
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close () {
this.resetForm()
this.$emit('input', false)
......
......@@ -139,6 +139,10 @@
mounted () { },
methods: {
//查询
/**
* @description: 查询
* @author: renchao
*/
searchQuery () {
if (this.form.rolesName) {
this.listdata = this.childrenFn(this.setlistdata, this.form.rolesName);
......@@ -146,6 +150,12 @@
this.getTableData()
}
},
/**
* @description: childrenFn
* @param {*} arr
* @param {*} key
* @author: renchao
*/
childrenFn (arr, key) {
let searchTree = [];
arr.forEach((item, index) => {
......@@ -159,6 +169,10 @@
}
},
// 获取角色列表
/**
* @description: 获取角色列表
* @author: renchao
*/
getTableData () {
getRolesById([1, 2])
.then((res) => {
......
......@@ -136,6 +136,12 @@
methods: {
// 人员配置点击行勾选数据
/**
* @description: 人员配置点击行勾选数据
* @param {*} row
* @param {*} event
* @author: renchao
*/
handleClickTableRow (row, event) {
this.checkNum = 0;
this.isCheck = false;
......@@ -176,6 +182,15 @@
},
// 获取授权主体的菜单权限
// getMenuAuthorityList
/**
* @description: 获取授权主体的菜单权限
* @param {*} operationList
* @param {*} id
* @param {*} Code
* @param {*} menutablelistData
* @param {*} operationCodes
* @author: renchao
*/
menulist (operationList, id, Code, menutablelistData, operationCodes) {
this.selectedSubsystemCode = Code
this.menuList = menutablelistData;
......@@ -198,10 +213,12 @@
},
/**
* 递归渲染列表数据
* list:原始数组
* authorityList:已授权数组
*/
* @description: 递归渲染列表数据
* @param {*} list 原始数组
* @param {*} authorityList 已授权数组
* @param {*} operationCodes
* @author: renchao
*/
getRecursionTreeData (list, authorityList, operationCodes) {
++this.menukey
this.checkArr = []
......@@ -239,6 +256,13 @@
// this.setCheckAllArr(list)
},
// 授权条件
/**
* @description: 授权条件
* @param {*} authorityList
* @param {*} checkArr
* @param {*} item
* @author: renchao
*/
setAuthorizedConditions (authorityList, checkArr, item) {
if (this.roleId === '') {
checkArr.forEach(ele => {
......@@ -272,6 +296,10 @@
this.$set(item, 'checkArr', this.$deepCopy(checkArr))
},
// 获取拼接授权信息
/**
* @description: 获取拼接授权信息
* @author: renchao
*/
getAuthorizedInfo () {
const lastArr = []
const authorizedList = []
......@@ -306,6 +334,12 @@
}
},
// 获取人员列表做筛选
/**
* @description: 获取人员列表做筛选
* @param {*} a
* @param {*} rid
* @author: renchao
*/
personlist (a, rid) {
this.roleId = rid;
this.visible = true;
......@@ -326,10 +360,18 @@
});
},
// 关闭事件
/**
* @description: 关闭事件
* @author: renchao
*/
close () {
this.visible = false;
},
// 保存事件
/**
* @description: 保存事件
* @author: renchao
*/
handleSaveMember () {
// 人员授权
const idList = this.usermultipleSelection.map((item) => {
......@@ -357,6 +399,11 @@
})
},
// 勾选人员事件
/**
* @description: 勾选人员事件
* @param {*} val
* @author: renchao
*/
handleSelectionChange (val) {
this.lastuserList.forEach((element, index) => {
delete this.lastuserList[index].selectStatus
......@@ -371,6 +418,12 @@
});
},
// 数据筛选
/**
* @description: 数据筛选
* @param {*} scope
* @param {*} arr
* @author: renchao
*/
setarrdata (scope, arr) {
arr.forEach((item, index, arr) => {
......@@ -384,6 +437,13 @@
},
// 勾选菜单事件
/**
* @description: 勾选菜单事件
* @param {*} flag
* @param {*} checkId
* @param {*} scope
* @author: renchao
*/
changeCheck (flag, checkId, scope) {
this.checklistbor = []
this.setarrdata(scope, this.lastMenuList)
......@@ -400,6 +460,12 @@
)
this.getAuthorizedInfo()
},
/**
* @description: handleClick
* @param {*} tab
* @param {*} event
* @author: renchao
*/
handleClick (tab, event) {
this.lastuserList.forEach((item, index) => {
if (item.selectStatus === 0) {
......
......@@ -83,6 +83,10 @@
}
},
methods: {
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
let _this = this
this.$refs['ruleForm'].validate(async (valid) => {
......@@ -125,6 +129,10 @@
}
})
},
/**
* @description: handleClose
* @author: renchao
*/
handleClose () {
this.$emit("input", false);
}
......
......@@ -163,6 +163,10 @@
}
},
methods: {
/**
* @description: isShow
* @author: renchao
*/
isShow () {
setTimeout(() => {
this.ruleForm = this.ruleData
......@@ -170,9 +174,18 @@
}, 0)
this.$refs.validRule.isShow()
},
/**
* @description: handleEdit
* @param {*} scope
* @author: renchao
*/
handleEdit (scope) {
this.$set(scope.row, '_edit', true)
},
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.tableData.data.push({
field: '',
......@@ -182,9 +195,19 @@
message: ''
})
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
this.tableData.data.splice(index, 1);
},
/**
* @description: handleSubmit
* @author: renchao
*/
async handleSubmit () {
this.ruleForm.sysYwsjbFieldList = this.tableData.data
try {
......@@ -203,6 +226,10 @@
}
},
/**
* @description: handleClose
* @author: renchao
*/
handleClose () {
this.$refs['ruleForm'].resetFields();
this.$refs.validRule.isHide()
......
......@@ -262,6 +262,12 @@
},
methods: {
// 添加索引
/**
* @description: 添加索引
* @param {*} data
* @param {*} isAdd
* @author: renchao
*/
addIndexes (data = this.tableData, isAdd = true) {
data.forEach((item, index) => {
if (index == 0) {
......@@ -283,6 +289,10 @@
}
});
},
/**
* @description: itemShowFalse
* @author: renchao
*/
itemShowFalse () {
this.tableData.forEach((item, index) => {
item.codeShow = false;
......@@ -291,11 +301,21 @@
item.normnameShow = false;
});
},
/**
* @description: handleMinus
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleMinus (index, row) {
removeTreeListItem(this.tableData, row.dictid, 'dictid');
this.tableData = judgeSort(this.tableData)
this.key++;
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit () {
editDictNode({
dictid: this.details.rowData.dictid,
......@@ -311,10 +331,19 @@
}
});
},
/**
* @description: closeDialog
* @author: renchao
*/
closeDialog () {
this.$emit("input", false);
},
// 增加下级
/**
* @description: 增加下级
* @param {*} row
* @author: renchao
*/
handleAddSubordinate (row) {
if (!row.children) {
row.children = [];
......@@ -332,6 +361,10 @@
this.keyList.push(row.dictid);
},
// 增加
/**
* @description: 增加
* @author: renchao
*/
handleAdd () {
this.$nextTick(() => {
let container = this.$el.querySelector(".el-table__body-wrapper");
......@@ -351,12 +384,24 @@
this.key++;
},
// 上移下移
/**
* @description: 上移下移
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveUpward (index, row) {
realMove(row.dictid, "UP", this.tableData);
let id = findParents(this.tableData, row.dictid);
this.keyList = id;
this.key++;
},
/**
* @description: moveDown
* @param {*} index
* @param {*} row
* @author: renchao
*/
moveDown (index, row) {
realMove(row.dictid, "DOWN", this.tableData);
let id = findParents(this.tableData, row.dictid);
......
......@@ -86,6 +86,10 @@
},
methods: {
// 初始化数据
/**
* @description: 初始化数据
* @author: renchao
*/
queryClick () {
getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => {
let { records, total } = res.result
......@@ -93,11 +97,19 @@
this.tableData.total = total ? total : 0
})
},
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () {
this.pageData.currentPage = 1
this.tableData.data = []
this.queryClick()
},
/**
* @description: handleRefresh
* @author: renchao
*/
handleRefresh () {
this.$confirm('是否确认刷新', '提示', {
confirmButtonText: '确定',
......@@ -123,6 +135,12 @@
});
});
},
/**
* @description: editClick
* @param {*} row
* @param {*} val
* @author: renchao
*/
editClick (row, val) {
this.details.rowData = row
this.details.isenable = val
......
......@@ -108,6 +108,11 @@
]
},
methods: {
/**
* @description: getUserdata
* @param {*} id
* @author: renchao
*/
getUserdata (id) {
getAction(`${api.users}/${id}`).then((res) => {
if (res.status === 1) {
......@@ -117,6 +122,10 @@
}
})
},
/**
* @description: updateInfo
* @author: renchao
*/
updateInfo () {
this.$refs.form.validate((valid) => {
if (valid) {
......
......@@ -54,9 +54,17 @@
created () { },
mounted () { },
methods: {
/**
* @description: information
* @author: renchao
*/
information () {
this.isshow = true;
},
/**
* @description: password
* @author: renchao
*/
password () {
this.isshow = false;
},
......
......@@ -83,9 +83,21 @@
}
},
methods: {
/**
* @description: getid
* @param {*} val
* @author: renchao
*/
getid (val) {
this.userId = val.id;
},
/**
* @description: validatorConfirmPassword
* @param {*} rule
* @param {*} value
* @param {*} callback
* @author: renchao
*/
validatorConfirmPassword (rule, value, callback) {
const { newPassword } = this.form;
if (value !== newPassword) {
......@@ -94,6 +106,10 @@
callback();
}
},
/**
* @description: updatePassword
* @author: renchao
*/
updatePassword () {
this.$refs.form.validate((valid) => {
if (valid) {
......
......@@ -88,10 +88,19 @@
},
methods: {
/**
* @description: onJsonChange
* @param {*} value
* @author: renchao
*/
onJsonChange (value) {
// 只有在格式正确的时候进入此事件
this.hasJsonFlag = true
},
/**
* @description: onJsonSave
* @author: renchao
*/
onJsonSave () {
const value = this.resultInfo
if (this.hasJsonFlag === false) {
......@@ -104,17 +113,34 @@
return true
}
},
/**
* @description: onError
* @param {*} value
* @author: renchao
*/
onError (value) {
this.hasJsonFlag = false
},
/**
* @description: openDialog
* @author: renchao
*/
openDialog () {
this.dialogVisible = true
},
/**
* @description: cancel
* @author: renchao
*/
cancel () {
this.resultInfo = this.tmpResultInfo
this.dialogVisible = false
},
// 放大
/**
* @description: 放大
* @author: renchao
*/
enLarge () {
const fullarea = document.getElementById('minejson')
if (fullarea.requestFullscreen) {
......
......@@ -136,6 +136,11 @@
},
methods: {
// 获取父级菜单
/**
* @description: 获取父级菜单
* @param {*} id
* @author: renchao
*/
getParentMenuList (id) {
getParentMenuListAction(id).then((res) => {
......@@ -156,16 +161,30 @@
})
},
// 配置参数
/**
* @description: 配置参数
* @param {*} data
* @author: renchao
*/
getJsonString (data) {
this.form.metadata = data
},
// 新增菜单
/**
* @description: 新增菜单
* @author: renchao
*/
add () {
this.getParentMenuList(this.productId)
this.type = 0
this.form.jumpMode = 1
},
// 编辑菜单
/**
* @description: 编辑菜单
* @param {*} record
* @author: renchao
*/
edit (record) {
this.type = 1
// 若有id为编辑
......@@ -177,10 +196,20 @@
}
},
// 选择上级菜单
/**
* @description: 选择上级菜单
* @param {*} value
* @author: renchao
*/
handleChange (value) {
this.form.parentId = value
},
// 保存
/**
* @description: 保存
* @param {*} submitType
* @author: renchao
*/
submitForm (submitType) {
this.$refs.form.validate((valid) => {
if (valid) {
......@@ -216,6 +245,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.$refs.form.resetFields()
this.form = {
......@@ -224,6 +257,10 @@
}
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close () {
this.resetForm()
this.$emit('input', false)
......
......@@ -158,6 +158,10 @@
},
methods: {
//查询
/**
* @description: 查询
* @author: renchao
*/
searchQuery () {
if (this.form.menuName) {
this.tablelistData = this.childrenFn(this.listData, this.form.menuName);
......@@ -166,6 +170,12 @@
}
},
// 数据处理方法
/**
* @description: 数据处理方法
* @param {*} arr
* @param {*} key
* @author: renchao
*/
childrenFn (arr, key) {
const that = this;
let searchTree = [];
......@@ -195,6 +205,10 @@
}
},
// 加载表格数据
/**
* @description: 加载表格数据
* @author: renchao
*/
getTableList () {
getMenuInfo(this.BASE_API.CODE).then((res) => {
if (res.code === 200) {
......@@ -231,6 +245,10 @@
})
},
// 新增菜单
/**
* @description: 新增菜单
* @author: renchao
*/
handleAdd () {
this.isDialog = true
this.$refs.dialogForm.add();
......@@ -238,12 +256,23 @@
},
// 修改
/**
* @description: 修改
* @param {*} record
* @author: renchao
*/
handleEdit (record) {
this.isDialog = true
this.$refs.dialogForm.edit(record);
this.$refs.dialogForm.title = "修改";
},
// 删除
/**
* @description: 删除
* @param {*} id
* @param {*} content
* @author: renchao
*/
handleDelete (id, content) {
this.$confirm(
`<div class="customer-message-wrapper">
......@@ -284,11 +313,21 @@
.catch(() => { })
},
// 新增、编辑回显
/**
* @description: 获新增、编辑回显
* @author: renchao
*/
reloadTableData () {
this.getTableList()
},
// 排序
/**
* @description: 排序
* @param {*} row
* @param {*} operate
* @author: renchao
*/
moveUp (row, operate) {
if (row.isTop) {
return;
......@@ -296,6 +335,12 @@
this.realMove(row, operate);
}
},
/**
* @description: moveDown
* @param {*} row
* @param {*} operate
* @author: renchao
*/
moveDown (row, operate) {
if (row.isBottom) {
return;
......@@ -305,6 +350,12 @@
},
//树形表格移动
/**
* @description: 树形表格移动
* @param {*} row
* @param {*} operate
* @author: renchao
*/
realMove (row, operate) {
function tarverse (nodes, id) {
let result;
......
......@@ -92,6 +92,10 @@
},
methods: {
// 保存新增或关闭事件
/**
* @description: 保存新增或关闭事件
* @author: renchao
*/
submitForm () {
this.$refs.form.validate((valid) => {
if (valid) {
......@@ -151,6 +155,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.dialogForm = {
roleName: '',
......@@ -158,6 +166,10 @@
this.$refs.form.resetFields()
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close () {
this.resetForm()
this.$emit('input', false)
......
......@@ -259,6 +259,10 @@
mounted () { },
methods: {
//查询
/**
* @description: 查询
* @author: renchao
*/
searchQuery () {
if (this.form.rolesName) {
this.listdata = this.childrenFn(this.setlistdata, this.form.rolesName);
......@@ -266,6 +270,12 @@
this.getTableData()
}
},
/**
* @description: childrenFn
* @param {*} arr
* @param {*} key
* @author: renchao
*/
childrenFn (arr, key) {
let searchTree = [];
arr.forEach((item, index) => {
......@@ -279,6 +289,10 @@
}
},
// 获取角色列表
/**
* @description: 获取角色列表
* @author: renchao
*/
getTableData () {
getRolesById([1, 2])
.then((res) => {
......@@ -290,6 +304,10 @@
},
// 获取菜单列表
/**
* @description: 获取菜单列表
* @author: renchao
*/
getTableList () {
getMenuInfo(this.BASE_API.CODE).then((res) => {
if (res.code === 200) {
......@@ -361,6 +379,12 @@
});
},
// 获取权限列表
/**
* @description: 获取权限列表
* @param {*} productId
* @param {*} code
* @author: renchao
*/
getAuthorityList (productId, code) {
getAuthorityListAction(productId, code).then(
res => {
......@@ -380,6 +404,11 @@
},
// 配置
/**
* @description: 配置
* @param {*} row
* @author: renchao
*/
getList (row) {
this.getTableList()
const params = {};
......@@ -430,6 +459,11 @@
});
},
// 新增、修改角色
/**
* @description: 新增、修改角色
* @param {*} value
* @author: renchao
*/
handleAddEdit (value) {
this.isDialog = true
this.$refs.addEditDialog.menuType = this.menuType;
......@@ -445,6 +479,12 @@
this.$refs.addEditDialog.title = value.id ? "修改" : "新增";
},
//排序
/**
* @description: 排序
* @param {*} record
* @param {*} operate
* @author: renchao
*/
updateOrder (record, operate) {
const findIndex = this.listdata.findIndex(item => item.id === record.id)
let swapId = ''
......@@ -463,6 +503,12 @@
})
},
// 删除
/**
* @description: 删除
* @param {*} id
* @param {*} content
* @author: renchao
*/
handleDelete: function (id, content = "") {
this.$confirm(
`<div class="customer-message-wrapper">
......@@ -503,6 +549,10 @@
.catch(() => { });
},
// 新增回显
/**
* @description: 新增回显
* @author: renchao
*/
reloadTableData () {
this.getTableData();
},
......
......@@ -134,6 +134,12 @@
methods: {
// 人员配置点击行勾选数据
/**
* @description: 人员配置点击行勾选数据
* @param {*} row
* @param {*} event
* @author: renchao
*/
handleClickTableRow (row, event) {
this.checkNum = 0;
this.isCheck = false;
......@@ -174,6 +180,14 @@
},
// 获取授权主体的菜单权限
// getMenuAuthorityList
/**
* @description: 获取授权主体的菜单权限
* @param {*} operationList
* @param {*} id
* @param {*} menutablelistData
* @param {*} operationCodes
* @author: renchao
*/
menulist (operationList, id, Code, menutablelistData, operationCodes) {
this.selectedSubsystemCode = Code
this.menuList = menutablelistData;
......@@ -196,10 +210,12 @@
},
/**
* 递归渲染列表数据
* list:原始数组
* authorityList:已授权数组
*/
* @description: 递归渲染列表数据
* @param {*} list 原始数组
* @param {*} authorityList 已授权数组
* @param {*} operationCodes
* @author: renchao
*/
getRecursionTreeData (list, authorityList, operationCodes) {
++this.menukey
this.checkArr = []
......@@ -237,6 +253,13 @@
// this.setCheckAllArr(list)
},
// 授权条件
/**
* @description: 授权条件
* @param {*} authorityList
* @param {*} checkArr
* @param {*} item
* @author: renchao
*/
setAuthorizedConditions (authorityList, checkArr, item) {
if (this.roleId === '') {
checkArr.forEach(ele => {
......@@ -270,6 +293,10 @@
this.$set(item, 'checkArr', this.$deepCopy(checkArr))
},
// 获取拼接授权信息
/**
* @description: 获取拼接授权信息
* @author: renchao
*/
getAuthorizedInfo () {
const lastArr = []
const authorizedList = []
......@@ -304,6 +331,12 @@
}
},
// 获取人员列表做筛选
/**
* @description: 获取人员列表做筛选
* @param {*} e
* @param {*} rid
* @author: renchao
*/
personlist (a, rid) {
this.roleId = rid;
this.visible = true;
......@@ -324,10 +357,18 @@
});
},
// 关闭事件
/**
* @description: 关闭事件
* @author: renchao
*/
close () {
this.visible = false;
},
// 保存事件
/**
* @description: 保存事件
* @author: renchao
*/
handleSaveMember () {
// 人员授权
const idList = this.usermultipleSelection.map((item) => {
......@@ -355,6 +396,11 @@
})
},
// 勾选人员事件
/**
* @description: 勾选人员事件
* @param {*} val
* @author: renchao
*/
handleSelectionChange (val) {
this.lastuserList.forEach((element, index) => {
delete this.lastuserList[index].selectStatus
......@@ -369,6 +415,12 @@
});
},
// 数据筛选
/**
* @description: 数据筛选
* @param {*} scope
* @param {*} arr
* @author: renchao
*/
setarrdata (scope, arr) {
arr.forEach((item, index, arr) => {
......@@ -382,6 +434,13 @@
},
// 勾选菜单事件
/**
* @description: 勾选菜单事件
* @param {*} flag
* @param {*} checkId
* @param {*} scope
* @author: renchao
*/
changeCheck (flag, checkId, scope) {
this.checklistbor = []
this.setarrdata(scope, this.lastMenuList)
......@@ -398,6 +457,12 @@
)
this.getAuthorizedInfo()
},
/**
* @description: handleClick
* @param {*} tab
* @param {*} event
* @author: renchao
*/
handleClick (tab, event) {
this.lastuserList.forEach((item, index) => {
if (item.selectStatus === 0) {
......
......@@ -106,14 +106,26 @@
}
},
methods: {
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.taskData = null
this.isDialog = true
},
/**
* @description: resetSe
* @author: renchao
*/
resetSe () {
this.form.jobName = ''
this.featchData()
},
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData)
......@@ -124,6 +136,11 @@
this.message = error
}
},
/**
* @description: recover
* @param {*} row
* @author: renchao
*/
recover (row) {
this.$confirm('此操将进行恢复操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -156,6 +173,11 @@
})
},
/**
* @description: handleActive
* @param {*} row
* @author: renchao
*/
handleActive (row) {
this.$confirm('此操将进行激活操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -188,6 +210,11 @@
})
},
// 暂停
/**
* @description: 暂停
* @param {*} row
* @author: renchao
*/
handleSuspend (row) {
this.$confirm('此操将进行暂停操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -219,10 +246,20 @@
})
})
},
/**
* @description: handleEdit
* @param {*} row
* @author: renchao
*/
handleEdit (row) {
this.taskData = row
this.isDialog = true
},
/**
* @description: handleDel
* @param {*} row
* @author: renchao
*/
handleDel (row) {
this.$confirm('此操将进行删除操作, 是否继续?', '提示', {
confirmButtonText: '确定',
......
......@@ -125,6 +125,10 @@
this.getdistricts()
},
methods: {
/**
* @description: getdistricts
* @author: renchao
*/
getdistricts () {
getAction(api.departments, {
queryOptions: { orderBys: [{ property: "sort", direction: "desc" }] },
......@@ -132,14 +136,21 @@
this.districtAreaList = res.content;
});
},
// 添加人员
/**
* @description: 添加人员
* @author: renchao
*/
adds () {
this.showLoginName = false
},
// 编辑
/**
* @description: 编辑
* @param {*} record
* @author: renchao
*/
edit (record) {
this.showLoginName = true
// 若有id为编辑
......@@ -150,6 +161,10 @@
}
},
// 保存
/**
* @description: 保存
* @author: renchao
*/
submitForm () {
this.districtAreaList.forEach((item) => {
if (this.form.departmentId == item.id) {
......@@ -185,6 +200,10 @@
})
},
// 重置
/**
* @description: 重置
* @author: renchao
*/
resetForm () {
this.form = {
sex: '0'
......@@ -192,6 +211,10 @@
this.$refs.form.resetFields()
},
// 关闭
/**
* @description: 关闭
* @author: renchao
*/
close () {
this.resetForm()
this.$emit('input', false)
......
......@@ -230,12 +230,20 @@
},
},
methods: {
/**
* @description: handleAdd
* @author: renchao
*/
handleAdd () {
this.isDialog = true
this.$refs.dialogForm.adds();
this.$refs.dialogForm.title = "添加";
},
// 查询
/**
* @description: 查询
* @author: renchao
*/
getTableList () {
this.queryParam = {
name: this.form.name,
......@@ -258,6 +266,11 @@
})
},
// 获取组织机构
/**
* @description: 获取组织机构
* @param {*} deptIdArr
* @author: renchao
*/
getDepts (deptIdArr) {
let params = {
queryOptions: {
......@@ -307,6 +320,11 @@
// },
// 重置用户密码
/**
* @description: 重置用户密码
* @param {*} data
* @author: renchao
*/
resetPassword (data) {
const ids = []
if (data instanceof Array) {
......@@ -352,6 +370,12 @@
.catch(() => { })
},
//排序
/**
* @description: 排序
* @param {*} record
* @param {*} operate
* @author: renchao
*/
updateOrder (record, operate) {
const findIndex = this.tableData.data.findIndex(item => item.id === record.id)
let swapId = ''
......@@ -371,12 +395,23 @@
},
// 修改人员信息
/**
* @description: 修改人员信息
* @param {*} row
* @author: renchao
*/
handleEdit (row) {
this.isDialog = true
this.$refs.dialogForm.edit(row);
this.$refs.dialogForm.title = "修改";
},
// 删除
/**
* @description: 删除
* @param {*} id
* @param {*} content
* @author: renchao
*/
handleDelete (id, content) {
this.$confirm(deleteDomStr(content), '执行确认', {
dangerouslyUseHTMLString: true,
......@@ -399,6 +434,10 @@
.catch(() => { })
},
// 新增回显
/**
* @description: 新增回显
* @author: renchao
*/
reloadTableData () {
this.getTableList()
},
......
......@@ -124,6 +124,10 @@
};
},
methods: {
/**
* @description: featchData
* @author: renchao
*/
async featchData () {
try {
this.form = Object.assign(this.form, this.formData);
......@@ -141,11 +145,21 @@
this.$refs.msg.messageShow();
}
},
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch () {
this.form.currentPage = 1
this.tableData.data = []
this.featchData()
},
/**
* @description: handleEdit
* @param {*} index
* @param {*} row
* @author: renchao
*/
async handleEdit (index, row) {
try {
let { result: res } = await ruleConfig.eidtConfigRule(row.BSM_YWSJB);
......@@ -158,6 +172,12 @@
});
}
},
/**
* @description: handleDel
* @param {*} index
* @param {*} row
* @author: renchao
*/
handleDel (index, row) {
let _this = this;
this.$confirm("此操作将进行删除校验规则, 是否继续?", "提示", {
......@@ -192,6 +212,10 @@
});
});
},
/**
* @description: handleUpdateDic
* @author: renchao
*/
handleUpdateDic () {
this.$store.dispatch("dictionaries/generateDic").then((res) => {
if (res) {
......