瀏覽代碼

营商环境

bihuisong 11 月之前
父節點
當前提交
e755eec173

+ 1 - 1
zhsq_qk-admin/src/main/java/zhsq_qk/web/controller/system/QkDoingBusinessController.java

@@ -22,7 +22,7 @@ import java.util.List;
  * @date 2024-07-10
  */
 @RestController
-@RequestMapping("/system/business")
+@RequestMapping("/system/doing/business")
 public class QkDoingBusinessController extends BaseController {
     @Autowired
     private IQkDoingBusinessService qkDoingBusinessService;

+ 3 - 3
zhsq_qk-system/src/main/java/zhsq_qk/system/domain/QkEnterpriseActivity.java

@@ -29,7 +29,7 @@ public class QkEnterpriseActivity extends BaseEntity {
      * 活动数量
      */
     @Excel(name = "活动数量")
-    private String activityNumber;
+    private Integer activityNumber;
 
     public void setId(Long id) {
         this.id = id;
@@ -47,11 +47,11 @@ public class QkEnterpriseActivity extends BaseEntity {
         return enterpriseName;
     }
 
-    public void setActivityNumber(String activityNumber) {
+    public void setActivityNumber(Integer activityNumber) {
         this.activityNumber = activityNumber;
     }
 
-    public String getActivityNumber() {
+    public Integer getActivityNumber() {
         return activityNumber;
     }
 

+ 44 - 0
zhsq_qk-ui/src/api/system/doingBusiness.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询营商环境问题列表
+export function listDoingBusiness(query) {
+  return request({
+    url: '/system/doing/business/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询营商环境问题详细
+export function getDoingBusiness(id) {
+  return request({
+    url: '/system/doing/business/' + id,
+    method: 'get'
+  })
+}
+
+// 新增营商环境问题
+export function addDoingBusiness(data) {
+  return request({
+    url: '/system/doing/business',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改营商环境问题
+export function updateDoingBusiness(data) {
+  return request({
+    url: '/system/doing/business',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除营商环境问题
+export function delDoingBusiness(id) {
+  return request({
+    url: '/system/doing/business/' + id,
+    method: 'delete'
+  })
+}

+ 1 - 1
zhsq_qk-ui/src/api/system/yshj.js

@@ -19,7 +19,7 @@ export function lastOneCreditList() {
 //查询营商环境问题可视化
 export function lastOneBusinessList() {
   return request({
-    url: '/system/business/lastOneList',
+    url: '/system/doing/business/lastOneList',
     method: 'get',
   })
 }

+ 280 - 0
zhsq_qk-ui/src/views/system/doingBusiness/index.vue

@@ -0,0 +1,280 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="受理率" prop="acceptanceRate">
+        <el-input
+            v-model="queryParams.acceptanceRate"
+            placeholder="请输入受理率"
+            clearable
+            @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="办结率" prop="completionRate">
+        <el-input
+            v-model="queryParams.completionRate"
+            placeholder="请输入办结率"
+            clearable
+            @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+            type="primary"
+            plain
+            icon="el-icon-plus"
+            size="mini"
+            @click="handleAdd"
+        >新增
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+            type="success"
+            plain
+            icon="el-icon-edit"
+            size="mini"
+            :disabled="single"
+            @click="handleUpdate"
+        >修改
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+            type="danger"
+            plain
+            icon="el-icon-delete"
+            size="mini"
+            :disabled="multiple"
+            @click="handleDelete"
+        >删除
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+            type="warning"
+            plain
+            icon="el-icon-download"
+            size="mini"
+            @click="handleExport"
+        >导出
+        </el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="businessList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center"/>
+      <el-table-column label="主键id" align="center" prop="id"/>
+      <el-table-column label="平台投诉举报问题" align="center" prop="reportProblem"/>
+      <el-table-column label="企业群众需求问题" align="center" prop="demandProblem"/>
+      <el-table-column label="受理率" align="center" prop="acceptanceRate"/>
+      <el-table-column label="办结率" align="center" prop="completionRate"/>
+      <el-table-column label="备注" align="center" prop="remark"/>
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+              size="mini"
+              type="text"
+              icon="el-icon-edit"
+              @click="handleUpdate(scope.row)"
+          >修改
+          </el-button>
+          <el-button
+              size="mini"
+              type="text"
+              icon="el-icon-delete"
+              @click="handleDelete(scope.row)"
+          >删除
+          </el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+    />
+
+    <!-- 添加或修改营商环境问题对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="平台投诉举报问题" prop="reportProblem">
+          <el-input v-model="form.reportProblem" placeholder="请输入平台投诉举报问题"/>
+        </el-form-item>
+        <el-form-item label="企业群众需求问题" prop="demandProblem">
+          <el-input v-model="form.demandProblem" placeholder="请输入企业群众需求问题"/>
+        </el-form-item>
+        <el-form-item label="受理率" prop="acceptanceRate">
+          <el-input v-model="form.acceptanceRate" placeholder="请输入受理率"/>
+        </el-form-item>
+        <el-form-item label="办结率" prop="completionRate">
+          <el-input v-model="form.completionRate" placeholder="请输入办结率"/>
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" type="textarea" placeholder="请输入内容"/>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import {getDoingBusiness, listDoingBusiness, addDoingBusiness, delDoingBusiness, updateDoingBusiness} from "@/api/system/doingBusiness";
+
+export default {
+  name: "Business",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 营商环境问题表格数据
+      businessList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        reportProblem: null,
+        demandProblem: null,
+        acceptanceRate: null,
+        completionRate: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {}
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询营商环境问题列表 */
+    getList() {
+      this.loading = true;
+      listDoingBusiness(this.queryParams).then(response => {
+        this.businessList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        reportProblem: null,
+        demandProblem: null,
+        acceptanceRate: null,
+        completionRate: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        remark: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length !== 1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加营商环境问题";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getDoingBusiness(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改营商环境问题";
+      });
+    },
+    /** 提交按钮 */    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateDoingBusiness(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addDoingBusiness(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除营商环境问题为"' + ids + '"的数据项?').then(function () {
+        return delDoingBusiness(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {
+      });
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('system/doing/business/export', {
+        ...this.queryParams
+      }, `doingBusiness_${new Date().getTime()}.xlsx`)
+    }
+  }
+}
+;
+</script>