15179599649
2023-12-25 408df888979b21918ab2c7eeb1bf01109c3f09a9
'提交内容'
7 files modified
35 ■■■■ changed files
src/api/hfiveget/index.js 4 ●●●● patch | view | raw | blame | history
src/router/axios.js 1 ●●●● patch | view | raw | blame | history
src/store/index.js 2 ●●● patch | view | raw | blame | history
src/views/login/index.vue 3 ●●●● patch | view | raw | blame | history
src/views/toAppraising/index.vue 7 ●●●● patch | view | raw | blame | history
src/views/toexamine/index.vue 8 ●●●●● patch | view | raw | blame | history
vue.config.js 10 ●●●● patch | view | raw | blame | history
src/api/hfiveget/index.js
@@ -25,8 +25,8 @@
//登录
export const Loginto = (params) => {
    return request({
        // url: "/api/blade-auth/oauth/token",
        url: '/api/blade-auth/oauth/token?tenantId=000000&username=' + params + '&password=21232f297a57a5a743894a0e4a801fc3&grant_type=password&scope=all&type=account',
        url: "/api/blade-auth/oauth/token",
        // url: '/api/blade-auth/oauth/token?tenantId=000000&username=' + params + '&password=21232f297a57a5a743894a0e4a801fc3&grant_type=password&scope=all&type=account',
        method: "post",
        apiKey: true,
        params: {
src/router/axios.js
@@ -41,7 +41,6 @@
    if (!config.data) {
      config.data = true // 解决请求没有参数时添加不上Content-Type问题
    }
    config.headers['Content-type'] = 'application/json;charset=gbk'
    store.commit('updateoverlayshow');
    if (config.apiKey) {
      config.headers["Authorization"] = "Basic c2FiZXI6c2FiZXJfc2VjcmV0";
src/store/index.js
@@ -13,7 +13,7 @@
    },
    state: {
        overlayshow: false,
        infoone: { index: 0, num: 0 }
        infoone: { index: 0, num: 0 },
    },
    mutations: {
        updateoverlayshow(state) {
src/views/login/index.vue
@@ -98,8 +98,7 @@
          phone: this.username,
          code: this.Code
        };
        Loginto(Data.phone).then(res => {
          console.log(res.data);
        Loginto(Data).then(res => {
          if (res.data.code == 400) {
            this.$toast.fail(res.data.msg);
          } else if (res.data.code == 500) {
src/views/toAppraising/index.vue
@@ -43,7 +43,7 @@
            placeholder="请输入推荐理由..."
          />
        </div>
        <van-button type="primary" block @click="SubmitTo()">提交</van-button>
        <van-button type="primary" block @click="SubmitTo()" :disabled="disabledsubmit">提交</van-button>
      </div>
      <div class="showdetails" v-else>
        <p>
@@ -72,6 +72,7 @@
<script>
import { Picker } from "vant";
import { deptlistAll, evaluateResult } from "@/api/hfiveget/index.js";
import store from "../../store/index";
export default {
  data() {
    return {
@@ -81,7 +82,8 @@
      columns: [], // 选择器的选项列表
      poepleinfo: { type: -1 },
      toData: {},
      toshow: {}
      toshow: {},
      disabledsubmit: false
    };
  },
  computed: {},
@@ -155,6 +157,7 @@
      } else if (this.toData.remark == undefined || this.toData.remark == "") {
        this.$toast.fail("请输入推荐理由");
      } else {
        this.disabledsubmit = true;
        evaluateResult(this.toData).then(res => {
          setTimeout(() => {
            this.$router.push("/");
src/views/toexamine/index.vue
@@ -45,7 +45,7 @@
      <van-number-keyboard v-model="score" :show="show" :maxlength="6" @blur="show = false" />
      <p class="title">评分说明</p>
      <van-field v-model="instructions" rows="3" type="textarea" placeholder="请描述" />
      <van-button type="primary" block @click="submit()">提交</van-button>
      <van-button type="primary" block @click="submit()" :disabled="disabledsubmit">提交</van-button>
    </div>
    <div v-if="this.poepleinfo.assessmentScoreVO!=null" class="showdetails">
      <p>
@@ -64,6 +64,7 @@
        
<script>
import { assessmentScore } from "@/api/hfiveget/index.js";
import store from "../../store/index";
export default {
  data() {
    return {
@@ -72,10 +73,10 @@
      },
      score: null,
      show: false,
      instructions: ""
      instructions: "",
      disabledsubmit: false
    };
  },
  computed: {},
  mounted() {
    localStorage.setItem("Appraising", "examine");
@@ -111,6 +112,7 @@
        } else if (Data.remark == "") {
          this.$toast.fail("请输入评分说明");
        } else {
          this.disabledsubmit = true;
          assessmentScore(Data).then(res => {
            setTimeout(() => {
              this.$router.push("/");
vue.config.js
@@ -136,17 +136,17 @@
      // 业务平台接口
      "/api": {
        // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址
        // target: "http://127.0.0.1",
        target: "https://132v69t077.yicp.fun",
        target: "http://127.0.0.1",
        // target: "https://132v69t077.yicp.fun",
        // target: 'http://192.168.1.85:2888',
        // target: "http://192.168.0.100:82",
        // target: "http://17.20.10.3:82",
        // target: "http://10.141.11.11/api",
        // ws: true, //启用webSocket6566
        changeOrigin: true,
        // pathRewrite: {
        //   "^/api": "/"
        // }
        pathRewrite: {
          "^/api": "/"
        }
      },
    },
  },