优化基地区级审核
This commit is contained in:
		@@ -254,6 +254,7 @@ export default {
 | 
			
		||||
  name: "Jdcx",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      
 | 
			
		||||
      // 遮罩层
 | 
			
		||||
      loading: true,
 | 
			
		||||
      // 选中数组
 | 
			
		||||
@@ -466,7 +467,7 @@ export default {
 | 
			
		||||
        jdxshr: null,
 | 
			
		||||
        jdxshzt: null,
 | 
			
		||||
        sbly: null,
 | 
			
		||||
        qjshr: null,
 | 
			
		||||
        qjshr: 2,
 | 
			
		||||
        qjshzt: null,
 | 
			
		||||
        qjshyj: null,
 | 
			
		||||
        jdpx: null,
 | 
			
		||||
@@ -511,7 +512,6 @@ export default {
 | 
			
		||||
      const id = row.id || this.ids;
 | 
			
		||||
      getJdcx(id).then((response) => {
 | 
			
		||||
        this.form = response.data;
 | 
			
		||||
        console.log(this.form);
 | 
			
		||||
        this.open = true;
 | 
			
		||||
        this.title = "修改基地区级审核";
 | 
			
		||||
      });
 | 
			
		||||
@@ -521,6 +521,11 @@ export default {
 | 
			
		||||
      this.$refs["form"].validate((valid) => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          if (this.form.id != null ) {
 | 
			
		||||
            if (this.form.qjshzt == "0") {
 | 
			
		||||
              this.form.dqzt = "8";
 | 
			
		||||
            } else if (this.form.qjshzt == "1") {
 | 
			
		||||
              this.form.dqzt = "9";
 | 
			
		||||
            }
 | 
			
		||||
            updateJdcx(this.form).then((response) => {
 | 
			
		||||
              if (response.code === 200) {
 | 
			
		||||
                this.msgSuccess("修改成功");
 | 
			
		||||
@@ -529,6 +534,11 @@ export default {
 | 
			
		||||
              }
 | 
			
		||||
            });
 | 
			
		||||
          } else {
 | 
			
		||||
            if (this.form.qjshzt == "0") {
 | 
			
		||||
              this.form.dqzt = "8";
 | 
			
		||||
            } else if (this.form.qjshzt == "1") {
 | 
			
		||||
              this.form.dqzt = "9";
 | 
			
		||||
            }
 | 
			
		||||
            addJdcx(this.form).then((response) => {
 | 
			
		||||
              if (response.code === 200) {
 | 
			
		||||
                this.msgSuccess("新增成功");
 | 
			
		||||
 
 | 
			
		||||
@@ -261,7 +261,7 @@ export default {
 | 
			
		||||
  methods: {
 | 
			
		||||
    isShow(row) {
 | 
			
		||||
      console.log(row.dqzt);
 | 
			
		||||
      if (row.dqzt == "2" || row.dqzt == "9") {
 | 
			
		||||
      if (row.dqzt == "2" || row.dqzt == "9" || row.dqzt == "8") {
 | 
			
		||||
        return false;
 | 
			
		||||
      } else {
 | 
			
		||||
        return true;
 | 
			
		||||
@@ -381,7 +381,6 @@ export default {
 | 
			
		||||
      this.title = "基地校初选";
 | 
			
		||||
      listJxjsjbxx(null).then((response) => {
 | 
			
		||||
        this.jss = response.rows;
 | 
			
		||||
        console.log(this.jss + '-------------');
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
    /** 修改按钮操作 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user