zhangxiaoxu123456
2022-05-10 6e41ce0ab4300758ebd77ea257c3d9532e3df7e0
接口对接
5个文件已修改
403 ■■■■ 已修改文件
src/api/businessPolicy.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/components/showIndexTitle.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/show/businessPolicy/BusinessPolicy.vue 364 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/user.js 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/businessPolicy.js
@@ -4,3 +4,13 @@
export const getCount = params=> {
  return postRequest('/ybg/webservice/app/policy/getCount.do',params)
}
//38.查询营商政策和相关报道列表接口
export const getList = (params) => {
  return postRequest('/ybg/webservice/app/policy/getList.do',params)
}
//39.查询营商政策详情接口
export const getDetail = (params) => {
  return postRequest('/ybg/webservice/app/policy/getDetail.do',params)
}
src/api/index.js
@@ -55,3 +55,7 @@
  return postRequest('/ybg/webservice/app/homepage/getInsurTable.do',params)
}
//40.退出登录接口
export const logout = (params) => {
  return postRequest('/ybg/webservice/phone/logout.do',params)
}
src/pages/components/showIndexTitle.vue
@@ -60,7 +60,7 @@
            <h1>文档中心</h1>
          </div>
        </el-menu-item>
        <el-menu-item index="/login">
        <el-menu-item @click="goOut">
          <div class="showIndex-block">
            <h1>退出登录</h1>
          </div>
@@ -82,7 +82,18 @@
      this.$route.meta.routerParent && (this.activeIndex = '/' + this.$route.meta.routerParent)
  },
  methods: {
      goOut() {
          this.$confirm('是否退出系统, 是否继续?', '提示', {
              confirmButtonText: '确定',
              cancelButtonText: '取消',
              type: 'warning'
          }).then(() => {
              this.$store.dispatch('logout').then(res => {
                  this.$router.push('/login')
              })
          })
      }
  },
};
</script>
src/pages/show/businessPolicy/BusinessPolicy.vue
@@ -73,27 +73,27 @@
            :row-class-name="tableRowClassName"
            @row-click="tableRowClick"
          >
            <el-table-column prop="keshi" label="科室" min-width="10" fixed>
            <el-table-column prop="department" label="科室" min-width="10" fixed>
            </el-table-column>
            <el-table-column
              prop="zhengchemingcheng"
              prop="policyName"
              label="政策名称"
              min-width="30"
            >
            </el-table-column>
            <el-table-column
              prop="shengxiaoDate"
              prop="effecttimeStart"
              label="生效日期范围"
              min-width="30"
            >
            </el-table-column>
            <el-table-column
              prop="huijiqiyeNum"
              prop="unitNums"
              label="惠及企业数"
              min-width="15"
            >
            </el-table-column>
            <el-table-column prop="money" label="减免金额" min-width="15">
            <el-table-column prop="reductions" label="减免金额" min-width="15">
            </el-table-column>
          </el-table>
        </div>
@@ -109,22 +109,22 @@
        <div class="BusinessPolicyTable">
          <el-table
            stripe
            :data="tableData2"
            :data="tableData"
            style="width: 100%"
            max-height="1005"
            :row-class-name="tableRowClassName"
          >
            <el-table-column
              prop="tableTitle"
              prop="policyName"
              label="标题"
              min-width="70"
              align="right"
            >
            </el-table-column>
            <el-table-column prop="laiyuan" label="来源" min-width="15">
            <el-table-column prop="resource" label="来源" min-width="15">
            </el-table-column>
            <el-table-column
              prop="dianjiliang"
              prop="unitNums"
              label="累计点击量"
              min-width="15"
            >
