Просмотр исходного кода

收文登记部门负责人单选

xieyn 1 год назад
Родитель
Сommit
a850c6e02c
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      src/views/oa/modules/ReceivedMainModal.vue

+ 6 - 5
src/views/oa/modules/ReceivedMainModal.vue

@@ -51,7 +51,6 @@
               <j-upload v-decorator="['file', validatorRules.file]" :trigger-change="true"></j-upload>
             </a-form-item>
           </a-col>
-
         </a-row>
       </a-form>
 
@@ -67,13 +66,13 @@
             :rowNumber="true"
             :rowSelection="true"
             :actionButton="true">
-            <template v-slot:departHead="props">
-              <j-select-user-by-dep  @change="headChange(props)" v-model="props.text" :trigger-change="true"></j-select-user-by-dep>
-            </template>
-
             <template v-slot:depart="props">
               <j-select-depart  @change="departChange(props)" v-model="props.text" :trigger-change="true"></j-select-depart>
             </template>
+
+            <template v-slot:departHead="props">
+              <j-select-user-by-dep :multi="false"  @change="headChange(props)" v-model="props.text" :trigger-change="true"></j-select-user-by-dep>
+            </template>
           </j-editable-table>
         </a-tab-pane>
       </a-tabs>
@@ -209,6 +208,7 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin'
         if (this.model.id) {
           let params = { id: this.model.id }
           this.requestSubTableData(this.url.receivedDetail.list, params, this.receivedDetailTable)
+          // console.log("this.receivedDetailTable",this.receivedDetailTable);
         }
       },
       /** 整理成formData */
@@ -227,6 +227,7 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin'
      },
       //部门负责人插槽更改数据
       headChange(props) {
+        console.log("props",props)
         let values = [
           {
             rowKey: props.rowId,