Commit 704f9c4e authored by 张伯涛's avatar 张伯涛

接口地址改为变量

parent 2cf80604
...@@ -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://117.122.212.101:8092'
# workFlow链接地址 # workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow' VUE_APP_WORKFLOW = '/workFlow'
# login地址 # login地址
......
...@@ -3,7 +3,7 @@ import request from '@/utils/request' ...@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 用户密码修改 // 用户密码修改
export function updateUserPwd(data) { export function updateUserPwd(data) {
return request({ return request({
url: 'http://117.122.212.101:8092/sysuser/modifyPwd', url: '/sysuser/modifyPwd',
method: 'put', method: 'put',
params: data params: data
}) })
...@@ -11,7 +11,7 @@ export function updateUserPwd(data) { ...@@ -11,7 +11,7 @@ export function updateUserPwd(data) {
// 重置 // 重置
export function resetUser(user, data) { export function resetUser(user, data) {
return request({ return request({
url: 'http://117.122.212.101:8092/sysuser/resetPwd/' + user, url: '/sysuser/resetPwd/' + user,
method: 'put', method: 'put',
params: data params: data
}) })
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,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="type" width="150" /> <el-table-column label="类型" prop="type" width="150" />
<el-table-column label="编码" prop="CONMAINCODE" width="150" /> <el-table-column label="编码" prop="CONMAINCODE" width="150" />
...@@ -85,16 +85,17 @@ ...@@ -85,16 +85,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} " />
...@@ -112,6 +113,7 @@ export default { ...@@ -112,6 +113,7 @@ export default {
name: 'AdminList', name: 'AdminList',
data() { data() {
return { return {
HTTPApi: process.env.VUE_APP_BASE_API,
searchParams: { searchParams: {
CREATEDATE: '' CREATEDATE: ''
}, },
...@@ -138,7 +140,7 @@ export default { ...@@ -138,7 +140,7 @@ export default {
}) })
}, },
del(row) { del(row) {
this.$axios.delete('http://117.122.212.101:8092/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)*/
...@@ -162,7 +164,7 @@ export default { ...@@ -162,7 +164,7 @@ export default {
}, },
findLog() { findLog() {
console.log('时间', this.searchParams.CREATEDATE) console.log('时间', this.searchParams.CREATEDATE)
this.$axios.get('http://117.122.212.101:8092/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,
......
...@@ -242,6 +242,7 @@ export default { ...@@ -242,6 +242,7 @@ export default {
name: 'AdminList', name: 'AdminList',
data() { data() {
return { return {
HTTPApi: process.env.VUE_APP_BASE_API,
jurisdiction: JSON.parse(Store.get(storeKey.user)).userId, jurisdiction: JSON.parse(Store.get(storeKey.user)).userId,
activeName: 'first', activeName: 'first',
serchForm: { serchForm: {
...@@ -534,7 +535,7 @@ obj=this.typeform*/ ...@@ -534,7 +535,7 @@ obj=this.typeform*/
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$axios.put('http://117.122.212.101:8092/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: '修改成功!'
...@@ -559,7 +560,7 @@ obj=this.typeform*/ ...@@ -559,7 +560,7 @@ obj=this.typeform*/
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$axios.put('http://117.122.212.101:8092/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({
...@@ -587,7 +588,7 @@ obj=this.typeform*/ ...@@ -587,7 +588,7 @@ obj=this.typeform*/
}).then(() => { }).then(() => {
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://117.122.212.101:8092/contract/contract/checkBatch' url: this.HTTPApi + '/contract/contract/checkBatch'
}) })
.then((res) => { .then((res) => {
if (res.data.code === '200') { if (res.data.code === '200') {
...@@ -611,7 +612,7 @@ obj=this.typeform*/ ...@@ -611,7 +612,7 @@ obj=this.typeform*/
}).then(() => { }).then(() => {
this.$axios({ this.$axios({
method: 'post', method: 'post',
url: 'http://117.122.212.101:8092/contract/contract/synchron' url: this.HTTPApi + '/contract/contract/synchron'
}) })
.then((res) => { .then((res) => {
if (res.data.code === '200') { if (res.data.code === '200') {
...@@ -644,7 +645,7 @@ obj=this.typeform*/ ...@@ -644,7 +645,7 @@ obj=this.typeform*/
console.log('登录人ID', localStorage.getItem('UserID')) console.log('登录人ID', localStorage.getItem('UserID'))
// const userID = localStorage.getItem('UserID') // const userID = localStorage.getItem('UserID')
const userID = JSON.parse(Store.get(storeKey.user)).userId const userID = JSON.parse(Store.get(storeKey.user)).userId
this.$axios.get('http://117.122.212.101:8092/contract/contract/queryContractByPage', this.$axios.get(this.HTTPApi + '/contract/contract/queryContractByPage',
{ {
params: { params: {
USERID: userID, USERID: userID,
...@@ -672,7 +673,7 @@ obj=this.typeform*/ ...@@ -672,7 +673,7 @@ obj=this.typeform*/
deptFindContract() { deptFindContract() {
const deptId = JSON.parse(Store.get(storeKey.user)).deptId const deptId = JSON.parse(Store.get(storeKey.user)).deptId
console.log('参数deptId', deptId) console.log('参数deptId', deptId)
this.$axios.get('http://117.122.212.101:8092/contract/contract/queryContractByPage', this.$axios.get(this.HTTPApi + '/contract/contract/queryContractByPage',
{ {
params: { params: {
DEPTCODE: deptId, DEPTCODE: deptId,
...@@ -699,7 +700,7 @@ obj=this.typeform*/ ...@@ -699,7 +700,7 @@ obj=this.typeform*/
}, },
/** 全部数据列表查询*/ /** 全部数据列表查询*/
allFindContract() { allFindContract() {
this.$axios.get('http://117.122.212.101:8092/contract/contract/queryContractByPage', this.$axios.get(this.HTTPApi + '/contract/contract/queryContractByPage',
{ {
params: { params: {
rows: this.allRows, rows: this.allRows,
...@@ -729,7 +730,7 @@ obj=this.typeform*/ ...@@ -729,7 +730,7 @@ obj=this.typeform*/
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$axios.delete('http://117.122.212.101:8092/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',
......
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
name: 'UserInfo', name: 'UserInfo',
data() { data() {
return { return {
HTTPApi: process.env.VUE_APP_BASE_API,
user: 'admin', user: 'admin',
pwdTypeMap: { pwdTypeMap: {
text: true, text: true,
...@@ -117,7 +118,7 @@ export default { ...@@ -117,7 +118,7 @@ export default {
this.queryData() this.queryData()
}, },
queryData() { queryData() {
this.$axios.get('http://117.122.212.101:8092/sysuser/queryListByPage', this.$axios.get(this.HTTPApi + '/sysuser/queryListByPage',
{ params: { { params: {
rows: this.rows, rows: this.rows,
page: this.page, page: this.page,
......
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