|
@@ -235,7 +235,8 @@ export default {
|
|
|
//
|
|
|
// ]
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/measures/owner/') + this.userName,
|
|
|
+ // url: '"http://lab2:8099/api/v1/measures/owner/' + this.userName,
|
|
|
+ url: this.$http.adornUrl('/v1/measures/owner/') + this.userName,
|
|
|
methods: 'get'
|
|
|
}).then((datas) => {
|
|
|
if (datas && datas.status === 200) {
|
|
@@ -275,7 +276,7 @@ export default {
|
|
|
this.jobDataListLoading = true
|
|
|
const self = this
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/jobs'),
|
|
|
+ url: this.$http.adornUrl('/v1/jobs'),
|
|
|
methods: 'get'
|
|
|
}).then((datas) => {
|
|
|
if (datas && datas.status === 200) {
|
|
@@ -377,7 +378,7 @@ export default {
|
|
|
this.jobDataListLoading = true
|
|
|
// 进行后台请求
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/jobs/') + info.id + '?action=start',
|
|
|
+ url: this.$http.adornUrl('/v1/jobs/') + info.id + '?action=start',
|
|
|
method: 'put'
|
|
|
}).then((data) => {
|
|
|
if (data && data.status === 200) {
|
|
@@ -411,7 +412,7 @@ export default {
|
|
|
this.jobDataListLoading = true
|
|
|
// 进行后台请求
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/jobs/') + info.id + '?action=stop',
|
|
|
+ url: this.$http.adornUrl('/v1/jobs/') + info.id + '?action=stop',
|
|
|
method: 'put'
|
|
|
}).then((data) => {
|
|
|
if (data && data.status === 200) {
|
|
@@ -445,7 +446,7 @@ export default {
|
|
|
this.jobDataListLoading = true
|
|
|
// 进行后台请求
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/jobs/') + info.id,
|
|
|
+ url: this.$http.adornUrl('/v1/jobs/') + info.id,
|
|
|
method: 'delete'
|
|
|
}).then((data) => {
|
|
|
// console.log(data)
|
|
@@ -480,7 +481,7 @@ export default {
|
|
|
)
|
|
|
.then(() => {
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/measures/') + info.measureID,
|
|
|
+ url: this.$http.adornUrl('/v1/measures/') + info.measureID,
|
|
|
method: 'delete'
|
|
|
}).then(({data}) => {
|
|
|
this.measDataListLoading = true
|
|
@@ -522,7 +523,7 @@ export default {
|
|
|
for (var index = 0; index < this.dataListSelections.length; index++) {
|
|
|
waitSecond = waitSecond + 0.5
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/measures/') + this.dataListSelections[index].measureID,
|
|
|
+ url: this.$http.adornUrl('/v1/measures/') + this.dataListSelections[index].measureID,
|
|
|
method: 'delete'
|
|
|
}).then((data) => {
|
|
|
if (data.data) {
|
|
@@ -570,7 +571,7 @@ export default {
|
|
|
for (var index = 0; index < this.dataListSelections.length; index++) {
|
|
|
waitSecond = waitSecond + 0.5
|
|
|
this.$http({
|
|
|
- url: this.$http.snoopUrl('/v1/jobs/') + this.dataListSelections[index].id,
|
|
|
+ url: this.$http.adornUrl('/v1/jobs/') + this.dataListSelections[index].id,
|
|
|
method: 'delete'
|
|
|
}).then((data) => {
|
|
|
if (data.data) {
|