添加权限设置
This commit is contained in:
parent
86c7d1c7a9
commit
8b5f6ffc36
@ -1470,11 +1470,11 @@ const boundaryClick = () => {
|
|||||||
<img src="@/assets/x6/reduce.png">
|
<img src="@/assets/x6/reduce.png">
|
||||||
<div class="operation-icon-text">缩小</div>
|
<div class="operation-icon-text">缩小</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="operation-icon-box" @click="isDisplay = !isDisplay">
|
<!-- <div class="operation-icon-box" @click="isDisplay = !isDisplay">
|
||||||
<img v-if="isDisplay" src="@/assets/x6/display.png">
|
<img v-if="isDisplay" src="@/assets/x6/display.png">
|
||||||
<img v-else src="@/assets/x6/hide.png">
|
<img v-else src="@/assets/x6/hide.png">
|
||||||
<div class="operation-icon-text">显示</div>
|
<div class="operation-icon-text">显示</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<div class="operation-icon-box" style="width: 60px;" @click="boundaryClick">
|
<div class="operation-icon-box" style="width: 60px;" @click="boundaryClick">
|
||||||
<img v-if="!isBoundary" src="@/assets/x6/display.png">
|
<img v-if="!isBoundary" src="@/assets/x6/display.png">
|
||||||
|
|||||||
@ -253,9 +253,9 @@ function changeStatus(row: any) {
|
|||||||
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex;display: -webkit-flex;">
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
<el-button type="primary" @click="addClick">
|
<el-button type="primary" @click="addClick" v-hasPerm="['algorithm:add']">
|
||||||
新增</el-button>
|
新增</el-button>
|
||||||
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''" v-hasPerm="['algorithm:delete']"
|
||||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -272,7 +272,7 @@ function changeStatus(row: any) {
|
|||||||
{{ dateFormat(scope.row.updatedAt) }}
|
{{ dateFormat(scope.row.updatedAt) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" label="是否激活" width="90" align="center">
|
<el-table-column prop="status" label="是否激活" width="90" align="center" v-hasPerm="['algorithm:update']">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.status"
|
v-model="scope.row.status"
|
||||||
@ -291,9 +291,9 @@ function changeStatus(row: any) {
|
|||||||
<span
|
<span
|
||||||
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
||||||
<img src="@/assets/table/edit.png" alt="" title="修改"
|
<img src="@/assets/table/edit.png" alt="" title="修改"
|
||||||
@click="editClick(scope.row)" style="cursor: pointer; ">
|
@click="editClick(scope.row)" style="cursor: pointer; " v-hasPerm="['algorithm:update']">
|
||||||
<img src="@/assets/table/del.png" alt="" title="删除"
|
<img src="@/assets/table/del.png" alt="" title="删除"
|
||||||
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['algorithm:delete']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -345,7 +345,7 @@ function changeStatus(row: any) {
|
|||||||
<span class="dialog-footer"
|
<span class="dialog-footer"
|
||||||
style="display: flex;display: -webkit-flex; justify-content: flex-end;-webkit-justify-content: flex-end;">
|
style="display: flex;display: -webkit-flex; justify-content: flex-end;-webkit-justify-content: flex-end;">
|
||||||
<el-button @click="handleClose">取 消</el-button>
|
<el-button @click="handleClose">取 消</el-button>
|
||||||
<el-button type="primary" @click="confirmClick(infoForm)">确 定</el-button>
|
<el-button type="primary" @click="confirmClick(infoForm)" v-hasPerm="['algorithm:update']">确 定</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|||||||
@ -187,7 +187,7 @@ function editClick(row: any) {
|
|||||||
|
|
||||||
//删除算法数据
|
//删除算法数据
|
||||||
function delAloneClick(row: any) {
|
function delAloneClick(row: any) {
|
||||||
ElMessageBox.confirm("确定删除此算法数据吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除此算法版本吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
@ -252,7 +252,7 @@ onMounted(() => {
|
|||||||
gettableData();
|
gettableData();
|
||||||
});
|
});
|
||||||
function changeStatus(row: any) {
|
function changeStatus(row: any) {
|
||||||
ElMessageBox.confirm("确定是否激活此算法数据吗?", "激活提示", {
|
ElMessageBox.confirm("确定是否激活此算法版本吗?", "激活提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
@ -302,7 +302,7 @@ function changeShowResult(isShow:boolean){ // 切换显示结果模型
|
|||||||
<!-- <el-button type="primary" @click="addClick">
|
<!-- <el-button type="primary" @click="addClick">
|
||||||
新增</el-button> -->
|
新增</el-button> -->
|
||||||
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
||||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick" v-hasPerm="['algorithmModel:delete']">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 270px);margin-bottom: 10px;" border
|
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 270px);margin-bottom: 10px;" border
|
||||||
@ -337,10 +337,10 @@ function changeShowResult(isShow:boolean){ // 切换显示结果模型
|
|||||||
<img src="@/assets/table/view.png" alt="" title="查看详情"
|
<img src="@/assets/table/view.png" alt="" title="查看详情"
|
||||||
@click="editClick(scope.row)" style="cursor: pointer; ">
|
@click="editClick(scope.row)" style="cursor: pointer; ">
|
||||||
<img src="@/assets/table/activate.png" alt="" title="是否激活"
|
<img src="@/assets/table/activate.png" alt="" title="是否激活"
|
||||||
@click="changeStatus(scope.row)" style="cursor: pointer; ">
|
@click="changeStatus(scope.row)" style="cursor: pointer; " v-hasPerm="['algorithmModel:activate']">
|
||||||
<img v-if="scope.row.isCurrent == 0" src="@/assets/table/del.png" alt="" title="删除"
|
<img v-if="scope.row.isCurrent == 0" src="@/assets/table/del.png" alt="" title="删除"
|
||||||
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['algorithmModel:delete']">
|
||||||
<img v-else src="@/assets/table/del_disabled.png" alt="" title="删除">
|
<img v-else src="@/assets/table/del_disabled.png" alt="" title="删除" v-hasPerm="['algorithmModel:delete']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -483,7 +483,7 @@ const objectSpanMethod = ({
|
|||||||
<div style="display: flex;display: -webkit-flex;">
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
<el-button type="primary" style="margin-left: 10px" @click="gettableData">查询</el-button>
|
<el-button type="primary" style="margin-left: 10px" @click="gettableData">查询</el-button>
|
||||||
<el-button type="primary" @click="resetClick">重置</el-button>
|
<el-button type="primary" @click="resetClick">重置</el-button>
|
||||||
<el-button type="primary" @click="addClick">新建训练任务</el-button>
|
<el-button type="primary" @click="addClick" v-hasPerm="['modelTrainTask:add']">新建训练任务</el-button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -522,13 +522,13 @@ const objectSpanMethod = ({
|
|||||||
@click="viewClick(scope.row)" style="cursor: pointer; ">
|
@click="viewClick(scope.row)" style="cursor: pointer; ">
|
||||||
|
|
||||||
<img src="@/assets/table/release.png" alt="" title="发布模型" v-if="scope.row.status == 'Success'"
|
<img src="@/assets/table/release.png" alt="" title="发布模型" v-if="scope.row.status == 'Success'"
|
||||||
@click="releaseClick(scope.row)" style="cursor: pointer; ">
|
@click="releaseClick(scope.row)" style="cursor: pointer; " v-hasPerm="['modelTrainTask:release']">
|
||||||
<img v-else src="@/assets/table/release_disabled.png" alt="" title="发布模型">
|
<img v-else src="@/assets/table/release_disabled.png" alt="" title="发布模型" v-hasPerm="['modelTrainTask:release']">
|
||||||
|
|
||||||
|
|
||||||
<img v-if="scope.row.status == 'Success' ||scope.row.status == 'Failed' " src="@/assets/table/del.png" alt="" title="删除"
|
<img v-if="scope.row.status == 'Success' ||scope.row.status == 'Failed' " src="@/assets/table/del.png" alt="" title="删除"
|
||||||
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['modelTrainTask:delete']">
|
||||||
<img v-else src="@/assets/table/del_disabled.png" alt="" title="删除">
|
<img v-else src="@/assets/table/del_disabled.png" alt="" title="删除" v-hasPerm="['modelTrainTask:delete']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -78,7 +78,7 @@ function handleMenu(row:any) {
|
|||||||
const infoForm = ref();
|
const infoForm = ref();
|
||||||
//搜索内容及点击搜索按钮
|
//搜索内容及点击搜索按钮
|
||||||
const input = ref("");
|
const input = ref("");
|
||||||
//新建设备
|
//新建临界数据
|
||||||
const title = ref("");
|
const title = ref("");
|
||||||
const info: any = ref({
|
const info: any = ref({
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ const info: any = ref({
|
|||||||
|
|
||||||
const dialogVisible = ref(false);
|
const dialogVisible = ref(false);
|
||||||
function addClick() {
|
function addClick() {
|
||||||
title.value = "新增设备";
|
title.value = "新增临界数据";
|
||||||
info.value = {
|
info.value = {
|
||||||
deviceType: queryParams.value.type,
|
deviceType: queryParams.value.type,
|
||||||
diameter: null,
|
diameter: null,
|
||||||
@ -105,7 +105,7 @@ function addClick() {
|
|||||||
customAttrsData.value = []
|
customAttrsData.value = []
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
}
|
}
|
||||||
//新建设备-确认按钮/修改按钮
|
//新建临界数据-确认按钮/修改按钮
|
||||||
function confirmClick(formEl: any) {
|
function confirmClick(formEl: any) {
|
||||||
formEl.validate((valid: any) => {
|
formEl.validate((valid: any) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@ -160,21 +160,21 @@ function handleClose() {
|
|||||||
dialogVisible.value = false;
|
dialogVisible.value = false;
|
||||||
if (infoForm.value != null) infoForm.value.resetFields();
|
if (infoForm.value != null) infoForm.value.resetFields();
|
||||||
}
|
}
|
||||||
//新建设备
|
//新建临界数据
|
||||||
const rules = ref({
|
const rules = ref({
|
||||||
name: [{ required: true, message: "请输入设备名称", trigger: "blur" }],
|
name: [{ required: true, message: "请输入临界数据名称", trigger: "blur" }],
|
||||||
code: [{ required: true, message: "请输入设备编码", trigger: "blur" }],
|
code: [{ required: true, message: "请输入临界数据编码", trigger: "blur" }],
|
||||||
});
|
});
|
||||||
//修改设备
|
//修改临界数据
|
||||||
function editClick(row: any) {
|
function editClick(row: any) {
|
||||||
title.value = "修改设备";
|
title.value = "修改临界数据";
|
||||||
info.value = JSON.parse(JSON.stringify(row));
|
info.value = JSON.parse(JSON.stringify(row));
|
||||||
dialogVisible.value = true;
|
dialogVisible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除设备
|
//删除临界数据
|
||||||
function delAloneClick(row: any) {
|
function delAloneClick(row: any) {
|
||||||
ElMessageBox.confirm("确定删除此设备吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除此临界数据吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
@ -196,7 +196,7 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择设备吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择临界数据吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
@ -295,11 +295,11 @@ onMounted(() => {
|
|||||||
<div
|
<div
|
||||||
style="display: flex;display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between;margin-bottom: 10px">
|
style="display: flex;display: -webkit-flex; justify-content: space-between; -webkit-justify-content: space-between;margin-bottom: 10px">
|
||||||
<div style="display: flex;display: -webkit-flex;">
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
<!-- <el-input v-model="input" placeholder="请输入设备名称" @keyup.enter="gettableData" style="width: 200px" clearable />
|
<!-- <el-input v-model="input" placeholder="请输入临界数据名称" @keyup.enter="gettableData" style="width: 200px" clearable />
|
||||||
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button> -->
|
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex;display: -webkit-flex;">
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
<el-button type="primary" @click="addClick">
|
<el-button type="primary" @click="addClick" v-hasPerm="['criticalData:add']">
|
||||||
新增</el-button>
|
新增</el-button>
|
||||||
<el-upload
|
<el-upload
|
||||||
ref="upload"
|
ref="upload"
|
||||||
@ -312,10 +312,10 @@ onMounted(() => {
|
|||||||
:before-upload="handlePreview"
|
:before-upload="handlePreview"
|
||||||
:on-success="handlesSuccess"
|
:on-success="handlesSuccess"
|
||||||
:on-error="handleError">
|
:on-error="handleError">
|
||||||
<el-button type="primary" style="margin: 0 10px;">导入</el-button>
|
<el-button type="primary" style="margin: 0 10px;" v-hasPerm="['criticalData:import']">导入</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
||||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick" v-hasPerm="['criticalData:delete']">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 260px);margin-bottom: 10px;" border
|
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 260px);margin-bottom: 10px;" border
|
||||||
@ -339,9 +339,9 @@ onMounted(() => {
|
|||||||
<span
|
<span
|
||||||
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
||||||
<img src="@/assets/table/edit.png" alt="" title="修改"
|
<img src="@/assets/table/edit.png" alt="" title="修改"
|
||||||
@click="editClick(scope.row)" style="cursor: pointer; ">
|
@click="editClick(scope.row)" style="cursor: pointer; " v-hasPerm="['criticalData:update']">
|
||||||
<img src="@/assets/table/del.png" alt="" title="删除"
|
<img src="@/assets/table/del.png" alt="" title="删除"
|
||||||
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['criticalData:delete']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -350,11 +350,11 @@ onMounted(() => {
|
|||||||
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex;display: -webkit-flex;">
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
<el-button type="primary" @click="addClick">
|
<el-button type="primary" @click="addClick" v-hasPerm="['device:add']">
|
||||||
新增</el-button>
|
新增</el-button>
|
||||||
<el-upload
|
<el-upload
|
||||||
ref="upload"
|
ref="upload"
|
||||||
accept=".xlsx,.xls"
|
accept=".xlsx,.xls" v-hasPerm="['device:import']"
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
:data="{deviceType: queryParams.type}"
|
:data="{deviceType: queryParams.type}"
|
||||||
:action=" url + '/devices/import' "
|
:action=" url + '/devices/import' "
|
||||||
@ -365,7 +365,7 @@ onMounted(() => {
|
|||||||
:on-error="handleError">
|
:on-error="handleError">
|
||||||
<el-button type="primary" style="margin: 0 10px;">导入</el-button>
|
<el-button type="primary" style="margin: 0 10px;">导入</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''" v-hasPerm="['device:delete']"
|
||||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -436,10 +436,10 @@ onMounted(() => {
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span
|
<span
|
||||||
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
||||||
<img src="@/assets/table/edit.png" alt="" title="修改"
|
<img src="@/assets/table/edit.png" alt="" title="修改" v-hasPerm="['device:update']"
|
||||||
@click="editClick(scope.row)" style="cursor: pointer; ">
|
@click="editClick(scope.row)" style="cursor: pointer; ">
|
||||||
<img src="@/assets/table/del.png" alt="" title="删除"
|
<img src="@/assets/table/del.png" alt="" title="删除"
|
||||||
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['device:delete']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -313,7 +313,7 @@ onMounted(() => {
|
|||||||
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
<el-button type="primary" style="margin-left: 10px" @click="gettableData">搜索</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex;display: -webkit-flex;">
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
<el-button type="primary" @click="addClick">
|
<el-button type="primary" @click="addClick" v-hasPerm="['material:add']">
|
||||||
新增</el-button>
|
新增</el-button>
|
||||||
<el-upload
|
<el-upload
|
||||||
ref="upload"
|
ref="upload"
|
||||||
@ -325,10 +325,10 @@ onMounted(() => {
|
|||||||
:before-upload="handlePreview"
|
:before-upload="handlePreview"
|
||||||
:on-success="handlesSuccess"
|
:on-success="handlesSuccess"
|
||||||
:on-error="handleError">
|
:on-error="handleError">
|
||||||
<el-button type="primary" style="margin: 0 10px;">导入</el-button>
|
<el-button type="primary" style="margin: 0 10px;" v-hasPerm="['material:import']">导入</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''"
|
||||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick" v-hasPerm="['material:delete']">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 260px);margin-bottom: 10px;" border
|
<el-table v-loading="loading" :data="tableData" style="width: 100%; height: calc(100vh - 260px);margin-bottom: 10px;" border
|
||||||
@ -348,10 +348,10 @@ onMounted(() => {
|
|||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span
|
<span
|
||||||
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
style="display: flex;display: -webkit-flex; justify-content: space-around;-webkit-justify-content: space-around; ">
|
||||||
<img src="@/assets/table/edit.png" alt="" title="修改"
|
<img src="@/assets/table/edit.png" alt="" title="修改" v-hasPerm="['material:update']"
|
||||||
@click="editClick(scope.row)" style="cursor: pointer; ">
|
@click="editClick(scope.row)" style="cursor: pointer; ">
|
||||||
<img src="@/assets/table/del.png" alt="" title="删除"
|
<img src="@/assets/table/del.png" alt="" title="删除"
|
||||||
@click="delAloneClick(scope.row)" style="cursor: pointer; ">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['material:delete']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -70,7 +70,7 @@ function confirmClick(formEl: any) {
|
|||||||
});
|
});
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if( isSonAlgorithmType != deviceData.value.length){
|
if( isSonAlgorithmType != deviceData.value.length && isAlgorithmType == true){
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "设备算法配置映射没有填写完全",
|
message: "设备算法配置映射没有填写完全",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user