wuhongyu 5 سال پیش
والد
کامیت
bd715ec883

+ 15 - 2
src/views/adminCenter/duijiehui/detail.vue

@@ -42,6 +42,7 @@ export default {
   created() {
     this.searchinfo();
     this.search();
+    this.searchplace();
   },
   computed: {
     ...mapState(['user']),
@@ -63,6 +64,16 @@ export default {
       this.$set(this, `options`, res.data);
     },
 
+    async searchplace() {
+      if (this.id) {
+        let level = 2;
+        let ress = await this.livefetch(this.id);
+        let parent = ress.data.place;
+        let res = await this.palcequery({ level, parent });
+        this.$set(this, `options`, res.data);
+      }
+    },
+
     async searchinfo() {
       let level = 1;
       let res = await this.palcequery({ level });
@@ -72,8 +83,10 @@ export default {
     },
 
     async search() {
-      let res = await this.livefetch(this.id);
-      this.$set(this, `form`, res.data);
+      if (this.id) {
+        let res = await this.livefetch(this.id);
+        this.$set(this, `form`, res.data);
+      }
     },
     async onSubmit({ data }) {
       console.log(data);

+ 12 - 2
src/views/adminCenter/duijiehui/examine.vue

@@ -42,6 +42,7 @@ export default {
   created() {
     this.searchinfo();
     this.search();
+    this.searchplace();
   },
   computed: {
     ...mapState(['user']),
@@ -63,11 +64,20 @@ export default {
       this.$set(this, `options`, res.data);
     },
 
+    async searchplace() {
+      if (this.id) {
+        let level = 2;
+        let ress = await this.livefetch(this.id);
+        let parent = ress.data.place;
+        let res = await this.palcequery({ level, parent });
+        this.$set(this, `options`, res.data);
+      }
+    },
+
     async searchinfo() {
       let level = 1;
       let res = await this.palcequery({ level });
-      console.log(res.data);
-      console.log(res.data);
+
       this.$set(this, `option`, res.data);
     },
 

+ 2 - 3
src/views/adminCenter/duijiehui/parts/applyList.vue

@@ -2,7 +2,7 @@
   <div id="auditList">
     <el-row>
       <el-col :span="24" class="info">
-        <el-col class="newuser"><van-button type="info" size="small" @click="usersubmit()">新建对接会</van-button> </el-col>
+        <!-- <el-col class="newuser"><van-button type="info" size="small" @click="usersubmit()">新建对接会</van-button> </el-col> -->
         <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
           <p class="textOver">
             <span class="titel">{{ item.user_name }}</span>
@@ -143,8 +143,7 @@ export default {
 }
 .titel {
   display: inline-block;
-  width: 41%;
-
+  width: 65%;
   overflow: hidden;
   text-overflow: ellipsis;
   whitewhite-space: nowrap;

+ 1 - 1
src/views/adminCenter/duijiehui/parts/list.vue

@@ -143,7 +143,7 @@ export default {
 }
 .titel {
   display: inline-block;
-  width: 41%;
+  width: 90%;
   overflow: hidden;
   text-overflow: ellipsis;
   whitewhite-space: nowrap;

+ 2 - 2
src/views/adminCenter/enterpriseProduct/parts/list.vue

@@ -50,8 +50,8 @@ export default {
     ...product(['query', 'update']),
     async searchInfo() {
       if (this.user.role == '4') {
-        let userid = this.user.uid;
-        let res = await this.query({ userid });
+        // let userid = this.user.uid;
+        let res = await this.query();
         this.$set(this, `list`, res.data);
       } else {
         let res = await this.query();

+ 5 - 0
src/views/adminCenter/user/parts/userlist.vue

@@ -58,8 +58,13 @@ export default {
         }
       } else {
         const res = await this.query({ code: this.user.code });
+
         const resTwo = await this.exportuserQuery({ code: this.user.code });
+        console.log(resTwo);
+
         var newData = res.data.concat(resTwo.data);
+        console.log(newData);
+
         if (this.$checkRes(newData)) {
           var arr = newData.filter(item => item.pid == undefined && item.status != '3');
           this.$set(this, `list`, arr);

+ 13 - 3
src/views/user/parts/clickBtn.vue

@@ -17,9 +17,19 @@
           </span>
           <span v-else>
             <van-cell is-link title="用户管理" v-if="oneName == '用户管理'" @click="$router.push({ path: '/adminCenter/user/index' })" />
-            <van-cell is-link title="对接会管理" v-if="twoName == '对接会'" />
-            <van-cell is-link title="产品供求审核管理" v-if="threeName == '产品供求审核管理'" />
-            <van-cell is-link title="产品供求交易状态审核管理" v-if="fourName == '产品供求交易状态审核管理'" />
+            <van-cell is-link title="对接会管理" v-if="twoName == '对接会'" @click="$router.push({ path: '/adminCenter/duijiehui/index' })" />
+            <van-cell
+              is-link
+              title="产品供求审核管理"
+              v-if="threeName == '产品供求审核管理'"
+              @click="$router.push({ path: '/adminCenter/enterpriseProduct/index' })"
+            />
+            <van-cell
+              is-link
+              title="产品供求交易状态审核管理"
+              v-if="fourName == '产品供求交易状态审核管理'"
+              @click="$router.push({ path: '/adminCenter/transaction/index' })"
+            />
           </span>
         </span>
       </el-col>