|
@@ -0,0 +1,60 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <el-button size="small" style="width:120px" type="primary" @click="queryStatementData">设 置</el-button>
|
|
|
+ <el-dialog title="数据统计排除项目历史数据设置" 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">是否开启数据统计排除项目历史数据?</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" style="margin-top: 20px">
|
|
|
+ <div style="width: 780px;" class="inline-16" >
|
|
|
+ <el-radio-group v-model="queryhistoryproject">
|
|
|
+ <el-radio :label="1" style="color: #8C8C8C">开启</el-radio>
|
|
|
+ <el-radio :label="0" style="color: #8C8C8C">关闭</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">取 消</el-button>
|
|
|
+ <el-button size="small" type="warning" class="normal-btn-width btn-warning" @click="onSubmit">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: "projectHistoryData",
|
|
|
+ props:["data"],
|
|
|
+ data(){
|
|
|
+ return {
|
|
|
+ dialogSetVisible:false,
|
|
|
+ queryhistoryproject:0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ queryStatementData(){
|
|
|
+ this.dialogSetVisible = true
|
|
|
+ this.queryhistoryproject = this.data.queryhistoryproject
|
|
|
+ },
|
|
|
+ async onSubmit(){
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "classname": "webmanage.site.site",
|
|
|
+ "method":"updateSite_Parameter",
|
|
|
+ "content": {
|
|
|
+ "queryhistoryproject":this.queryhistoryproject
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.$emit('queryRule')
|
|
|
+ this.dialogSetVisible = false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+
|
|
|
+</style>
|