|
@@ -90,8 +90,10 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
- @click="getRouter(scope.row.toRouter, scope.row.orderCode)"
|
|
|
+ @click="getRouter(scope.row)"
|
|
|
></i>
|
|
|
+ <!-- @click="getRouter(scope.row.toRouter, scope.row.orderCode)" -->
|
|
|
+
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
</ex-table>
|
|
@@ -104,6 +106,7 @@ import mixinPage from "@/mixins/elPaginationHandle";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import { routerList, columns ,readUnRead} from "@/views/process/columns";
|
|
|
+import treeRowVue from '@/components/globalComponents/tree-table/tree-row.vue';
|
|
|
export default {
|
|
|
name: "role",
|
|
|
mixins: [mixinPage, resToken],
|
|
@@ -166,25 +169,47 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
- getRouter(toRouter, queryId) {
|
|
|
- console.log(this.tableData)
|
|
|
- console.log(toRouter, queryId)
|
|
|
- if (toRouter && queryId) {
|
|
|
+ // getRouter(toRouter, queryId) {
|
|
|
+ getRouter(row) {
|
|
|
+ console.log(row)
|
|
|
+ const { order_type, order_id, orderCode } = row;
|
|
|
+ let index = this.process_router_list.findIndex(
|
|
|
+ (y) => y.type === order_type
|
|
|
+ );
|
|
|
+ if (index !== -1) {
|
|
|
+ const { toRouter, to } = this.process_router_list[index];
|
|
|
let model = {
|
|
|
type: "view",
|
|
|
- id: queryId,
|
|
|
+ id: to === "code" ? orderCode : order_id,
|
|
|
};
|
|
|
-
|
|
|
- let routerModel = {
|
|
|
+ let routerModel = {
|
|
|
options: JSON.parse(JSON.stringify(this.parmValue)),
|
|
|
router: this.$route.path,
|
|
|
};
|
|
|
model.preModel = JSON.stringify(routerModel);
|
|
|
-
|
|
|
+ // console.log(model)
|
|
|
+ // return;
|
|
|
this.routeGoto(toRouter, model);
|
|
|
} else {
|
|
|
this.$message.warning("暂未找到相关流程!");
|
|
|
}
|
|
|
+
|
|
|
+ // if (toRouter && queryId) {
|
|
|
+ // let model = {
|
|
|
+ // type: "view",
|
|
|
+ // id: queryId,
|
|
|
+ // };
|
|
|
+
|
|
|
+ // let routerModel = {
|
|
|
+ // options: JSON.parse(JSON.stringify(this.parmValue)),
|
|
|
+ // router: this.$route.path,
|
|
|
+ // };
|
|
|
+ // model.preModel = JSON.stringify(routerModel);
|
|
|
+
|
|
|
+ // this.routeGoto(toRouter, model);
|
|
|
+ // } else {
|
|
|
+ // this.$message.warning("暂未找到相关流程!");
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
restSearch() {
|