fuliqi
2024-09-04 8e2a3bde018d84c7316d78939b022a93841ff5b9
src/views/system/contract/contract/index.vue
@@ -31,7 +31,7 @@
          plain
          icon="el-icon-plus"
          size="mini"
          v-hasPermi="['system:contract:import']"
          v-hasPermi="['system:contract:add']"
          @click="handleImport"
          >新增</el-button
        >
@@ -115,6 +115,7 @@
                  </el-tooltip>
                </div>
              </span>
              <el-empty v-if="moneyRules.length == 0" :image-size="100" />
            </div>
          </el-collapse-item>
          <el-form-item label="合同附件" prop="attachment" class="top">
@@ -474,11 +475,13 @@
    getRuleList(item) {
      getRuleListByContractId(item.id).then((response) => {
        this.ruleData = response.data;
        this.ruleName = this.ruleData.map((item) => {
          return item.ruleName;
        });
        this.ruleName = [...new Set(this.ruleName)];
        console.log('this.ruleName', this.ruleName);
        if (this.ruleData) {
          this.ruleName = this.ruleData.map((item) => {
            return item.ruleName;
          });
          this.ruleName = [...new Set(this.ruleName)];
          console.log('this.ruleName', this.ruleName);
        }
        this.form.id = item.id;
        this.contractInfo = item;
      });