Commit 2ec8363b authored by 张伯涛's avatar 张伯涛

所有接口前地址换成变量

parent 09955071
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
ENV = 'development' ENV = 'development'
# base api # base api
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = 'http://10.19.100.58:8090'
# workFlow链接地址 # workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow' VUE_APP_WORKFLOW = '/workFlow'
# login地址 # login地址
......
...@@ -4,4 +4,4 @@ ENV = 'production' ...@@ -4,4 +4,4 @@ ENV = 'production'
# 生产环境 # 生产环境
# base api # base api
VUE_APP_BASE_API = 'http://117.122.212.101:8090' VUE_APP_BASE_API = 'http://10.19.100.58:8090'
...@@ -3,5 +3,5 @@ ENV = 'test' ...@@ -3,5 +3,5 @@ ENV = 'test'
NODE_ENV= 'production' NODE_ENV= 'production'
# 测试环境 # 测试环境
# base api # base api
VUE_APP_BASE_API = 'http://10.19.103.15:8090' VUE_APP_BASE_API = 'http://10.19.100.58:8090'
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="title">日志管理列表</div> <div class="title">日志管理列表</div>
<el-table :data="data" border> <el-table :data="data" border>
<el-table-column label="序号" type="index" width="55" /> <el-table-column label="序号" type="index" width="55" />
<!-- <el-table-column label="操作人" prop="USERID" />--> <!-- <el-table-column label="操作人" prop="USERID" />-->
<el-table-column label="操作日期" prop="CREATEDATE" width="150" /> <el-table-column label="操作日期" prop="CREATEDATE" width="150" />
<el-table-column label="合同中文名" prop="CONNAMECN" width="150" /> <el-table-column label="合同中文名" prop="CONNAMECN" width="150" />
<el-table-column label="合同编码" prop="CONMAINCODE" width="150" /> <el-table-column label="合同编码" prop="CONMAINCODE" width="150" />
...@@ -70,16 +70,17 @@ ...@@ -70,16 +70,17 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="操作内容"> <el-form-item label="操作内容">
<el-input <el-input
v-model="form.CONTENT"
type="textarea" type="textarea"
:rows="4" :rows="4"
v-model="form.CONTENT" /> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="12">--> <!-- <el-col :span="12">-->
<!-- <el-form-item label="操作状态">--> <!-- <el-form-item label="操作状态">-->
<!-- <el-input v-model="form.STATUS" />--> <!-- <el-input v-model="form.STATUS" />-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- <el-col v-if="form.status === '0'" :span="24"> <!-- <el-col v-if="form.status === '0'" :span="24">
<el-form-item label="失败信息"> <el-form-item label="失败信息">
<el-input v-model="form.errorMessage" type="textarea" :autosize="{ minRow: 3, maxRow: 5} " /> <el-input v-model="form.errorMessage" type="textarea" :autosize="{ minRow: 3, maxRow: 5} " />
...@@ -97,6 +98,7 @@ export default { ...@@ -97,6 +98,7 @@ export default {
name: 'AdminList', name: 'AdminList',
data() { data() {
return { return {
HTTPApi: process.env.VUE_APP_BASE_API,
searchParams: { searchParams: {
CREATEDATE: '' CREATEDATE: ''
}, },
...@@ -123,7 +125,7 @@ export default { ...@@ -123,7 +125,7 @@ export default {
}) })
}, },
del(row) { del(row) {
this.$axios.delete('http://10.19.103.15:8090/contractlog/contract-log/delete/' + row.BUSINESSID).then(res => { this.$axios.delete(this.HTTPApi + '/contractlog/contract-log/delete/' + row.BUSINESSID).then(res => {
if (!res.errno) { if (!res.errno) {
this.findLog() this.findLog()
/* console.log(this.data)*/ /* console.log(this.data)*/
...@@ -147,7 +149,7 @@ export default { ...@@ -147,7 +149,7 @@ export default {
}, },
findLog() { findLog() {
console.log('时间', this.searchParams.CREATEDATE) console.log('时间', this.searchParams.CREATEDATE)
this.$axios.get('http://10.19.103.15:8090/contractlog/contract-log/queryContractLogByPage', this.$axios.get(this.HTTPApi + '/contractlog/contract-log/queryContractLogByPage',
{ params: { { params: {
rows: this.rows, rows: this.rows,
page: this.page, page: this.page,
......
...@@ -1589,6 +1589,7 @@ export default { ...@@ -1589,6 +1589,7 @@ export default {
name: 'ContractDetail', name: 'ContractDetail',
data() { data() {
return { return {
HTTPApi: process.env.VUE_APP_BASE_API,
// 上传的文件列表 // 上传的文件列表
fileList: [], fileList: [],
checked: false, checked: false,
...@@ -1852,7 +1853,7 @@ export default { ...@@ -1852,7 +1853,7 @@ export default {
getDetails() { getDetails() {
if (this.$route.query.type === 'update') { if (this.$route.query.type === 'update') {
const FROMID = this.$route.query.row.FROMID const FROMID = this.$route.query.row.FROMID
this.$axios.get('http://10.19.100.58:8090/contract/contract/detail/' + FROMID).then(res => { this.$axios.get(this.HTTPApi + '/contract/contract/detail/' + FROMID).then(res => {
this.form = res.data.data this.form = res.data.data
if (res.data.data.TZXX === null) { if (res.data.data.TZXX === null) {
this.form.TZXX = {} this.form.TZXX = {}
...@@ -1911,7 +1912,7 @@ export default { ...@@ -1911,7 +1912,7 @@ export default {
} }
}, },
findMap() { findMap() {
this.$axios.get('http://10.19.100.58:8090/contract/contract/getDictData').then(res => { this.$axios.get(this.HTTPApi + '/contract/contract/getDictData').then(res => {
console.log(res) console.log(res)
this.language = res.data.data.LANGUAGE this.language = res.data.data.LANGUAGE
this.DM_BZJLX = res.data.data.DM_BZJLX this.DM_BZJLX = res.data.data.DM_BZJLX
...@@ -1971,7 +1972,7 @@ export default { ...@@ -1971,7 +1972,7 @@ export default {
downLoadFile(row) { downLoadFile(row) {
// 下载按钮 // 下载按钮
console.log(row) console.log(row)
this.$axios.get('http://10.19.100.58:8090/contractjxx/contract-fjxx/downLoad/' + row.BUSINESSID).then(res => { this.$axios.get(this.HTTPApi + '/contractjxx/contract-fjxx/downLoad/' + row.BUSINESSID).then(res => {
if (!res.errno) { if (!res.errno) {
console.log(this.data) console.log(this.data)
} }
...@@ -2006,7 +2007,7 @@ export default { ...@@ -2006,7 +2007,7 @@ export default {
console.log('参数参数', formData) console.log('参数参数', formData)
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://10.19.100.58:8090/contractjxx/contract-fjxx/upload', url: this.HTTPApi + '/contractjxx/contract-fjxx/upload',
data: formData }) data: formData })
.then((res) => { .then((res) => {
if (!res.errno) { if (!res.errno) {
...@@ -2026,7 +2027,7 @@ export default { ...@@ -2026,7 +2027,7 @@ export default {
formData.append('file', file.file) formData.append('file', file.file)
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://10.19.100.58:8090/contractjxx/contract-fjxx/upload', url: this.HTTPApi + '/contractjxx/contract-fjxx/upload',
data: formData }) data: formData })
.then((res) => { .then((res) => {
if (!res.errno) { if (!res.errno) {
...@@ -2129,7 +2130,7 @@ export default { ...@@ -2129,7 +2130,7 @@ export default {
this.form.BZJXX.splice(i, 1) this.form.BZJXX.splice(i, 1)
}, },
delFile(i, row) { delFile(i, row) {
this.$axios.delete('http://10.19.100.58:8090/contractjxx/contract-fjxx/realDeleteByBusinessId/' + row.BUSINESSID).then(res => { this.$axios.delete(this.HTTPApi + '/contractjxx/contract-fjxx/realDeleteByBusinessId/' + row.BUSINESSID).then(res => {
// eslint-disable-next-line no-empty // eslint-disable-next-line no-empty
if (!res.errno) {} if (!res.errno) {}
}) })
...@@ -2204,7 +2205,7 @@ export default { ...@@ -2204,7 +2205,7 @@ export default {
if (this.$route.query.type === 'add') { if (this.$route.query.type === 'add') {
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://10.19.100.58:8090/contract/contract/add', url: this.HTTPApi + '/contract/contract/add',
data: this.form data: this.form
}) })
.then((res) => { .then((res) => {
...@@ -2239,7 +2240,7 @@ export default { ...@@ -2239,7 +2240,7 @@ export default {
} else if (this.$route.query.type === 'update') { } else if (this.$route.query.type === 'update') {
this.$axios({ this.$axios({
method: 'put', method: 'put',
url: 'http://10.19.100.58:8090/contract/contract/merge', url: this.HTTPApi + '/contract/contract/merge',
data: this.form data: this.form
}) })
.then((res) => { .then((res) => {
...@@ -2286,7 +2287,7 @@ export default { ...@@ -2286,7 +2287,7 @@ export default {
if (this.$route.query.type === 'add') { if (this.$route.query.type === 'add') {
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://10.19.100.58:8090/contract/contract/add', url: this.HTTPApi + '/contract/contract/add',
data: this.form data: this.form
}) })
.then((res) => { .then((res) => {
...@@ -2321,7 +2322,7 @@ export default { ...@@ -2321,7 +2322,7 @@ export default {
} else if (this.$route.query.type === 'update') { } else if (this.$route.query.type === 'update') {
this.$axios({ this.$axios({
method: 'put', method: 'put',
url: 'http://10.19.100.58:8090/contract/contract/merge', url: this.HTTPApi + '/contract/contract/merge',
data: this.form data: this.form
}) })
.then((res) => { .then((res) => {
......
...@@ -280,6 +280,7 @@ export default { ...@@ -280,6 +280,7 @@ export default {
name: 'AdminList', name: 'AdminList',
data() { data() {
return { return {
HTTPApi: process.env.VUE_APP_BASE_API,
activeName: 'first', activeName: 'first',
jurisdiction: localStorage.getItem('UserID'), // 推送权限 jurisdiction: localStorage.getItem('UserID'), // 推送权限
serchForm: { serchForm: {
...@@ -525,7 +526,7 @@ obj=this.typeform*/ ...@@ -525,7 +526,7 @@ obj=this.typeform*/
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$axios.put('http://10.19.100.58:8090/contract/contract/mergeSynchronizationStatus/' + row.FROMID).then(res => { this.$axios.put(this.HTTPApi + '/contract/contract/mergeSynchronizationStatus/' + row.FROMID).then(res => {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '修改成功!' message: '修改成功!'
...@@ -550,7 +551,7 @@ obj=this.typeform*/ ...@@ -550,7 +551,7 @@ obj=this.typeform*/
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$axios.put('http://10.19.100.58:8090/contract/contract/push/' + row.FROMID).then(res => { this.$axios.put(this.HTTPApi + '/contract/contract/push/' + row.FROMID).then(res => {
console.log('code值', res.data) console.log('code值', res.data)
if (res.data.code === '200') { if (res.data.code === '200') {
this.$message({ this.$message({
...@@ -578,7 +579,7 @@ obj=this.typeform*/ ...@@ -578,7 +579,7 @@ obj=this.typeform*/
}).then(() => { }).then(() => {
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://10.19.100.58:8090/contract/contract/checkBatch' url: this.HTTPApi + '/contract/contract/checkBatch'
}) })
.then((res) => { .then((res) => {
if (res.data.code === '200') { if (res.data.code === '200') {
...@@ -602,7 +603,7 @@ obj=this.typeform*/ ...@@ -602,7 +603,7 @@ obj=this.typeform*/
}).then(() => { }).then(() => {
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://10.19.100.58:8090/contract/contract/synchron' url: this.HTTPApi + '/contract/contract/synchron'
}) })
.then((res) => { .then((res) => {
if (res.data.code === '200') { if (res.data.code === '200') {
...@@ -645,7 +646,7 @@ obj=this.typeform*/ ...@@ -645,7 +646,7 @@ obj=this.typeform*/
findContract() { findContract() {
console.log('登录人ID', localStorage.getItem('UserID')) console.log('登录人ID', localStorage.getItem('UserID'))
const userID = localStorage.getItem('UserID') const userID = localStorage.getItem('UserID')
this.$axios.get('http://10.19.100.58:8090/contract/contract/queryContractByPage', this.$axios.get(this.HTTPApi + '/contract/contract/queryContractByPage',
{ {
params: { params: {
USERID: userID, USERID: userID,
...@@ -673,7 +674,7 @@ obj=this.typeform*/ ...@@ -673,7 +674,7 @@ obj=this.typeform*/
/** 部门列表查询*/ /** 部门列表查询*/
deptFindContract() { deptFindContract() {
const deptID = localStorage.getItem('deptId') const deptID = localStorage.getItem('deptId')
this.$axios.get('http://10.19.100.58:8090/contract/contract/queryContractByPage', this.$axios.get(this.HTTPApi + '/contract/contract/queryContractByPage',
{ {
params: { params: {
DEPTCODE: deptID, DEPTCODE: deptID,
...@@ -700,7 +701,7 @@ obj=this.typeform*/ ...@@ -700,7 +701,7 @@ obj=this.typeform*/
}, },
/** 全部列表查询*/ /** 全部列表查询*/
allFindContract() { allFindContract() {
this.$axios.get('http://10.19.100.58:8090/contract/contract/queryContractByPage', this.$axios.get(this.HTTPApi + '/contract/contract/queryContractByPage',
{ {
params: { params: {
rows: this.allRows, rows: this.allRows,
...@@ -730,7 +731,7 @@ obj=this.typeform*/ ...@@ -730,7 +731,7 @@ obj=this.typeform*/
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$axios.delete('http://10.19.100.58:8090/contract/contract/realDelete/' + row.FROMID).then(res => { this.$axios.delete(this.HTTPApi + '/contract/contract/realDelete/' + row.FROMID).then(res => {
if (!res.errno) { if (!res.errno) {
this.$message({ this.$message({
type: 'success', type: 'success',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment