Commit 3d422586 authored by 徐一鸣's avatar 徐一鸣

推荐位管理列表页优化

parent 19e02591
...@@ -60,41 +60,21 @@ ...@@ -60,41 +60,21 @@
</div> </div>
</template> </template>
</apass-list> </apass-list>
<apass-dialog
ref="dialog"
:msg="dialogInfo.msg"
:cancel-text="dialogInfo.cancelText"
:cancel-type="dialogInfo.cancelType"
:cancel="dialogInfo.cancel"
:sunbmit-text="dialogInfo.sunbmitText"
:submit="dialogInfo.submit"
></apass-dialog>
</div> </div>
</template> </template>
<script> <script>
import helper from "@/services/helper.js"; import helper from "@/services/helper.js";
import apassList from "@/components/apass-list"; import apassList from "@/components/apass-list";
import apassDialog from "@/components/apass-dialog";
export default { export default {
components: { components: {
apassList, apassList,
apassDialog,
}, },
data: () => ({ data: () => ({
listHeader: [], listHeader: [],
listData: [], listData: [],
listTotal: 0, listTotal: 0,
dialogInfo: {
msg: "",
cancelText: "",
cancelType: "",
cancel: null,
sunbmitText: "",
submit: null,
},
topFilter: { topFilter: {
name: "", name: "",
state: "", state: "",
...@@ -198,15 +178,12 @@ export default { ...@@ -198,15 +178,12 @@ export default {
this.initList(this.tempFilter); this.initList(this.tempFilter);
}, },
showDialog() {
this.$refs.dialog.show();
},
detailAction(item) { detailAction(item) {
console.log(`查看${item.name}`); console.log(`查看${item.name}`);
}, },
editAction(item) { editAction(item) {
console.log(`编辑${item.name}`); console.log(`编辑${item.name}`);
} },
}, },
created() { created() {
this.listHeader = [ this.listHeader = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment