Commit 1a77cf14 by liuguorong93

gx

parent b3f5c1c1
......@@ -148,13 +148,14 @@
>
共有
<span style="color: #f22">{{ total }}</span>
条查询结果,共 <span style="color: #f22">{{ '88' }}</span>
条查询结果,共 <span style="color: #f22">{{ Math.ceil(total / limit) }}</span>
</span>
<div class="inline">
<el-button
plain
class="zdybtn export"
size="small"
@click="addData"
>
<i
class="fa fa-external-link"
......@@ -252,6 +253,7 @@
<el-button
type="text"
size="small"
@click="editData(scope.row)"
>
补采
</el-button>
......@@ -309,16 +311,10 @@ export default {
};
},
async mounted() {
this.jwjsxlOptions = await getJsonDataApi("CODE_JWJXXL");
this.getLists(1);
this.jwjsxlOptions = await getJsonDataApi("CODE_JWJXXL");
},
methods: {
// goXq() {
// this.$router.push({ name: "artisanManageEdit" });
// },
// goAdd() {
// this.$router.push({ name: "artisanManageAdd" });
// },
indexMethod(index) {
return (this.currentPage - 1) * this.limit + (index + 1);
},
......@@ -379,7 +375,23 @@ export default {
return "success-row";
}
},
handleCurrentChange() {},
handleCurrentChange(current) {
this.currentPage = current;
this.getLists(current);
},
// 编辑
editData(row) {
this.$router.push({
name: "artisanManageEdit",
query: {
id: row.id,
},
});
},
// 新增
addData() {
this.$router.push({ name: "artisanManageAdd" });
},
},
watch: {},
};
......
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