Commit 9f91144d authored by renjintao's avatar renjintao

indexindex

parent 25e68386
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
data() { data() {
return { return {
bugAdd: false, bugAdd: false,
bugCount: 3 bugCount: this.$store.state.countBug
}; };
}, },
computed: {}, computed: {},
...@@ -74,6 +74,8 @@ export default { ...@@ -74,6 +74,8 @@ export default {
} }
}, },
created() {}, created() {},
mounted() {} mounted() {
this.$store.commit("setCountBug", 66);
}
}; };
</script> </script>
...@@ -23,6 +23,10 @@ export default { ...@@ -23,6 +23,10 @@ export default {
getpaged(params) { getpaged(params) {
return Api.get(`${bugUrl}/bugmain/getpaged`, params); return Api.get(`${bugUrl}/bugmain/getpaged`, params);
}, },
//获取bug列表
getList(params) {
return Api.get(`${bugUrl}/bugmain/list`, params);
},
//获取操作历史 //获取操作历史
getallaction(params) { getallaction(params) {
return Api.get(`${bugUrl}/bugmain/getallaction`, params); return Api.get(`${bugUrl}/bugmain/getallaction`, params);
......
...@@ -293,6 +293,7 @@ export default { ...@@ -293,6 +293,7 @@ export default {
}, },
search() { search() {
this.$refs.grid.easySearch(this.easySearch); this.$refs.grid.easySearch(this.easySearch);
this.Api
}, },
//打开修改窗口 //打开修改窗口
editInfo(value) { editInfo(value) {
......
...@@ -20,6 +20,7 @@ export const state = () => ({ ...@@ -20,6 +20,7 @@ export const state = () => ({
countAi: 0, //智能排产 countAi: 0, //智能排产
countAll: 0, //整机排产 countAll: 0, //整机排产
countRun: 0, //流水排产 countRun: 0, //流水排产
countBug: 0, //bug数量
}) })
export const getters = { export const getters = {
dictionaryByKey: (state) => (key) => { dictionaryByKey: (state) => (key) => {
...@@ -101,6 +102,9 @@ export const mutations = { ...@@ -101,6 +102,9 @@ export const mutations = {
setCountRun(state, count) { //设置流水排产数量 setCountRun(state, count) { //设置流水排产数量
state.countRun = count; state.countRun = count;
}, },
setCountBug(state, count) { //设置bug数量
state.countBug = count;
},
setDepartments(state, departmentsMap) { setDepartments(state, departmentsMap) {
state.departmentsMap = departmentsMap; state.departmentsMap = departmentsMap;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment