|
@@ -478,14 +478,16 @@ export default {
|
|
|
*/
|
|
|
getNoticeList: function () {
|
|
|
var that = this;
|
|
|
- this.$axios.get("/notice/list").then(function (response) {
|
|
|
- that.listData.notice = response.data;
|
|
|
- //排序
|
|
|
- that.listData.notice= that.listData.notice.sort(that.compare('level'))
|
|
|
- // items备份
|
|
|
- that.colonData.notice = JSON.parse(
|
|
|
- JSON.stringify(that.listData.notice)
|
|
|
- )
|
|
|
+ this.$axios
|
|
|
+ .get("/notice/list")
|
|
|
+ .then(function (response) {
|
|
|
+ that.listData.notice = response.data;
|
|
|
+ //排序
|
|
|
+ that.listData.notice= that.listData.notice.sort(that.compare('level'))
|
|
|
+ // items备份
|
|
|
+ that.colonData.notice = JSON.parse(
|
|
|
+ JSON.stringify(that.listData.notice)
|
|
|
+ )
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -541,13 +543,15 @@ export default {
|
|
|
*/
|
|
|
getOthersList: function () {
|
|
|
var that = this;
|
|
|
- this.$axios.get("/others/list").then(function (response) {
|
|
|
- that.listData.others = response.data
|
|
|
- that.listData.others= that.listData.others.sort(that.compare('level'))
|
|
|
- // items备份
|
|
|
- that.colonData.others = JSON.parse(
|
|
|
- JSON.stringify(that.listData.others)
|
|
|
- );
|
|
|
+ this.$axios
|
|
|
+ .get("/others/list")
|
|
|
+ .then(function (response) {
|
|
|
+ that.listData.others = response.data
|
|
|
+ that.listData.others= that.listData.others.sort(that.compare('level'))
|
|
|
+ // items备份
|
|
|
+ that.colonData.others = JSON.parse(
|
|
|
+ JSON.stringify(that.listData.others)
|
|
|
+ );
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -728,7 +732,7 @@ export default {
|
|
|
giveupChange: function () {
|
|
|
this.data = JSON.parse(JSON.stringify(this.colonData))
|
|
|
this.deleteArr = []
|
|
|
- this.refresh
|
|
|
+ this.refresh()
|
|
|
},
|
|
|
|
|
|
/**
|
|
@@ -1009,7 +1013,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @description:监听预删除数据,当其不为空时使得‘应用更改’按钮可用
|
|
|
* @param {DOM} newOne:新值
|