qinzhipeng_v 5 年之前
父節點
當前提交
35ff520fbe
共有 2 個文件被更改,包括 3 次插入11 次删除
  1. 3 2
      src/views/Platform/bugManage/bugCreate.vue
  2. 0 9
      src/views/Platform/bugManage/bugUpdate.vue

+ 3 - 2
src/views/Platform/bugManage/bugCreate.vue

@@ -236,7 +236,8 @@ export default {
       accessory: '',
       userInformation: localStorage.getItem('username'),
       userNames: localStorage.getItem('realname'),
-      fileDbList: [{ name: '智慧平台.png', url: 'http://pt-starimg.didistatic.com/static/starimg/node/qo4sKioLko1571277086594.png' }, { name: '智慧平台.png', url: 'http://pt-starimg.didistatic.com/static/starimg/node/qo4sKioLko1571277086594.png' }]
+      fileDbList: []
+      // fileDbList: [{ name: '智慧平台.png', url: 'http://pt-starimg.didistatic.com/static/starimg/node/qo4sKioLko1571277086594.png' }, { name: '智慧平台.png', url: 'http://pt-starimg.didistatic.com/static/starimg/node/qo4sKioLko1571277086594.png' }]
     }
   },
   created() {
@@ -255,8 +256,8 @@ export default {
         this.fileDbList.push({ 'name': a.name, 'url': 'http:' + a.response.url })
       }
       this.accessory = JSON.stringify(this.fileDbList)
+      console.log(this.accessory)
       // this.$set(this.form, 'accessory', JSON.stringify(this.fileDbList))
-      // localStorage.setItem('updata', JSON.stringify(this.fileDbList))
       // }, 500)
     },
     async bugListSelect() {

+ 0 - 9
src/views/Platform/bugManage/bugUpdate.vue

@@ -254,16 +254,8 @@ export default {
   created() {
     this._initBegin()
     this.taskIdGet()
-    // this.getLocalStor()
   },
   methods: {
-    // getLocalStor() {
-    //   var str = localStorage.getItem('updata')
-    //   var obj = JSON.parse(str.split('{}')[0])
-    //   for (var a of obj) {
-    //     this.uptataKey.push(a)
-    //   }
-    // },
     submitUpload() {
       this.$refs.upload.submit()
     },
@@ -274,7 +266,6 @@ export default {
         this.fileDbList.push({ 'name': a.name, 'url': 'http:' + a.response.url })
       }
       this.accessory = JSON.stringify(this.fileDbList)
-      // this.$set(this.form, 'accessory', JSON.stringify(this.fileDbList))
     },
     async _initBegin() {
       await bugGetEnum().then(res => {