diff --git a/src/utils/request.js b/src/utils/request.js index 7c289efd..bac6aa9f 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -20,7 +20,7 @@ const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 baseURL: process.env.VUE_APP_BASE_API, // 超时 - timeout: 10000 + timeout: 100000 }) // request拦截器 diff --git a/src/views/basic/destiny/skProject.vue b/src/views/basic/destiny/skProject.vue index 381ac372..90de4bfd 100644 --- a/src/views/basic/destiny/skProject.vue +++ b/src/views/basic/destiny/skProject.vue @@ -13,19 +13,26 @@ - - - - 重置 - 查询 - 更新下载 - 新增 - + + + + + + + - + +
+ + 重置 + 查询 + 更新下载 + 新增 + +
@@ -33,6 +40,15 @@ + + + + @@ -160,7 +176,8 @@ export default { code: "", type: 2, page: 1, - limit: 20 + limit: 20, + contrastStatus: null, }, editType: "", formVisible: false, @@ -192,6 +209,10 @@ export default { page: 1, limit: 10, }, + statusMap: { + 1: "未对照", + 2: "已对照" + }, }; }, methods: { @@ -229,7 +250,13 @@ export default { this.$message.error("数据加载失败") }) }, - + statusFilterType(status) { + const statusMap = { + 1: 'warning', + 2: 'success' + } + return statusMap[status] + }, getList() { this.loading = true; getBasicDestinyfilter(this.filterQuery).then(response => { @@ -298,7 +325,7 @@ export default { this.filterDestinyDelect() }, filterDestinyDelect() { - if (this.delectQuery.id == null ) return; + if (this.delectQuery.id == null) return; filterDestinyDelect(this.delectQuery) .then((response) => { this.loading = false; diff --git a/src/views/basic/destiny/warlockBag.vue b/src/views/basic/destiny/warlockBag.vue index 29b2ae89..9f232753 100644 --- a/src/views/basic/destiny/warlockBag.vue +++ b/src/views/basic/destiny/warlockBag.vue @@ -24,7 +24,14 @@
- + +
+ + 重置 + 查询 + 新增 + +
@@ -35,21 +42,27 @@ {{ statusMap[scope.row.status] }} - + - + @@ -68,7 +81,7 @@ 新增产品 + v-if="this.delectQuery.id != null ">新增产品 @@ -92,7 +105,7 @@ - +