单位自主填报跳转表单

main
严飞永 3 weeks ago
parent 4cb0addd8a
commit d13cf95194

@ -286,10 +286,10 @@
</template> </template>
<script setup> <script setup>
import { ref, onMounted, onUnmounted } from "vue"; import { ref, onMounted, onUnmounted ,getCurrentInstance} from "vue";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import myPagination from "@/views/components/Pagination/index.vue" import myPagination from "@/views/components/Pagination/index.vue";
import { import {
getAuditList, getAuditList,
miniProgramsGetAuditList, miniProgramsGetAuditList,
@ -319,11 +319,11 @@ const pagination = ref({
}); });
const btnArr = [ const btnArr = [
{ label: "web资产", value: "web" }, { label: "web资产", value: "web", routeName: "WebZC-info"},
{ label: "小程序", value: "xcx" }, { label: "小程序", value: "xcx", routeName: "XcxZC-info" },
{ label: "公众号", value: "gzh" }, { label: "公众号", value: "gzh", routeName: "GzhZC-info" },
{ label: "电子邮件", value: "emil" }, { label: "电子邮件", value: "emil", routeName: "DzyjZC-info" },
{ label: "移动应用系统", value: "app" }, { label: "移动应用系统", value: "app", routeName: "YdyyxtZC-info" },
]; ];
const btnShow = ref("web"); const btnShow = ref("web");
@ -428,9 +428,15 @@ const goInfo = (row) => {
emil: row.emailId, emil: row.emailId,
app: row.appId, app: row.appId,
}; };
const assetType = btnShow.value;
// tab
const routeItem = btnArr.find((item) => item.value === assetType);
const routeName = routeItem.routeName
proxy.setActiveMenu("/unitFill2" );
router.push({ router.push({
name: "unitAssetsAuth", name: routeName,
query: { query: {
type: typeMap[btnShow.value], type: typeMap[btnShow.value],
pageType: "look", pageType: "look",

Loading…
Cancel
Save