Commit a18fbf5a by chenwq

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

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