|
|
@@ -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;
|