Browse Source

干部评价功能增加

master
李鹏飞 6 years ago
parent
commit
d1d626550d
  1. 24
      src/views/modules/custom/evaluatedept.vue
  2. 2
      src/views/modules/custom/evaluateinfo.vue

24
src/views/modules/custom/evaluatedept.vue

@ -11,6 +11,9 @@
<el-form-item>
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
</el-form-item>
<el-form-item>
<el-button v-if="$hasPermission('custom:evaluatedept:deptUpdate')" type="danger" @click="deptUpdate()">同步</el-button>
</el-form-item>
<el-form-item>
<el-button v-if="$hasPermission('custom:evaluatedept:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
</el-form-item>
@ -84,6 +87,27 @@ export default {
manageHandle (deptId) {
this.$parent.selectComponent = 'Evaluateofficer'
this.$router.push({ path: '/custom-evaluatedeptroute', query: { deptId: deptId } })
},
deptUpdate () {
this.$confirm(this.$t('prompt.info', { 'handle': this.$t('update') }), this.$t('prompt.title'), {
confirmButtonText: this.$t('confirm'),
cancelButtonText: this.$t('cancel'),
type: 'warning'
}).then(() => {
this.$http.get(`/custom/evaluatedept/deptUpdate`).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.getDataList()
}
})
}).catch(() => { })
}).catch(() => { })
}
}
}

2
src/views/modules/custom/evaluateinfo.vue

@ -71,7 +71,7 @@
</div>
</template>
</el-table-column>
<el-table-column prop="content" label="评价内容" header-align="center" align="center"></el-table-column>
<el-table-column prop="content" label="评价内容" :show-overflow-tooltip="true" min-width="150" header-align="center" align="center"></el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="60">
<template slot-scope="scope">
<el-button v-if="$hasPermission('custom:evaluateinfo:delete')" type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button>

Loading…
Cancel
Save