|
@@ -36,7 +36,12 @@
|
|
|
<div class="bg-white w-full h-full p-3 shadow-md rounded-md flex flex-col">
|
|
|
<div class="flex justify-end pb-3">
|
|
|
<!-- 操作按钮 -->
|
|
|
- <el-button v-for="(button, index) in actionButtons" :key="index" type="primary" @click="button.event && button.event(aabbcc)">{{ button.text }}</el-button>
|
|
|
+ <el-button v-permission="['aabbc']" type="primary">新建订单</el-button>
|
|
|
+ <el-button type="primary">批量转移</el-button>
|
|
|
+ <el-button type="primary">批量删除</el-button>
|
|
|
+ <el-button type="primary">回收站</el-button>
|
|
|
+ <el-button type="primary">导入</el-button>
|
|
|
+ <el-button type="primary">导出</el-button>
|
|
|
</div>
|
|
|
<div class="flex-1 w-full overflow-hidden">
|
|
|
<!-- 表格 -->
|
|
@@ -74,7 +79,7 @@
|
|
|
import { ref, reactive, onMounted, inject, defineExpose } from "vue";
|
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate } from '@/utils/tools'
|
|
|
import { post, get } from "@/utils/request";
|
|
|
-import { actionButtons, tableColumns, GETSYSFILED, GETPERSONNEL, GETGENERATEFOEM, MOD, GETTABLELIST, GETALLPRODUCT, useBtn } from "./api";
|
|
|
+import { tableColumns, GETSYSFILED, GETPERSONNEL, GETGENERATEFOEM, MOD, GETTABLELIST, GETALLPRODUCT } from "./api";
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
|
import { URL_FETALL } from "../customer/api";
|
|
|
|
|
@@ -185,15 +190,6 @@ function setFilterItems() {
|
|
|
]
|
|
|
}
|
|
|
|
|
|
-function aabbcc() {
|
|
|
- console.log('我被调用了')
|
|
|
-}
|
|
|
-
|
|
|
-// 向外暴露方法
|
|
|
-defineExpose({
|
|
|
- aabbcc
|
|
|
-})
|
|
|
-
|
|
|
onMounted(() => {
|
|
|
getSystemField()
|
|
|
getAllProduct()
|