WINDOWS-7IFQK7E\EDY пре 1 година
родитељ
комит
5fc825a9b8

Разлика између датотеке није приказан због своје велике величине
+ 13 - 114
src/stores/user.js


+ 11 - 2
src/views/xsczda/hzlxgl/index.vue

@@ -91,7 +91,10 @@
       </el-form>
       <div slot="footer" class="text-center">
         <el-button @click="formCancel">取 消</el-button>
-        <el-button type="primary" @click="formSubmit('dialogForm')"
+        <el-button
+          type="primary"
+          :disabled="isButton"
+          @click="formSubmit('dialogForm')"
           >确 定</el-button
         >
       </div>
@@ -134,6 +137,7 @@ export default {
         "/xddy/dygl_xsczda_hzlx/import?issubmit=1&token=" +
         token,
       import_type_data: {},
+      isButton: false,
     };
   },
   methods: {
@@ -158,6 +162,7 @@ export default {
     },
     addData() {
       this.title = "添加";
+      this.isButton = false;
       this.dialogForm = {
         hzlx: "",
         jf: "",
@@ -219,6 +224,7 @@ export default {
     editData(item) {
       this.title = "编辑类型";
       this.isEdit = true;
+      this.isButton = false;
       this.dialogFormVisible = true;
       this.id = item.xdxh_id;
       this.dialogForm.hzlx = item.xdxh_lxmc;
@@ -229,6 +235,7 @@ export default {
     formSubmit(formName) {
       this.$refs[formName].validate((valid) => {
         if (valid) {
+          this.isButton = true;
           let data = {
             xdxh_lxmc: this.dialogForm.hzlx,
             xdxh_jf: this.dialogForm.jf,
@@ -241,6 +248,7 @@ export default {
                   message: "类型添加成功!",
                   type: "success",
                 });
+                this.isButton = true;
                 this.dialogFormVisible = false;
                 this.getListData();
               } else {
@@ -269,6 +277,8 @@ export default {
               }
             });
           }
+        } else {
+          this.isButton = false;
         }
       });
     },
@@ -286,7 +296,6 @@ export default {
         this.multipleSelection.join(",");
       window.open(link, "_blank");
       console.log(link);
-     
     },
   },
   mounted() {

+ 6 - 0
src/views/xshjgl/jlcx/index.vue

@@ -85,6 +85,12 @@
       </el-table-column>
       <el-table-column label="颁奖(授予)部门" prop="xdxr_bjsybm" width="200">
       </el-table-column>
+      <el-table-column label="状态" prop="isdelete" width="100">
+        <template slot-scope="scope">
+          <span v-if="scope.row.isdelete == 1">撤销</span>
+          <span v-else>正常</span>
+        </template>
+      </el-table-column>
     </el-table>
     <footer
       class="flex-item-none"

+ 2 - 1
src/views/xshjgl/jlgl/rygl/api.js

@@ -10,7 +10,8 @@ export const ry_list = (data = {}) =>
             xdxr_xsxh: data.xdxr_xsxh,
             xdxr_jldj: data.xdxr_jldj,
             xdxr_jljb: data.xdxr_jljb,
-            xdxr_hjfs: data.xdxr_hjfs
+            xdxr_hjfs: data.xdxr_hjfs,
+            isdelete:data.isdelete
         }
     })
 export const ry_add = (data = {}) =>

+ 2 - 1
src/views/xshjgl/jlgl/rygl/index.vue

@@ -79,7 +79,7 @@
       </el-table-column>
       <el-table-column label="获奖方式" prop="xdxr_hjfs" width="">
       </el-table-column>
-      <el-table-column label="颁奖(授予)部门" prop="xdxr_bjsybm"  width="200">
+      <el-table-column label="颁奖(授予)部门" prop="xdxr_bjsybm" width="200">
       </el-table-column>
     </el-table>
     <footer
@@ -360,6 +360,7 @@ export default {
         xdxr_jldj: this.searchForm.dj,
         xdxr_jljb: this.searchForm.jb,
         xdxr_hjfs: this.searchForm.hjfs,
+        isdelete: "0",
       };
       ry_list(data).then((res) => {
         if (res.code == 1) {

+ 2 - 0
src/views/xsxjk/bbgl/bbxq/index.vue

@@ -472,6 +472,8 @@ export default {
         token +
         "&xdxb_id=" +
         this.multipleSelection.join(",");
+      window.open(link, "_blank");
+      console.log(link, "_blank");
     },
     toDetail(id) {
       this.$router.push({