Browse Source

更换接口

feature/dev_worklog2
zhangyuan 3 years ago
parent
commit
c255bb14d1
  1. 5
      src/views/modules/worklog/icworklog-add-or-update.vue

5
src/views/modules/worklog/icworklog-add-or-update.vue

@ -202,9 +202,8 @@ export default {
}, },
getGridList() { getGridList() {
this.optionsG = [] this.optionsG = []
const { user } = this.$store.state
this.$http this.$http
.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'query' }) .post('/gov/mine/agency/getmygrids')
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
@ -333,6 +332,8 @@ export default {
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(function () {
if (!this.gridState) { if (!this.gridState) {
this.dataForm.gridId = ''
this.gridState = true
return this.$message.error("请重新选择网格") return this.$message.error("请重新选择网格")
} }
if (this.dataForm.content.length < 70) { if (this.dataForm.content.length < 70) {

Loading…
Cancel
Save