huang_an hai 1 ano
pai
achega
85dfb59f93

+ 3 - 2
src/enum/dict.js

@@ -64,7 +64,8 @@ export default {
   条码分类: 'strip_type',
   链接分类: 'link_type',
   架构分类: 'archit_type',
-  业务模块: 'business_module'
+  业务模块: 'business_module',
+  事项类型: 'matter_type'
 };
 
 export const numberList = [
@@ -193,7 +194,7 @@ export const fineRule = [
     value: '1',
     pid: '5',
     reg: '[0-9]'
-  },
+  }
   // {
   //   label: 'A-Z0-9',
   //   value: '2',

+ 4 - 4
src/store/getters.js

@@ -17,10 +17,10 @@ export default {
     const obj = (state.dict[dictEnum[enumName]] || []).find((item) => {
       return item.dictCode == dictCode;
     });
-    console.log(dictEnum);
-    console.log(enumName);
-    console.log(state.dict);
-
+    // console.log(dictEnum);
+    // console.log(enumName);
+    // console.log(state.dict);
+    // console.log('obj-----', obj);
     return obj && obj.dictValue;
   }
 };

+ 30 - 2
src/views/rulesManagement/matterRules/components/matter-add.vue

@@ -110,6 +110,23 @@
               ></el-input>
             </template>
           </el-table-column>
+          <el-table-column prop="matterType" label="流程类型" width="160">
+            <template slot-scope="scope">
+              <el-select
+                v-model="scope.row.matterType"
+                placeholder="请选择"
+                style="width: 100%"
+              >
+                <el-option
+                  v-for="item in matterTypeList"
+                  :key="item.dictCode"
+                  :label="item.dictValue"
+                  :value="item.dictCode"
+                >
+                </el-option>
+              </el-select>
+            </template>
+          </el-table-column>
           <el-table-column prop="name" label="事项" width="240">
             <template slot-scope="scope">
               <el-form-item
@@ -232,7 +249,7 @@
   } from '@/api/ruleManagement/matter';
 
   import ProductModal from './ProductModal.vue';
-
+  import dictMixins from '@/mixins/dictMixins';
   export default {
     components: { RuleCycle, OperationGuideDialog, ProductModal },
     props: {
@@ -257,6 +274,7 @@
         }
       }
     },
+    mixins: [dictMixins],
     data() {
       // 默认表单数据
       const defaultForm = {
@@ -311,9 +329,19 @@
           ]
         },
         isBindPlan: false
+        // matterTypeList: []
       };
     },
     watch: {},
+
+    created() {
+      this.requestDict('事项类型');
+    },
+    computed: {
+      matterTypeList() {
+        return this.dict[this.dictEnum['事项类型']] || [];
+      }
+    },
     methods: {
       openpartDialog(row, index, type) {
         this.$nextTick(() => {
@@ -370,6 +398,7 @@
             name: '', // 巡点检事项
             content: '', // 巡点检内容
             norm: '正常', // 巡点检标准
+            matterType: '',
             // 操作指导
             operationGuide: {
               toolList: [],
@@ -432,7 +461,6 @@
 
       // 保存
       dataKeep() {
-        console.log(this.formData, '123');
         let form = deepClone(this.formData);
         console.log(this.$refs.cycleMultipleRef);
         form.cycle = this.$refs.cycleMultipleRef.ruleCycleList;