@@ -142,326 +142,73 @@
        min-height=" 112rem"
      >
        <div class="dislogCloseIcon" @click="tableDialogVisible = false"></div>
        <h1>失业保险稳岗返还政策</h1>
        <h1>{{detailForm.policyName}}</h1>
        <div class="fuTitle">
          <span>出台部门:人社局</span><span>出台时间:2021/3/1</span
        ><span>惠及企业:100家</span><span>减免金额:377万元</span>
          <span v-if="detailForm.makeDept">出台部门:{{detailForm.makeDept}}</span><span v-if="detailForm.makeTime">出台时间:{{detailForm.makeTime}}</span
        ><span v-if="detailForm.unitNums">惠及企业:{{detailForm.unitNums}}</span><span v-if="detailForm.reductions">减免金额:{{detailForm.reductions}}</span>
        </div>
        <div class="dialogText">
          <el-divider></el-divider>
          <span>
            通过加大扶持力度和精准落实困难企业稳岗返还政策,充分发挥失业保险“预防失业”功能,加大失业保险援企稳岗力度,支持企业稳定就业岗位和健康发展。
            加大扶持力度,扩大政策受益面。放宽申领条件,中小微企业裁员率不高于2019年度全国城镇调查失业率控制目标5.5%,参保职工30人(含,以上年度月均参保人数为准)以下的参保企业裁员人数不超过参保职工总数20%的,可以申请企业稳岗返还。提高返还标准,对不裁员或少裁员的中小微企业,稳岗返还标准从企业及其职工上年度缴纳失业保险费的50%提高到100%。
            加强困难帮扶,精准落实困难企业稳岗返还政策。确定了困难企业稳岗返还标准,100人(含)至500人(含)企业,返还标准按1个月的上年度全市月人均失业保险金和月均参保职工人数确定;501人至1000人(含)企业,返还标准按2个月的上年度全市月人均失业保险金和月均参保职工人数确定;1001人以上企业,按3个月的上年度全市月人均失业保险金和月均参保职工人数确定;对受疫情影响较大的餐饮、酒店、旅游、零售、冰雪等行业企业,在相应补贴标准基础上增加一个月。
            申请稳岗补贴企业应同时具备以下条件:
            生产经营活动符合国家及所在地产业结构调整和环保政策;
            上年度未裁员或裁员率不超过全省城镇登记失业率控制目标4.5%;
            上年度足额缴纳失业保险费满12个月且无历史欠缴;
            2019年度经营情况亏损,或受疫情影响2020年以来营业收入同比下降幅度在50%(含)以上;
            企业参加失业保险职工人数不低于100人;
            与企业工会组织协商制定稳定就业岗位措施,并承诺1年内不裁员或者裁员率低于全省城镇登记失业率控制目标4.5%。
            严重失信企业、被列入破产清算或注销名单的“僵尸企业”、申请稳岗返还时失业保险参保人数比上年度平均参保人数减少超过50%的企业不列入返还范围。</span>
          <span v-if="detailForm.policyContent" v-html="detailForm.policyContent"></span>
        </div>
      </el-dialog>
    </div>
  </div>
</template>
<script>
import {getCount} from '@/api/businessPolicy'
import {getCount, getList, getDetail} from '@/api/businessPolicy'
export default {
  data() {
    return {
      CountObj:{},
      tableData: [
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        },
        {
          keshi: "失业处",
          zhengchemingcheng: "失业保险稳岗返还政策",
          shengxiaoDate: "2021/3—2022/12",
          huijiqiyeNum: "100家",
          money: "277万元"
        }
      ],
      tableData2: [
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        },
        {
          tableTitle:
            "大力优化营商环境丨市人社局:服务提速提能 让百姓享受改革红利",
          laiyuan: "石家庄新闻",
          dianjiliang: "15690"
        }
      ],
      tableData: [],
      tableDialogVisible: false,
      tableHeight: window.innerHeight * 0.62
      tableHeight: window.innerHeight * 0.62,
      detailForm:{
          policyName:'',  //政策名称/新闻标题
          makeDept:'',  //出台部门
          makeTime:'',   //出台时间
          unitNums:'',   //惠及企业数
          reductions:'',   //减免金额
          policyContent:'',  //政策内容
      }
    };
  },
  mounted(){
    this.getCount()
    this.getZhengce()
    this.getBaodao()
  },
  methods: {
   /*******查询营商政策和相关报道列表接口*******/
   getZhengce() {
       this.getList('1')
   },
   getBaodao() {
       this.getList('2')
   },
   getList(type) {
       getList({type:type}).then(res => {
           if(res.code == 1000) {
               this.tableData = res.list
           }
       })
   },
      /***39.查询营商政策详情接口***/
      getDetail(id) {
          getDetail({id:id}).then(res => {
              if(res.code == 1000) {
                this.detailForm.policyName = res.obj.policyName
                this.detailForm.makeDept = res.obj.makeDept
                this.detailForm.makeTime = res.obj.makeTime
                this.detailForm.policyContent = res.obj.policyContent
                this.detailForm.unitNums = res.obj.unitNums
                this.detailForm.reductions  = res.obj.reductions
              }
          })
      },
    tableRowClassName({rowIndex}) {
      if (rowIndex % 2 === 0) {
        return "warning-row";
@@ -473,6 +220,7 @@
      console.log(row);
      console.log(row.__ob__.dep.id);
      console.log(row.id);
      this.getDetail(row.id)
    },
    // 37. 查询营商政策五个统计数量接口
    getCount(){
src/store/modules/user.js
@@ -1,7 +1,7 @@
/**
 * 用户登录组件
 */
import {login} from '@/api/index'
import {login, logout} from '@/api/index'
import {getStore,setStore} from "../../libs/store";
const user = {
@@ -26,6 +26,16 @@
             reject(error)
           })
         })
      },
      logout({commit}) {
         return new Promise((resolve, reject) => {
           logout().then(() => {
             commit('SET_TOKEN','')
             resolve()
           }).catch(error => {
             reject(error)
           })
         })
      }
    }