diff --git a/src/api/apiChunks/index.js b/src/api/apiChunks/index.js index 41e020d..10a33e9 100644 --- a/src/api/apiChunks/index.js +++ b/src/api/apiChunks/index.js @@ -4,7 +4,7 @@ import request from '@/utils/request' // 动态模版请求 export function getApiModuleApi(obj, data = {}) { return request({ - url: '/kangarooDataCenter/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data @@ -12,7 +12,7 @@ export function getApiModuleApi(obj, data = {}) { } export function getApiResultApi(data = {}) { return request({ - url: '/kangarooDataCenter/entranceController/option ', + url: 'kangarooDataCenter/entranceController/option ', method: 'post', headers: { tl: "appApiService", @@ -24,10 +24,10 @@ export function getApiResultApi(data = {}) { } export function getExcelApi(obj, data = {}) { return request({ - url: '/kangarooDataCenter/entranceController/option ', + url: 'kangarooDataCenter/entranceController/option ', method: 'post', responseType: "blob", headers: obj, data }) -} \ No newline at end of file +} diff --git a/src/api/apis/auth.js b/src/api/apis/auth.js index b7ed7da..27c9106 100644 --- a/src/api/apis/auth.js +++ b/src/api/apis/auth.js @@ -2,7 +2,7 @@ import request from "@/utils/request"; export function authApi(tl,as,dj,url = '',data){ return request({ - url: '/kangarooDataCenter/entranceController/option' + url, + url: 'kangarooDataCenter/entranceController/option' + url, headers: { tl:tl, as:as, diff --git a/src/api/apis/detailData.js b/src/api/apis/detailData.js index fb5b1d6..d92bf1b 100644 --- a/src/api/apis/detailData.js +++ b/src/api/apis/detailData.js @@ -3,9 +3,9 @@ import request from '@/utils/request' // 获取全部插件列表 export function option(obj, data = {}) { return request({ - url: '/kangarooDataCenter/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data }) -} \ No newline at end of file +} diff --git a/src/api/integrationOption/integrationOption.js b/src/api/integrationOption/integrationOption.js index 68957f8..dbb7d00 100644 --- a/src/api/integrationOption/integrationOption.js +++ b/src/api/integrationOption/integrationOption.js @@ -3,9 +3,9 @@ import request from '@/utils/request' export function getUserModuleApi(obj, data = {}) { return request({ - url: '/kangarooDataCenter/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data }) -} \ No newline at end of file +} diff --git a/src/api/login.js b/src/api/login.js index 2135a3f..7b4d071 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -7,7 +7,7 @@ import request from '@/utils/request' // 登录方法 export function login(login_name, password) { const data = { - login_name, + loginCode:login_name, password, } return request({ @@ -61,4 +61,4 @@ export function getCodeImg() { method: 'get', timeout: 20000 }) -} \ No newline at end of file +} diff --git a/src/api/system/integrationOption.js b/src/api/system/integrationOption.js index 15b513d..71ef1d7 100644 --- a/src/api/system/integrationOption.js +++ b/src/api/system/integrationOption.js @@ -3,9 +3,9 @@ import request from '@/utils/request' // 集成应用请求 export function getPagesApi(obj, data = {}) { return request({ - url: '/kangarooDataCenter/entranceController/option', + url: 'kangarooDataCenter/entranceController/option', method: 'post', headers: obj, data }) -} \ No newline at end of file +} diff --git a/src/components/base/BaseMenuTree/index.vue b/src/components/base/BaseMenuTree/index.vue index 97fc934..b240c09 100644 --- a/src/components/base/BaseMenuTree/index.vue +++ b/src/components/base/BaseMenuTree/index.vue @@ -6,98 +6,20 @@ @@ -108,108 +30,45 @@ export default { // 是否默认展开所有节点 expandAll: { type: Boolean, - default: true, - }, - // 操作按钮 - treeButton: { - type: Boolean, - default: false, - }, - // 操作按钮 - filterButtonShow: { - type: Boolean, - default: false, + default: true }, // 是否显示保存按钮 isSaveBtn: { type: Boolean, - default: false, + default: false }, // 是否显示全选按钮 Allshow: { type: Boolean, - default: false, + default: false }, // 是否显示多选按钮 showCheckbox: { type: Boolean, - default: false, + default: false }, // 是否居中 isCenter: { type: Boolean, - default: true, - }, - // 是否显示筛选 - filterShow: { - type: Boolean, - default: false, + default: true }, menuData: { type: Array, default: () => { - return []; - }, + return [] + } }, setting: { type: Boolean, - default: false, - }, - treeLoading: { - type: Boolean, - default: false, - }, - appendButton: { - type: Boolean, - default: true, - }, - reviseButton: { - type: Boolean, - default: true, - }, - removeButton: { - type: Boolean, - default: true, - }, - nodeLabel: { - type: String, - default: "", - }, - treeProps: { - type: Object, - default() { - return { - children: "children", - label: "label", - }; - }, - }, - // 树高度 - treeBodyHeight: { - type: [Number, String], - default: "calc(100% - 22px)", - }, - }, - watch: { - defaultTheme: { - handler: function (val, oldVal) { - this.theme = val; - // document.getElementsByTagName('body')[0].style.setProperty('--active', val) - - // let arr = document.getElementsByClassName('.el-tree-node:focus>.el-tree-node__content') - // $('.el-tree-node:focus>.el-tree-node__content').css('color',val) - }, - immediate: true, - }, - filterText(val) { - this.$refs.elTree.filter(val); + default: false }, }, data() { return { - filterText: "", - theme: "", + theme: '', powerDlog: false, + // 菜单数据 + // menuData: [], // 回显选中ids selectData: [], // 树状图设置 @@ -217,70 +76,52 @@ export default { // label: 'menuName', // children: 'id', // }, - // treeProps: { - // children: 'children', - // label: 'label' - // }, - + treeProps: { + children: 'children', + label: 'label' + }, // PC菜单全选 checkedAllPc: false, // 防连点 outing: false, - }; + treeLoading: false, + } + }, + created() { }, + mounted() { }, - created() {}, - mounted() {}, computed: { defaultTheme() { - return this.$store.state.settings.theme; + return this.$store.state.settings.theme + }, + }, + watch: { + defaultTheme: { + handler: function (val, oldVal) { + this.theme = val + // document.getElementsByTagName('body')[0].style.setProperty('--active', val) + + // let arr = document.getElementsByClassName('.el-tree-node:focus>.el-tree-node__content') + // $('.el-tree-node:focus>.el-tree-node__content').css('color',val) + }, + immediate: true, }, }, methods: { - setCurrentKey(selectId) { - this.$nextTick(() => { - this.$refs.elTree.setCurrentKey(selectId); - }); - }, - dbTree() { - this.setCurrentKey(null); - }, - // 添加 - append(node, data) { - this.$emit("append", data); - }, - // 编辑 - revise(node, data) { - this.$emit("revise", data); - }, - // 删除 - remove(node, data) { - this.$emit("remove", data); - }, - add() { - this.$emit("add"); - }, - filterNode(value, data, node) { - if (!value) return true; - let nodeData = - this.nodeLabel == "" - ? data[this.treeProps.label] - : data[this.treeProps.label][this.nodeLabel]; - return nodeData.indexOf(value) !== -1; - }, buttonL(el) { - el.active = !el.active; - this.$forceUpdate(); + el.active = !el.active + this.$forceUpdate() }, setData(id) { - this.selectData.push(id); + this.selectData.push(id) }, saveMenuUser() { let allKeys = this.getKey(); - this.$emit("onSaveMenu", allKeys); + this.$emit('onSaveMenu', allKeys); }, // 获取选中的key值 getKey() { - return this.$refs.elTree.getCheckedKeys(); + return this.$refs.elTree.getCheckedKeys() }, // 初始数据 initData() { @@ -292,15 +133,15 @@ export default { }, // 关闭弹窗 handleClose() { - this.powerDlog = false; - this.initData(); + this.powerDlog = false + this.initData() }, // 全选、反选 changePcAll() { this.checkedAllPc = !this.checkedAllPc; let selectData = []; if (this.checkedAllPc) { - selectData = this.cycleData(this.menuData); + selectData = this.cycleData(this.menuData) } this.selectData = selectData; }, @@ -316,40 +157,39 @@ export default { function cycle(data) { if (!data || data.length == 0) { - return false; + return false } else { for (var i = 0, len = data.length; i < len; i++) { - let item = data[i]; + let item = data[i] if (isSelect && item.selected == 1) { - newData.push(item.id); + newData.push(item.id) } if (!isSelect) { - newData.push(item.id); + newData.push(item.id) } - cycle(item.id); + cycle(item.id) } } } - cycle(outData); - return newData; + cycle(outData) + return newData }, getData(childIds) { let newData = []; - function cycle(data) { - data.forEach((el) => { - childIds.forEach((item) => { + data.forEach(el => { + childIds.forEach(item => { if (el.id == item) { - newData.push(el); + newData.push(el) } - }); + }) if (el.children != null && el.children && el.children.length) { - cycle(el.children, childIds); + cycle(el.children, childIds) } - }); + }) } - cycle(this.menuData, childIds); - return newData; + cycle(this.menuData, childIds) + return newData }, /** * @description 节点选中状态发生变化时的回调 @@ -359,55 +199,48 @@ export default { * @param { Boolean } checked 当前节点是否选中 */ checkChange(nodeDode, checked) { - let getHalfCheckedKeys = this.$refs.elTree - .getCheckedKeys() - .concat(this.$refs.elTree.getHalfCheckedKeys()); + let getHalfCheckedKeys = this.$refs.elTree.getCheckedKeys().concat(this.$refs.elTree.getHalfCheckedKeys()) // let getHalfCheckedKeys = this.$refs.elTree.getHalfCheckedKeys() - let childIds = - getHalfCheckedKeys.length != 0 ? getHalfCheckedKeys : this.selectData; - let checkdata = this.getData(childIds); - this.$emit("checkChange", childIds, checkdata); - return; + let childIds = getHalfCheckedKeys.length != 0 ? getHalfCheckedKeys : this.selectData + let checkdata = this.getData(childIds) + this.$emit('checkChange', childIds, checkdata) + return + + let id = nodeDode.id; // let childIds = this.cycleData(id) + console.log(id) // 循环设置子项是否选中 - childIds.forEach((item) => { - this.$refs.elTree.setChecked(item, checked); - }); + childIds.forEach(item => { + this.$refs.elTree.setChecked(item, checked) + }) }, // 点击事件 handleNodeClick(data) { - this.$emit("handleNodeClick", data); + this.$emit('handleNodeClick', data); }, - }, -}; + + } +} diff --git a/src/components/base/baseLayout/index.vue b/src/components/base/baseLayout/index.vue index 65d292e..59d8bc4 100644 --- a/src/components/base/baseLayout/index.vue +++ b/src/components/base/baseLayout/index.vue @@ -5,142 +5,219 @@ --> @@ -148,7 +225,6 @@ diff --git a/src/components/base/baseOrganization/index.vue b/src/components/base/baseOrganization/index.vue index cc2d85e..95975e9 100644 --- a/src/components/base/baseOrganization/index.vue +++ b/src/components/base/baseOrganization/index.vue @@ -21,7 +21,7 @@
- +
@@ -100,6 +100,7 @@ export default { }, // 菜单树选中 handleNodeClick(data) { + console.log(data) this.organizationForm = data }, // 清空form @@ -126,4 +127,4 @@ export default { border-radius: 5px; } } - \ No newline at end of file + diff --git a/src/components/base/basePerson/index.vue b/src/components/base/basePerson/index.vue index 8a3167c..a1b7051 100644 --- a/src/components/base/basePerson/index.vue +++ b/src/components/base/basePerson/index.vue @@ -29,6 +29,7 @@ + + \ No newline at end of file diff --git a/src/views/doraChunk/components/menuChunk/index copy.vue b/src/views/doraChunk/components/menuChunk/index copy.vue new file mode 100644 index 0000000..4d02ae8 --- /dev/null +++ b/src/views/doraChunk/components/menuChunk/index copy.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/views/doraChunk/components/menuChunk/index.vue b/src/views/doraChunk/components/menuChunk/index.vue new file mode 100644 index 0000000..e7dbc5d --- /dev/null +++ b/src/views/doraChunk/components/menuChunk/index.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/views/doraChunk/components/optionsChunk/index.vue b/src/views/doraChunk/components/optionsChunk/index.vue new file mode 100644 index 0000000..30ae3e9 --- /dev/null +++ b/src/views/doraChunk/components/optionsChunk/index.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/src/views/doraChunk/config/indexChunkConfig.js b/src/views/doraChunk/config/indexChunkConfig.js new file mode 100644 index 0000000..6b5a3ef --- /dev/null +++ b/src/views/doraChunk/config/indexChunkConfig.js @@ -0,0 +1,206 @@ +/** + * huyitong 2023-09-05 + * tag:"layOutChunk"首页模块 + * name:"左侧拖拽菜单显示名" + * icon:“左侧拖拽菜单显示icon” + * min:最小宽度 + * width:初始宽度 + * defaultWidth:默认宽度(还原默认用) + * componentName:组件名(需去@/components/index.js提前注册) + * alignCenter:是否居中 + */ +const config = [ + // { + // name: "今日数据概览-普通员工", + // componentName: "employeeTodayData", + // width: 60, + // defaultWidth: 60, + // min: 10, + // icon: "el-icon-picture-outline-round", + // tag: "layOutChunk", + // alignCenter: false, + // }, + { + name: "任务预警", + componentName: "taskWarning", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "合同预警", + componentName: "contractWarning", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "待审工作", + componentName: "agencyReviewWork", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "项目预警", + componentName: "projectWarning", + width: 32, + defaultWidth: 32, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "交接单未立项", + componentName: "contractHandover", + width: 16, + defaultWidth: 16, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "本月任务数", + componentName: "employeeMonthTask", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-menu", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "本周任务", + componentName: "employeeWeekTask", + width: 60, + min: 10, + defaultWidth: 60, + icon: "el-icon-s-cooperation", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "快捷操作区", + componentName: "quickOperation", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-s-cooperation", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "我的周计划", + componentName: "weekPlan", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-s-release", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "我的审批", + componentName: "approval", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-date", + tag: "layOutChunk", + alignCenter: false, + }, + // { + // name: "今日数据概览-项目经理", + // componentName: "projectManagerTodayData", + // width: 60, + // defaultWidth: 60, + // min: 10, + // icon: "el-icon-s-check", + // tag: "layOutChunk", + // alignCenter: false, + // }, + { + name: "未处理问题", + componentName: "projectManagerProblem", + width: 35, + min: 10, + defaultWidth: 35, + icon: "el-icon-s-claim", + tag: "layOutChunk", + alignCenter: false, + }, + { + name: "项目阶段预警", + componentName: "projectManagerProjectWarning", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + { + name: "重点项目跟进", + componentName: "keyProject", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + // { + // name: "今日数据概览-业务员", + // componentName: "salesManTodayData", + // width: 60, + // defaultWidth: 60, + // min: 10, + // icon: "el-icon-picture-outline-round", + // tag: "littleModule", + // alignCenter: false, + // }, + { + name: "回款认领", + componentName: "salesMamRefundClaim", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + { + name: "合同收款预警", + componentName: "salesManCollectionWarning", + width: 60, + defaultWidth: 60, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, + { + name: "今日天气", + componentName: "weatherChunk", + width: 35, + defaultWidth: 35, + min: 10, + icon: "el-icon-picture-outline-round", + tag: "littleModule", + alignCenter: false, + }, +]; +export default { + config, +}; diff --git a/src/views/doraChunk/config/littleModule.js b/src/views/doraChunk/config/littleModule.js new file mode 100644 index 0000000..65362b1 --- /dev/null +++ b/src/views/doraChunk/config/littleModule.js @@ -0,0 +1,6 @@ +const config = [ + +] +export default { + config, +}; \ No newline at end of file diff --git a/src/views/doraChunk/index.vue b/src/views/doraChunk/index.vue new file mode 100644 index 0000000..5fa8b95 --- /dev/null +++ b/src/views/doraChunk/index.vue @@ -0,0 +1,137 @@ + + + + + diff --git a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue index ed486c5..014127c 100644 --- a/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue +++ b/src/views/systemSettings/jurisdictionManage/roleJurisdiction/buttonSetting.vue @@ -1,98 +1,98 @@ -