yz3456
2024-05-27 ce09e7d8c54d1868fe9a589caec577ddb0aeaf52
ruoyi-ui/src/views/meeting/index.vue
@@ -222,7 +222,9 @@
      </el-table-column>
      <el-table-column label="状态" prop="statu" sortable align="center">
        <template slot-scope="scope">{{scope.row.statu===1? '同意': '拒绝'}}</template>
        <!-- <template slot-scope="scope">{{scope.row.statu===1? '同意': '拒绝'}}</template> -->
        <template slot-scope="scope">{{scope.row.statu ===3 ? '待审批' : (scope.row.statu===1? '同意': '拒绝')}}</template>
        <!-- scope.row.statu ==='待审批' ? '待审批' : (scope.row.statu===1? '同意': '拒绝') -->
      </el-table-column>
      <el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
@@ -287,7 +289,7 @@
          <el-input v-model="formDat.applyApart" placeholder="请输入申请家庭或部门" clearable :style="{width: '100%'}">
          </el-input>
        </el-form-item>
        <el-form-item label="是否拜访水牌" prop="isPlacebrand">
        <el-form-item label="是否摆放水牌" prop="isPlacebrand">
          <el-select v-model="formDat.isPlacebrand" placeholder="请选择" clearable :style="{width: '100%'}">
            <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value"
            ></el-option>
@@ -301,10 +303,11 @@
          <el-input v-model="formDat.connPhone" placeholder="请输入联系电话" clearable :style="{width: '100%'}"></el-input>
        </el-form-item>
        <el-form-item label="状态" prop="statu">
          <el-select v-model="formDat.statu" placeholder="请选择" clearable :style="{width: '100%'}">
          <!-- <el-select v-model="formDat.statu" placeholder="请选择" clearable :style="{width: '100%'}">
            <el-option v-for="(item, index) in typeOptions2" :key="index" :label="item.label" :value="item.value"
            ></el-option>
          </el-select>
          </el-select> -->
          <el-input placeholder="待审核" :disabled='true'></el-input>
        </el-form-item>
      </el-form>
@@ -415,7 +418,7 @@
        }],
        isPlacebrand: [{
          required: true,
          message: '请选择是否拜访水牌',
          message: '请选择是否摆放水牌',
          trigger: 'blur'
        }],
        connPerson: [{
@@ -428,11 +431,11 @@
          message: '请输入联系电话',
          trigger: 'blur'
        }],
        statu: [{
          required: true,
          message: '请选择状态',
          trigger: 'blur'
        }],
        // statu: [{
        //   // required: true,
        //   message: '请选择状态',
        //   trigger: 'blur'
        // }],
      },
        typeOptions: [
@@ -487,6 +490,28 @@
        this.queryParams.pageNum = 1;
        this.getList();
      },
      reset() {
        if (this.$refs.menu != undefined) {
          this.$refs.menu.setCheckedKeys([]);
        }
        this.menuExpand = false,
          this.menuNodeAll = false,
          this.deptExpand = true,
          this.deptNodeAll = false,
          this.form = {
            roleId: undefined,
            roleName: undefined,
            roleKey: undefined,
            roleSort: 0,
            status: "0",
            menuIds: [],
            deptIds: [],
            menuCheckStrictly: true,
            deptCheckStrictly: true,
            remark: undefined
          };
        this.resetForm("elForm");
      },
      /** 重置按钮操作 */
      resetQuery() {
        this.dateRange = [];
@@ -496,17 +521,20 @@
      newRequest(){
        this.reset();
        this.open = true;
        this.title = "新申请"
      },
      cancel() {
        this.open = false;
        // this.reset();
        this.reset();
      },
submitDataScope: function() {
      this.$refs["elForm"].validate(valid => {
        // alert(valid)
        if (valid) {
          // console.log(this.formDat,'formDat')
          this.formDat.statu = 3
          addMeeting(this.formDat).then(response => {
            this.$modal.msgSuccess("新增成功");
            this.open = false;