lukeyan #75

Merged
lukeyan merged 2 commits from lukeyan into master 1 year ago

@ -138,7 +138,7 @@
<div class="company_bottom"> <div class="company_bottom">
<div class="left_table"> <div class="left_table">
<div class="left_table_title">赋分</div> <div class="left_table_title">赋分</div>
<IndexTable ref="indexTable"></IndexTable> <IndexTableDetail ref="indexTableDetail"></IndexTableDetail>
</div> </div>
<div class="right_table"> <div class="right_table">
<DetailsTable <DetailsTable
@ -152,14 +152,14 @@
</template> </template>
<script> <script>
import Season from "./season"; import Season from "./season";
import IndexTable from "./indexTable"; import IndexTableDetail from "./indexTableDetail";
import DetailsTable from "./detailsTable"; import DetailsTable from "./detailsTable";
import { getSafeCompany } from "@/api/systemManagement/companyScore"; import { getSafeCompany } from "@/api/systemManagement/companyScore";
export default { export default {
name: "CompanyDetails", name: "CompanyDetails",
components: { components: {
Season, Season,
IndexTable, IndexTableDetail,
DetailsTable, DetailsTable,
}, },
data() { data() {

@ -7,7 +7,7 @@
width="500px" width="500px"
@close="close" @close="close"
> >
<div class="main_text">认删除该数据</div> <div class="main_text">定要删除这条赋分填报记录吗</div>
<div class="form_btn" slot="footer"> <div class="form_btn" slot="footer">
<el-button @click="save_delete"> </el-button> <el-button @click="save_delete"> </el-button>
<el-button @click="close"> </el-button> <el-button @click="close"> </el-button>

@ -433,7 +433,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getIndexTable } from "@/api/systemManagement/safeIndex"; // import { getIndexTable } from "@/api/systemManagement/safeIndex";
import bus from "@/assets/js/eventBus.js"; import bus from "@/assets/js/eventBus.js";
export default { export default {
name: "IndexTable", name: "IndexTable",
@ -450,7 +450,7 @@ export default {
}; };
}, },
created() { created() {
this.getData(); // this.getData();
}, },
methods: { methods: {
// table_header() { // table_header() {
@ -460,12 +460,12 @@ export default {
// }; // };
// }, // },
// //
getData() { // getData() {
getIndexTable().then((res) => { // getIndexTable().then((res) => {
console.log("res", res); // console.log("res", res);
this.display_data = res.data; // this.display_data = res.data;
}); // });
}, // },
// //
click_onelevel(id) { click_onelevel(id) {
let obj = document.querySelectorAll("td"); let obj = document.querySelectorAll("td");
@ -479,12 +479,12 @@ export default {
item.className = ""; item.className = "";
}); });
obj[index].className = "lightcolor"; obj[index].className = "lightcolor";
const massage = { // const massage = {
safeRuleId: id, // safeRuleId: id,
level: "1", // level: "1",
}; // };
this.$emit("back", massage); // this.$emit("back", massage);
bus.$emit("send", massage); // // bus.$emit("send", massage); //
}, },
// //
click_twolevel(id) { click_twolevel(id) {
@ -499,12 +499,12 @@ export default {
item.className = ""; item.className = "";
}); });
obj[index].className = "lightcolor"; obj[index].className = "lightcolor";
const massage = { // const massage = {
safeRuleId: id, // safeRuleId: id,
level: "2", // level: "2",
}; // };
this.$emit("back", massage); // this.$emit("back", massage);
bus.$emit("send", massage); // // bus.$emit("send", massage); //
}, },
// //
click_threelevel(id, num) { click_threelevel(id, num) {
@ -525,7 +525,7 @@ export default {
item.className = ""; item.className = "";
}); });
obj[index].className = "lightcolor"; obj[index].className = "lightcolor";
this.$emit("back", massage); // this.$emit("back", massage);
bus.$emit("send_three", massage); // bus.$emit("send_three", massage); //
}, },
}, },
Loading…
Cancel
Save