Commit a18fbf5a by chenwq

feat: 添加管理自定义标签的抽屉组件及相关逻辑

1 parent 5b2a6048
......@@ -321,6 +321,30 @@ export const routerName = {
},
auth: [
{
authId: "9050910",
parentId: "90509",
label: "批量修改标签",
category: "Button",
type: "primary",
handle: "handleBatchEditTag",
},
{
authId: "9050911",
parentId: "90509",
label: "管理自定义标签",
category: "Button",
type: "primary",
handle: "handleManageTag",
},
{
authId: "9050912",
parentId: "90509",
label: "下载汇总表",
category: "Button",
type: "primary",
handle: "handleExportSummary",
},
{
authId: "9050901",
parentId: "90509",
label: "重取明细",
......
......@@ -87,7 +87,7 @@
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<d2-table-header style="" :left-span="0">
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
......@@ -169,6 +169,7 @@
</el-form-item>
</el-form>
</d2-dialog>
<ManageTagDrawer :visible.sync="tagDrawerVisible" />
</div>
</template>
......@@ -180,6 +181,7 @@ import { cdSignOpt, dataSourceOpt, jdSyncOpt, receiptStatusOpt } from "@/common/
import { deepClone, Util } from "@/common/util";
import detailDialog from "./components/detailDialog";
import inputRange from "./components/inputRange";
import manageTagDrawer from "./components/manageTagDrawer";
import refetchDialog from "./components/refetchDialog";
// import PrintJs from 'print-js'
export default {
......@@ -188,6 +190,7 @@ export default {
InputRange: inputRange,
RefetchDialog: refetchDialog,
DetailDialog: detailDialog,
ManageTagDrawer: manageTagDrawer,
},
data() {
return {
......@@ -541,6 +544,7 @@ export default {
taskInfo: null,
taskStatus: null,
intervalId: null, // 存储定时器ID
tagDrawerVisible: false,
};
},
computed: {
......@@ -915,6 +919,11 @@ export default {
handleClosePrint() {
this.batchPrintVisible = false;
},
// 管理自定义标签
handleManageTag() {
this.tagDrawerVisible = true;
},
// //前端处理批量打印
// handleBatchPrint() {
// // let arr = []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!