|
@@ -54,6 +54,7 @@
|
|
|
v-if="codes.includes('description')"
|
|
|
prop="description"
|
|
|
label="规则描述"
|
|
|
+ width="240"
|
|
|
align="center"
|
|
|
/>
|
|
|
<el-table-column
|
|
@@ -69,14 +70,24 @@
|
|
|
label="单项否决"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-if="scope.row.is_not" type="primary">是</el-tag>
|
|
|
+ <el-tag v-else type="info">否</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
v-if="codes.includes('status')"
|
|
|
prop="status"
|
|
|
label="质控状态"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-if="scope.row.status === 1" type="success">开启中</el-tag>
|
|
|
+ <el-tag v-if="scope.row.status === 2" type="danger">禁用中</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
v-if="codes.includes('type')"
|
|
|
prop="type"
|
|
@@ -97,7 +108,13 @@
|
|
|
label="风险等级"
|
|
|
align="center"
|
|
|
width="120"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-if="scope.row.status === 1" type="info">低风险</el-tag>
|
|
|
+ <el-tag v-if="scope.row.status === 2" type="primary">中风险</el-tag>
|
|
|
+ <el-tag v-if="scope.row.status === 3" type="danger">高风险</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
v-if="codes.includes('score')"
|
|
|
prop="score"
|
|
@@ -131,7 +148,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<!-- 新增、编辑 -->
|
|
|
- <CreateDialog v-if="createData.bSwitch" :data="createData" @refresh="handleRefresh" />
|
|
|
+ <CreateDialog v-if="createData.bSwitch" :data="createData" :departments="departments" :objects="objects" @refresh="handleRefresh" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -155,6 +172,18 @@ export default {
|
|
|
default() {
|
|
|
return false
|
|
|
}
|
|
|
+ },
|
|
|
+ objects: {
|
|
|
+ type: Array,
|
|
|
+ default() {
|
|
|
+ return []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ departments: {
|
|
|
+ type: Array,
|
|
|
+ default() {
|
|
|
+ return []
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data() {
|