diff --git a/src/api/sift/queryUserSetting.js b/src/api/sift/queryUserSetting.js new file mode 100644 index 0000000..c92879c --- /dev/null +++ b/src/api/sift/queryUserSetting.js @@ -0,0 +1,7 @@ +import {createAPI} from "../../utils/httpRequest"; + +export const searchUserSettingList = (data) => createAPI(`/sift/list`,'get',data) +export const searchUserSettingRecording = (data) => createAPI(`/sift/recording`,'get',data) +export const searchUserSettingRecordList = (data) => createAPI(`/sift/recordList`,'get',data) +export const saveOrUpdateBatch = (data) => createAPI(`/sift/saveOrUpdateBatch`,'post',data) +export const saveQueryHeaderDetail = (data) => createAPI(`/sift/saveRecord`,'post',data) diff --git a/src/store/index.js b/src/store/index.js index 258c9f1..c05d296 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -3,13 +3,15 @@ import Vuex from 'vuex' import cloneDeep from 'lodash/cloneDeep' import common from './modules/common' import user from './modules/user' +import sift from "./modules/sift"; Vue.use(Vuex) export default new Vuex.Store({ modules: { common, - user + user, + sift }, mutations: { // 重置vuex本地储存状态 diff --git a/src/store/modules/sift.js b/src/store/modules/sift.js new file mode 100644 index 0000000..5ddd5f2 --- /dev/null +++ b/src/store/modules/sift.js @@ -0,0 +1,17 @@ +export default { + namespaced: true, + state: { + siftList:[], + searchFunction:(params)=>{ + window.alert("没有查询方法") + },//直接查询 + }, + mutations: { + commitSiftList(state, siftList) { + state.siftList = siftList + }, + commitSearchFunction(state, SearchFunction) { + state.searchFunction = SearchFunction + }, + } +} diff --git a/src/views/main-content.vue b/src/views/main-content.vue index 67dd210..826f184 100644 --- a/src/views/main-content.vue +++ b/src/views/main-content.vue @@ -1,53 +1,157 @@ - - - - - - - 关闭当前标签页 - 关闭其它标签页 - 关闭全部标签页 - 刷新当前标签页 - - - - - - - - - - - - - - - - - - - + + + + + + + + 关闭当前标签页 + 关闭其它标签页 + 关闭全部标签页 + 刷新当前标签页 + 筛选条件 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上移 + 下移 + + + + + + + + changeSymbol(value,row)" slot="prepend" clearable v-model="row.symbol" style="width: 100px;cursor:pointer;"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 条件保存 + + + 刷新 + + + 清除 + + + {{ settingFlag?'保存':'配置' }} + + + 取消 + + + + + + + + + + + + + 保 存 + 关 闭 + + + + + diff --git a/src/views/modules/base/buInfo.vue b/src/views/modules/base/buInfo.vue index 895513c..926a9d5 100644 --- a/src/views/modules/base/buInfo.vue +++ b/src/views/modules/base/buInfo.vue @@ -263,7 +263,13 @@ } }, }, + activated() { + this.$store.commit("sift/commitSearchFunction",this.getBuDemo) + }, methods: { + getBuDemo(params){ + this.$message.success("这里是BU") + }, // 获取基础数据列表S getBaseList (val, type) { this.tagNo = val diff --git a/src/views/modules/base/factoryInformation.vue b/src/views/modules/base/factoryInformation.vue index 21d3b35..398e79d 100644 --- a/src/views/modules/base/factoryInformation.vue +++ b/src/views/modules/base/factoryInformation.vue @@ -1,9 +1,11 @@ - {{buttons.search}} - {{buttons.add}} + {{ buttons.search }} + + {{ buttons.add }} + - {{buttons.role}} - {{buttons.update}} - {{buttons.companyInformation}} - + {{ buttons.role }} + {{ buttons.update }} + {{ buttons.companyInformation }} + - {{scope.row[item.columnProp]}} + {{ scope.row[item.columnProp] }} - + - + - + - + - - {{labels.company}} - + + {{ labels.company }} + - + @@ -97,38 +101,41 @@ - + - + - + - + - + - + - + - - {{buttons.save}} - {{buttons.close}} + + {{ buttons.save }} + {{ buttons.close }} @@ -155,822 +162,824 @@ - + -