|
@@ -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>
|