提交 91b2be29 编写于 作者: 水晶土豆

Wed Nov 15 21:30:00 CST 2023 inscode

上级 9801b74d
......@@ -2,11 +2,13 @@
import contractList from './component/contractManagement/contractList/contractList.vue'
import contractCategory from './component/contractManagement/contractCategory/contractCategory.vue'
import register from './component/userLogin/login-dialog-button.vue'
import announcementType from './component/enterpriseAnnouncement/announcementType.vue';
</script>
<template>
<contractCategory></contractCategory>
<contract-list></contract-list>
<!-- <contractCategory></contractCategory>
<contract-list></contract-list> -->
<announcementType></announcementType>
<el-row>
<el-col>后台管理平台</el-col>
</el-row>
......
<script setup>
import mainer from '../main/main.vue'
import headers from '../main/header/header.vue';
import headerForm from '../main/header/form/form.vue';
import addDownload from '../main/header/add_download/addDownload.vue';
import buttoner from '../main/header/add_download/button.vue';
import downloadItem from '../main/header/add_download/downloadItem.vue';
import ejectDialog from '../main/ejectDialog.vue';
import { ref,provide } from 'vue';
import { ref, provide } from 'vue';
const addText = ref('添加分类');
let tableData = ref([
......@@ -82,6 +81,19 @@ let tableType = ref([
);
let operation = ref({ type: ["addSubcategories", "edit", "delete"], width: "220px" });
const cellStyle = ({ row, column, rowIndex, columnIndex }) => {
if (column.property === "state") {
if (row.state == "正常")
......@@ -93,16 +105,40 @@ const cellStyle = ({ row, column, rowIndex, columnIndex }) => {
}
const addDialog = ref(false);
const addSubcategoriesDialog = ref(false);
const disabledDialog = ref(false);
const detailsDialog = ref(false);
const editDialog = ref(false);
const deleteDialog = ref(false);
provide("addSubcategoriesDialog",addSubcategoriesDialog);
const rowID = ref();
provide("addSubcategoriesDialog", addSubcategoriesDialog);
provide("disabledDialog", disabledDialog);
provide("detailsDialog", detailsDialog);
provide("editDialog", editDialog);
provide("deleteDialog", deleteDialog);
provide("tableData", tableData);
provide("rowID", rowID);
provide("changeState", () => {
console.log(1111);
})
provide("cellSetStyle", ({ row, column, rowIndex, columnIndex }) => {
if (column.property === "state") {
if (row.state == "正常") {
return {
color: "#16b777"
};
} else if (row.state == "禁用") {
return {
color: "#F56C6C"
}
}
}
return;
});
</script>
<template>
<mainer :tableData="tableData" :tableType="tableType" :operation="operation" :cellSetStyle="cellStyle">
<mainer :tableType="tableType" :operation="operation" >
<headers>
<!-- <headerForm></headerForm> -->
<addDownload>
......
......@@ -15,6 +15,9 @@ const isExist = (tempString: string) => {
if (prop.operationNul.type.includes(tempString)) {
return true;
}
if(!prop.operationNul.coordin){
return false;
}
if(prop.operationNul.coordin.get(prop.row)?.has(tempString)){
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册