Prechádzať zdrojové kódy

bug3347点击修改会记录数据,修改后需要恢复默认值,否则导致后面模块题目被删除

Luolei1992 5 rokov pred
rodič
commit
dfdceddbd3
4 zmenil súbory, kde vykonal 12 pridanie a 14 odobranie
  1. 4 3
      config/index.js
  2. 5 11
      package-lock.json
  3. 2 0
      src/components/MainPage.vue
  4. 1 0
      src/store.js

+ 4 - 3
config/index.js

@@ -5,9 +5,9 @@
 const path = require('path')
 //const proxy_path = 'http://192.168.2.121:5050';
 // const proxy_path = 'http://192.168.2.236:5050';
-const proxy_path = 'http://192.168.2.241:5050';
+// const proxy_path = 'http://192.168.2.241:5050';
 // const proxy_path = 'http://223.93.170.82:23650';
-// const proxy_path = 'http://223.93.170.82:24182';
+const proxy_path = 'http://223.93.170.82:24182';
 
 module.exports = {
   dev: {
@@ -24,7 +24,8 @@ module.exports = {
 
     // Various Dev Server settings
     port: 8083, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
-    host: '192.168.3.106',
+    host: '192.168.0.101',
+    // host: '192.168.3.106',
     autoOpenBrowser: true,
     errorOverlay: true,
     notifyOnErrors: true,

+ 5 - 11
package-lock.json

@@ -306,8 +306,7 @@
     "assert-plus": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
-      "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
-      "optional": true
+      "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
     },
     "assign-symbols": {
       "version": "1.0.0",
@@ -2107,7 +2106,6 @@
       "version": "1.0.8",
       "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
       "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
-      "optional": true,
       "requires": {
         "delayed-stream": "~1.0.0"
       }
@@ -3433,8 +3431,7 @@
     "delayed-stream": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
-      "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
-      "optional": true
+      "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
     },
     "depd": {
       "version": "1.1.2",
@@ -4172,8 +4169,7 @@
     "extsprintf": {
       "version": "1.3.0",
       "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
-      "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
-      "optional": true
+      "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
     },
     "fast-deep-equal": {
       "version": "2.0.1",
@@ -5891,8 +5887,7 @@
     "jsbn": {
       "version": "0.1.1",
       "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
-      "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
-      "optional": true
+      "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
     },
     "json-loader": {
       "version": "0.5.7",
@@ -11051,8 +11046,7 @@
     "tweetnacl": {
       "version": "0.14.5",
       "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
-      "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
-      "optional": true
+      "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
     },
     "type": {
       "version": "1.0.1",

+ 2 - 0
src/components/MainPage.vue

@@ -361,6 +361,7 @@ export default {
       this[moduleName] = tmpArr;
       //上传的图片及是否有可上传***答案不显示在预览所以不记录到state.diagnose.text中
       if(this.symptomResult.id!==999999&&this.symptomResult.controlType!=4){
+        // console.log('当前问题单选',this.num-1,this.canceledQa,contentResult.val,contentResult.valp)
         this.$store.commit('setText', { type: this.activeTab,
           text: contentResult.val,
           textP: contentResult.valp,
@@ -392,6 +393,7 @@ export default {
           //console.log(tmpNowItem)
           this.symptomResult = tmpNowItem;
         });
+        this.canceledQa = -1
         this.$nextTick(()=>{
           this.scroll.refresh()
           this.scroll.scrollTo(0, this.scroll.maxScrollY,500)

+ 1 - 0
src/store.js

@@ -298,6 +298,7 @@ const store = new Vuex.Store({
     },
     setText(state,param){
       const type = parseInt(param.type);
+      // console.log(param,787)
       switch(type){
         case moduleCP['symp']:
           // 对象易更新但顺序无法控制