From 91a186e3dcfc735ac29d03446623fbe10d5847ac Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期四, 18 一月 2024 14:18:14 +0800 Subject: [PATCH] modified: src/views/equipment/mould/index.vue modified: src/views/equipment/mouldrecord/index.vue --- src/views/equipment/mould/index.vue | 258 +++++++++++++++++++++++++------------------------- 1 files changed, 129 insertions(+), 129 deletions(-) diff --git a/src/views/equipment/mould/index.vue b/src/views/equipment/mould/index.vue index 9ed8bab..de379cd 100644 --- a/src/views/equipment/mould/index.vue +++ b/src/views/equipment/mould/index.vue @@ -1,19 +1,33 @@ <template> - <div class="mod-config"> - <basic-container> - <!-- <ttable - :table="table" - :isShowHide="true" - :ajaxFun="ajaxFun" - :prelang="prelang" - :options="options" - ref="processconfiguration" - > --> - <!-- <template #toolbar></template> - </ttable> --> - <div>寮�鍙戜腑銆傘�傘��</div> - </basic-container> - </div> + <div class="mod-config"> + <basic-container> + <ttable + :table="table" + :isShowHide="true" + :ajaxFun="ajaxFun" + :prelang="prelang" + :options="options" + ref="processconfiguration" + > + <template #toolbar> + <el-button type="primary" + @click="">鏂板</el-button> + <!-- <el-dropdown style="margin-left: 20px;" @command="handleCommand"> + <el-button > + 鐘舵�佸彉鏇�<i class="el-icon-arrow-down el-icon--right"></i> + </el-button> + <el-dropdown-menu slot="dropdown"> + <el-dropdown-item :key="index" + :command="item.label" + v-for="(item,index) in taskTypeArr" + >{{ item.label }}</el-dropdown-item + > + </el-dropdown-menu> + </el-dropdown> --> + </template> + </ttable> + </basic-container> + </div> </template> <script> @@ -21,120 +35,106 @@ import { fetchList, } from '@/api/quality/finishedDelivery' export default { - data(){ - return { - ajaxFun: fetchList, - prelang: 'operation', - dataListLoading: false, - options: { - height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾 - stripe: true, // 鏄惁涓烘枒椹汗 table - highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈 - border: true, // 鏄惁鏈夌旱鍚戣竟妗� - lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇 - fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮� - multiSelect: true, // - seqNo: true, - isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳 - isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳 - isSearch: true, // 楂樼骇鏌ヨ鎸夐挳 - defaultOrderBy: { column: 'createTime', direction: 'desc' } - }, - table: { - total: 0, - currentPage: 1, - pageSize: 20, - data: [], - // 鏍囬 - column: [ - { - minWidth: '140', - prop: 'packageNo', - label: '鍖呰缂栧彿', - isTrue: true, - isSearch: true, - searchInfoType: 'text', - },{ - minWidth: '140', - prop: 'outBatchNo', - label: '鎵规鍙�', - isTrue: true, - isSearch: true, - searchInfoType: 'text', - }, - { - minWidth: '140', - prop: 'partNo', - label: '浜у搧缂栧彿', - isTrue: true, - isSearch: true, - searchInfoType: 'text', - }, - { - minWidth: '140', - prop: 'partName', - label: '浜у搧鍚嶇О', - isTrue: true, - isSearch: true, - searchInfoType: 'text', - }, - { - minWidth: '140', - prop: 'specs', - label: '瑙勬牸鍨嬪彿', - isTrue: true, - isSearch: true, - searchInfoType: 'text', - }, - { - minWidth: '140', - prop: 'unit', - label: '鍗曚綅', - isTrue: true, - isSearch: true, - searchInfoType: 'text', - }, - { - minWidth: '140', - prop: 'number', - label: '鏁伴噺', - isTrue: true, - isSearch: true, - searchInfoType: 'text', - }, - { - minWidth: '130', - prop: 'createTime', - label: '鍏ュ簱鏃堕棿', - sort: true, - isTrue: true, - isSearch: true, - searchInfoType: 'datetimerange', - formatter: this.formatDateTime, - }, - { - minWidth: '130', - prop: 'createUser', - label: '鍒涘缓浜�', - sort: true, - isTrue: true, - isSearch: true, - searchInfoType: 'text', - }, - ], - toolbar: [], - // operator: [], - // operatorConfig: {} - }, - } + data(){ + return { + ajaxFun: fetchList, + prelang: 'operation', + dataListLoading: false, + options: { + height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾 + stripe: true, // 鏄惁涓烘枒椹汗 table + highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈 + border: true, // 鏄惁鏈夌旱鍚戣竟妗� + lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇 + fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮� + multiSelect: true, // + seqNo: true, + isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳 + isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳 + isSearch: true, // 楂樼骇鏌ヨ鎸夐挳 + defaultOrderBy: { column: 'createTime', direction: 'desc' } + }, + table: { + total: 0, + currentPage: 1, + pageSize: 20, + data: [], + // 鏍囬 + column: [ + { + minWidth: '140', + prop: 'packageNo', + label: '璁惧', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + },{ + minWidth: '140', + prop: 'outBatchNo', + label: '妯″叿缂栧彿', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'partNo', + label: '妯″叿鍚嶇О', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'partName', + label: '宸ュ簭', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'specs', + label: '宸ユ', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + { + minWidth: '140', + prop: 'unit', + label: '瀵垮懡杞崲绯绘暟', + isTrue: true, + isSearch: true, + searchInfoType: 'text', + }, + ], + toolbar: [], + operator: [{ + text: '鍒犻櫎', + type: 'text', + size: 'small', + fun: this.deleteHandle + }], + operatorConfig: { + fixed: 'right', + label: '鎿嶄綔', + width: 100, + minWidth: 100 + }, + }, + } + }, + // computed: { + // ...mapGetters(['permissions']) + // }, + components: { + ttable + }, + medthods: { + formatDateTime(row, column, cellValue) { + return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : '' }, - components: { - ttable - }, - medthods: { - formatDateTime(row, column, cellValue) { - return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : '' - }, - }, + }, } </script> \ No newline at end of file -- Gitblit v1.9.3