¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: æçå·¥ä½å°-å·²å List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-01-15 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <!-- <div class="table-page-search-wrapper">--> |
| | | <!-- <a-form layout="inline" @keyup.enter.native="searchQuery">--> |
| | | <!-- <a-row :gutter="24">--> |
| | | <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
| | | <!-- <a-form-item label="ææ¡£åç§°">--> |
| | | <!-- <a-input placeholder="è¾å
¥ææ¡£åç§°" v-model="queryParam.actName"></a-input>--> |
| | | <!-- </a-form-item>--> |
| | | <!-- </a-col>--> |
| | | <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
| | | <!-- <a-form-item label="设å¤åç§°">--> |
| | | <!-- <a-input placeholder="è¾å
¥è®¾å¤åç§°" v-model="queryParam.actName"></a-input>--> |
| | | <!-- </a-form-item>--> |
| | | <!-- </a-col>--> |
| | | <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
| | | <!-- <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>--> |
| | | <!-- </span>--> |
| | | <!-- </a-col>--> |
| | | <!-- </a-row>--> |
| | | <!-- </a-form>--> |
| | | <!-- </div>--> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">å·æ°</a-button> |
| | | <!-- <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button>--> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | |
| | | |
| | | <AssignApproveUserModal ref="modalForm" @ok="modalFormOk"></AssignApproveUserModal> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@comp/dict/JDictSelectTag.vue' |
| | | import AssignApproveUserModal from './modules/AssignApproveUser/AssignApproveUserModal__Style#Drawer.vue' |
| | | |
| | | export default { |
| | | name: 'AssignApproveUser', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | JDictSelectTag, |
| | | AssignApproveUserModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'æçå·¥ä½å°-å·²å', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:200, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'ææ¡£åç§°', |
| | | align: "center", |
| | | dataIndex: 'docName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: "center", |
| | | dataIndex: 'deviceName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'ææ¡£çæ¬', |
| | | align: "center", |
| | | dataIndex: 'version', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'å¯çº§', |
| | | align: "center", |
| | | dataIndex: 'secretLevel', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: '审æ¹ç»æ', |
| | | align: "center", |
| | | dataIndex: 'status_dictText', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/nc/activit/find/page", |
| | | delete: "/nc/definition/delete", |
| | | }, |
| | | dictOptions:{}, |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: æçå·¥ä½å°-代å List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-01-15 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <!-- <div class="table-page-search-wrapper">--> |
| | | <!-- <a-form layout="inline" @keyup.enter.native="searchQuery">--> |
| | | <!-- <a-row :gutter="24">--> |
| | | <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
| | | <!-- <a-form-item label="ææ¡£åç§°">--> |
| | | <!-- <a-input placeholder="è¾å
¥ææ¡£åç§°" v-model="queryParam.actName"></a-input>--> |
| | | <!-- </a-form-item>--> |
| | | <!-- </a-col>--> |
| | | <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
| | | <!-- <a-form-item label="设å¤åç§°">--> |
| | | <!-- <a-input placeholder="è¾å
¥è®¾å¤åç§°" v-model="queryParam.actName"></a-input>--> |
| | | <!-- </a-form-item>--> |
| | | <!-- </a-col>--> |
| | | <!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">--> |
| | | <!-- <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>--> |
| | | <!-- </span>--> |
| | | <!-- </a-col>--> |
| | | <!-- </a-row>--> |
| | | <!-- </a-form>--> |
| | | <!-- </div>--> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">å·æ°</a-button> |
| | | <!-- <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button>--> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ |
| | | <a-icon type="down" /> |
| | | </a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm |
| | | title="ç¡®å®å é¤å?" |
| | | @confirm="() => handleDelete(record.id)" |
| | | > |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | | |
| | | |
| | | <AssignApproveUserModal ref="modalForm" @ok="modalFormOk"></AssignApproveUserModal> |
| | | |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@comp/dict/JDictSelectTag.vue' |
| | | import AssignApproveUserModal from './modules/AssignApproveUser/AssignApproveUserModal__Style#Drawer.vue' |
| | | |
| | | export default { |
| | | name: 'AssignApproveUser', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | JDictSelectTag, |
| | | AssignApproveUserModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'æçå·¥ä½å°-代å', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:200, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: '产ååç§°', |
| | | align: "center", |
| | | dataIndex: 'productName', |
| | | width: 200, |
| | | }, |
| | | { |
| | | title: 'é¨ä»¶åç§°', |
| | | align: "center", |
| | | dataIndex: 'componentName', |
| | | width: 220, |
| | | }, |
| | | { |
| | | title: 'é¶ä»¶åç§°', |
| | | align: "center", |
| | | dataIndex: 'partsName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'ææ¡£åç§°', |
| | | align: "center", |
| | | dataIndex: 'docName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: "center", |
| | | dataIndex: 'deviceName', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'ææ¡£çæ¬', |
| | | align: "center", |
| | | dataIndex: 'version', |
| | | width: 250, |
| | | }, |
| | | { |
| | | title: 'ç³è¯·äºº', |
| | | align: "center", |
| | | dataIndex: 'applyUser_dictText', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'ç³è¯·åå ', |
| | | align: "center", |
| | | dataIndex: 'applyReason', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'ç³è¯·æ¶é´', |
| | | align: "center", |
| | | dataIndex: 'applyTime', |
| | | width:300 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/nc/activit/find/task/list", |
| | | delete: "/nc/definition/delete", |
| | | }, |
| | | dictOptions:{}, |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template xmlns:background-color="http://www.w3.org/1999/xhtml"> |
| | | <a-row :gutter="10"> |
| | | <a-col :md="12" :sm="24"> |
| | | <a-card :bordered="false"> |
| | | |
| | | <!-- æé®æä½åºå --> |
| | | <a-row style="margin-left: 14px"> |
| | | <a-button @click="handleAdd(1)" type="primary">æ·»å é¨é¨</a-button> |
| | | <a-button @click="handleAdd(2)" type="primary">æ·»å ä¸çº§</a-button> |
| | | <a-button title="å é¤å¤æ¡æ°æ®" @click="batchDel" type="default">æ¹éå é¤</a-button> |
| | | <!--<a-button @click="refresh" type="default" icon="reload" :loading="loading">å·æ°</a-button>--> |
| | | </a-row> |
| | | <div style="background: #fff;padding-left:16px;height: 100%; margin-top: 5px"> |
| | | <a-alert type="info" :showIcon="true"> |
| | | <div slot="message"> |
| | | å½åéæ©ï¼<span v-if="this.currSelected.title">{{ getCurrSelectedTitle() }}</span> |
| | | <a v-if="this.currSelected.title" style="margin-left: 10px" @click="onClearSelected">åæ¶éæ©</a> |
| | | </div> |
| | | </a-alert> |
| | | <a-input-search @search="onSearch" style="width:100%;margin-top: 10px" placeholder="请è¾å
¥é¨é¨åç§°"/> |
| | | <!-- æ --> |
| | | <a-col :md="10" :sm="24"> |
| | | <template> |
| | | <a-dropdown :trigger="[this.dropTrigger]" @visibleChange="dropStatus"> |
| | | <span style="user-select: none"> |
| | | <a-tree |
| | | checkable |
| | | multiple |
| | | @select="onSelect" |
| | | @check="onCheck" |
| | | @rightClick="rightHandle" |
| | | :selectedKeys="selectedKeys" |
| | | :checkedKeys="checkedKeys" |
| | | :treeData="departTree" |
| | | :checkStrictly="checkStrictly" |
| | | :expandedKeys="iExpandedKeys" |
| | | :autoExpandParent="autoExpandParent" |
| | | @expand="onExpand"/> |
| | | </span> |
| | | <!--æ°å¢å³é®ç¹å»äºä»¶,åå¢å æ·»å åå é¤åè½--> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item @click="handleAdd(3)" key="1">æ·»å </a-menu-item> |
| | | <a-menu-item @click="handleDelete" key="2">å é¤</a-menu-item> |
| | | <a-menu-item @click="closeDrop" key="3">åæ¶</a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </template> |
| | | </a-col> |
| | | </div> |
| | | </a-card> |
| | | <!---- author:os_chengtgen -- date:20190827 -- for:忢ç¶åå¾éæ¨¡å¼ =======------> |
| | | <div class="drawer-bootom-button"> |
| | | <a-dropdown :trigger="['click']" placement="topCenter"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="switchCheckStrictly(1)">ç¶åå
³è</a-menu-item> |
| | | <a-menu-item key="2" @click="switchCheckStrictly(2)">åæ¶å
³è</a-menu-item> |
| | | <a-menu-item key="3" @click="checkALL">å
¨é¨å¾é</a-menu-item> |
| | | <a-menu-item key="4" @click="cancelCheckALL">åæ¶å
¨é</a-menu-item> |
| | | <a-menu-item key="5" @click="expandAll">å±å¼ææ</a-menu-item> |
| | | <a-menu-item key="6" @click="closeAll">åå¹¶ææ</a-menu-item> |
| | | </a-menu> |
| | | <a-button> |
| | | æ æä½ <a-icon type="up" /> |
| | | </a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | <!---- author:os_chengtgen -- date:20190827 -- for:忢ç¶åå¾éæ¨¡å¼ =======------> |
| | | </a-col> |
| | | <a-col :md="12" :sm="24"> |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane tab="åºæ¬ä¿¡æ¯" key="1" > |
| | | <a-card :bordered="false" v-if="selectedKeys.length>0"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departName" label="æºæåç§°"> |
| | | <a-input placeholder="请è¾å
¥æºæ/é¨é¨åç§°" v-model="model.departName" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="ä¸çº§é¨é¨"> |
| | | <a-tree-select |
| | | style="width:100%" |
| | | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" |
| | | :treeData="treeData" |
| | | :disabled="disable" |
| | | v-model="model.parentId" |
| | | placeholder="æ "> |
| | | </a-tree-select> |
| | | </a-form-model-item> |
| | | <!--<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orgCode" label="æºæç¼ç ">--> |
| | | <!--<a-input disabled placeholder="请è¾å
¥æºæç¼ç " v-model="model.orgCode" />--> |
| | | <!--</a-form-model-item>--> |
| | | <!--<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orgCategory" label="æºæç±»å">--> |
| | | <!--<template v-if="orgCategoryDisabled">--> |
| | | <!--<a-radio-group v-model="model.orgCategory" placeholder="è¯·éæ©æºæç±»å">--> |
| | | <!--<a-radio value="1">--> |
| | | <!--å
¬å¸--> |
| | | <!--</a-radio>--> |
| | | <!--</a-radio-group>--> |
| | | <!--</template>--> |
| | | <!--<template v-else>--> |
| | | <!--<a-radio-group v-model="model.orgCategory" placeholder="è¯·éæ©æºæç±»å">--> |
| | | <!--<a-radio value="2">--> |
| | | <!--é¨é¨--> |
| | | <!--</a-radio>--> |
| | | <!--<a-radio value="3">--> |
| | | <!--å²ä½--> |
| | | <!--</a-radio>--> |
| | | <!--</a-radio-group>--> |
| | | <!--</template>--> |
| | | <!--</a-form-model-item>--> |
| | | <!--<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="é¨é¨è´è´£äºº">--> |
| | | <!--<j-select-multi-user v-model="model.directorUserIds" valueKey="id"></j-select-multi-user>--> |
| | | <!--</a-form-model-item>--> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="æåº"> |
| | | <a-input-number v-model="model.priority" /> |
| | | </a-form-model-item> |
| | | <!--<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="ææºå·" prop="mobile">--> |
| | | <!--<a-input placeholder="请è¾å
¥ææºå·" v-model="model.mobile" />--> |
| | | <!--</a-form-model-item>--> |
| | | <!--<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="å°å">--> |
| | | <!--<a-input placeholder="请è¾å
¥å°å" v-model="model.address"/>--> |
| | | <!--</a-form-model-item>--> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="夿³¨"> |
| | | <a-textarea placeholder="请è¾å
¥å¤æ³¨" v-model="model.description"/> |
| | | </a-form-model-item> |
| | | </a-form-model> |
| | | <div class="anty-form-btn"> |
| | | <a-button @click="emptyCurrForm" type="default" htmlType="button" icon="sync">éç½®</a-button> |
| | | <a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">ä¿å</a-button> |
| | | </div> |
| | | </a-card> |
| | | <a-card v-else > |
| | | <a-empty> |
| | | <span slot="description"> 请å
éæ©ä¸ä¸ªé¨é¨! </span> |
| | | </a-empty> |
| | | </a-card> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="é¨é¨æé" key="2" forceRender> |
| | | <DepartMentAuthModal ref="departAuth"/> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | </a-col> |
| | | <DncDepartmentModal ref="DncDepartmentModal" @ok="loadTree"></DncDepartmentModal> |
| | | </a-row> |
| | | </template> |
| | | <script> |
| | | import {queryDepartTreeList, searchByKeywords, deleteByDepartId} from '@/api/api' |
| | | import { httpAction, deleteAction, getAction } from '@/api/manage' |
| | | import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
| | | import DncDepartmentModal from './modules/DncDepartmentModal' |
| | | import DepartMentAuthModal from './modules/DepartMentAuthModal' |
| | | import Vue from 'vue' |
| | | // 表头 |
| | | const columns = [ |
| | | { |
| | | title: 'æºæåç§°', |
| | | dataIndex: 'departName' |
| | | }, |
| | | { |
| | | title: 'æºæç±»å', |
| | | align: 'center', |
| | | dataIndex: 'orgType' |
| | | }, |
| | | { |
| | | title: 'æºæç¼ç ', |
| | | dataIndex: 'orgCode', |
| | | }, |
| | | { |
| | | title: 'ææºå·', |
| | | dataIndex: 'mobile' |
| | | }, |
| | | { |
| | | title: 'ä¼ ç', |
| | | dataIndex: 'fax' |
| | | }, |
| | | { |
| | | title: 'å°å', |
| | | dataIndex: 'address' |
| | | }, |
| | | { |
| | | title: 'æåº', |
| | | align: 'center', |
| | | dataIndex: 'departOrder' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | | dataIndex: 'action', |
| | | scopedSlots: {customRender: 'action'} |
| | | } |
| | | ] |
| | | export default { |
| | | name: 'DepartList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | DncDepartmentModal, |
| | | DepartMentAuthModal |
| | | }, |
| | | data() { |
| | | return { |
| | | iExpandedKeys: [], |
| | | loading: false, |
| | | autoExpandParent: true, |
| | | currFlowId: '', |
| | | currFlowName: '', |
| | | disable: true, |
| | | treeData: [], |
| | | visible: false, |
| | | departTree: [], |
| | | rightClickSelectedKey: '', |
| | | rightClickSelectedOrgCode: '', |
| | | hiding: true, |
| | | model: {}, |
| | | dropTrigger: '', |
| | | depart: {}, |
| | | columns: columns, |
| | | disableSubmit: false, |
| | | checkedKeys: [], |
| | | selectedKeys: [], |
| | | autoIncr: 1, |
| | | currSelected: {}, |
| | | allTreeKeys:[], |
| | | checkStrictly: true, |
| | | labelCol: { |
| | | xs: {span: 24}, |
| | | sm: {span: 5} |
| | | }, |
| | | wrapperCol: { |
| | | xs: {span: 24}, |
| | | sm: {span: 16} |
| | | }, |
| | | graphDatasource: { |
| | | nodes: [], |
| | | edges: [] |
| | | }, |
| | | validatorRules: { |
| | | departName: [{required: true, message: '请è¾å
¥æºæ/é¨é¨åç§°!'}], |
| | | orgCode: [{required: true, message: '请è¾å
¥æºæç¼ç !'}], |
| | | orgCategory:[{required: true, message: 'è¯·éæ©æºæç±»å!'}], |
| | | mobile: Vue.prototype.rules.mobile2 |
| | | }, |
| | | url: { |
| | | tree:"/ucenter/depart/queryTreeList", |
| | | delete: '/ucenter/depart/delete', |
| | | edit: '/ucenter/depart/edit', |
| | | deleteBatch: '/sys/sysDepart/deleteBatch', |
| | | searchBy:'/ucenter/depart/searchBy', |
| | | }, |
| | | orgCategoryDisabled:false, |
| | | oldDirectorUserIds:"" |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function () { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | loadData() { |
| | | this.refresh(); |
| | | }, |
| | | loadTree() { |
| | | var that = this |
| | | that.treeData = [] |
| | | that.departTree = [] |
| | | //ä¿®æ¹æ¥å£ |
| | | getAction(this.url.tree).then((res) => { |
| | | if (res.success) { |
| | | //é¨é¨å
¨éåï¼åæ·»å é¨é¨ï¼é䏿°éå¢å¤ |
| | | this.allTreeKeys = []; |
| | | for (let i = 0; i < res.result.length; i++) { |
| | | let temp = res.result[i] |
| | | that.treeData.push(temp) |
| | | that.departTree.push(temp) |
| | | that.setThisExpandedKeys(temp) |
| | | that.getAllKeys(temp); |
| | | // console.log(temp.id) |
| | | } |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | setThisExpandedKeys(node) { |
| | | if (node.children && node.children.length > 0) { |
| | | this.iExpandedKeys.push(node.key) |
| | | for (let a = 0; a < node.children.length; a++) { |
| | | this.setThisExpandedKeys(node.children[a]) |
| | | } |
| | | } |
| | | }, |
| | | refresh() { |
| | | this.loading = true |
| | | this.loadTree() |
| | | }, |
| | | // å³é®æä½æ¹æ³ |
| | | rightHandle(node) { |
| | | this.dropTrigger = 'contextmenu' |
| | | console.log(node.node.eventKey) |
| | | this.rightClickSelectedKey = node.node.eventKey |
| | | this.rightClickSelectedOrgCode = node.node.dataRef.orgCode |
| | | }, |
| | | onExpand(expandedKeys) { |
| | | console.log('onExpand', expandedKeys) |
| | | this.iExpandedKeys = expandedKeys |
| | | this.autoExpandParent = false |
| | | }, |
| | | backFlowList() { |
| | | this.$router.back(-1) |
| | | }, |
| | | // å³é®ç¹å»ä¸ææ¡æ¹åäºä»¶ |
| | | dropStatus(visible) { |
| | | if (visible == false) { |
| | | this.dropTrigger = '' |
| | | } |
| | | }, |
| | | // å³é®ä¸æå
³éä¸ææ¡ |
| | | closeDrop() { |
| | | this.dropTrigger = '' |
| | | }, |
| | | addRootNode() { |
| | | this.$refs.nodeModal.add(this.currFlowId, '') |
| | | }, |
| | | batchDel: function () { |
| | | console.log(this.checkedKeys) |
| | | if (this.checkedKeys.length <= 0) { |
| | | this.$message.warning('è¯·éæ©ä¸æ¡è®°å½ï¼') |
| | | } else { |
| | | var ids = '' |
| | | for (var a = 0; a < this.checkedKeys.length; a++) { |
| | | ids += this.checkedKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认å é¤', |
| | | content: 'ç¡®å®è¦å 餿éä¸ç ' + this.checkedKeys.length + ' æ¡æ°æ®ï¼ä»¥ååèç¹æ°æ®å?', |
| | | onOk: function () { |
| | | deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message) |
| | | that.loadTree() |
| | | that.onClearSelected() |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | onSearch(value) { |
| | | let that = this |
| | | if (value) { |
| | | getAction(this.url.searchBy,{keyWord: value}).then((res) => { |
| | | if (res.success) { |
| | | that.departTree = [] |
| | | for (let i = 0; i < res.result.length; i++) { |
| | | let temp = res.result[i] |
| | | that.departTree.push(temp) |
| | | } |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }) |
| | | } else { |
| | | that.loadTree() |
| | | } |
| | | |
| | | }, |
| | | nodeModalOk() { |
| | | this.loadTree() |
| | | }, |
| | | nodeModalClose() { |
| | | }, |
| | | hide() { |
| | | console.log(111) |
| | | this.visible = false |
| | | }, |
| | | onCheck(checkedKeys, info) { |
| | | console.log('onCheck', checkedKeys, info) |
| | | this.hiding = false |
| | | //---- author:os_chengtgen -- date:20190827 -- for:忢ç¶åå¾éæ¨¡å¼ =======------ |
| | | if(this.checkStrictly){ |
| | | this.checkedKeys = checkedKeys.checked; |
| | | }else{ |
| | | this.checkedKeys = checkedKeys |
| | | } |
| | | //---- author:os_chengtgen -- date:20190827 -- for:忢ç¶åå¾éæ¨¡å¼ =======------ |
| | | }, |
| | | onSelect(selectedKeys, e) { |
| | | console.log('selected', selectedKeys, e) |
| | | this.hiding = false |
| | | let record = e.node.dataRef |
| | | console.log('onSelect-record', record) |
| | | this.currSelected = Object.assign({}, record) |
| | | this.model = this.currSelected |
| | | this.selectedKeys = [record.key] |
| | | this.model.parentId = record.parentId |
| | | this.setValuesToForm(record) |
| | | this.$refs.departAuth.show(record.departId); |
| | | this.oldDirectorUserIds = record.directorUserIds |
| | | |
| | | //update-beign-author:taoyan date:20220316 for: VUEN-329ãbugã为ä»ä¹ä¸æ¯å¤±å»ç¦ç¹çæ¶åï¼è§¦åææºå·æ ¡éª |
| | | this.$nextTick(()=>{ |
| | | this.$refs.form.validateField('mobile') |
| | | }) |
| | | //update-end-author:taoyan date:20220316 for: VUEN-329ãbugã为ä»ä¹ä¸æ¯å¤±å»ç¦ç¹çæ¶åï¼è§¦åææºå·æ ¡éª |
| | | }, |
| | | // 触åonSelectäºä»¶æ¶,为é¨é¨æ å³ä¾§çform表åèµå¼ |
| | | setValuesToForm(record) { |
| | | if(record.orgCategory == '1'){ |
| | | this.orgCategoryDisabled = true; |
| | | }else{ |
| | | this.orgCategoryDisabled = false; |
| | | } |
| | | }, |
| | | getCurrSelectedTitle() { |
| | | return !this.currSelected.title ? '' : this.currSelected.title |
| | | }, |
| | | onClearSelected() { |
| | | this.hiding = true |
| | | this.checkedKeys = [] |
| | | this.currSelected = {} |
| | | this.selectedKeys = [] |
| | | this.$refs.departAuth.departId = '' |
| | | }, |
| | | handleNodeTypeChange(val) { |
| | | this.currSelected.nodeType = val |
| | | }, |
| | | notifyTriggerTypeChange(value) { |
| | | this.currSelected.notifyTriggerType = value |
| | | }, |
| | | receiptTriggerTypeChange(value) { |
| | | this.currSelected.receiptTriggerType = value |
| | | }, |
| | | submitCurrForm() { |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | if (!this.currSelected.departId) { |
| | | this.$message.warning('请ç¹å»éæ©è¦ä¿®æ¹é¨é¨!') |
| | | return |
| | | } |
| | | |
| | | //update-begin---author:wangshuai ---date:20200308 forï¼[JTC-119]å¨é¨é¨ç®¡çèåä¸è®¾ç½®é¨é¨è´è´£äºº |
| | | this.currSelected.oldDirectorUserIds = this.oldDirectorUserIds |
| | | //update-end---author:wangshuai ---date:20200308 forï¼[JTC-119]å¨é¨é¨ç®¡çèåä¸è®¾ç½®é¨é¨è´è´£äºº |
| | | httpAction(this.url.edit+'/'+this.currSelected.departId, this.currSelected, 'put').then((res) => { |
| | | if (res.success) { |
| | | this.$message.success('ä¿åæå!') |
| | | this.loadTree() |
| | | } else { |
| | | this.$message.error(res.message) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | emptyCurrForm() { |
| | | this.$refs.form.resetFields(); |
| | | this.model={} |
| | | }, |
| | | nodeSettingFormSubmit() { |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | console.log('Received values of form: ', this.model) |
| | | } |
| | | }) |
| | | }, |
| | | openSelect() { |
| | | this.$refs.sysDirectiveModal.show() |
| | | }, |
| | | handleAdd(num) { |
| | | if (num == 1) { |
| | | this.$refs.DncDepartmentModal.add() |
| | | this.$refs.DncDepartmentModal.title = 'æ°å¢' |
| | | } else if (num == 2) { |
| | | let key = this.currSelected.key |
| | | if (!key) { |
| | | this.$message.warning('请å
ç¹å»éä¸ä¸çº§é¨é¨ï¼') |
| | | return false |
| | | } |
| | | this.$refs.DncDepartmentModal.add(this.selectedKeys) |
| | | this.$refs.DncDepartmentModal.title = 'æ°å¢' |
| | | } else { |
| | | this.$refs.DncDepartmentModal.add(this.rightClickSelectedKey) |
| | | this.$refs.DncDepartmentModal.title = 'æ°å¢' |
| | | } |
| | | }, |
| | | handleDelete() { |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认å é¤', |
| | | content: 'ç¡®å®è¦å 餿¤é¨é¨ä»¥ååèç¹æ°æ®å?', |
| | | onOk: function () { |
| | | deleteAction(that.url.delete,{id: that.rightClickSelectedKey}).then((resp) => { |
| | | if (resp.success) { |
| | | //å 餿ååï¼å»é¤å·²éä¸ä¸çæ°æ® |
| | | that.checkedKeys.splice(that.checkedKeys.findIndex(key => key === that.rightClickSelectedKey), 1); |
| | | that.$message.success('å 餿å!') |
| | | that.loadTree() |
| | | //å é¤å忥æ¸
空å³ä¾§åºæ¬ä¿¡æ¯å
容 |
| | | let orgCode=that.model.orgCode; |
| | | if(orgCode && orgCode === that.rightClickSelectedOrgCode){ |
| | | that.onClearSelected() |
| | | } |
| | | } else { |
| | | that.$message.warning(resp.message) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | selectDirectiveOk(record) { |
| | | console.log('éä¸æä»¤æ°æ®', record) |
| | | this.nodeSettingForm.setFieldsValue({directiveCode: record.directiveCode}) |
| | | this.currSelected.sysCode = record.sysCode |
| | | }, |
| | | getFlowGraphData(node) { |
| | | this.graphDatasource.nodes.push({ |
| | | id: node.id, |
| | | text: node.flowNodeName |
| | | }) |
| | | if (node.children.length > 0) { |
| | | for (let a = 0; a < node.children.length; a++) { |
| | | let temp = node.children[a] |
| | | this.graphDatasource.edges.push({ |
| | | source: node.id, |
| | | target: temp.id |
| | | }) |
| | | this.getFlowGraphData(temp) |
| | | } |
| | | } |
| | | }, |
| | | //---- author:os_chengtgen -- date:20190827 -- for:忢ç¶åå¾éæ¨¡å¼ =======------ |
| | | expandAll () { |
| | | this.iExpandedKeys = this.allTreeKeys |
| | | }, |
| | | closeAll () { |
| | | this.iExpandedKeys = [] |
| | | }, |
| | | checkALL () { |
| | | this.checkStriccheckStrictlytly = false |
| | | this.checkedKeys = this.allTreeKeys |
| | | }, |
| | | cancelCheckALL () { |
| | | //this.checkedKeys = this.defaultCheckedKeys |
| | | this.checkedKeys = [] |
| | | }, |
| | | switchCheckStrictly (v) { |
| | | if(v==1){ |
| | | this.checkStrictly = false |
| | | }else if(v==2){ |
| | | this.checkStrictly = true |
| | | } |
| | | }, |
| | | getAllKeys(node) { |
| | | // console.log('node',node); |
| | | this.allTreeKeys.push(node.key) |
| | | if (node.children && node.children.length > 0) { |
| | | for (let a = 0; a < node.children.length; a++) { |
| | | this.getAllKeys(node.children[a]) |
| | | } |
| | | } |
| | | } |
| | | //---- author:os_chengtgen -- date:20190827 -- for:忢ç¶åå¾éæ¨¡å¼ =======------ |
| | | |
| | | }, |
| | | created() { |
| | | this.currFlowId = this.$route.params.id |
| | | this.currFlowName = this.$route.params.name |
| | | // this.loadTree() |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .ant-card-body .table-operator { |
| | | margin: 15px; |
| | | } |
| | | |
| | | .anty-form-btn { |
| | | width: 100%; |
| | | text-align: center; |
| | | } |
| | | |
| | | .anty-form-btn button { |
| | | margin: 0 5px; |
| | | } |
| | | |
| | | .anty-node-layout .ant-layout-header { |
| | | padding-right: 0 |
| | | } |
| | | |
| | | .header { |
| | | padding: 0 8px; |
| | | } |
| | | |
| | | .header button { |
| | | margin: 0 3px |
| | | } |
| | | |
| | | .ant-modal-cust-warp { |
| | | height: 100% |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-body { |
| | | height: calc(100% - 110px) !important; |
| | | overflow-y: auto |
| | | } |
| | | |
| | | .ant-modal-cust-warp .ant-modal-content { |
| | | height: 90% !important; |
| | | overflow-y: hidden |
| | | } |
| | | |
| | | #app .desktop { |
| | | height: auto !important; |
| | | } |
| | | |
| | | /** Buttonæé®é´è· */ |
| | | .ant-btn { |
| | | margin-left: 3px |
| | | } |
| | | |
| | | .drawer-bootom-button { |
| | | /*position: absolute;*/ |
| | | bottom: 0; |
| | | width: 100%; |
| | | border-top: 1px solid #e8e8e8; |
| | | padding: 10px 16px; |
| | | text-align: left; |
| | | left: 0; |
| | | background: #fff; |
| | | border-radius: 0 0 2px 2px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="800" |
| | | :ok=false |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ props: {disabled: disableSubmit} }" |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="é¨é¨ç¼ç " |
| | | prop="departName" |
| | | :hidden="false" |
| | | hasFeedback > |
| | | <a-input id="departCode" placeholder="请è¾å
¥é¨é¨ç¼ç " v-model="model.departCode"/> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | <a-form-model-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="é¨é¨åç§°" |
| | | prop="departName" |
| | | :hidden="false" |
| | | hasFeedback > |
| | | <a-input id="departName" placeholder="请è¾å
¥é¨é¨åç§°" v-model="model.departName"/> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" :hidden="seen" label="ä¸çº§é¨é¨" hasFeedback> |
| | | <a-tree-select |
| | | style="width:100%" |
| | | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" |
| | | :treeData="departTree" |
| | | v-model="model.parentId" |
| | | placeholder="è¯·éæ©ä¸çº§é¨é¨" |
| | | :disabled="condition"> |
| | | </a-tree-select> |
| | | </a-form-model-item> |
| | | <a-form-model-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="æåº"> |
| | | <a-input-number v-model="model.getPriority"/> |
| | | </a-form-model-item> |
| | | <a-form-model-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="夿³¨"> |
| | | <a-textarea placeholder="请è¾å
¥å¤æ³¨" v-model="model.description"/> |
| | | </a-form-model-item> |
| | | |
| | | </a-form-model> |
| | | </a-spin> |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, httpAction } from '@/api/manage' |
| | | import { queryIdTree } from '@/api/api' |
| | | import pick from 'lodash.pick' |
| | | import ATextarea from 'ant-design-vue/es/input/TextArea' |
| | | export default { |
| | | name: "SysDepartModal", |
| | | components: { ATextarea }, |
| | | data () { |
| | | return { |
| | | departTree:[], |
| | | orgTypeData:[], |
| | | phoneWarning:'', |
| | | departName:"", |
| | | departCode:"", |
| | | title:"æä½", |
| | | seen:false, |
| | | visible: false, |
| | | condition:true, |
| | | disableSubmit:false, |
| | | model: {}, |
| | | defaultModel:{ |
| | | getPriority:0, |
| | | orgCategory:'1' |
| | | }, |
| | | menuhidden:false, |
| | | menuusing:true, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules:{ |
| | | departName:[{ required: true, message: '请è¾å
¥é¨é¨åç§°!' }], |
| | | departCode:[{ required: true, message: '请è¾å
¥é¨é¨ç¼ç !' }], |
| | | mobile: [{validator:this.validateMobile}], |
| | | orgCategory:[{required: true, message: '请è¾å
¥é¨é¨ç±»å!'}] |
| | | }, |
| | | url: { |
| | | tree:"/ucenter/depart/queryTreeList", |
| | | add: "/ucenter/depart/add", |
| | | }, |
| | | dictDisabled:true, |
| | | } |
| | | }, |
| | | created () { |
| | | }, |
| | | methods: { |
| | | loadTreeData(){ |
| | | var that = this; |
| | | getAction(this.url.tree).then((res) => { |
| | | if(res.success){ |
| | | that.departTree = []; |
| | | for (let i = 0; i < res.result.length; i++) { |
| | | let temp = res.result[i]; |
| | | that.departTree.push(temp); |
| | | } |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | add (depart) { |
| | | if(depart){ |
| | | this.seen = false; |
| | | this.dictDisabled = false; |
| | | }else{ |
| | | this.seen = true; |
| | | this.dictDisabled = true; |
| | | } |
| | | this.edit(depart); |
| | | }, |
| | | edit (record) { |
| | | this.visible = true; |
| | | this.model = Object.assign({}, this.defaultModel, record) |
| | | this.loadTreeData(); |
| | | this.model.parentId = record!=null?record.toString():null; |
| | | if(this.seen){ |
| | | this.model.orgCategory = '1'; |
| | | }else{ |
| | | this.model.orgCategory = '2'; |
| | | } |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.disableSubmit = false; |
| | | this.visible = false; |
| | | this.$refs.form.resetFields(); |
| | | }, |
| | | handleOk () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | httpAction(this.url.add,this.model,"post").then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.loadTreeData(); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | |
| | | }else{ |
| | | return false; |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | }, |
| | | validateMobile(rule,value,callback){ |
| | | if (!value || new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(value)){ |
| | | callback(); |
| | | }else{ |
| | | callback("æ¨çææºå·ç æ ¼å¼ä¸æ£ç¡®!"); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |