{
+ // if (res.code !== 0) {
+ // return this.$message.error(res.msg)
+ // }
+ // this.options = res.data.options
+ // })
+ // .catch(() => {})
+ var paa = {deptType:'party'}
this.$http
- .get(`/sys/user/deptOptions/getDeptAuthByUser`)
+ .post(`/sys/user/deptOptions/getByLoginUserNew`,paa)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@@ -190,7 +200,7 @@ export default {
return value === deptId
})
if (data) {
- this.$message.error('第' + (j + 1) + '名:' + deptName + '已存在,请更换网格!')
+ this.$message.error('第' + (j + 1) + '名:' + deptName + '已存在,请更换党支部!')
return false
}
deptIdArr.push(this.dataForm.sortList[j].deptId)
diff --git a/src/views/modules/workRecord/monthrecordinfo.vue b/src/views/modules/workRecord/monthrecordinfo.vue
index 0431819..4612f44 100644
--- a/src/views/modules/workRecord/monthrecordinfo.vue
+++ b/src/views/modules/workRecord/monthrecordinfo.vue
@@ -79,8 +79,8 @@
- {{ '示范网格' }}
- {{ '网格排序' }}
+ {{ '示范党支部' }}
+ {{ '党支部排序' }}
- {{ '修改月报' }}
- {{ '查看月报' }}
+ {{ '修改月报' }}
+ {{ '查看月报' }}
@@ -167,9 +167,9 @@ export default {
this.getOptions()
},
methods: {
- addHandle (id, disabled, caseId, deptId, personId, isHaveSort) {
+ addHandle (id, disabled, caseId, gridId, personId, isHaveSort) {
this.$parent.selectComponent = 'MonthrecordinfoDetail'
- this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: id, disabled: disabled, caseId: caseId, deptId: deptId, personId: personId, isHaveSort: isHaveSort } })
+ this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: id, disabled: disabled, caseId: caseId, gridId: gridId, personId: personId, isHaveSort: isHaveSort } })
},
addCaseHandle (infoId, disabled) {
this.$parent.selectComponent = 'MonthexcellentcaseDetail'
diff --git a/src/views/modules/workRecord/monthrecordinfoDetail.vue b/src/views/modules/workRecord/monthrecordinfoDetail.vue
index 7d92014..1678d26 100644
--- a/src/views/modules/workRecord/monthrecordinfoDetail.vue
+++ b/src/views/modules/workRecord/monthrecordinfoDetail.vue
@@ -4,9 +4,9 @@
{{ '优秀案例' }}
- {{ '示范网格' }}
+ {{ '示范党支部' }}
{{ '身边榜样' }}
- {{ '网格排序' }}
+ {{ '党支部排序' }}
@@ -112,7 +112,7 @@ export default {
isShowPersonBtn: false,
isShowSortBtn: false,
caseId: '',
- deptId: '',
+ gridId: '',
personId: '',
queryDisabled: ''
}
@@ -155,10 +155,10 @@ export default {
this.isShowCaseBtn = true
this.caseId = this.$route.query.caseId
}
- if (this.$route.query.deptId !== '' && this.$route.query.deptId != null) {
+ if (this.$route.query.gridId !== '' && this.$route.query.gridId != null) {
// 展示示范网格跳转按钮
this.isShowGridBtn = true
- this.deptId = this.$route.query.deptId
+ this.gridId = this.$route.query.gridId
}
if (this.$route.query.personId !== '' && this.$route.query.personId != null) {
// 展示身边榜样跳转按钮
@@ -177,7 +177,7 @@ export default {
},
goToGridHandle () {
this.$parent.selectComponent = 'MonthexcellentgridDetail'
- this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.deptId, disabled: this.queryDisabled, infoId: this.dataForm.id } })
+ this.$router.push({ path: '/workRecord-Monthrecordinforoute', query: { id: this.gridId, disabled: this.queryDisabled, infoId: this.dataForm.id } })
},
goToPersonHandle () {
this.$parent.selectComponent = 'MonthexcellentpersonDetail'