personTargetQuery.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div>
  3. <el-button size="small" style="width:120px" type="primary" @click="queryStatementData">{{ $t('设 置') }}</el-button>
  4. <el-dialog :title="$t(`人员挑战目标查询`)" append-to-body :visible.sync="dialogSetVisible" width="860px">
  5. <el-row :gutter="16" style="text-align: center">
  6. <el-col :span="24" style="margin-top: -20px">
  7. <span style="color: #8C8C8C">{{ $t('是否开启人员挑战目标查询设置') }}?</span>
  8. </el-col>
  9. <el-col :span="24" style="margin-top: 20px">
  10. <div style="width: 780px;" class="inline-16" >
  11. <el-radio-group v-model="isquerytarget">
  12. <el-radio :label="1" style="color: #8C8C8C">{{ $t('开启') }}</el-radio>
  13. <el-radio :label="0" style="color: #8C8C8C">{{$t('关闭')}}</el-radio>
  14. </el-radio-group>
  15. </div>
  16. </el-col>
  17. </el-row>
  18. <div class="dialog-footer">
  19. <el-button size="small" @click="dialogSetVisible = false" class="normal-btn-width">{{$t('取 消')}}</el-button>
  20. <el-button size="small" type="warning" class="normal-btn-width btn-warning" @click="onSubmit">{{$t('确 定')}}</el-button>
  21. </div>
  22. </el-dialog>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. name: "personTargetQuery",
  28. props:["data"],
  29. data(){
  30. return {
  31. dialogSetVisible:false,
  32. isquerytarget:0
  33. }
  34. },
  35. methods:{
  36. queryStatementData(){
  37. this.dialogSetVisible = true
  38. this.isquerytarget = this.data.isquerytarget
  39. },
  40. async onSubmit(){
  41. const res = await this.$api.requested({
  42. "classname": "webmanage.site.site",
  43. "method":"updateSite_Parameter",
  44. "content": {
  45. "isquerytarget":this.isquerytarget
  46. }
  47. })
  48. this.tool.showMessage(res,()=>{
  49. this.$emit('queryRule')
  50. this.dialogSetVisible = false
  51. })
  52. }
  53. }
  54. }
  55. </script>
  56. <style scoped>
  57. </style>