|
@@ -220,6 +220,9 @@ const option2 = computed(() => {
|
|
|
const gotodetail = (item) => {
|
|
|
router.push(`/mb/task/detail/${item.taskId}`);
|
|
|
};
|
|
|
+const store = useStore();
|
|
|
+const getters = computed(() => store.getters);
|
|
|
+
|
|
|
|
|
|
const pagec = ref(1);
|
|
|
|
|
@@ -233,6 +236,10 @@ const onLoad = () => {
|
|
|
if (value2.value !== "0") {
|
|
|
p["status"] = parseInt(value2.value);
|
|
|
}
|
|
|
+ if(value1.value == '0'){
|
|
|
+ p["params"] = {};
|
|
|
+ p.params['userId'] = getters.value.userId;
|
|
|
+ }
|
|
|
listTask(p).then((res) => {
|
|
|
// finished.value = true;
|
|
|
loading.value = false;
|
|
@@ -250,6 +257,13 @@ watch(
|
|
|
onLoad();
|
|
|
}
|
|
|
);
|
|
|
+watch(
|
|
|
+ () => value1.value,
|
|
|
+ () => {
|
|
|
+ refreshing.value = true;
|
|
|
+ onLoad();
|
|
|
+ }
|
|
|
+);
|
|
|
|
|
|
const onRefresh = () => {
|
|
|
// 清空列表数据
|
|
@@ -279,8 +293,6 @@ const xyobj = ref({
|
|
|
gls: "",
|
|
|
});
|
|
|
|
|
|
-const store = useStore();
|
|
|
-const getters = computed(() => store.getters);
|
|
|
|
|
|
const allusers = ref([]);
|
|
|
listUser({ pageSize: 1000 }).then((res) => {
|