chenrui 1 år sedan
förälder
incheckning
1e665e71e3

+ 10 - 11
src/views/promotionRulesManagement/dealerPromotions/list.vue

@@ -289,6 +289,7 @@ export default {
       loadData: parameter => {
         this.disabled = true
         this.spinning = true
+        console.log('1111111111:', this.queryParam)
         return dealerPromotionList(Object.assign(parameter, this.queryParam)).then(res => {
           let data
           if (res.status == 200) {
@@ -523,18 +524,25 @@ export default {
     },
     //  重置
     resetSearchForm () {
+      // 获取创建人默认值
+      const creatorObj = this.$store.state.user.info
+      const newObj = {
+        key: creatorObj.userid,
+        name: creatorObj.userNameCN,
+        label: creatorObj.userNameCN
+      }
+      this.$refs.creatorList.setDefaultVal(newObj)
       this.queryParam = {
         beginDate: undefined,
         endDate: undefined,
         queryWord: '',
         enabledFlag: undefined, // 发布状态
         state: undefined,
-        creatorId: undefined,
+        creatorId: creatorObj.userid,
         dealerAuditFlag: undefined
       }
       this.$refs.rangeDate.resetDate()
       this.$refs.table.refresh(true)
-      // this.$refs.dealerSubareaScopeList.resetForm()
     },
 
     pageInit () {
@@ -545,16 +553,7 @@ export default {
       this.openModal = false
       this.openDetailModal = false
       this.itemSn = null
-      this.rowSelectionInfo = null
       this.$refs.table.clearTable()
-      // 获取创建人默认值
-      const creatorObj = this.$store.getters.userInfo
-      const newObj = {
-        key: creatorObj.userid,
-        name: creatorObj.rootOrgName,
-        label: creatorObj.rootOrgName
-      }
-      this.$refs.creatorList.setDefaultVal(newObj)
     },
     setTableH () {
       const tableSearchH = this.$refs.tableSearch.offsetHeight

+ 1 - 1
src/views/promotionRulesManagement/dealerPromotions/lookUpCustomersModal.vue

@@ -63,7 +63,7 @@
           </template>
         </s-table>
       </a-card>
-      <div style="text-align:right;color:#666;" v-if="showType ==='isEdit' || (showType === 'isAudit'&& !$hasPermissions('B_dealerAudit'))"><span v-if="showType === 'isAudit'&& !$hasPermissions('B_dealerAudit')">待审核,</span>增加的客户显示红色,删除的客户显示绿色</div>
+      <div style="text-align:right;color:#666;" v-if="showType ==='isEdit' || showType === 'isAudit'"><span v-if="showType === 'isAudit'">待审核,</span>增加的客户显示红色,删除的客户显示绿色</div>
       <div class="btn-cont" v-if="showType ==='isEdit'">
         <a-button type="primary" class="button-warning" @click="editDealerModal">修改</a-button>
         <a-button type="primary" style="margin-left: 15px;" :loading="spinning" id="promotion-modal-save" @click="submitAudit">提交审核</a-button>