去除js对绝对地址的依赖,为日志添加排序选项
This commit is contained in:
@@ -40,7 +40,7 @@ var Main = {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
var that = this;
|
||||
axios.get('http://localhost:8080/cms/home/findvlog')
|
||||
axios.get(getRootPath_web()+'/home/findvlog')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.logData = response.data;
|
||||
@@ -48,7 +48,7 @@ var Main = {
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
axios.get('http://localhost:8080/cms/home/findvfeedback')
|
||||
axios.get(getRootPath_web()+'/home/findvfeedback')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.feedbackData = response.data;
|
||||
@@ -61,7 +61,7 @@ var Main = {
|
||||
},
|
||||
methods: {
|
||||
ClickToJump(targe){
|
||||
window.location.href="http://localhost:8080/cms/home/" + targe;
|
||||
window.location.href=getRootPath_web()+"/" + targe;
|
||||
},
|
||||
handleSelect(key, keyPath) {
|
||||
console.log(key, keyPath);
|
||||
|
||||
@@ -378,15 +378,15 @@ var Main = {
|
||||
console.log(file, fileList);
|
||||
},
|
||||
ClickToJump(targe) {
|
||||
window.location.href = "http://localhost:8080/cms/" + targe;
|
||||
window.location.href = getRootPath_web()+"/" + targe;
|
||||
},
|
||||
handleDownload(row) {
|
||||
/*var url = window.location.protocol+"://"+window.location.host+":"+window.location.port+"/"*/
|
||||
window.open("http://localhost:8080/cms/download/dodownload?fileId=" + row.colfileid);
|
||||
window.open(getRootPath_web()+"/download/dodownload?fileId=" + row.colfileid);
|
||||
},
|
||||
handleDelete(row) {
|
||||
axios({
|
||||
url: 'http://localhost:8080/cms/home/filedelete',
|
||||
url: getRootPath_web()+'/home/filedelete',
|
||||
method: 'post',
|
||||
data: {
|
||||
fileid: row.colfileid
|
||||
|
||||
@@ -34,7 +34,7 @@ var Main = {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
var that = this;
|
||||
axios.get('http://localhost:8080/cms/home/findallvhomework')
|
||||
axios.get(getRootPath_web()+'/home/findallvhomework')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.homeworkData = response.data;
|
||||
@@ -42,7 +42,7 @@ var Main = {
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
axios.get('http://localhost:8080/cms/home/findallvhomework')
|
||||
axios.get(getRootPath_web()+'/home/findallvhomework')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.homeworkData = response.data;
|
||||
@@ -55,7 +55,7 @@ var Main = {
|
||||
methods: {
|
||||
togglePost(url){
|
||||
axios({
|
||||
url: 'http://localhost:8080/cms/'+url,
|
||||
url: getRootPath_web()+url,
|
||||
method: 'post',
|
||||
data: {
|
||||
id:this.multipleSelection
|
||||
@@ -77,7 +77,7 @@ var Main = {
|
||||
console.log(key, keyPath);
|
||||
},
|
||||
ClickToJump(targe){
|
||||
window.location.href="http://localhost:8080/cms/" + targe;
|
||||
window.location.href=getRootPath_web()+ "/" + targe;
|
||||
},
|
||||
toggleSelection(rows) {
|
||||
if (rows) {
|
||||
|
||||
@@ -24,7 +24,7 @@ var Main = {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
var that = this;
|
||||
axios.get('http://localhost:8080/cms/home/findvcourse')
|
||||
axios.get(getRootPath_web()+'/home/findvcourse')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.tableData3 = response.data;
|
||||
@@ -46,7 +46,7 @@ var Main = {
|
||||
methods: {
|
||||
togglePost(url){
|
||||
axios({
|
||||
url: 'http://localhost:8080/cms/'+url,
|
||||
url: getRootPath_web()+'/'+url,
|
||||
method: 'post',
|
||||
data: {
|
||||
id:this.multipleSelection
|
||||
@@ -100,7 +100,7 @@ var Main = {
|
||||
console.log(item);
|
||||
},
|
||||
ClickToJump(targe){
|
||||
window.location.href="http://localhost:8080/cms/home/" + targe;
|
||||
window.location.href=getRootPath_web()+"/"+ targe;
|
||||
},
|
||||
toggleSelection(rows) {
|
||||
if (rows) {
|
||||
@@ -123,7 +123,7 @@ var Main = {
|
||||
/*this.restaurants = this.loadAll();*/
|
||||
this.restaurants=this.$nextTick(() => {
|
||||
var that = this;
|
||||
axios.get('http://localhost:8080/cms/home/findvcourse')
|
||||
axios.get(getRootPath_web()+'/home/findvcourse')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.logData = response.data;
|
||||
|
||||
@@ -18,7 +18,7 @@ var Main = {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
var that = this;
|
||||
axios.get('http://localhost:8080/cms/home/findalluser')
|
||||
axios.get(getRootPath_web()+'/home/findalluser')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.userData = response.data;
|
||||
@@ -64,7 +64,7 @@ var Main = {
|
||||
console.log(key, keyPath);
|
||||
},
|
||||
ClickToJump(targe){
|
||||
window.location.href="http://localhost:8080/cms/" + targe;
|
||||
window.location.href=getRootPath_web()+"/" + targe;
|
||||
},
|
||||
toggleSelection(rows) {
|
||||
if (rows) {
|
||||
|
||||
@@ -123,7 +123,7 @@ var Main = {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (true) {//此处暂时去除校验
|
||||
axios({
|
||||
url: 'http://localhost:8080/cms/' + url,
|
||||
url: getRootPath_web()+'/' + url,
|
||||
method: 'post',
|
||||
data: {
|
||||
content: this.$refs.content.value
|
||||
@@ -157,7 +157,7 @@ var Main = {
|
||||
console.log(tab, event);
|
||||
},
|
||||
ClickToJump(targe) {
|
||||
window.location.href = "http://localhost:8080/cms/" + targe;
|
||||
window.location.href = getRootPath_web()+"/" + targe;
|
||||
},
|
||||
handleSelect(key, keyPath) {
|
||||
console.log(key, keyPath);
|
||||
@@ -169,7 +169,7 @@ var Main = {
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
var that = this;
|
||||
axios.get('http://localhost:8080/cms/home/userinfo')
|
||||
axios.get(getRootPath_web()+'/home/userinfo')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
that.ruleForm2 = response.data;
|
||||
|
||||
@@ -43,11 +43,11 @@
|
||||
<el-button type="text" @click="dialogTableVisible = true">查看更新日志</el-button>
|
||||
|
||||
<el-dialog title="GitLab更新日志" :visible.sync="dialogTableVisible">
|
||||
<el-table :data="VersionList">
|
||||
<el-table-column property="date" label="日期"></el-table-column>
|
||||
<el-table-column property="content" label="内容"></el-table-column>
|
||||
<el-table-column property="version" label="版本"></el-table-column>
|
||||
<el-table-column property="user" label="提交人员"></el-table-column>
|
||||
<el-table :data="VersionList" :default-sort="{prop: 'date', order: 'descending'}">
|
||||
<el-table-column property="date" label="日期" sortable></el-table-column>
|
||||
<el-table-column property="content" label="内容" sortable></el-table-column>
|
||||
<el-table-column property="version" label="版本" sortable></el-table-column>
|
||||
<el-table-column property="user" label="提交人员" sortable></el-table-column>
|
||||
</el-table>
|
||||
</el-dialog>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user