11
WXL
2023-09-20 863c5a26cb1f065bf24a8f28e5641242fdb95644
11
已添加1个文件
已修改7个文件
73 ■■■■■ 文件已修改
src/utils/storage.js 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fund/applyDetail/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fundcheck/expertFeeCheck/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fundcheck/medicalCostCheck/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fundcheck/officeExpenseCheck/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/travelexpenseapply/travelexpensedetail/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/travelexpensecheck/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/storage.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,32 @@
//storage.js
// å°è£…本地缓存的方法
// å‚¨å­˜æ•°æ®
export const setItem = (key,data) => {
    if(typeof data === 'object'){
        window.sessionStorage.setItem(key,JSON.stringify(data))
    }else{
        window.sessionStorage.setItem(key,data)
    }
}
// è¯»å–数据
export const grtItem = (key) => {
    const item = window.sessionStorage.getItem(key)
    try{
        const value = JSON.parse(item)
        if(typeof value === 'object'){
            return value
        }else{
            return item
        }
    }catch(err){
        return item
    }
}
// ç§»é™¤æ•°æ®
export const removeItem = (key) => {
    window.sessionStorage.removeItem(key)
}
src/views/project/fund/applyDetail/index.vue
@@ -1974,7 +1974,6 @@
          //查找是否存在登记完成记录
          //判断是否存在上报记录
          this.form.recordstatus = 0;
          updateFund(this.form).then(response => {
            if (response.code == 200) {
              this.$message({
src/views/project/fundcheck/ethicalExpertFeeCheck/index.vue
@@ -711,6 +711,8 @@
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
import { getUserProfile } from "@/api/system/user";
// å¯¼å…¥æœ¬åœ°å­˜å‚¨çš„æ–¹æ³•
import { setItem, grtItem, removeItem } from "@/utils/storage.js";
export default {
  components: {
@@ -912,6 +914,9 @@
    this.getUsermsg();
  },
  mounted() {
    if (grtItem("ethicalExpertFeeCheck")) {
      this.queryParams = grtItem("ethicalExpertFeeCheck");
    };
    this.selectReporters();
    this.getlistOrganization();
    //this.getlistUser();
@@ -928,6 +933,8 @@
    getlistbypower() {
      this.loading = true;
      listbypower(this.queryParams).then(res => {
        removeItem("ethicalExpertFeeCheck");
        setItem("ethicalExpertFeeCheck", this.queryParams);
        //console.log("根据权限显示列表", res);
        this.loading = false;
        let list = res.rows;
src/views/project/fundcheck/expertFeeCheck/index.vue
@@ -424,6 +424,8 @@
} from "@/api/project/donatebaseinfo";
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
import { setItem,grtItem,removeItem } from '@/utils/storage.js';
export default {
  components: {
@@ -599,14 +601,18 @@
  watch: {},
  created() {
    //this.getBaseInfoList();
    this.getlistbypower();
    //this.resetForm();
    this.getCurFundType();
    this.getUsermsg();
  },
  mounted() {
    if (grtItem("expertFeeCheck")) {
      this.queryParams = grtItem("expertFeeCheck");
    };
    this.selectReporters();
    this.getlistOrganization();
    this.getlistbypower();
    //this.getlistUser();
    this.getlistExternalperson();
  },
@@ -638,6 +644,8 @@
      this.loading = true;
      listbypower(this.queryParams).then((res) => {
        console.log("根据权限显示列表", res);
        removeItem("expertFeeCheck");
        setItem("expertFeeCheck", this.queryParams);
        this.loading = false;
        let list = res.rows;
        let arr = [];
src/views/project/fundcheck/medicalCostCheck/index.vue
@@ -891,6 +891,8 @@
import OrgSelecter from "@/views/project/components/orgselect";
import { getUserProfile } from "@/api/system/user";
import { getToken } from "@/utils/auth";
import { setItem,grtItem,removeItem } from '@/utils/storage.js';
export default {
  components: {
@@ -1080,6 +1082,9 @@
    this.getUsermsg();
  },
  mounted() {
    if (grtItem("medicalCostCheck")) {
      this.queryParams = grtItem("medicalCostCheck");
    };
    this.selectReporters();
    this.getlistOrganization();
    //his.getlistUser();
@@ -1094,6 +1099,8 @@
      this.loading = true;
      // this.queryParams.params = {};
      listbypower(this.queryParams).then(res => {
        removeItem("medicalCostCheck");
        setItem("medicalCostCheck", this.queryParams);
        this.loading = false;
        let list = res.rows;
        let arr = [];
src/views/project/fundcheck/officeExpenseCheck/index.vue
@@ -872,6 +872,8 @@
import OrgSelecter from "@/views/project/components/orgselect";
import { getUserProfile } from "@/api/system/user";
import { getToken } from "@/utils/auth";
import { setItem,grtItem,removeItem } from '@/utils/storage.js';
export default {
  components: {
@@ -1061,6 +1063,9 @@
  },
  mounted() {
    if (grtItem("officeExpenseCheck")) {
      this.queryParams = grtItem("officeExpenseCheck");
    };
    this.selectReporters();
    this.getlistOrganization();
    //his.getlistUser();
@@ -1077,6 +1082,8 @@
      // this.queryParams.params = {};
      console.log("this.queryParams", this.queryParams);
      listbypower(this.queryParams).then(res => {
        removeItem("officeExpenseCheck");
        setItem("officeExpenseCheck", this.queryParams);
        this.loading = false;
        let list = res.rows;
        this.total = res.total;
src/views/project/travelexpenseapply/travelexpensedetail/index.vue
@@ -946,7 +946,7 @@
          <el-table-column prop="orderno" label="序号"> </el-table-column>
          <el-table-column prop="personname" label="费用人员">
          </el-table-column>
          <el-table-column prop="createTime" label="开始日期">
          <el-table-column prop="starttime" label="开始日期">
          </el-table-column>
          <el-table-column prop="endtime" label="结束日期"> </el-table-column>
          <el-table-column prop="departure" label="出发地"> </el-table-column>
src/views/project/travelexpensecheck/index.vue
@@ -1199,6 +1199,7 @@
import Li_area_select from "@/components/Address";
import { getUserProfile } from "@/api/system/user";
import { getToken } from "@/utils/auth";
import { setItem, grtItem, removeItem } from "@/utils/storage.js";
export default {
  components: {
@@ -1309,9 +1310,11 @@
    };
  },
  created() {
    this.getList();
  },
  mounted() {
    if (grtItem("travelexpensecheck")) {
      this.queryParams = grtItem("travelexpensecheck");
    };
    //this.getlistDonatebaseinfo();
    this.getList();
  },
@@ -1324,6 +1327,8 @@
      this.loading = true;
      console.log("this.queryParams", this.queryParams);
      listbypowerone(this.queryParams).then(response => {
        removeItem("travelexpensecheck");
        setItem("travelexpensecheck", this.queryParams);
        this.reimbursementList = response.rows;
        this.total = response.total;
        this.loading = false;