|
@@ -143,6 +143,7 @@
|
|
|
<template #footer>
|
|
|
<el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
|
<el-button type="primary" v-no-double-click="submitForm" size="large" :loading="submitLoading">确 定</el-button>
|
|
|
+ <el-button type="primary" v-no-double-click="showNewPage" size="large" :loading="submitLoading">预 览</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -162,7 +163,7 @@ import {
|
|
|
findMenuListByOpen, findSubMenuListByOpen,
|
|
|
getColumnArticle
|
|
|
} from "@/api/XMHJC/column";
|
|
|
-
|
|
|
+const router = useRouter();
|
|
|
const loading = ref(false);
|
|
|
const submitLoading = ref(false);
|
|
|
const sourceList = ref({
|
|
@@ -478,6 +479,15 @@ const selection = ref({
|
|
|
const select = (_selection, row) => {
|
|
|
selection.value.data = _selection;
|
|
|
};
|
|
|
+const showNewPage = () => {
|
|
|
+ console.log(formData.data);
|
|
|
+ localStorage.setItem('formData',JSON.stringify(formData.data) )
|
|
|
+ let routeData = router.resolve({
|
|
|
+ path:'/newPageEditor'
|
|
|
+ })
|
|
|
+ window.open(routeData.href, '_blank');
|
|
|
+
|
|
|
+}
|
|
|
const submitForm = () => {
|
|
|
byform.value.handleSubmit(() => {
|
|
|
|