chris 3 жил өмнө
parent
commit
d888b249ce

+ 0 - 1
src/api/cus.js

@@ -1,5 +1,4 @@
 import request from '@/utils/httpRequest'
-import { getDictList } from '@/api/dict'
 
 export function getLevel () {
   return request({

+ 2 - 1
src/views/modules/cus/communicate-add-or-update.vue

@@ -57,6 +57,7 @@
           ref="upload"
           :multiple="true"
           action="#"
+          accept="image/jpeg,image/gif,image/png"
           :on-preview="handlePreview"
           :on-remove="handleRemove"
           :on-change="handleChange"
@@ -150,7 +151,7 @@
 
 <script>
   import templateChose from '../warehouse/template-chose'
-  import { getType, getCustomer, getCoDetail } from '@/api/cus'
+  import { getCustomer, getCoDetail } from '@/api/cus'
   import { uploadUrl, downloadUrl, uploadFiles } from '@/api/file'
   import { getDictList } from '@/api/dict'
   export default {

+ 0 - 2
src/views/modules/cus/communicate.vue

@@ -209,8 +209,6 @@
       },
       // 转换属性“沟通类别”
       typeFormat (row) {
-        console.log('row.coType = ' + row.coType)
-        console.log('options = ' + JSON.stringify(this.options))
         for (let i = 0; i < this.options.length; i++) {
           if (this.options[i].code === row.coType) {
             return this.options[i].value

+ 7 - 2
src/views/modules/cus/contract.vue

@@ -1,11 +1,11 @@
 <template>
   <div class="stock">
-    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
+    <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
       <el-form-item label="名称">
         <el-input v-model="dataForm.cusName" placeholder="客户名称" clearable/>
       </el-form-item>
       <el-form-item>
-        <el-button @click="getDataList()">查询</el-button>
+        <el-button @click="search()">查询</el-button>
         <el-button type="primary" @click="addOrUpdateHandle(0, false)">发起评审</el-button>
       </el-form-item>
     </el-form>
@@ -126,6 +126,11 @@
       this.getDataList()
     },
     methods: {
+      // 查询
+      search () {
+        this.pageIndex = 1
+        this.getDataList()
+      },
       // 获取数据列表
       getDataList () {
         this.dataListLoading = true

+ 7 - 2
src/views/modules/cus/customer.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="stock">
-    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
+    <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
       <el-form-item label="名称">
         <el-input v-model="dataForm.customerName" placeholder="客户名称" clearable/>
       </el-form-item>
@@ -18,7 +18,7 @@
         </el-select>
       </el-form-item>
       <el-form-item>
-        <el-button @click="getDataList()">查询</el-button>
+        <el-button @click="search()">查询</el-button>
         <el-button type="primary" @click="addOrUpdateHandle(0, false)">新增客户</el-button>
       </el-form-item>
     </el-form>
@@ -132,6 +132,11 @@
       this.getDataList()
     },
     methods: {
+      // 查询
+      search () {
+        this.pageIndex = 1
+        this.getDataList()
+      },
       getLevel () {
         getLevel().then(({data}) => {
           if (data && data.code === '200') {

+ 7 - 2
src/views/modules/sys/dict.vue

@@ -1,11 +1,11 @@
 <template>
   <div class="mod-user">
-    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
+    <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
       <el-form-item>
         <el-input v-model="dataForm.userName" placeholder="字典名称" clearable></el-input>
       </el-form-item>
       <el-form-item>
-        <el-button @click="getDataList()">查询</el-button>
+        <el-button @click="search()">查询</el-button>
         <el-button v-if="isAuth('sys:user:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
         <el-button v-if="isAuth('sys:user:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
       </el-form-item>
@@ -102,6 +102,11 @@
       this.getDataList()
     },
     methods: {
+      // 查询
+      search () {
+        this.pageIndex = 1
+        this.getDataList()
+      },
       // 获取数据列表
       getDataList () {
         this.dataListLoading = true

+ 9 - 2
src/views/modules/sys/role.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="mod-role">
-    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
+    <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
       <el-form-item>
         <org-component v-model="dataForm.orgId"/>
       </el-form-item>
@@ -8,7 +8,7 @@
         <el-input v-model="dataForm.roleName" placeholder="角色名称" clearable></el-input>
       </el-form-item>
       <el-form-item>
-        <el-button @click="getDataList()">查询</el-button>
+        <el-button @click="search()">查询</el-button>
         <el-button v-if="isAuth('sys:role:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
         <el-button v-if="isAuth('sys:role:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
       </el-form-item>
@@ -109,6 +109,11 @@
       this.getDataList()
     },
     methods: {
+      // 查询
+      search () {
+        this.pageIndex = 1
+        this.getDataList()
+      },
       // 获取数据列表
       getDataList () {
         this.dataListLoading = true
@@ -136,11 +141,13 @@
       sizeChangeHandle (val) {
         this.pageSize = val
         this.pageIndex = 1
+        this.dataList = []
         this.getDataList()
       },
       // 当前页
       currentChangeHandle (val) {
         this.pageIndex = val
+        this.dataList = []
         this.getDataList()
       },
       // 多选

+ 7 - 2
src/views/modules/sys/user.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="mod-user">
-    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
+    <el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
       <el-form-item>
         <org-component v-model="dataForm.orgId"/>
       </el-form-item>
@@ -8,7 +8,7 @@
         <el-input v-model="dataForm.userName" placeholder="用户名" clearable></el-input>
       </el-form-item>
       <el-form-item>
-        <el-button @click="getDataList()">查询</el-button>
+        <el-button @click="search()">查询</el-button>
         <el-button v-if="isAuth('sys:user:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
         <el-button v-if="isAuth('sys:user:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
       </el-form-item>
@@ -136,6 +136,11 @@
       this.getDataList()
     },
     methods: {
+      // 查询
+      search () {
+        this.pageIndex = 1
+        this.getDataList()
+      },
       // 获取数据列表
       getDataList () {
         this.dataListLoading = true