|
|
@@ -73,7 +73,49 @@
|
|
|
@on-close="handleUpdataWorkspaceTab"
|
|
|
@on-ok="subWorkspace"
|
|
|
/>
|
|
|
- <AddCompanyInfo v-if="dialogVisible" @close="closeAddInfo" />
|
|
|
+
|
|
|
+ <SceneDialog v-if="dialogVisible" @close-dialog="closeDialog" />
|
|
|
+ <!-- <el-dialog v-model="dialogVisible" title="添加企业信息" width="500">
|
|
|
+ <div>
|
|
|
+ <div class="relate-select">
|
|
|
+ <div class="select-title">企业分类</div>
|
|
|
+ <el-select v-model="companyType" placeholder="请选择企业类型" style="width: 180px">
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="relate-select">
|
|
|
+ <div class="select-title">企业名称</div>
|
|
|
+ <el-select
|
|
|
+ v-model="tenantName"
|
|
|
+ placeholder="请选择企业租户信息"
|
|
|
+ style="width: 180px"
|
|
|
+ @change="changeCom"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in companyList"
|
|
|
+ :key="item.tenantCode"
|
|
|
+ :label="item.tenantName"
|
|
|
+ :value="item.tenantCode"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div v-if="tenantCode" class="relate-select">
|
|
|
+ <div class="select-title">企业租户信息</div>
|
|
|
+ <el-input v-model="tenantCode" style="width: 180px" disabled />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">取消</el-button>
|
|
|
+ <el-button type="primary" @click="close"> 确定 </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog> -->
|
|
|
</page-wrapper>
|
|
|
</template>
|
|
|
|
|
|
@@ -81,13 +123,13 @@
|
|
|
import { ref, onMounted, reactive, h, computed } from 'vue';
|
|
|
import { Plus } from '@element-plus/icons-vue';
|
|
|
import { BasicTable, BasicColumn } from '@/components/Table';
|
|
|
- import { ElMessageBox } from 'element-plus';
|
|
|
import ActionColomn from './actionColomns.vue';
|
|
|
import CompanyDrawer from './CompanyDrawer.vue';
|
|
|
import WorkshopDrawer from './WorkshopDrawer.vue';
|
|
|
import WorkspaceDrawer from './WorkspaceDrawer.vue';
|
|
|
import AddCompanyInfo from './AddCompanyInfo.vue';
|
|
|
import { DATA_LEVEL, DrawerType, ENABLED } from './constant';
|
|
|
+ import SceneDialog from './SceneDialog.vue';
|
|
|
import {
|
|
|
colomns,
|
|
|
updateSerials,
|
|
|
@@ -110,6 +152,7 @@
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
import { cloneDeep } from 'lodash-es';
|
|
|
+ import { ElMessageBox } from 'element-plus';
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
@@ -131,7 +174,7 @@
|
|
|
const total = computed(() => tableData.value.length);
|
|
|
const dialogVisible = ref<boolean>(false);
|
|
|
|
|
|
- const closeAddInfo = () => {
|
|
|
+ const closeDialog = () => {
|
|
|
dialogVisible.value = false;
|
|
|
};
|
|
|
|
|
|
@@ -161,9 +204,9 @@
|
|
|
|
|
|
//获取tableData数据
|
|
|
getSceneDetail();
|
|
|
- // getCompanyList().then((res)=>{
|
|
|
- // companyList.value = res
|
|
|
- // })
|
|
|
+ // getCompanyList().then((res) => {
|
|
|
+ // companyList.value = res;
|
|
|
+ // });
|
|
|
});
|
|
|
|
|
|
function onCheckedRow(rowKeys) {
|
|
|
@@ -220,7 +263,7 @@
|
|
|
// rowUpDisable:
|
|
|
// rowDownDisable:
|
|
|
subItem: record.row,
|
|
|
- handleRelate:handleRelate,
|
|
|
+ handleRelate: handleRelate,
|
|
|
handleConig: handleConfig,
|
|
|
handleAdd: handleAdd,
|
|
|
handleEdit: handleEdit,
|