Преглед на файлове

弹窗添加清空数据

zhuliu преди 1 година
родител
ревизия
63ece6453d

+ 4 - 2
src/api/permission.js

@@ -63,9 +63,11 @@ getPermissionDepartment(params) {
 * 分页查询人员
 */
 getPermissionPersonnel(params) {
-  return axios.post('/permission/api/personnel/queryPageList', params)
+  return axios.post('/permission/api/personnel/queryPageListNoAdmin', params)
 },
-
+// getPermissionPersonnel(params) {
+//   return axios.post('/permission/api/personnel/queryPageList', params)
+// },
 
 /** 
  * 根据租户ID查询部门

+ 1 - 0
src/views/patentMining/components/dialog/addAndEditProject.vue

@@ -652,6 +652,7 @@ export default {
       if (form && form.id) {
         this.form = JSON.parse(JSON.stringify(form))
         // 负责人
+        this.personnelList.data = []
         if (this.form.headId) {
           this.personnelList.queryParams.id = this.form.headId
           await this.getPermissionPersonnel(1)

+ 2 - 0
src/views/patentMining/components/dialog/createTask.vue

@@ -78,7 +78,9 @@ export default {
         }
         this.form = JSON.parse(JSON.stringify(data))
         // 负责人
+        this.personnelList.data = []
         if (this.form.handler) {
+          this.form.headId = this.form.handler
           this.personnelList.queryParams.id = this.form.handler
           await this.getPermissionPersonnel(1)
           this.personnelList.queryParams.id = null

+ 1 - 0
src/views/patentMining/components/dialog/handleTask1.vue

@@ -222,6 +222,7 @@ export default {
       this.form.isLook = val
       this.form.taskId =row.id
       // 负责人
+      this.personnelList.data = []
       if (this.form.headId) {
         this.personnelList.queryParams.id = this.form.headId
         await this.getPermissionPersonnel(1)

+ 2 - 2
src/views/patentMining/components/mixins/index2.js

@@ -189,9 +189,9 @@ export const personnelLoading = {
         if (response.code == 200) {
           this.personnelList.loading = false;
           if (!type) {
-            if (this.form.handler) {
+            if (this.form.headId) {
               var index = response.data.findIndex(item => {
-                return item.id == this.form.handler
+                return item.id == this.form.headId
               })
               if (index != -1) {
                 response.data.splice(index, 1)

+ 1 - 0
src/views/report/components/dialog/addAndEditReport.vue

@@ -684,6 +684,7 @@ export default {
       }else{
         this.$set(this.form,'headId',Number(this.form.headId))
       }
+      this.personnelList.data = []
       if (this.form.headId) {
         this.personnelList.queryParams.id = this.form.headId
         await this.getPermissionPersonnel(1)