|
|
|
@ -294,7 +294,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ref, onMounted, onUnmounted, computed } from 'vue'
|
|
|
|
|
import { ref, onMounted, onUnmounted, computed,getCurrentInstance } from 'vue'
|
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
|
import myPagination from "@/views/components/Pagination/index.vue"
|
|
|
|
|
// import myDialog from "@/views/components/myDialog/index.vue"
|
|
|
|
@ -330,13 +330,14 @@ const loading = ref(false)
|
|
|
|
|
const tabHeader = ref(undefined)
|
|
|
|
|
const btnShow = ref("web")
|
|
|
|
|
const chakanyuanyin = ref("")
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
const btnArr = [
|
|
|
|
|
{ label: "web资产", value: "web" },
|
|
|
|
|
{ label: "小程序", value: "xcx" },
|
|
|
|
|
{ label: "公众号", value: "gzh" },
|
|
|
|
|
{ label: "电子邮件", value: "emil" },
|
|
|
|
|
{ label: "移动应用系统", value: "app" }
|
|
|
|
|
]
|
|
|
|
|
{ label: "web资产", value: "web", routeName: "WebZC-info"},
|
|
|
|
|
{ label: "小程序", value: "xcx", routeName: "XcxZC-info" },
|
|
|
|
|
{ label: "公众号", value: "gzh", routeName: "GzhZC-info" },
|
|
|
|
|
{ label: "电子邮件", value: "emil", routeName: "DzyjZC-info" },
|
|
|
|
|
{ label: "移动应用系统", value: "app", routeName: "YdyyxtZC-info" },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// 获取列表数据
|
|
|
|
|
const getInfo = (id) => {
|
|
|
|
@ -412,53 +413,47 @@ const getPagination = (pages) => {
|
|
|
|
|
case "app": getInfo(5); break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 查看和编辑
|
|
|
|
|
const navigateToDetail = (row, pageType) => {
|
|
|
|
|
const typeMap = {
|
|
|
|
|
web: 0,
|
|
|
|
|
xcx: 1,
|
|
|
|
|
gzh: 2,
|
|
|
|
|
emil: 3,
|
|
|
|
|
app: 4,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查看详情
|
|
|
|
|
const goInfo = (row) => {
|
|
|
|
|
router.push({
|
|
|
|
|
name: "assetsAuthRecord",
|
|
|
|
|
query: {
|
|
|
|
|
type: btnShow.value === "web" ? 0 :
|
|
|
|
|
btnShow.value === "xcx" ? 1 :
|
|
|
|
|
btnShow.value === "gzh" ? 2 :
|
|
|
|
|
btnShow.value === "emil" ? 3 :
|
|
|
|
|
btnShow.value === "app" ? 4 : 5,
|
|
|
|
|
pageType: "look",
|
|
|
|
|
btnShow: btnShow.value,
|
|
|
|
|
id: btnShow.value === "web" ? row.currentId :
|
|
|
|
|
btnShow.value === "xcx" ? row.miniId :
|
|
|
|
|
btnShow.value === "gzh" ? row.accountId :
|
|
|
|
|
btnShow.value === "emil" ? row.emailId :
|
|
|
|
|
btnShow.value === "app" ? row.appId : null,
|
|
|
|
|
name: "AssetRecord",
|
|
|
|
|
queryData: pagination.value
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const idMap = {
|
|
|
|
|
web: row.currentId,
|
|
|
|
|
xcx: row.miniId,
|
|
|
|
|
gzh: row.accountId,
|
|
|
|
|
emil: row.emailId,
|
|
|
|
|
app: row.appId,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const assetType = btnShow.value;
|
|
|
|
|
const routeItem = btnArr.find((item) => item.value === assetType);
|
|
|
|
|
const routeName = routeItem.routeName;
|
|
|
|
|
|
|
|
|
|
proxy.setActiveMenu("/assetRecord2");
|
|
|
|
|
|
|
|
|
|
// 编辑
|
|
|
|
|
const delInfo = (row) => {
|
|
|
|
|
router.push({
|
|
|
|
|
name: "assetsAuthRecord",
|
|
|
|
|
name: routeName,
|
|
|
|
|
query: {
|
|
|
|
|
type: btnShow.value === "web" ? 0 :
|
|
|
|
|
btnShow.value === "xcx" ? 1 :
|
|
|
|
|
btnShow.value === "gzh" ? 2 :
|
|
|
|
|
btnShow.value === "emil" ? 3 :
|
|
|
|
|
btnShow.value === "app" ? 4 : 5,
|
|
|
|
|
pageType: "change",
|
|
|
|
|
btnShow: btnShow.value,
|
|
|
|
|
id: btnShow.value === "web" ? row.currentId :
|
|
|
|
|
btnShow.value === "xcx" ? row.miniId :
|
|
|
|
|
btnShow.value === "gzh" ? row.accountId :
|
|
|
|
|
btnShow.value === "emil" ? row.emailId :
|
|
|
|
|
btnShow.value === "app" ? row.appId : null,
|
|
|
|
|
name: "AssetRecord",
|
|
|
|
|
queryData: pagination.value
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
type: typeMap[assetType],
|
|
|
|
|
pageType: pageType,
|
|
|
|
|
btnShow: assetType,
|
|
|
|
|
id: idMap[assetType],
|
|
|
|
|
// queryData: JSON.stringify(pagination.value),
|
|
|
|
|
name: "AssetRecord2",
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
// 查看
|
|
|
|
|
const goInfo = (row) => navigateToDetail(row, "look");
|
|
|
|
|
|
|
|
|
|
// 编辑
|
|
|
|
|
const delInfo = (row) => navigateToDetail(row, "change");
|
|
|
|
|
// 查看驳回原因
|
|
|
|
|
const lookInfo = (row) => {
|
|
|
|
|
chakanyuanyin.value = row.auditYy
|
|
|
|
|