rkljw 6 ヶ月 前
コミット
b1dd1e13c1

+ 4 - 0
src/api/public.js

@@ -45,4 +45,8 @@ export default {
   downloadFile(parames) {
     return request.get("/public/downloadFile",parames)
   },
+  //检测是否被处理
+  checkMeasure(parames) {
+    return request.post("/public/checkMeasure",parames)
+  },
 }

+ 4 - 4
src/utils/config.js

@@ -7,19 +7,19 @@ console.log('判断接口地址',process.env.NODE_ENV, process.env)
 if (process.env.NODE_ENV) {
     if (process.env.VUE_APP_FLAG == 'development') {
 
-        reqSmbUrl = 'http://192.168.1.111:9501'
+        reqSmbUrl = 'http://192.168.1.201:9501'
         appKey = 'cpj2xarlcmmpn'
        
     } else if (process.env.VUE_APP_FLAG == 'test') {
-        reqSmbUrl = 'http://192.168.1.111:9501'
+        reqSmbUrl = 'http://192.168.1.201:9501'
         appKey = 'cpj2xarlcmmpn'
        
     } else if (process.env.VUE_APP_FLAG == 'uat') {
-        reqSmbUrl = 'http://192.168.1.111:9501'
+        reqSmbUrl = 'http://192.168.1.201:9501'
         appKey = 'pkfcgjstp8zy8'
         
     } else if (process.env.VUE_APP_FLAG == 'testsec') {
-        reqSmbUrl = 'http://192.168.1.111:9501'
+        reqSmbUrl = 'http://192.168.1.201:9501'
 
         appKey = 'cpj2xarlcmmpn'
         

+ 12 - 1
src/views/complaint/components/edit.vue

@@ -119,6 +119,7 @@
   </div>
 </template>
 <script>
+import { forEach } from "lodash";
 import Editor from "../../../components/editor/Editor";
 export default {
   components: {
@@ -306,9 +307,19 @@ export default {
             })
       },
       download(file,fileName=''){
+        console.log("点击下载:",file)
+        let fileS = []
+        if(file.length>0){
+            file.forEach((item) => {
+              console.log( JSON.parse(item).fileSrc)
+              fileS.push(JSON.parse(item).fileSrc)
+          });
+        }
+        console.log(fileS)
+        // return false
         let _t = this;
         let parames = {
-            'files':file,
+            'files':fileS,
             'fileName':fileName
         }
 

+ 17 - 3
src/views/complaint/index.vue

@@ -222,6 +222,7 @@
             'nature_level':this.natureLevelID,
             'type':this.letterTypeID,
             'status':this.statusID,
+            'is_admin':'1'
            
         }
         console.log("参数:",parames)
@@ -325,10 +326,23 @@
       },
       //更新分类
       updateClick(row,index){
+        //验证操作人信息 和 登陆人信息是否匹配 匹配才可修改
+        let parames = {
+          'id':row.id
+        }
+        this.$api.publicApi.checkMeasure(parames).then(res=>{
+           if(res.code == 200){
+              this.ArticleDataForm = row
+              this.rowIndex = index
+              this.ArticleDialogShow = true
+           }else{
+              this.$message.error("已经被其他人处理")
+           }
+        })
+        
         console.log(row)
-        this.ArticleDataForm = row
-        this.rowIndex = index
-        this.ArticleDialogShow = true
+     
+
       },
       // ArticleDialogShow(){
       //   this.isloading = false

+ 1 - 1
src/views/login/index.vue

@@ -63,7 +63,7 @@
                   document.setCookie("token",res.data.token,86400)
               
                   this.$message.success('登录成功')
-                   this.$router.push("/left/websiteList")
+                   this.$router.push("/left/complaintList")
                 }else{
                     this.$message.error(res.message)
                 }

+ 1 - 1
vue.config.js

@@ -3,7 +3,7 @@ const path = require("path")
 module.exports = {
   publicPath: '/',
   devServer: {
-    host: '192.168.1.102',
+    host: '192.168.1.201',
     port: 8099,
     // allowedHosts: [
     //   '192.168.131.193:9501'