-<<<<<<< HEAD
查看
-=======
-
查看
->>>>>>> 5a6aa4b4a0b31b87d8a59d02d85f248da13cf486
-
+
+
-<<<<<<< HEAD
审核
-=======
-
审核
->>>>>>> 5a6aa4b4a0b31b87d8a59d02d85f248da13cf486
@@ -160,7 +156,7 @@
import myPagination from "@/views/components/Pagination/index.vue"
import myDialog from "@/views/components/myDialog/index.vue"
import danweiList from "@/views/system/user/danweiList.vue"
-import { addassetTaskadd } from "@/api/renwuApi/index.js"
+import { addassetTaskadd, getassetTask, getassetTaskid } from "@/api/renwuApi/index.js"
export default {
// dicts: ['jjh_project_type', 'bms_approval_status', "project_middle_type", "project_small_type", "project_categories"],
@@ -180,35 +176,7 @@ export default {
size: 10,
},
tableData: [
- {
- number: 20230001,
- name: "XXX任务",
- type: "2023-07-30 16:30:21",
- unit: "2023-07-30",
- time: "2023-07-30 16:30:21",
- status: 0,
- }, {
- number: 20230001,
- name: "XXX任务",
- type: "2023-07-30 16:30:21",
- unit: "2023-07-30",
- time: "2023-07-30 16:30:21",
- status: 1,
- }, {
- number: 20230001,
- name: "XXX任务",
- type: "2023-07-30 16:30:21",
- unit: "2023-07-30",
- time: "2023-07-30 16:30:21",
- status: 3,
- }, {
- number: 20230001,
- name: "XXX任务",
- type: "2023-07-30 16:30:21",
- unit: "2023-07-30",
- time: "2023-07-30 16:30:21",
- status: 4,
- },
+
],
loading: false,
tabHeader: undefined,
@@ -243,7 +211,7 @@ export default {
// 关闭新增弹窗
resetForm() {
this.ruleForm = {
- dwmc: [],
+ dwmc: [],
taskName: "",
taskDeadline: "",
}
@@ -256,7 +224,11 @@ export default {
this.ruleForm.dwmc = this.ruleForm.dwmc.join(",")
addassetTaskadd(this.ruleForm).then(res => {
this.resetForm()
+ this.getInfo();
})
+ setTimeout(() => {
+ this.ruleForm.dwmc = this.ruleForm.dwmc.split(",")
+ }, 0);
} else {
console.log('error submit!!');
return false;
@@ -278,12 +250,12 @@ export default {
},
// 获取列表
getInfo() {
- // this.loading = true;
- // jProject(this.pagination).then(res=>{
- // this.loading = false;
- // this.total = res.data.total;
- // this.tableData = res.data.records;
- // })
+ this.loading = true;
+ getassetTask(this.pagination).then(res => {
+ this.loading = false;
+ this.total = res.data.total;
+ this.tableData = res.data.records;
+ })
},
// 重置
resetQuery() {
@@ -298,7 +270,7 @@ export default {
current: 1,
size: 10,
}
- this.getList();
+ this.getInfo();
},
//打开列表
addliebiao() {
@@ -321,17 +293,17 @@ export default {
size: 10
}
if (this.formInline.time.length > 0) {
- this.formInline.startTime = this.formInline.time[0]
+ this.formInline.begainTime = this.formInline.time[0]
this.formInline.endTime = this.formInline.time[1]
}
this.pagination = { ...this.pagination, ...this.formInline };
- this.getList();
+ this.getInfo();
},
// 页码获取
getPagination(pages) {
this.pagination.current = pages.page;
this.pagination.size = pages.limit;
- this.getList();
+ this.getInfo();
},
// 导入
handleImport() { },
@@ -346,17 +318,15 @@ export default {
},
// 查看详情
- goInfo() {
+ goInfo(row) {
+ getassetTaskid(row.id)
this.$router.push({
name: 'TaskInfo', query: {
- pageType: "info",
+ pageType: "look",
+ id:row.id
}
})
},
- // 编辑
- edit() {
- },
- // 删除
delInfo() {
this.$router.push({
name: 'taskAudit', query: {
@@ -364,6 +334,11 @@ export default {
}
})
},
+ // 编辑
+ edit() {
+ },
+ // 审核
+
// 修改table背景色
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 !== 0) {
diff --git a/src/views/auditPages/taskManagement/info.vue b/src/views/auditPages/taskManagement/info.vue
index a9efa47..51ff135 100644
--- a/src/views/auditPages/taskManagement/info.vue
+++ b/src/views/auditPages/taskManagement/info.vue
@@ -1,241 +1,236 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
- 查询
- 重置
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 待核查
+
+
+ 待审核
+
+
+ 审核通过
+
+
+ 审核不通过
+
+
+ 已报废
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 审核通过
-
-
- 审核不通过
-
-
- 已报废
-
-
-
-
-
- 查看
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.wwcbl }}
-
-
-
-
-
-
-
-
-
-
-
任务详情
-
-
-
- {{activity.content}}
-
-
-
-
-
-
+
+
+
+
+ {{ scope.row.wwcbl }}
+
+
+
+
+
+
+
+