任务列表界面优化

master
1178634255 2 years ago
parent 3354a47a90
commit 05608162d3

@ -43,7 +43,8 @@
<!--<el-table-column label="所属仓库" prop="warehouseName"></el-table-column>--> <!--<el-table-column label="所属仓库" prop="warehouseName"></el-table-column>-->
<el-table-column label="状态"> <el-table-column label="状态">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.userFlag | statusFilterType">{{ <el-tag :type="scope.row.userFlag | statusFilterType">
{{
scope.row.userFlag | statusFilterName scope.row.userFlag | statusFilterName
}} }}
</el-tag> </el-tag>

@ -132,12 +132,27 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="任务状态" prop="status" width="120"></el-table-column>-->
<!-- <el-table-column label="任务状态" prop="status" width="120">-->
<!-- <template slot-scope="scope">-->
<!-- {{ formatTaskType1(scope.row) }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="任务状态" prop="status" width="120"> <el-table-column label="任务状态" prop="status" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ formatTaskType1(scope.row) }} <el-tag :type="scope.row.status | statusFilterType">
{{
scope.row.status | statusFilterName
}}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc" width="180"></el-table-column> <el-table-column label="医疗器械注册人" prop="ylqxzcrbarmc" width="180"></el-table-column>
<el-table-column label="医疗器械注册人统一社会信用号" prop="creditNum" width="220"></el-table-column> <el-table-column label="医疗器械注册人统一社会信用号" prop="creditNum" width="220"></el-table-column>
<el-table-column label="产品名称" prop="cpmctymc" width="180"></el-table-column> <el-table-column label="产品名称" prop="cpmctymc" width="180"></el-table-column>
@ -276,7 +291,18 @@
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {getTraceTaskList} from "@/api/udi/udiTrace"; import {getTraceTaskList} from "@/api/udi/udiTrace";
const formJson = {
id: "",
passWord: "",
userName: "",
checkPassword: "",
employeeName: "",
taskFlag: 1,
comments: '',
dept: null,
roles: [],
depts: [],
};
export default { export default {
data() { data() {
return { return {
@ -294,6 +320,7 @@ export default {
startAduditTime: null, startAduditTime: null,
endAduditTime: null, endAduditTime: null,
}, },
formData: formJson,
total: 0, total: 0,
codeRelTotal: 0, codeRelTotal: 0,
loading: true, loading: true,
@ -369,6 +396,7 @@ export default {
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
formatTaskType(row) { formatTaskType(row) {
switch (row.taskType) { switch (row.taskType) {
case 1: case 1:
@ -393,6 +421,7 @@ export default {
return '任务状态有误!!'; return '任务状态有误!!';
} }
}, },
// // // //
// handleSelectionChange(val) { // handleSelectionChange(val) {
// this.currentRow = val; // this.currentRow = val;
@ -507,6 +536,24 @@ export default {
}) })
}, },
}, },
filters: {
statusFilterType(status) {
const statusMap = {
1: "gray",
2: "success",
3: "danger"
};
return statusMap[status];
},
statusFilterName(status) {
const statusMap = {
1: "未处理",
2: "正在处理",
3: "已处理"
};
return statusMap[status];
},
},
created() { created() {
this.getTaskList() this.getTaskList()
} }

Loading…
Cancel
Save