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