guhongwei 4 tahun lalu
induk
melakukan
bef0d3d7f3
2 mengubah file dengan 74 tambahan dan 7 penghapusan
  1. 35 6
      src/views/adminCate/index.vue
  2. 39 1
      src/views/adminScore/index.vue

+ 35 - 6
src/views/adminCate/index.vue

@@ -1,14 +1,17 @@
 <template>
   <div id="index">
     <el-row>
-      <el-col :span="24">
-        <p>index</p>
+      <el-col :span="24" class="main">
+        <el-col :span="24" class="down">
+          <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search"></data-table>
+        </el-col>
       </el-col>
     </el-row>
   </div>
 </template>
 
 <script>
+import dataTable from '@common/src/components/frame/filter-page-table.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
 export default {
   metaInfo() {
@@ -16,12 +19,38 @@ export default {
   },
   name: 'index',
   props: {},
-  components: {},
+  components: {
+    dataTable,
+  },
   data: function() {
-    return {};
+    return {
+      opera: [],
+      fields: [
+        { label: '成果编号', prop: 'basic.achieve_num', filter: 'input', showTip: true },
+        { label: '成果名称', prop: 'basic.achieve_name', showTip: true },
+        { label: '成果类别', prop: 'basic.achieve_type', showTip: true },
+        { label: '状态', prop: 'status' },
+      ],
+      list: [
+        {
+          basic: {
+            achieve_num: '成果编号',
+            achieve_name: '成果名称',
+            achieve_type: '成果类别',
+          },
+          status: '0',
+        },
+      ],
+      total: 0,
+    };
+  },
+  async created() {
+    await this.search();
+  },
+  methods: {
+    // 查询列表
+    async search({ skip = 0, limit = 10, ...info } = {}) {},
   },
-  created() {},
-  methods: {},
   computed: {
     ...mapState(['user']),
   },

+ 39 - 1
src/views/adminScore/index.vue

@@ -3,14 +3,25 @@
     <el-row>
       <el-col :span="24" class="main">
         <el-col :span="24" class="down">
-          <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search" @view="toView"></data-table>
+          <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search" @view="toView" @edit="toEdit"></data-table>
         </el-col>
       </el-col>
     </el-row>
+    <el-dialog title="评分总结" width="40%" :visible.sync="sumDialog" @closed="handleClose" :destroy-on-close="true">
+      <data-form :data="sumForm" :fields="sumfields" :rules="{}" @save="sumSave">
+        <template #radios="{item}">
+          <template v-if="item.model === 'status'">
+            <el-radio label="0">通过</el-radio>
+            <el-radio label="1">不通过</el-radio>
+          </template>
+        </template>
+      </data-form>
+    </el-dialog>
   </div>
 </template>
 
 <script>
+import dataForm from '@common/src/components/frame/form.vue';
 import dataTable from '@common/src/components/frame/filter-page-table.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
 export default {
@@ -21,6 +32,7 @@ export default {
   props: {},
   components: {
     dataTable,
+    dataForm,
   },
   data: function() {
     return {
@@ -29,6 +41,10 @@ export default {
           label: '专家指派&评分查看',
           method: 'view',
         },
+        {
+          label: '评分总结',
+          method: 'edit',
+        },
       ],
       fields: [
         { label: '成果编号', prop: 'basic.achieve_num', filter: 'input', showTip: true },
@@ -47,6 +63,13 @@ export default {
         },
       ],
       total: 0,
+      // 会审总结
+      sumDialog: false,
+      sumForm: {},
+      sumfields: [
+        { label: '总结状态', model: 'status', type: 'radio' },
+        { label: '总结意见', model: 'content', type: 'textarea' },
+      ],
     };
   },
   async created() {
@@ -59,6 +82,21 @@ export default {
     toView({ data }) {
       this.$router.push({ path: '/adminScore/detail', query: { id: data.id } });
     },
+    // 会审总结
+    toEdit({ data }) {
+      this.sumDialog = true;
+    },
+    // 会审总结提交
+    sumSave({ data }) {
+      console.log(data);
+      this.handleClose();
+    },
+    // 取消选择
+    handleClose() {
+      this.sumForm = {};
+      this.sumDialog = false;
+      this.search();
+    },
   },
   computed: {
     ...mapState(['user']),