运费模版
continuous-integration/drone/push Build is passing Details

This commit is contained in:
余同学 2024-11-07 17:13:34 +08:00
parent ac41f54a07
commit b95c767c98
2 changed files with 45 additions and 33 deletions

View File

@ -1,37 +1,42 @@
<template> <template>
<div> <div>
<obj-table-plus <div v-if="shopId">
style="height: calc(100vh - 132px)" <obj-table-plus
ref="oTable" style="height: calc(100vh - 132px)"
mode="flex" ref="oTable"
:tableCols="tableCols" mode="flex"
v-model="dataList" :tableCols="tableCols"
@query="queryList" v-model="dataList"
> @query="queryList"
<template slot="flexEmpty"> >
<el-empty description="暂无数据"></el-empty> <template slot="flexEmpty">
</template> <el-empty description="暂无数据"></el-empty>
<div slot="tableTop" class="mb-2"> </template>
<el-form inline> <div slot="tableTop" class="mb-2">
<el-form-item label="模板名称:"> <el-form inline>
<el-input <el-form-item label="模板名称:">
placeholder="请输入模板名称" <el-input
v-model="searchForm.name" placeholder="请输入模板名称"
></el-input> v-model="searchForm.name"
</el-form-item> ></el-input>
<el-button type="primary" @click="$refs.oTable.reload()" </el-form-item>
>搜索</el-button <el-button type="primary" @click="$refs.oTable.reload()"
>搜索</el-button
>
</el-form>
<el-button type="primary" @click="addFareTemplate"
>添加运费模板</el-button
> >
</el-form> </div>
<el-button type="primary" @click="addFareTemplate" </obj-table-plus>
>添加运费模板</el-button <add-template
> ref="addTemplate"
</div> @refresh="$refs.oTable.refresh()"
</obj-table-plus> ></add-template>
<add-template </div>
ref="addTemplate" <div style="height: calc(100vh - 200px)" v-else>
@refresh="$refs.oTable.refresh()" <el-empty :image-size="200" description="请先去完成认证"></el-empty>
></add-template> </div>
</div> </div>
</template> </template>
@ -45,8 +50,12 @@ export default {
searchForm: { searchForm: {
name: "", name: "",
}, },
shopId: "",
}; };
}, },
created() {
this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId;
},
methods: { methods: {
queryList(pageNo, pageSize) { queryList(pageNo, pageSize) {
this.$api.mer_admin this.$api.mer_admin
@ -144,7 +153,7 @@ export default {
} }
// //
return paths.map((path) =><p>{path.join("/")}</p>); return paths.map((path) => <p>{path.join("/")}</p>);
}; };
const appointMapper = { const appointMapper = {

View File

@ -100,9 +100,12 @@ export default {
}, },
productFilterType: "SALE", productFilterType: "SALE",
selectList: [], selectList: [],
shopId: sessionStorage.getItem("userInfo").shopId, shopId: "",
}; };
}, },
created() {
this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId;
},
methods: { methods: {
addProduct() { addProduct() {
this.$refs.addOrUpdate.toggle().add(); this.$refs.addOrUpdate.toggle().add();