|
@@ -56,32 +56,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { onMounted, ref, watch } from 'vue'
|
|
|
-import { useRoute } from 'vue-router'
|
|
|
-const useRoutes = useRoute()
|
|
|
+import { onMounted, ref } from 'vue'
|
|
|
|
|
|
-//渲染完成
|
|
|
onMounted(() => {
|
|
|
- setPageType(useRoutes.name)
|
|
|
-})
|
|
|
|
|
|
-//监听页面类型
|
|
|
-const pageType = ref('')
|
|
|
-watch(() => useRoutes.name, (name) => {
|
|
|
- setPageType(name)
|
|
|
})
|
|
|
|
|
|
-//设置页面类型
|
|
|
-const setPageType = (name) => {
|
|
|
- if (name === 'anomaly-invest') {
|
|
|
- pageType.value = 'invest'
|
|
|
- console.log('当前为:项目投资异常管理')
|
|
|
- } else if (name === 'anomaly-progress') {
|
|
|
- pageType.value = 'progress'
|
|
|
- console.log('当前为:项目进度异常管理')
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
//搜索表单
|
|
|
const searchForm = ref({
|
|
|
queryValue: null, current: 1, size: 20, total: 0, key1: '', key2: '', key3: '',
|