| | |
| | | let loadingInstance =null; |
| | | // HTTPrequest拦截 |
| | | axios.interceptors.request.use(config => { |
| | | console.log(config,'config--') |
| | | /*NProgress.start() // start progress bar |
| | | loadingInstance = Loading.service({ |
| | | lock: true, |
| | |
| | | const TENANT_ID = getStore({ name: 'tenantId' }) |
| | | const isToken = (config.headers || {}).isToken === false |
| | | const token = window.android.getAppToken() |
| | | // const token = `dd271fdb-4b69-4eb3-a940-52d70232e56b` |
| | | if (token && !isToken) { |
| | | config.headers['Authorization'] = 'Bearer ' + token// token |
| | | config.headers['Authorization'] = 'bearer ' + token// token |
| | | } |
| | | if (TENANT_ID) { |
| | | config.headers['TENANT-ID'] = TENANT_ID // 租户ID |
| | |
| | | <div style="width: 100%;height: 100%;overflow: auto;"> |
| | | <div id="navs"> |
| | | <el-button icon="el-icon-arrow-left" @click="goHome">返回</el-button> |
| | | <div>{{ name1 }}</div> |
| | | <!-- <div>{{ name1 }}</div>--> |
| | | <el-button icon="el-icon-upload el-icon--right" @click="submit">提交</el-button> |
| | | </div> |
| | | <el-tabs type="border-card" style="margin-top: 10px!important;" v-model="activeName" @tab-click="handleClick" |
| | |
| | | data() { |
| | | return { |
| | | form:{ |
| | | id:'' |
| | | id:this.id, |
| | | }, |
| | | name1: "", |
| | | activeName: 'first' |
| | |
| | | }) |
| | | }, |
| | | submit() { |
| | | submitcase(this.id).then(res => { |
| | | submitcase(this.form).then(res => { |
| | | this.goHome() |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | mounted() { |
| | | this.id = this.$store.state.user.id |
| | | console.log(this.id,'id') |
| | | this.getDataList() |
| | | window.getSignUrl =this.getSignUrl; |
| | | window.getFingerUrl =this.getFingerUrl; |
| | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | this.$nextTick(() => { |
| | | nowpenaltydecision(this.id).then(res => { |
| | | this.form = res.data.data |
| | | }) |
| | | }) |
| | | }, |
| | | //点击保存数据 |
| | | dataFormSubmit() { |
| | |
| | | * https://cli.vuejs.org/zh/config/ |
| | | */ |
| | | // const url = 'http://localhost:9999' |
| | | const url = 'http://192.168.0.164:9999' |
| | | // const url = 'http://192.168.0.164:9999' |
| | | // const url = 'http://192.168.0.134:9999' |
| | | // const url = 'http://boying.tpddns.cn:9999/' |
| | | // const url = 'http://36.138.175.42:9999/' |
| | | const url = 'http://36.138.175.42:9999/' |
| | | const webpack = require('webpack') |
| | | const CompressionWebpackPlugin = require('compression-webpack-plugin') |
| | | const productionGzipExtensions = ['js', 'css'] |