Browse Source

企业设置新增查询产品管控营销类别设置

qymljy 1 week ago
parent
commit
980140e16f

File diff suppressed because it is too large
+ 16 - 11
src/HManagement/siteManage/securityConfig/index.vue


+ 60 - 0
src/HManagement/siteManage/securityConfig/modules/productControl.vue

@@ -0,0 +1,60 @@
+<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="isitemclass">
+              <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: "productControl",
+  props:["data"],
+  data(){
+    return {
+      dialogSetVisible:false,
+      isitemclass:0
+    }
+  },
+  methods:{
+    queryStatementData(){
+      this.dialogSetVisible = true
+      this.isitemclass = this.data.isitemclass
+    },
+    async onSubmit(){
+      const res = await this.$api.requested({
+        "classname": "webmanage.site.site",
+        "method":"updateSite_Parameter",
+        "content": {
+          "isitemclass":this.isitemclass
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.$emit('queryRule')
+        this.dialogSetVisible = false
+      })
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

Some files were not shown because too many files changed in this diff