wenhongquan 3 år sedan
förälder
incheckning
7691c74ce7
3 ändrade filer med 6 tillägg och 8 borttagningar
  1. 0 2
      src/views/login.vue
  2. 5 5
      src/views/task/list/index.vue
  3. 1 1
      vite.config.js

+ 0 - 2
src/views/login.vue

@@ -108,14 +108,12 @@ function ddtologin(){
       corpId: "dingb9991e173e3ef14fa1320dcb25e91351",
       corpId: "dingb9991e173e3ef14fa1320dcb25e91351",
       onSuccess: function(result) {
       onSuccess: function(result) {
         store.dispatch("DDTOLogin", result.code).then(() => {
         store.dispatch("DDTOLogin", result.code).then(() => {
-          debugger
           router.push({ path: redirect.value || "/" });
           router.push({ path: redirect.value || "/" });
         }).catch((e) => {
         }).catch((e) => {
           console.log( e)
           console.log( e)
           loading.value = false;
           loading.value = false;
         });
         });
 
 
-        console.log(result);
       },
       },
       onFail : function(err) {}
       onFail : function(err) {}
     })
     })

+ 5 - 5
src/views/task/list/index.vue

@@ -82,7 +82,7 @@
               </el-button>
               </el-button>
               </el-form-item>
               </el-form-item>
               <el-form-item>
               <el-form-item>
-                <el-button type="success" @click="addtask">新增</el-button>
+                <el-button type="success" @click="addtask" v-if="route.params.status==1">新增</el-button>
               </el-form-item>
               </el-form-item>
             </div>
             </div>
           </el-col>
           </el-col>
@@ -141,18 +141,18 @@
            </el-table-column>
            </el-table-column>
           <el-table-column prop="address" label="操作" :width="currentstatus==6?'400px':''">
           <el-table-column prop="address" label="操作" :width="currentstatus==6?'400px':''">
             <template #default="scope">
             <template #default="scope">
-              <el-button text size="small" @click.stop="edittask(scope.row)"
+              <el-button text size="small" v-if="route.params.status!=6" @click.stop="edittask(scope.row)"
                 >修改
                 >修改
               </el-button>
               </el-button>
-              <el-popconfirm title="确定删除?" @confirm="deltask(scope.row)">
+              <el-popconfirm title="确定删除?" @confirm="deltask(scope.row)" v-if="route.params.status==1">
                 <template #reference>
                 <template #reference>
                   <el-button text size="small" @click.stop="">删除</el-button>
                   <el-button text size="small" @click.stop="">删除</el-button>
                 </template>
                 </template>
               </el-popconfirm>
               </el-popconfirm>
-               <el-button v-if="scope.row.status==6" text size="small" @click.stop="exportexcel(scope.row)"
+               <el-button v-if="scope.row.status==6 && route.params.status==6" text size="small" @click.stop="exportexcel(scope.row)"
                 >导出工单
                 >导出工单
               </el-button>
               </el-button>
-              <el-button v-if="scope.row.status==6" text size="small" @click.stop="exportexcel1(scope.row)"
+              <el-button v-if="scope.row.status==6 && route.params.status==6" text size="small" @click.stop="exportexcel1(scope.row)"
                 >导出热线照片
                 >导出热线照片
               </el-button>
               </el-button>
 
 

+ 1 - 1
vite.config.js

@@ -38,7 +38,7 @@ export default defineConfig(({ mode, command }) => {
             proxy: {
             proxy: {
                 // 'http://nnbpbg.xt.wenhq.top:8083'
                 // 'http://nnbpbg.xt.wenhq.top:8083'
                 "/dev-api": {
                 "/dev-api": {
-                    target: "http://192.168.100.3:8080/api",
+                    target: "http://localhost:8080/api",
                     // target:"http://nnbpbg.xt.wenhq.top:8083/api",
                     // target:"http://nnbpbg.xt.wenhq.top:8083/api",
                     changeOrigin: true,
                     changeOrigin: true,
                     rewrite: (p) => p.replace(/^\/dev-api/, ""),
                     rewrite: (p) => p.replace(/^\/dev-api/, ""),