From 36183a25c19f8c31ba082592329e7aff3caf97d5 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期一, 30 六月 2025 21:57:30 +0800
Subject: [PATCH] 岗位管理、业务编码规则

---
 src/views/system/SysPositionList.vue |  161 ++++++++++++++++++++++++-----------------------------
 1 files changed, 74 insertions(+), 87 deletions(-)

diff --git a/src/views/system/SysPositionList.vue b/src/views/system/SysPositionList.vue
index e3e8a2b..2decdbc 100644
--- a/src/views/system/SysPositionList.vue
+++ b/src/views/system/SysPositionList.vue
@@ -7,31 +7,19 @@
         <a-row :gutter="24">
 
           <a-col :md="6" :sm="8">
-            <a-form-item label="鑱屽姟缂栫爜">
-              <a-input placeholder="璇疯緭鍏ヨ亴鍔$紪鐮�" v-model="queryParam.code"></a-input>
+            <a-form-item label="宀椾綅缂栫爜">
+              <j-input placeholder="璇疯緭鍏ュ矖浣嶇紪鐮�" v-model="queryParam.code"></j-input>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="8">
-            <a-form-item label="鑱屽姟鍚嶇О">
-              <a-input placeholder="璇疯緭鍏ヨ亴鍔″悕绉�" v-model="queryParam.name"></a-input>
+            <a-form-item label="宀椾綅鍚嶇О">
+              <j-input placeholder="璇疯緭鍏ュ矖浣嶅悕绉�" v-model="queryParam.name"></j-input>
             </a-form-item>
           </a-col>
-          <template v-if="toggleSearchStatus">
-            <a-col :md="6" :sm="8">
-              <a-form-item label="鑱岀骇">
-                <j-dict-select-tag v-model="queryParam.postRank" placeholder="璇烽�夋嫨鑱岀骇" dictCode="position_rank"/>
-              </a-form-item>
-            </a-col>
-
-          </template>
           <a-col :md="6" :sm="8">
             <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
               <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
-              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
-              <a @click="handleToggleSearch" style="margin-left: 8px">
-                {{ toggleSearchStatus ? '鏀惰捣' : '灞曞紑' }}
-                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
-              </a>
+              <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
             </span>
           </a-col>
 
@@ -41,20 +29,19 @@
 
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
     <div class="table-operator">
-
       <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
-      <a-button type="primary" icon="download" @click="handleExportXls('鑱屽姟琛�')">瀵煎嚭</a-button>
-      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
-        <a-button type="primary" icon="import">瀵煎叆</a-button>
-      </a-upload>
+      <!--      <a-button type="primary" icon="download" @click="handleExportXls('鑱屽姟琛�')">瀵煎嚭</a-button>-->
+      <!--      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
+      <!--        <a-button type="primary" icon="import">瀵煎叆</a-button>-->
+      <!--      </a-upload>-->
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">
           <a-menu-item key="1" @click="batchDel">
             <a-icon type="delete"/>
             鍒犻櫎
           </a-menu-item>
-        </a-menu>        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔
-
+        </a-menu>
+        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔
           <a-icon type="down"/>
         </a-button>
       </a-dropdown>
@@ -105,74 +92,74 @@
 </template>
 
 <script>
-  import SysPositionModal from './modules/SysPositionModal'
-  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
-  import JDictSelectTag from '@/components/dict/JDictSelectTag'
+import SysPositionModal from './modules/SysPositionModal'
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+import JDictSelectTag from '@/components/dict/JDictSelectTag'
 
-  export default {
-    name: 'SysPositionList',
-    mixins: [JeecgListMixin],
-    components: {
-      SysPositionModal,
-      JDictSelectTag
-    },
-    data() {
-      return {
-        description: '鑱屽姟琛ㄧ鐞嗛〉闈�',
-        // 琛ㄥご
-        columns: [
-          {
-            title: '#',
-            dataIndex: '',
-            key: 'rowIndex',
-            width: 60,
-            align: 'center',
-            customRender: function (t, r, index) {
-              return parseInt(index) + 1
-            }
-          },
-          {
-            title: '鑱屽姟缂栫爜',
-            align: 'center',
-            dataIndex: 'code'
-          },
-          {
-            title: '鑱屽姟鍚嶇О',
-            align: 'center',
-            dataIndex: 'name'
-          },
-          {
-            title: '鑱岀骇',
-            align: 'center',
-            dataIndex: 'postRank_dictText'
-          },
-          // {
-          //   title: '鍏徃id',
-          //   align: 'center',
-          //   dataIndex: 'companyId'
-          // },
-          {
-            title: '鎿嶄綔',
-            dataIndex: 'action',
-            align: 'center',
-            scopedSlots: { customRender: 'action' },
+export default {
+  name: 'SysPositionList',
+  mixins: [JeecgListMixin],
+  components: {
+    SysPositionModal,
+    JDictSelectTag
+  },
+  data() {
+    return {
+      description: '鑱屽姟琛ㄧ鐞嗛〉闈�',
+      // 琛ㄥご
+      columns: [
+        {
+          title: '#',
+          dataIndex: '',
+          key: 'rowIndex',
+          width: 60,
+          align: 'center',
+          customRender: function (t, r, index) {
+            return parseInt(index) + 1
           }
-        ],
-        url: {
-          list: '/sys/position/list',
-          delete: '/sys/position/delete',
-          deleteBatch: '/sys/position/deleteBatch',
-          exportXlsUrl: '/sys/position/exportXls',
-          importExcelUrl: 'sys/position/importExcel',
         },
-      }
-    },
-    computed: {
-      importExcelUrl: function () {
-        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
-      }
+        {
+          title: '宀椾綅缂栫爜',
+          align: 'center',
+          dataIndex: 'code'
+        },
+        {
+          title: '宀椾綅鍚嶇О',
+          align: 'center',
+          dataIndex: 'name'
+        },
+        // {
+        //   title: '鑱岀骇',
+        //   align: 'center',
+        //   dataIndex: 'postRank_dictText'
+        // },
+        // {
+        //   title: '鍏徃id',
+        //   align: 'center',
+        //   dataIndex: 'companyId'
+        // },
+        {
+          title: '鎿嶄綔',
+          dataIndex: 'action',
+          align: 'center',
+          scopedSlots: { customRender: 'action' },
+        }
+      ],
+      url: {
+        list: '/sys/position/list',
+        delete: '/sys/position/delete',
+        deleteBatch: '/sys/position/deleteBatch',
+        exportXlsUrl: '/sys/position/exportXls',
+        importExcelUrl: 'sys/position/importExcel',
+      },
+    }
+  },
+  computed: {
+    importExcelUrl: function () {
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
     }
   }
+}
 </script>
 <style scoped>
   @import '~@assets/less/common.less'

--
Gitblit v1.9.3