|
@@ -38,31 +38,9 @@
|
|
|
import byTable from "/src/components/byTable/index";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import refreshStore from "/src/store/modules/refresh";
|
|
|
-import { fa } from "element-plus/es/locale";
|
|
|
+import { flowStatus } from "/src/utils/flowStatus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
-const flowStatus = ref([
|
|
|
- {
|
|
|
- dictKey: 0,
|
|
|
- dictValue: "未发起",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 1,
|
|
|
- dictValue: "进行中",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 2,
|
|
|
- dictValue: "已通过",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 3,
|
|
|
- dictValue: "已驳回",
|
|
|
- },
|
|
|
- {
|
|
|
- dictKey: 4,
|
|
|
- dictValue: "已作废",
|
|
|
- },
|
|
|
-]);
|
|
|
const sourceList = ref({
|
|
|
data: [],
|
|
|
pagination: {
|
|
@@ -94,7 +72,7 @@ const searchConfig = computed(() => {
|
|
|
type: "select",
|
|
|
prop: "flowStatus",
|
|
|
label: "流程状态",
|
|
|
- data: flowStatus.value,
|
|
|
+ data: flowStatus(),
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
@@ -147,7 +125,7 @@ const config = computed(() => {
|
|
|
width: 120,
|
|
|
},
|
|
|
render(val) {
|
|
|
- return proxy.dictKeyValue(val, flowStatus.value);
|
|
|
+ return proxy.dictKeyValue(val, flowStatus());
|
|
|
},
|
|
|
},
|
|
|
{
|