Handy_Cao il y a 1 an
Parent
commit
dd66ea939b
1 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. 3 4
      src/packages/pc/views/report/profitshare/index.vue

+ 3 - 4
src/packages/pc/views/report/profitshare/index.vue

@@ -25,7 +25,7 @@
                 </el-form-item>
                 <el-form-item>
                     <el-button type="primary" @click="onSearch">查询</el-button>
-                    <el-button type="danger" @click="onSearch(true)"> 重置</el-button>
+                    <el-button type="danger" @click="onSearch(false)"> 重置</el-button>
                 </el-form-item>
             </el-form>
         </template>
@@ -140,8 +140,7 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
 
 // 表单验证规则
 const formRules: FormRules = {
-    goodsid: [{ required: true }],
-    date: [{
+    cycletime: [{
         required: true,
         validator: (rule, value, callback) => {
             if (dateValue.value.length === 2) {
@@ -163,7 +162,7 @@ const openComponentOnClick = (code: string) => {
 
 // 处理请求参数
 const processRequiredParams = (callback: (params: Model.ShareAmountQueryReq) => void, clear = false) => {
-    if (clear) {
+    if (!clear) {
         queryParams.cycletime = ''
         queryParams.cycletype = 0
         queryParams.isson = 0