Explorar o código

评估模块前端问题修复

lizhenhao %!s(int64=2) %!d(string=hai) anos
pai
achega
a238f8ee4b

+ 10 - 4
src/views/finance/invoice/InvoiceList.vue

@@ -157,7 +157,7 @@
       </el-row>
     </el-form>
     <div class="jp-table" style="">
-      <vxe-toolbar :refresh="{query: refreshList}" export custom>
+      <vxe-toolbar ref="toolbarRef" :refresh="{query: refreshList}" export custom>
         <template #buttons>
           <el-button v-if="hasPermission('finance:invoice:add')" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
 <!--          <el-button v-if="hasPermission('finance:invoice:del')" type="danger"   size="small" icon="el-icon-delete" @click="del()" :disabled="$refs.invoiceTable && $refs.invoiceTable.getCheckboxRecords().length === 0" plain>删除</el-button>-->
@@ -348,9 +348,15 @@
       ProgramPageForm,
       ProgramForm
     },
-    mounted () {
-      this.refreshList()
-    },
+	  mounted() {
+		  this.$nextTick(() => {
+			  // 将表格和工具栏进行关联
+			  const $table = this.$refs.invoiceTable;
+			  const $toolbar = this.$refs.toolbarRef;
+			  $table.connect($toolbar);
+		  });
+		  this.refreshList();
+	  },
     activated () {
       this.refreshList()
     },

+ 10 - 4
src/views/program/registered/ProjectList.vue

@@ -51,7 +51,7 @@
     </el-form>
 
     <div class="jp-table" >
-      <vxe-toolbar :refresh="{query: refreshList}" export custom>
+      <vxe-toolbar ref="toolbarRef" :refresh="{query: refreshList}" export custom>
         <template #buttons>
           <el-button v-if="hasPermission('program:registered:add')" type="primary" icon="el-icon-plus" @click="start()">新建</el-button>
           <el-button v-if="hasPermission('program:registered:del')" type="danger"   icon="el-icon-delete" @click="deleteAll()" :disabled="$refs.typeDictTable && $refs.typeDictTable.getCheckboxRecords().length === 0" plain>删除</el-button>
@@ -318,9 +318,15 @@
       ProjectFormUpdate,
       UserSelect
     },
-    mounted () {
-      this.refreshList()
-    },
+	  mounted() {
+		  this.$nextTick(() => {
+			  // 将表格和工具栏进行关联
+			  const $table = this.$refs.typeDictTable;
+			  const $toolbar = this.$refs.toolbarRef;
+			  $table.connect($toolbar);
+		  });
+		  this.refreshList();
+	  },
     activated () {
       this.is()
       this.refreshList()

+ 10 - 4
src/views/reimbursement/info/InfoList.vue

@@ -85,7 +85,7 @@
     </el-form>
 
     <div class="jp-table" style="">
-      <vxe-toolbar :refresh="{query: refreshList}" export custom>
+      <vxe-toolbar ref="toolbarRef" :refresh="{query: refreshList}" export custom>
         <template #buttons>
           <el-button v-if="hasPermission('reimbursement:info:add')" type="primary" icon="el-icon-plus" @click="add()">新建</el-button>
           <el-button v-if="hasPermission('reimbursement:info:del')" type="danger" icon="el-icon-delete" @click="del()" :disabled="$refs.infoTable && $refs.infoTable.getCheckboxRecords().length === 0" plain>删除</el-button>
@@ -250,9 +250,15 @@
       ContractNameForm,
       ProjectListForm
     },
-    mounted () {
-      this.refreshList()
-    },
+	  mounted() {
+		  this.$nextTick(() => {
+			  // 将表格和工具栏进行关联
+			  const $table = this.$refs.infoTable;
+			  const $toolbar = this.$refs.toolbarRef;
+			  $table.connect($toolbar);
+		  });
+		  this.refreshList();
+	  },
     activated () {
       this.refreshList()
     },

+ 2 - 1
src/views/workClient/WorkClientList.vue

@@ -39,6 +39,7 @@
             placement="bottom-start"
             v-model="searchForm.createDates"
             type="datetimerange"
+			value-format="YYYY-MM-DD HH:mm:ss"
             range-separator="至"
             start-placeholder="开始日期"
             end-placeholder="结束日期">
@@ -72,7 +73,7 @@
         </el-form-item>
 
         <el-form-item v-if="showHideItem" label="创建人" prop="createById">
-          <UserSelect :limit='1' :readonly="true" :userName="applyUserName" @getValue='(value, label) => {searchForm.createById = value,applyUserName  = label}'></UserSelect>
+          <UserSelect :limit='1' :readonly="true" :modelValue="searchForm.createById" @update:modelValue='(value, label) => {searchForm.createById = value}'></UserSelect>
         </el-form-item>
 
 <!--        <el-form-item label="代表方" prop="deputy">-->