Browse Source

公文库-增加字段from:gwk 限制只有dept_id:387,(办公室)成员才可见

AlvisLiu 1 year ago
parent
commit
d0883742d6
3 changed files with 17 additions and 18 deletions
  1. 2 2
      public/config.js
  2. 3 2
      src/views/gwglxt/gwk/index.vue
  3. 12 14
      src/views/gwglxt/lcgl/index.vue

+ 2 - 2
public/config.js

@@ -27,9 +27,9 @@ const production = {
 
 function isWhich() {
   if (window.location.href.includes('localhost')) {
-    return local
+    return production
   } else if (window.location.href.includes('bozedu')) {
-    return development
+    return production
   } else {
     return production
   }

+ 3 - 2
src/views/gwglxt/gwk/index.vue

@@ -252,12 +252,13 @@ export default {
         lb_name:this.lbName,//类别名称
         gw_fb: 1,
         display_all: 1,
+        from:"gwk",//dept_id:387,(办公室)成员可以看
       };
       gwk_list(transObj).then((res) => {
         this.loading = false;
         this.tableData = res.data.page_data;
-        this.cur_page = Number(res.data.page_now);
-        this.total = Number(res.data.total_rows);
+        this.cur_page = Number(res.data.page_now ? res.data.page_now :1);
+        this.total = Number(res.data.total_rows ? res.data.total_rows :0);
       });
     },
     initWpsAss() {

+ 12 - 14
src/views/gwglxt/lcgl/index.vue

@@ -102,7 +102,7 @@
         </el-form-item>
 
         <el-form-item label="起草公文">
-          <el-select style="width: 100%" v-model="dialogForm.qcgwArr" placeholder="请选择起草公文人员" multiple filterable>
+          <el-select style="width: 100%" v-model="dialogForm.qcgwArr" placeholder="请选择起草公文人员" multiple filterable v-if="userListObj">
             <el-option v-for="item in userListObj " :key="item.value" :label="item.label" :value="item">
             </el-option>
           </el-select>
@@ -200,7 +200,7 @@ export default {
       dialogFormVisible: false,
       dialogForm: {
         lcmc: '',
-        qcgwArr: '',
+        qcgwArr: [],
         applyObj: ''
       },
       check_rules: {
@@ -333,7 +333,7 @@ export default {
       this.title = "新建流程";
       this.dialogForm = {
         lcmc: '',
-        qcgwArr: '',
+        qcgwArr: [],
         applyObj: ''
       };
       this.addAll = [
@@ -364,10 +364,7 @@ export default {
             let transFormat = JSON.parse(singleDATA.lc_qcgw);
             let qcgwTempArr = []
             if (transFormat == "") { //流程为通用流程 无公文人员
-              qcgwTempArr = {
-                label: "",
-                value: ""
-              }
+              qcgwTempArr = []
             } else {
               transFormat.forEach(item => {
                 qcgwTempArr.push({
@@ -518,6 +515,7 @@ export default {
     },
     //删除
     delData(item) {
+      let _this = this;
       let transObj = {
         lc_id: item.lc_id,
       };
@@ -529,13 +527,13 @@ export default {
         .then(() => {
           lcgl_del(transObj).then((res) => {
             if (res.code == 1) {
-              this.$message({
+              _this.$message({
                 message: "删除成功!",
                 type: "success",
               });
-              this.getListData();
+              _this.getListData();
             } else {
-              this.$message({
+              _this.$message({
                 message: res.msg,
                 type: "error",
               });
@@ -546,13 +544,13 @@ export default {
     },
     //点击-应用对象
     DXlinkNumber(val) {
+      let _this = this;
       this.userListObj = [];
-
       let transObj = {
         dept_id: val.value,
         all: '1',
         page: 1,
-        limit: 999,
+        limit: 99999,
       };
       org_users(transObj).then((res) => {
         if (res.code == "1") {
@@ -564,8 +562,7 @@ export default {
               value: item.user_id,
             })
           });
-
-          this.userListObj = tempArrOne;
+          _this.userListObj = tempArrOne;
         }
       });
     },
@@ -598,6 +595,7 @@ export default {
       this.cur_page = val;
       this.getListData();
     },
+
   },
 
 };