zhangqiOMG %!s(int64=2) %!d(string=hai) anos
pai
achega
9d841e7e98

+ 2 - 1
src/HManagement/marketing2/agent/details/index.vue

@@ -6,7 +6,8 @@
     formPath="marketing2/agent"
     :editData="mainData"
     :mainAreaData="mainAreaData" 
-    turnPageId="20221011144903" 
+    turnPageId="20221011144903"
+    delApiId="20221011145003"
     idname="sa_agentsid"
     :tags="[]"
     :tabs="['经销商团队','代理区域','营销类别','账户余额查询','地址管理','联系人管理']"

+ 1 - 1
src/HManagement/marketing2/saler/index.vue

@@ -13,7 +13,7 @@
         :autoQuery="false"
         :options="options"
         :detailPath="{
-        path:'/saler_detail'
+          path:'/saler_detail'
         }">
         <div slot="custom"></div>
         <template v-slot:tbList="scope">

+ 6 - 2
src/components/normal-basic-layout/details/index.vue

@@ -20,7 +20,7 @@
       </div>
       <div>
         <el-descriptions :column="5" size="mini">
-          <el-descriptions-item content-class-name="my-content" v-for="item in mainAreaData" :key="item.index" :label="item.label">{{item.value?item.value:'--'}}</el-descriptions-item>
+          <el-descriptions-item label-class-name="my-label-layout" content-class-name="my-content" v-for="item in mainAreaData" :key="item.index" :label="item.label">{{item.value?item.value:'--'}}</el-descriptions-item>
         </el-descriptions>
       </div>
     </div>
@@ -132,7 +132,6 @@ export default {
         const res = await this.$api.requested(param)
         this.tool.showMessage(res,()=>{
           this.$store.dispatch('changeDetailDrawer',false)
-          this.$router.go(-1)
         })
       }).catch((err) => {
         
@@ -170,6 +169,10 @@ export default {
   display: inline-block;
   width: 70px;
 }
+.my-label-layout{
+  font-size: 14px;
+  color: #999;
+}
 </style>
 <style scoped>
 .appname{
@@ -187,4 +190,5 @@ export default {
   position: sticky;
   top:0;
 }
+
 </style>

+ 1 - 2
src/components/normal-basic-layout/drawerDetail/drawer.vue

@@ -1,6 +1,5 @@
 <template>
   <el-drawer
-    title="我是标题"
     :visible.sync="closeDrawerTemp"
     :with-header="false"
     direction="rtl"
@@ -29,8 +28,8 @@ export default {
   methods:{
     closeDrawer () {
       this.$store.dispatch('changeDetailDrawer',false)
-      this.$emit('onSuccess')
       this.$router.go(-1)
+      this.$emit('onSuccess')
     }
   }
 }

+ 0 - 26
src/components/normal-basic-layout/drawerDetail/index.vue

@@ -1,35 +1,18 @@
 <template>
   <div>
     <el-button size="small" type="text" @click="onShow">详 情</el-button>
-    <el-drawer
-      title="我是标题"
-      :visible.sync="drawer"
-      :with-header="false"
-      direction="rtl"
-      size="90%"
-      append-to-body
-      @close="closeDrawer">
-      <div class="detail__panel">
-        <router-view v-if = "drawer"/>
-      </div>
-    </el-drawer>
   </div>
 </template>
 
 <script>
-import  {mapGetters} from 'vuex'
 export default {
   props:['data','detailPath','idName'],
   components:{
   },
   computed:{
-    ...mapGetters({
-      closeDrawerTemp:'closeDrawerTemp'
-    })
 	},
   data () {
     return {
-      drawer:false
     }
   },
   methods:{
@@ -43,18 +26,9 @@ export default {
       let query = {id:this.data[key],rowindex:this.data.rowindex}
       this.$router.push({path:this.detailPath.path,query:Object.assign({},query,this.detailPath.param)})
       this.$store.dispatch('changeDetailDrawer',true)
-    },
-    closeDrawer () {
-      this.$router.go(-1)
-      this.$store.dispatch('changeDetailDrawer',false)
-      this.$emit('onSuccess')
     }
   },
   watch:{
-    closeDrawerTemp (val) {
-      console.log(val,'drawer')
-      val?this.drawer = false:true
-    }
   }
 }
 

+ 1 - 1
src/components/normal-basic-layout/index.vue

@@ -67,7 +67,7 @@
         </div>
       </div>
     </div>
-    <drawer></drawer>
+    <drawer @onSuccess="listData"></drawer>
   </div>
 </template>
 

+ 1 - 1
src/style/style.css

@@ -166,7 +166,7 @@ ul{
 }
 .my-content{
   font-size: 14px;
-  color:#999 !important;
+  color:#666 !important;
   width: 800px;
 }
 .my-label__title{