保存进度!
This commit is contained in:
		@@ -23,7 +23,7 @@ module.exports = {
 | 
			
		||||
  rules: {
 | 
			
		||||
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
 | 
			
		||||
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
 | 
			
		||||
    "no-unused-vars": "off",
 | 
			
		||||
    "no-unused-vars": "warn",
 | 
			
		||||
    "semi": ["error", "always",],//控制行尾部分号
 | 
			
		||||
    "comma-dangle": ["error", {
 | 
			
		||||
      "arrays": "always",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								code/web/IT工具综合平台/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								code/web/IT工具综合平台/package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -3223,7 +3223,7 @@
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/@wangeditor/editor-for-vue": {
 | 
			
		||||
            "version": "5.1.12",
 | 
			
		||||
            "resolved": "https://registry.npmjs.org/@wangeditor/editor-for-vue/-/editor-for-vue-5.1.12.tgz",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/@wangeditor/editor-for-vue/-/editor-for-vue-5.1.12.tgz",
 | 
			
		||||
            "integrity": "sha512-0Ds3D8I+xnpNWezAeO7HmPRgTfUxHLMd9JKcIw+QzvSmhC5xUHbpCcLU+KLmeBKTR/zffnS5GQo6qi3GhTMJWQ==",
 | 
			
		||||
            "peerDependencies": {
 | 
			
		||||
                "@wangeditor/editor": ">=5.1.0",
 | 
			
		||||
@@ -15856,7 +15856,7 @@
 | 
			
		||||
        },
 | 
			
		||||
        "@wangeditor/editor-for-vue": {
 | 
			
		||||
            "version": "5.1.12",
 | 
			
		||||
            "resolved": "https://registry.npmjs.org/@wangeditor/editor-for-vue/-/editor-for-vue-5.1.12.tgz",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/@wangeditor/editor-for-vue/-/editor-for-vue-5.1.12.tgz",
 | 
			
		||||
            "integrity": "sha512-0Ds3D8I+xnpNWezAeO7HmPRgTfUxHLMd9JKcIw+QzvSmhC5xUHbpCcLU+KLmeBKTR/zffnS5GQo6qi3GhTMJWQ==",
 | 
			
		||||
            "requires": {}
 | 
			
		||||
        },
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-02 22:19:12
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-06 15:57:19
 | 
			
		||||
 * @LastEditTime: 2023-02-06 17:13:38
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/views/requirement/RequirementManager.vue
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -230,7 +230,7 @@
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { reactive, computed, onBeforeMount, onBeforeUnmount } from "vue";
 | 
			
		||||
//import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
 | 
			
		||||
import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
 | 
			
		||||
import { requirementTestData } from '@/test/data/TestData';
 | 
			
		||||
import { useRouter } from "vue-router";
 | 
			
		||||
import { useStore } from "vuex";
 | 
			
		||||
@@ -253,37 +253,9 @@ export default {
 | 
			
		||||
                pageVisible: false,
 | 
			
		||||
                activeTabName: "requirement-detail",
 | 
			
		||||
            });
 | 
			
		||||
        // const query_param = reactive(
 | 
			
		||||
        //     {
 | 
			
		||||
        //         title: "",
 | 
			
		||||
        //         serial_no: "",
 | 
			
		||||
        //         request_people: "",
 | 
			
		||||
        //         commit_start_date: new Date(),
 | 
			
		||||
        //         commit_end_date: new Date(),
 | 
			
		||||
        //         selected_status: "",
 | 
			
		||||
        //     });
 | 
			
		||||
        //从localStorage加载
 | 
			
		||||
        const query_param = reactive(loadRequirementUI());
 | 
			
		||||
 | 
			
		||||
        //已选择的状态项目
 | 
			
		||||
        // let saved_ui = query_param;
 | 
			
		||||
 | 
			
		||||
        // if (saved_ui === null || saved_ui === "{}")
 | 
			
		||||
        // {
 | 
			
		||||
        //     saved_ui = {
 | 
			
		||||
        //         selected_status: [],
 | 
			
		||||
        //     };
 | 
			
		||||
 | 
			
		||||
        //     window.localStorage.setItem("requirement_ui", JSON.stringify(saved_ui));
 | 
			
		||||
        // }
 | 
			
		||||
        // else
 | 
			
		||||
        // {
 | 
			
		||||
        //     saved_ui = JSON.parse(saved_ui);
 | 
			
		||||
        // }
 | 
			
		||||
 | 
			
		||||
        // const selected_status = saved_ui.selected_status;
 | 
			
		||||
        // //请求到的状态数据
 | 
			
		||||
        // const requirement_status = store.state.requirement.status;
 | 
			
		||||
 | 
			
		||||
        /*计算变量 *****************/
 | 
			
		||||
        const tableHeight = computed(() =>
 | 
			
		||||
        {
 | 
			
		||||
@@ -316,7 +288,6 @@ export default {
 | 
			
		||||
 | 
			
		||||
        const addNewRequirement = () =>
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
            router.push({
 | 
			
		||||
                name: "RequirementEditing",
 | 
			
		||||
                query: {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user