From f131de1dc419de3e6edaea405cad24d489c74f9c Mon Sep 17 00:00:00 2001 From: monkey Date: Fri, 14 May 2021 16:23:38 +0800 Subject: [PATCH] v11.0.3 --- src/api/admin/crm.js | 12 +- src/api/admin/employeeDep.js | 24 ++ src/api/admin/log.js | 80 ++++ src/api/common.js | 12 +- src/api/crm/common.js | 8 +- src/api/crm/contract.js | 15 + src/api/crm/customer.js | 57 ++- src/api/crm/workbench.js | 46 +++ src/api/oa/examine.js | 2 +- src/components/CRMImport/index.vue | 38 +- src/components/NewCom/WkDepSelect/index.vue | 1 + src/components/XrUpgradeDialog.vue | 29 +- src/config.js | 2 +- src/mixins/CustomFields.js | 15 +- src/router/modules/admin.js | 55 ++- .../customer/components/DetailRecycleRule.vue | 14 +- .../admin/crm/customer/components/PoolAdd.vue | 153 ++++---- .../crm/customer/components/PoolDetail.vue | 22 +- .../crm/customer/components/PoolTransfer.vue | 18 +- .../crm/customer/components/RecycleRule.vue | 48 +-- src/views/admin/crm/customer/index.vue | 77 ++-- .../printTemplates/PrintTemplateDetail.vue | 18 +- .../components/TemplateTypeAdd.vue | 12 +- src/views/admin/crm/printTemplates/index.vue | 8 +- .../employeeDep/components/EditDepDialog.vue | 129 +++++++ src/views/admin/employeeDep/index.vue | 184 ++++++++-- src/views/admin/log/DataHandleLog.vue | 263 +++++++++++++ src/views/admin/log/LoginLog.vue | 275 ++++++++++++++ src/views/admin/log/SysHandleLog.vue | 240 ++++++++++++ src/views/admin/log/mixins/HandleLog.js | 226 ++++++++++++ src/views/admin/roleAuth/index.vue | 4 +- src/views/bi/product/ProductStatistics.vue | 346 ++++++------------ src/views/crm/business/Detail.vue | 6 +- src/views/crm/components/CRMBaseInfo.vue | 6 +- src/views/crm/components/CRMDetailHead.vue | 26 +- src/views/crm/components/CRMEditBaseInfo.vue | 9 +- src/views/crm/components/CRMListHead.vue | 2 +- src/views/crm/components/CRMTableHead.vue | 23 +- src/views/crm/components/ChieflyContacts.vue | 6 +- .../crm/components/DuplicateCheck/index.vue | 16 +- src/views/crm/components/FieldSet/index.vue | 10 +- src/views/crm/components/Print/index.vue | 33 +- src/views/crm/components/RelativePrint.vue | 8 +- .../crm/components/SceneForm/SceneCreate.vue | 20 +- .../SelectionHandle/AllocHandle.vue | 6 +- .../SelectionHandle/PutPoolHandle.vue | 39 +- src/views/crm/contract/Detail.vue | 6 +- src/views/crm/customer/Detail.vue | 31 +- src/views/crm/invoice/Detail.vue | 5 + src/views/crm/mixins/Table.js | 19 +- src/views/crm/product/Create.vue | 1 + src/views/crm/receivables/Create.vue | 1 + src/views/crm/receivables/Detail.vue | 6 +- src/views/crm/seas/index.vue | 36 +- src/views/layout/components/MessageCell.vue | 2 +- src/views/oa/components/FileCell/index.vue | 3 +- .../components/ExamineCategorySelect.vue | 4 +- src/views/oa/notice/NewDialog.vue | 2 +- src/views/oa/notice/NoticeDetail.vue | 2 +- src/views/pm/project/Corver.vue | 1 + src/views/pm/task/index.vue | 2 +- src/views/workLog/FollowIndex.vue | 110 +++++- 62 files changed, 2188 insertions(+), 686 deletions(-) create mode 100644 src/api/admin/log.js create mode 100644 src/views/admin/employeeDep/components/EditDepDialog.vue create mode 100644 src/views/admin/log/DataHandleLog.vue create mode 100644 src/views/admin/log/LoginLog.vue create mode 100644 src/views/admin/log/SysHandleLog.vue create mode 100644 src/views/admin/log/mixins/HandleLog.js diff --git a/src/api/admin/crm.js b/src/api/admin/crm.js index a4a1b83..50c8718 100644 --- a/src/api/admin/crm.js +++ b/src/api/admin/crm.js @@ -413,7 +413,7 @@ export function printTemplateListAPI(data) { */ export function printTemplateByIdAPI(data) { return request({ - url: 'crmPrint/queryPrintTemplateById', + url: 'admin/printing/read', method: 'post', data: data }) @@ -488,7 +488,7 @@ export function printQueryFieldsAPI(data) { */ export function printPrintAPI(data) { return request({ - url: 'crmPrint/print', + url: 'crm/printing/printingData', method: 'post', data: data }) @@ -514,7 +514,7 @@ export function printCopyTemplateAPI(data) { */ export function printSaveRecordAPI(data) { return request({ - url: 'crmPrint/savePrintRecord', + url: 'crm/printing/setRecord', method: 'post', data: data, headers: { @@ -530,7 +530,7 @@ export function printSaveRecordAPI(data) { */ export function printQueryPrintRecordAPI(data) { return request({ - url: 'crmPrint/queryPrintRecord', + url: 'crm/printing/getRecord', method: 'post', data: data }) @@ -543,7 +543,7 @@ export function printQueryPrintRecordAPI(data) { */ export function printRecordDetailAPI(data) { return request({ - url: 'crmPrint/queryPrintRecordById', + url: 'crm/printing/printingData', method: 'post', data: data }) @@ -556,7 +556,7 @@ export function printRecordDetailAPI(data) { */ export function printPreviewAPI(data) { return request({ - url: 'crmPrint/preview', + url: 'crm/printing/preview', method: 'post', data: data }) diff --git a/src/api/admin/employeeDep.js b/src/api/admin/employeeDep.js index e36cbed..ca9555a 100644 --- a/src/api/admin/employeeDep.js +++ b/src/api/admin/employeeDep.js @@ -171,3 +171,27 @@ export function userErrorExcelDownAPI(data) { responseType: 'blob' }) } +/** + * 员工数量 + * @param {*} data + */ +export function adminUserCountNumOfUserAPI() { + return request({ + url: 'admin/users/countNumOfUser', + method: 'post' + }) +} +/** + * 重置部门 + * @param {*} data + */ +export function adminUserSetUserDeptPI(data) { + return request({ + url: 'admin/users/setUserDept', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} diff --git a/src/api/admin/log.js b/src/api/admin/log.js new file mode 100644 index 0000000..498ef56 --- /dev/null +++ b/src/api/admin/log.js @@ -0,0 +1,80 @@ +import request from '@/utils/request' + +/** + * 查询系统登录日志列表页接口 + * @param {*} data + */ +export function queryLoginLogListAPI(data) { + return request({ + url: 'admin/log/loginRecord', + method: 'post', + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + }, + data: data + }) +} + +/** + * 系统登录日志导出 + * @param {*} data + */ +// export function loginLogExportAPI(data) { +// return request({ +// url: 'admin/log/excelImport', +// method: 'post', +// data: data, +// responseType: 'blob', +// headers: { +// 'Content-Type': 'application/json;charset=UTF-8' +// }, +// timeout: 60000 +// }) +// } + +/** + * 查看系统操作日志接口 + * @param {*} data + */ +export function querySystemLogListAPI(data) { + return request({ + url: 'admin/log/systemRecord', + method: 'post', + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + }, + data: data + }) +} + +/** + * 查看数据操作日志接口 + * @param {*} data + */ +export function queryDataOptionLogListAPI(data) { + return request({ + url: 'admin/log/dataRecord', + method: 'post', + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + }, + data: data + }) +} + +/** + * 系统日志导出 + * @param {*} data + */ +export function systemLogExportAPI(data) { + return request({ + url: 'admin/log/excelImport', + method: 'post', + data: data, + responseType: 'blob', + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + }, + timeout: 60000 + }) +} diff --git a/src/api/common.js b/src/api/common.js index 3681670..73b980f 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -130,10 +130,12 @@ export function webFileSaveAPI(data) { var param = new FormData() Object.keys(data).forEach(key => { param.append(key, data[key]) - param.append('isPublic', '1') + // param.append('isPublic', '1') + param.append('module', 'print') + param.append('type', 'img') }) return request({ - url: 'adminFile/upload', + url: 'admin/file/save', method: 'post', data: param, headers: { @@ -210,7 +212,7 @@ export function crmFileUpdateAPI(data) { */ export function crmFileDownByPathAPI(data) { return request({ - url: 'crmPrint/down', + url: 'crm/printing/down', method: 'post', data: data, responseType: 'blob' @@ -330,9 +332,9 @@ export function systemMessageDeleteByIdAPI(data) { }) } -export function downloadFileAPI(data) { +export function downloadFileAPI(data, url) { return request({ - url: 'admin/file/download', + url: `${url || `admin/file/download`}`, method: 'post', data, responseType: 'blob' diff --git a/src/api/crm/common.js b/src/api/crm/common.js index e6c5785..096c041 100644 --- a/src/api/crm/common.js +++ b/src/api/crm/common.js @@ -92,7 +92,7 @@ export function filedUpdateTableFieldAPI(data) { */ export function filedGetPoolTableFieldAPI(data) { return request({ - url: 'admin/field/getField', + url: 'crm/customerPool/field', method: 'post', data: data }) @@ -245,7 +245,7 @@ export function crmFieldConfigAPIIndexAPI(data) { */ export function crmPoolFieldConfigIndexAPI(data) { return request({ - url: 'admin/field/configIndex', + url: 'crm/customerPool/fieldConfig', method: 'post', data: data }) @@ -269,7 +269,7 @@ export function crmFieldConfigAPI(data) { */ export function crmPoolFieldConfigAPI(data) { return request({ - url: 'admin/field/config', + url: 'crm/customerPool/setFieldConfig', method: 'post', data: data }) @@ -296,7 +296,7 @@ export function crmFieldColumnWidthAPI(data) { */ export function crmPoolFieldColumnWidthAPI(data) { return request({ - url: 'crmField/setPoolFieldStyle', + url: 'crm/customerPool/setFieldWidth', method: 'post', data: data, headers: { diff --git a/src/api/crm/contract.js b/src/api/crm/contract.js index ced2d45..e07ba93 100644 --- a/src/api/crm/contract.js +++ b/src/api/crm/contract.js @@ -264,3 +264,18 @@ export function crmContractQueryVisitAPI(data) { } }) } + +/** + * + * @param {*} data + */ +export function crmContractQueryListByProductIdAPI(data) { + return request({ + url: 'bi/product/listProduct', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} diff --git a/src/api/crm/customer.js b/src/api/crm/customer.js index ea374ba..3e894eb 100644 --- a/src/api/crm/customer.js +++ b/src/api/crm/customer.js @@ -46,7 +46,7 @@ export function crmCustomerDeleteAPI(data) { */ export function crmCustomerPoolListAPI(data) { return request({ - url: 'crm/customer/pool', + url: 'crm/customerPool/index', method: 'post', data: data }) @@ -58,7 +58,7 @@ export function crmCustomerPoolListAPI(data) { */ export function crmCustomerPoolDeleteAPI(data) { return request({ - url: 'crm/customer/delete', + url: 'crm/customerPool/delete', method: 'post', data: data, headers: { @@ -73,7 +73,7 @@ export function crmCustomerPoolDeleteAPI(data) { */ export function crmCustomerPoolSetAPI(data) { return request({ - url: 'crmCustomerPool/setCustomerPool', + url: 'admin/setting/setPool', method: 'post', data: data, headers: { @@ -88,7 +88,7 @@ export function crmCustomerPoolSetAPI(data) { */ export function crmCustomerPoolSetListAPI(data) { return request({ - url: 'crmCustomerPool/queryPoolSettingList', + url: 'admin/setting/pool', method: 'post', data: data, headers: { @@ -102,7 +102,7 @@ export function crmCustomerPoolSetListAPI(data) { */ export function crmCustomerPoolSetDeleteAPI(data) { return request({ - url: 'crmCustomerPool/deleteCustomerPool', + url: 'admin/setting/deletePool', method: 'post', data: data }) @@ -114,7 +114,7 @@ export function crmCustomerPoolSetDeleteAPI(data) { */ export function crmCustomerPoolSetDetailAPI(data) { return request({ - url: 'crmCustomerPool/queryPoolById', + url: 'admin/setting/readPool', method: 'post', data: data }) @@ -126,7 +126,7 @@ export function crmCustomerPoolSetDetailAPI(data) { */ export function crmCustomerPoolSetChangeStatusAPI(data) { return request({ - url: 'crmCustomerPool/changeStatus', + url: 'admin/setting/changePool', method: 'post', data: data }) @@ -140,7 +140,7 @@ export function crmCustomerPoolSetChangeStatusAPI(data) { */ export function crmCustomerPoolSetTransferAPI(data) { return request({ - url: 'crmCustomerPool/transfer', + url: 'admin/setting/transferPool', method: 'post', data: data }) @@ -152,7 +152,7 @@ export function crmCustomerPoolSetTransferAPI(data) { */ export function crmCustomerPoolSetNameListAPI(data) { return request({ - url: 'crmCustomerPool/queryPoolNameList', + url: 'admin/setting/pool', method: 'post', data: data }) @@ -164,7 +164,7 @@ export function crmCustomerPoolSetNameListAPI(data) { */ export function crmCustomerPoolNameListAPI(data) { return request({ - url: 'crmCustomerPool/queryPoolNameListByAuth', + url: 'crm/customerPool/pondList', method: 'post', data: data }) @@ -176,7 +176,7 @@ export function crmCustomerPoolNameListAPI(data) { */ export function crmCustomerPoolQueryLevelAPI(data) { return request({ - url: 'crmCustomerPool/queryCustomerLevel', + url: 'admin/setting/customerLevel', method: 'post', data: data }) @@ -187,7 +187,7 @@ export function crmCustomerPoolQueryLevelAPI(data) { */ export function crmCustomerReadAPI(data) { return request({ - url: `crm/customer/read`, + url: `crm/${data.pool_id ? 'customerPool' : 'customer'}/read`, method: 'post', data: data }) @@ -301,7 +301,7 @@ export function crmCustomerPoolExcelImportAPI(data) { param.append(key, data[key]) }) return request({ - url: 'crmCustomerPool/uploadExcel', + url: 'crm/customerPool/import', method: 'post', data: param, headers: { @@ -325,13 +325,31 @@ export function crmCustomerDownloadExcelAPI(data) { }) } +/** + * 客户公海导入模板下载 + * @param {*} data + * + */ + +export function crmCustomerPoolDownloadExcelAPI(data) { + return request({ + url: 'crm/customerPool/excelDownload', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + }, + responseType: 'blob' + }) +} + /** * 公海导出 * @param {*} data */ export function crmCustomerPoolExcelExportAPI(data) { return request({ - url: 'crm/customer/poolExcelExport', + url: 'crm/customerPool/export', method: 'post', data: data, headers: { @@ -348,7 +366,7 @@ export function crmCustomerPoolExcelExportAPI(data) { */ export function crmCustomerPoolExcelAllExport(data) { return request({ - url: 'crm/customer/poolExcelExport', + url: 'crm/customerPool/export', method: 'post', data: data, responseType: 'blob', @@ -364,7 +382,7 @@ export function crmCustomerPoolExcelAllExport(data) { */ export function crmCustomerPoolQueryPoolFieldAPI(data) { return request({ - url: 'crmCustomerPool/queryPoolField', + url: 'admin/setting/poolField', method: 'post', data: data }) @@ -376,7 +394,8 @@ export function crmCustomerPoolQueryPoolFieldAPI(data) { */ export function crmCustomerPoolQueryAuthAPI(data) { return request({ - url: 'crm/customer/poolAuthority', + // url: 'crm/customer/poolAuthority', + url: 'crm/customerPool/authority', method: 'post', data: data }) @@ -388,7 +407,7 @@ export function crmCustomerPoolQueryAuthAPI(data) { */ export function crmCustomerDistributeAPI(data) { return request({ - url: 'crm/customer/distribute', + url: 'crm/customerPool/distribute', method: 'post', data: data, headers: { @@ -403,7 +422,7 @@ export function crmCustomerDistributeAPI(data) { */ export function crmCustomerReceiveAPI(data) { return request({ - url: 'crm/customer/receive', + url: 'crm/customerPool/receive', method: 'post', data: data, headers: { diff --git a/src/api/crm/workbench.js b/src/api/crm/workbench.js index 5a83fbd..29f0815 100644 --- a/src/api/crm/workbench.js +++ b/src/api/crm/workbench.js @@ -248,3 +248,49 @@ export function crmIndexUnContactCustomerAPI(data) { } }) } + +//* ********************************** +/** + * + * @param {*} data + */ +export function crmInstrumentExportRecordListAPI(data) { + return request({ + url: '', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} + +/** + * + * @param {*} data + */ +export function crmInstrumentImportRecordListAPI(data) { + return request({ + url: '', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} + +/** + * + * @param {*} data + */ +export function crmInstrumentDownloadRecordExcelAPI(data) { + return request({ + url: '', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} diff --git a/src/api/oa/examine.js b/src/api/oa/examine.js index cddada8..1f300e3 100644 --- a/src/api/oa/examine.js +++ b/src/api/oa/examine.js @@ -18,7 +18,7 @@ export function oaAllExamineCategoryListAPI(data) { */ export function oaAllExamineCategorySortAPI(data) { return request({ - url: 'oaExamineCategory/saveOrUpdateOaExamineSort', + url: 'oa/examine/examineSort', method: 'post', data: data, headers: { diff --git a/src/components/CRMImport/index.vue b/src/components/CRMImport/index.vue index c9b84cb..f379dc0 100644 --- a/src/components/CRMImport/index.vue +++ b/src/components/CRMImport/index.vue @@ -68,12 +68,12 @@
四、请选择公海
- + + :key="item.pool_id" + :label="item.pool_name" + :value="item.pool_id"/>
@@ -153,7 +153,9 @@ import { import { crmCustomerExcelImportAPI, crmCustomerDownloadExcelAPI, - crmCustomerPoolExcelImportAPI + crmCustomerPoolExcelImportAPI, + crmCustomerPoolNameListAPI, + crmCustomerPoolDownloadExcelAPI } from '@/api/crm/customer' import { crmLeadsExcelImportAPI, @@ -228,7 +230,7 @@ export default { user: [], // 公海数据 - poolId: '', + pool_id: '', poolList: [], stepsActive: 1, @@ -422,7 +424,7 @@ export default { params.file = this.file params.owner_user_id = this.user.length > 0 ? this.user[0].id : '' if (this.config.poolSelectShow) { - params.poolId = this.poolId + params.pool_id = this.pool_id } const request = this.config.importRequest || { @@ -517,12 +519,12 @@ export default { // 下载模板操作 download() { const request = this.config.templateRequest || { - customer: crmCustomerDownloadExcelAPI, + customer: this.config.poolSelectShow ? crmCustomerPoolDownloadExcelAPI : crmCustomerDownloadExcelAPI, leads: crmLeadsDownloadExcelAPI, contacts: crmContactsDownloadExcelAPI, product: crmProductDownloadExcelAPI }[this.crmType] - request() + request({ pool_id: this.config.poolSelectShow && this.pool_id }) .then(res => { downloadExcelWithResData(res) }) @@ -571,17 +573,13 @@ export default { * 公海数据 */ getPoolList() { - // crmCustomerPoolNameListAPI() - // .then(res => { - // this.poolList = res.data || [] - // this.poolId = this.poolList.length > 0 ? this.poolList[0].poolId : '' - // }) - // .catch(() => { - // }) - this.poolList = [ - { 'poolId': 1, 'poolName': '系统默认公海', 'adminUserId': null, 'memberUserId': null, 'memberDeptId': null, 'status': null, 'preOwnerSetting': null, 'preOwnerSettingDay': null, 'receiveSetting': null, 'receiveNum': null, 'remindSetting': null, 'remindDay': null, 'putInRule': null, 'createUserId': null, 'createTime': null, 'companyId': null } - ] - this.poolId = 1 + crmCustomerPoolNameListAPI() + .then(res => { + this.poolList = res.data || [] + this.pool_id = this.poolList.length > 0 ? this.poolList[0].pool_id : '' + }) + .catch(() => { + }) }, // 关闭操作 diff --git a/src/components/NewCom/WkDepSelect/index.vue b/src/components/NewCom/WkDepSelect/index.vue index 811e1ec..8eca689 100644 --- a/src/components/NewCom/WkDepSelect/index.vue +++ b/src/components/NewCom/WkDepSelect/index.vue @@ -296,6 +296,7 @@ export default { * 删除 */ deleteDep(index) { + if (this.disabled) return // 直接 splice ,dataValue watch 的老旧值相同,复制之后新旧值不相同。暂时解决 const dataValue = objDeepCopy(this.dataValue) dataValue.splice(index, 1) diff --git a/src/components/XrUpgradeDialog.vue b/src/components/XrUpgradeDialog.vue index fd457ce..b9c7577 100644 --- a/src/components/XrUpgradeDialog.vue +++ b/src/components/XrUpgradeDialog.vue @@ -33,27 +33,14 @@ export default { }, data() { return { - message: `修复: -1、修复自定义字段设置隐藏生效问题; -2、修复线索自定义字段转化字段设置生效问题; -3、修复导入数据超过100条部分的数据无法导入问题; -4、修复新建场景保存报错问题; -5、修复客户新建后显示为公海客户,无法操作问题; -6、修复多选字段高级筛选不生效问题; -7、修复产品编辑报错问题; -8、修复部门、人员字段列表展示问题; -9、修复手机、邮箱字段详情编辑校验问题; -10、修复活动记录展示其他客户信息的问题; -11、修复系统提示:“账号在其他地方登录”问题; -12、修复待办事项今日需联系客户标记完成不生效问题; -13、修复仪表盘数据统计错误问题; -14、修复仪表盘遗忘提醒数据查询统计错误问题; -15、修复仪表盘自定义时间、部门筛选数据统计错误问题; -16、修复商业智能自定义时间筛选数据统计错误问题; -17、修复商业智能部门、人员默认筛选数据统计错误问题; -18、修复 72crm-11.0-web(PHP版)部署后部门、成员不展示问题; -19、修复其他已知bug。 -20、新增商业智能导出功能。` + message: `新增: + 1、客户管理模块字段授权 + 2、客户管理模块打印模板 + 3、客户管理多公海模块 + 4、数据操作日志 + 5、系统操作日志 + 6、登录日志 + 7、员工管理增加批量重设部门的功能` } }, computed: {}, diff --git a/src/config.js b/src/config.js index 531355c..3a65b86 100644 --- a/src/config.js +++ b/src/config.js @@ -3,7 +3,7 @@ const getLocationOrigin = () => { } const companyName = '悟空CRM' -const version = 'V11.0.2' +const version = 'V11.0.3' const baiduKey = 'lcuOQ71SCZhqpxsr1vL2mXoplWEoVctL' export default { diff --git a/src/mixins/CustomFields.js b/src/mixins/CustomFields.js index 9e7eeda..06546be 100644 --- a/src/mixins/CustomFields.js +++ b/src/mixins/CustomFields.js @@ -250,7 +250,7 @@ export default { * 获取客户位置提交参数 */ getCustomerAddressParams(params, dataValue) { - params['address'] = dataValue.address + params['address'] = (dataValue.address && dataValue.address.filter(item => item).length > 0) ? dataValue.address : '' params['detail_address'] = dataValue.detail_address @@ -298,14 +298,19 @@ export default { if (dataValue) { return dataValue } - delete data[field.field] - return + // delete data[field.field] + return '' } else if (field.form_type == 'datetime') { if (dataValue) { return moment(dataValue).unix() } - delete data[field.field] - return + // delete data[field.field] + return '' + } else if (field.form_type == 'number') { + if (dataValue) { + return dataValue + } + return '' } return dataValue diff --git a/src/router/modules/admin.js b/src/router/modules/admin.js index 4444406..ee0c98e 100644 --- a/src/router/modules/admin.js +++ b/src/router/modules/admin.js @@ -150,24 +150,24 @@ export default [ permissions: ['manage', 'crm', 'field'] } }, - // { - // path: 'customer', - // component: () => import('@/views/admin/crm/customer'), - // meta: { - // title: '客户公海规则设置', - // requiresAuth: true, - // permissions: ['manage', 'crm', 'pool'] - // } - // }, - { // 临时 使用 后期删除 + { path: 'customer', - component: () => import('@/views/admin/crm/customerPool'), + component: () => import('@/views/admin/crm/customer'), meta: { title: '客户公海规则设置', requiresAuth: true, permissions: ['manage', 'crm', 'pool'] } }, + // { // 临时 使用 后期删除 + // path: 'customer', + // component: () => import('@/views/admin/crm/customerPool'), + // meta: { + // title: '客户公海规则设置', + // requiresAuth: true, + // permissions: ['manage', 'crm', 'pool'] + // } + // }, { path: 'print-templates', component: () => import('@/views/admin/crm/printTemplates'), @@ -216,6 +216,39 @@ export default [ } }] }, + { + ...layout({ + permissions: ['manage', 'adminLog'], + title: '系统日志', + icon: 'record' + }, '/manage/log/'), + alwaysShow: true, + children: [{ + path: 'handle', + component: () => import('@/views/admin/log/DataHandleLog'), + meta: { + title: '数据操作日志', + requiresAuth: true, + permissions: ['manage', 'adminLog', 'actionRecord'] + } + }, { + path: 'sys', + component: () => import('@/views/admin/log/SysHandleLog'), + meta: { + title: '系统操作日志', + requiresAuth: true, + permissions: ['manage', 'adminLog', 'systemLog'] + } + }, { + path: 'login', + component: () => import('@/views/admin/log/LoginLog'), + meta: { + title: '登录日志', + requiresAuth: true, + permissions: ['manage', 'adminLog', 'loginLog'] + } + }] + }, { ...layout({ permissions: ['manage', 'other_rule', 'setwelcome'] diff --git a/src/views/admin/crm/customer/components/DetailRecycleRule.vue b/src/views/admin/crm/customer/components/DetailRecycleRule.vue index a467b6d..c8e8a9d 100644 --- a/src/views/admin/crm/customer/components/DetailRecycleRule.vue +++ b/src/views/admin/crm/customer/components/DetailRecycleRule.vue @@ -5,14 +5,14 @@ class="detail-recycle-rule__content">
选择不进入公海客户 - 已成交客户 - 有商机客户 + 已成交客户 + 有商机客户
-
所有客户统一设置
-
根据客户级别分别设置
+
所有客户统一设置
+
根据客户级别分别设置
+ prop="limit_day"> diff --git a/src/views/admin/crm/customer/components/PoolAdd.vue b/src/views/admin/crm/customer/components/PoolAdd.vue index 7090c96..1cefc28 100644 --- a/src/views/admin/crm/customer/components/PoolAdd.vue +++ b/src/views/admin/crm/customer/components/PoolAdd.vue @@ -28,7 +28,7 @@ label-position="top" class="pool-add-items">
- +
前负责人领取规则
- + 不限制 限制 -
+
前负责人 - + 天内不允许领取该客户
@@ -106,13 +106,13 @@ align="stretch">
领取频率规则
- + 不限制 限制 -
+
每天最多领取 - + 个公海客户
@@ -123,13 +123,13 @@ align="stretch">
提醒规则
- + 不提醒 提醒 -
+
提前 - + 天提醒负责人
@@ -140,14 +140,14 @@ align="stretch">
收回规则
- + 自动回收 不自动回收
-