| | |
| | | //登录 |
| | | 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: { |
| | |
| | | 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"; |
| | |
| | | }, |
| | | state: { |
| | | overlayshow: false, |
| | | infoone: { index: 0, num: 0 } |
| | | infoone: { index: 0, num: 0 }, |
| | | }, |
| | | mutations: { |
| | | updateoverlayshow(state) { |
| | |
| | | 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) { |
| | |
| | | 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> |
| | |
| | | <script> |
| | | import { Picker } from "vant"; |
| | | import { deptlistAll, evaluateResult } from "@/api/hfiveget/index.js"; |
| | | import store from "../../store/index"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | columns: [], // 选择器的选项列表 |
| | | poepleinfo: { type: -1 }, |
| | | toData: {}, |
| | | toshow: {} |
| | | toshow: {}, |
| | | disabledsubmit: false |
| | | }; |
| | | }, |
| | | computed: {}, |
| | |
| | | } 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("/"); |
| | |
| | | <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> |
| | |
| | | |
| | | <script> |
| | | import { assessmentScore } from "@/api/hfiveget/index.js"; |
| | | import store from "../../store/index"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | score: null, |
| | | show: false, |
| | | instructions: "" |
| | | instructions: "", |
| | | disabledsubmit: false |
| | | }; |
| | | }, |
| | | |
| | | computed: {}, |
| | | mounted() { |
| | | localStorage.setItem("Appraising", "examine"); |
| | |
| | | } else if (Data.remark == "") { |
| | | this.$toast.fail("请输入评分说明"); |
| | | } else { |
| | | this.disabledsubmit = true; |
| | | assessmentScore(Data).then(res => { |
| | | setTimeout(() => { |
| | | this.$router.push("/"); |
| | |
| | | // 业务平台接口 |
| | | "/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": "/" |
| | | } |
| | | }, |
| | | }, |
| | | }, |