Browse Source

社群操作使用积分版接口

origin/feature/monitoring
yujt 5 years ago
parent
commit
f2ab4ad629
  1. 2
      package.json
  2. 2
      src/main.js
  3. 50
      src/views/modules/group/group-approve.vue

2
package.json

@ -16,6 +16,8 @@
"dependencies": { "dependencies": {
"axios": "^0.18.1", "axios": "^0.18.1",
"babel-plugin-component": "^1.1.1", "babel-plugin-component": "^1.1.1",
"echart": "^0.1.3",
"echarts": "^4.9.0",
"element-theme": "^2.0.1", "element-theme": "^2.0.1",
"element-theme-chalk": "^2.4.7", "element-theme-chalk": "^2.4.7",
"gulp-autoprefixer": "^6.0.0", "gulp-autoprefixer": "^6.0.0",

2
src/main.js

@ -12,6 +12,8 @@ import { hasPermission } from '@/utils'
import cloneDeep from 'lodash/cloneDeep' import cloneDeep from 'lodash/cloneDeep'
import '@/element-ui/theme/cascader-new.css' import '@/element-ui/theme/cascader-new.css'
import '@/style/index.scss' import '@/style/index.scss'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false Vue.config.productionTip = false

50
src/views/modules/group/group-approve.vue

@ -99,6 +99,55 @@ export default {
return this.$message.error('处理意见不能超过500字') return this.$message.error('处理意见不能超过500字')
} }
} }
if (this.dataForm.state === '10') {
this.$http['post'](
'/group/group/pass', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
}).catch(() => {})
} else if (this.dataForm.state === '5') {
this.$http['post'](
'/group/group/noPass', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
}).catch(() => {})
} else if (this.dataForm.state === '20') {
this.$http['post'](
'/group/group/noPass', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
}).catch(() => {})
} else {
this.$http['post']( this.$http['post'](
'/group/group/operate', this.dataForm).then(({ data: res }) => { '/group/group/operate', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
@ -114,6 +163,7 @@ export default {
} }
}) })
}).catch(() => {}) }).catch(() => {})
}
}, 1000, { 'leading': true, 'trailing': false }) }, 1000, { 'leading': true, 'trailing': false })
} }
} }

Loading…
Cancel
Save