| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <div>
- <el-button size="small" style="width:120px" type="primary" @click="queryStatementData">{{ $t('设 置') }}</el-button>
- <el-dialog :title="$t(`人员挑战目标查询`)" append-to-body :visible.sync="dialogSetVisible" width="860px">
- <el-row :gutter="16" style="text-align: center">
- <el-col :span="24" style="margin-top: -20px">
- <span style="color: #8C8C8C">{{ $t('是否开启人员挑战目标查询设置') }}?</span>
- </el-col>
- <el-col :span="24" style="margin-top: 20px">
- <div style="width: 780px;" class="inline-16" >
- <el-radio-group v-model="isquerytarget">
- <el-radio :label="1" style="color: #8C8C8C">{{ $t('开启') }}</el-radio>
- <el-radio :label="0" style="color: #8C8C8C">{{$t('关闭')}}</el-radio>
- </el-radio-group>
- </div>
- </el-col>
- </el-row>
- <div class="dialog-footer">
- <el-button size="small" @click="dialogSetVisible = false" class="normal-btn-width">{{$t('取 消')}}</el-button>
- <el-button size="small" type="warning" class="normal-btn-width btn-warning" @click="onSubmit">{{$t('确 定')}}</el-button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- export default {
- name: "personTargetQuery",
- props:["data"],
- data(){
- return {
- dialogSetVisible:false,
- isquerytarget:0
- }
- },
- methods:{
- queryStatementData(){
- this.dialogSetVisible = true
- this.isquerytarget = this.data.isquerytarget
- },
- async onSubmit(){
- const res = await this.$api.requested({
- "classname": "webmanage.site.site",
- "method":"updateSite_Parameter",
- "content": {
- "isquerytarget":this.isquerytarget
- }
- })
- this.tool.showMessage(res,()=>{
- this.$emit('queryRule')
- this.dialogSetVisible = false
- })
- }
- }
- }
- </script>
- <style scoped>
- </style>
|