From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改
---
src/views/dispatchChild/index.vue | 215 ++++++-----------------------------------------------
1 files changed, 26 insertions(+), 189 deletions(-)
diff --git a/src/views/dispatchChild/index.vue b/src/views/dispatchChild/index.vue
index 8c36729..d1ff99c 100644
--- a/src/views/dispatchChild/index.vue
+++ b/src/views/dispatchChild/index.vue
@@ -49,7 +49,7 @@
@selection-change="selectionChange1"
@refresh-change="refreshChange1"
>
- <template slot="menuLeft">
+ <!-- <template slot="menuLeft">
<el-button
type="danger"
size="small"
@@ -58,12 +58,12 @@
@click="handleDelete1"
>删 除
</el-button>
- </template>
+ </template> -->
</avue-crud>
</span>
<!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> -->
</div>
-</template>
+</template>
<script>
import { column, column1 } from "./data";
@@ -106,7 +106,7 @@
//基本信息
//保安单位信息表单
obj0: {
- title: "我是头部标题",
+ // title: "我是头部标题",
},
option0: {
emptyBtn: false,
@@ -114,44 +114,30 @@
gutter: 30,
column: column,
},
- // loading: true, //派遣服务公司登记
- // selectionList: [],
- // page: {
- // pageSize: 10,
- // currentPage: 1,
- // total: 0,
- // },
- // query: {},
- // data: [],
- // option: {
- // card: true,
- // searchSize: "mini",
- // searchMenuSpan: 6,
- // height: 547,
- // menuWidth: 160,
- // align: "center",
- // selection: true,
- // column: column,
- // },
-
loading1: true, //派遣记录
selectionList1: [],
page1: {
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
query1: {},
data1: [],
option1: {
- card: true,
+ // card: true,
+ tip: false,
+ index: true,
+ menu: false,
searchSize: "mini",
- searchMenuSpan: 6,
- height: 547,
- menuWidth: 160,
+ searchMenuSpan: 8,
+ height: 563,
+ // menuWidth: 160,
align: "center",
selection: true,
column: column1,
+ cellBtn: false,
+ addBtn: false,
},
};
},
@@ -183,129 +169,6 @@
}
// this.$message.success(JSON.stringify(column));
},
- //派遣服务公司登记
- // sizeChange(val) {
- // this.page1.currentPage = 1;
- // this.page1.pageSize = val;
- // // this.getData();
- // this.onLoad(this.page, this.query);
- // // this.$message.success("行数" + val);
- // },
- // currentChange(val) {
- // this.page1.currentPage = val;
- // // this.getData();
- // this.onLoad(this.page, this.query);
- // // this.$message.success("页码" + val);
- // },
- // rowSave(form, done, loading) {
- // var that = this;
- // var form = this.data[0];
- // delete form.id;
- // for (var k = 0; k < 13; k++) {
- // adddata(form).then(
- // (res) => {
- // this.onLoad(this.page);
- // this.$message({
- // type: "success",
- // message: "操作成功!",
- // });
- // done();
- // },
- // (error) => {
- // window.console.log(error);
- // loading();
- // }
- // );
- // }
- // },
- // searchChange(params, done) {
- // this.query = params;
- // this.page.currentPage = 1;
- // this.onLoad(this.page, params);
- // done();
- // },
- // searchReset() {
- // this.query = {};
- // this.onLoad(this.page);
- // },
- // rowUpdate(row, index, done, loading) {
- // console.log(row);
- // update(row).then(
- // () => {
- // this.onLoad(this.page);
- // this.$message({
- // type: "success",
- // message: "操作成功!",
- // });
- // done();
- // },
- // (error) => {
- // window.console.log(error);
- // loading();
- // }
- // );
- // },
- // rowDel(row) {
- // this.$confirm("确定将选择数据删除?", {
- // confirmButtonText: "确定",
- // cancelButtonText: "取消",
- // type: "warning",
- // })
- // .then(() => {
- // return remove(row.id);
- // })
- // .then(() => {
- // this.onLoad(this.page);
- // this.$message({
- // type: "success",
- // message: "操作成功!",
- // });
- // });
- // },
- // selectionChange(list) {
- // this.selectionList = list;
- // },
- // handleDelete() {
- // if (this.selectionList.length === 0) {
- // this.$message.warning("请选择至少一条数据");
- // return;
- // }
- // this.$confirm("确定将选择数据删除?", {
- // confirmButtonText: "确定",
- // cancelButtonText: "取消",
- // type: "warning",
- // })
- // .then(() => {
- // return remove(this.ids);
- // })
- // .then(() => {
- // this.onLoad(this.page);
- // this.$message({
- // type: "success",
- // message: "操作成功!",
- // });
- // this.$refs.crudrec.toggleSelection();
- // });
- // },
- // refreshChange() {
- // this.onLoad(this.page, this.query);
- // },
- // onLoad(page, params = {}) {
- // this.loading = true;
- // getdata(
- // page.currentPage,
- // page.pageSize,
- // Object.assign(params, this.query)
- // ).then((res) => {
- // // console.log(res);
- // const data = res.data.data;
- // this.page.total = data.total;
- // this.data = data.records;
- // console.log(this.data);
- // this.loading = false;
- // });
- // },
- //派遣服务公司登记
//派遣记录
sizeChange1(val) {
@@ -422,7 +285,6 @@
});
},
refreshChange1() {
- // console.log(4534)
this.onLoad1(this.page1, this.query1);
},
@@ -433,17 +295,18 @@
// params["name"] = this.name;
// params["dispatcherCompany"] = this.dispatcherCompany;
params["dispatcherUnitId"] = this.id;
- // console.log(params, "get");
getdata1(
page.currentPage,
page.pageSize,
Object.assign(params, this.query)
).then((res) => {
- // console.log(res);
const data = res.data.data;
this.page1.total = data.total;
this.data1 = data.records;
- console.log(this.data1, 1);
+ // for (var k in this.data1) {
+ // this.data1[k].securityName = this.data1[k].securityName.split(",");
+ // this.data1[k].securityName = this.data1[k].securityName.join(" | ");
+ // }
this.loading1 = false;
});
},
@@ -456,33 +319,15 @@
},
},
mounted() {
- // this.typeTABS = this.optionTABS.column[0];
- // // console.log(typeof this.$route.query.row, 15315);
- // if (typeof this.$route.query.row == "object") {
- // var row = this.$route.query.row;
- // for (var k in row) {
- // this.obj0[k] = row[k];
- // }
- // this.obj0.title = row.name + "基本信息";
- // // console.log(row);
- // this.id = row.id;
- // this.saveLock("paqiandata", JSON.stringify(row));
- // } else {
- // var row = JSON.parse(this.readLock("paqiandata"));
- // // console.log(row);
- // this.obj0.title = row.name + "基本信息";
- // for (var k in row) {
- // this.obj0[k] = row[k];
- // }
- // }
this.typeTABS = this.optionTABS.column[0];
var row = {};
if (this.readLock("paqiandata") != null) {
row = JSON.parse(this.readLock("paqiandata"));
- this.obj0.title = row.name + " 基本信息";
+ this.obj0.name = row.name;
for (var k in row) {
this.obj0[k] = row[k];
}
+ console.log(this.obj0, 11111111);
this.id = row.id;
if (this.readLock("paqiandataS") != null) {
var b = JSON.parse(this.readLock("paqiandataS"));
@@ -495,35 +340,27 @@
if (i == 1) {
// console.log("存在");
} else {
- // console.log("已删除");
-
this.obj0 = {};
- this.obj0.title = row.name + " 该派遣单位已删除";
+ this.obj0.name = row.name + " 该派遣单位已删除";
window.localStorage.removeItem("paqiandata");
this.id = 1244241;
}
}
} else {
- // console.log("no");
- this.obj0.title = " 未选择派遣单位";
+ this.obj0.name = " 未选择派遣单位";
}
},
};
</script>
-<style lang="scss">
+<style lang="scss" scoped>
.dispatch {
width: 100%;
height: 100%;
// border: 1px solid #000;
box-sizing: border-box;
}
-.el-card__body {
- padding-bottom: 5px !important;
+.el-collapse-item {
+ padding-top: 15px !important;
}
-.avue-crud__tip,
-.el-tag,
-.el-tag--light {
- padding: 0 !important;
-}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3