From 62778d5d0ce4fdd257d5fcacc83681baf05d54a9 Mon Sep 17 00:00:00 2001
From: mg <maokecheng@163.com>
Date: 星期三, 02 十一月 2022 15:15:27 +0800
Subject: [PATCH] 新增任务页面

---
 src/views/operate/rectification/taskList/index.vue |  101 ++++++++++++++++++++++++--------------------------
 1 files changed, 48 insertions(+), 53 deletions(-)

diff --git a/src/views/operate/rectification/taskList/index.vue b/src/views/operate/rectification/taskList/index.vue
index bc326e6..8256cf7 100644
--- a/src/views/operate/rectification/taskList/index.vue
+++ b/src/views/operate/rectification/taskList/index.vue
@@ -6,7 +6,7 @@
         <main>
             <div class="mainHeader">
                 <div class="add">
-                    <el-button type="primary" icon="el-icon-plus">鏂板浠诲姟</el-button>
+                    <el-button type="primary" icon="el-icon-plus" @click="addTask()">鏂板浠诲姟</el-button>
                 </div>
                 <div class="date-search">
                     <span>鎸夊ぉ鏌ヨ:</span>
@@ -34,25 +34,25 @@
                     :row-class-name="tableRowClassName">
                     <el-table-column type="selection" width="55">
                     </el-table-column>
-                    <el-table-column label="浠诲姟缂栧彿" prop="applicationName" min-width="10">
+                    <el-table-column prop="number" label="浠诲姟缂栧彿"  min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="鏍囬" min-width="10">
+                    <el-table-column prop="title" label="鏍囬" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="websiteUrl" label="绫诲瀷" min-width="10">
+                    <el-table-column prop="type" label="绫诲瀷" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="绾у埆" min-width="10">
+                    <el-table-column prop="level" label="绾у埆" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="琛楅亾" min-width="10">
+                    <el-table-column prop="streetId" label="琛楅亾" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="绀惧尯" min-width="10">
+                    <el-table-column prop="communityId" label="绀惧尯" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="寮�濮嬫椂闂�" min-width="10">
+                    <el-table-column prop="startTime" label="寮�濮嬫椂闂�" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="缁撴潫鏃堕棿" min-width="10">
+                    <el-table-column prop="endTime" label="缁撴潫鏃堕棿" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="浠诲姟鎻忚堪" min-width="10">
+                    <el-table-column prop="description" label="浠诲姟鎻忚堪" min-width="10">
                     </el-table-column>
-                    <el-table-column prop="applicationType" label="鐘舵��" min-width="10">
+                    <el-table-column prop="status" label="鐘舵��" min-width="10">
                     </el-table-column>
                     <el-table-column label="鎿嶄綔" min-width="10">
                         <template slot-scope="scope">
@@ -73,7 +73,7 @@
         </main>
         <footer>
             <!-- 鍒涘缓寮圭獥 -->
-            <el-dialog :visible.sync="dialogCreate" title="鏂板绗笁鏂规帴鍙�" width="45%" v-if="dialogCreate"
+            <el-dialog :visible.sync="dialogCreate" title="鏂板浠诲姟" width="45%" v-if="dialogCreate"
                 :before-close="handleClose">
                 <createInterface />
             </el-dialog>
@@ -101,52 +101,47 @@
             updateFlag: false,
             userInfo: '',
             date:'',
-            // totalNum: 200,
-            // pageSize: 10,
-            // currentPage: 1,
+            totalNum: 200,
+            pageSize: 10,
+            currentPage: 1,
         }
     },
-    created() {
-        this.getUserList();
+    async created() {
+            const arr = await this.getUserList();
+            this.tableData = arr.records;
+            this.totalNum = arr.total;
     },
     methods: {
+     addTask() {
+            this.dialogCreate = true;
+       },
         // 鑾峰彇鎺ュ彛鍒楄〃
-        getUserList() {
-            // const that = this;
-            // // const { currentPage, pageSize, search } = this;
-            // this.dialogCreate = false;
-            // this.$axios.get("/sccg/task/list").then(res => {
-            //     const { code, data } = res;
-            //     if (code == 200) {
-            //         this.tableData = data;
-            //     }
-            // })
-
-            // let arr = [];
-            // const { currentPage, pageSize,context,messageStatus,messageKind } = this;
-            // await this.$axios({
-            //     method: 'post',
-            //     url: '/sccg/task/list',
-            //     data: {
-            //         body: "",
-            //         channelCode: messageKind === '00' ?'':messageKind,
-            //         createUser: '',
-            //         current: currentPage,
-            //         head: context,
-            //         messageType: "",
-            //         pageSize: pageSize,
-            //         randomCode: "",
-            //         remark: "",
-            //         sendTime: "",
-            //         status: messageStatus === 2 ? '':messageStatus,
-            //         targetFrom: "",
-            //         targetTo: ""
-            //     }
-            // })
-            //     .then(res => {
-            //         this.tableData = res.data;
-            //     })
-            // return arr;
+      async  getUserList() {  
+            let arr = [];
+            const { currentPage, pageSize,context,messageStatus,messageKind } = this;
+            await this.$axios({
+                method: 'post',
+                url: '/sccg/task/list',
+                data: {
+                    body: "",
+                    channelCode: "",
+                    createUser: '',
+                    current: currentPage,
+                    head: context,
+                    messageType: "",
+                    pageSize: pageSize,
+                    randomCode: "",
+                    remark: "",
+                    sendTime: "",
+                    status:"",
+                    targetFrom: "",
+                    targetTo: ""
+                }
+            })
+                .then(res => {
+                     arr = res.data;
+                })
+            return arr;
         },
         // 璁剧疆琛ㄦ牸鏂戦┈绾�
         tableRowClassName({ row, rowIndex }) {

--
Gitblit v1.8.0