修改权限
This commit is contained in:
parent
28438fc0fa
commit
8395224f42
@ -255,7 +255,7 @@ function changeStatus(row: any) {
|
|||||||
<div style="display: flex;display: -webkit-flex;">
|
<div style="display: flex;display: -webkit-flex;">
|
||||||
<el-button type="primary" @click="addClick" v-hasPerm="['algorithm:add']">
|
<el-button type="primary" @click="addClick" v-hasPerm="['algorithm:add']">
|
||||||
新增</el-button>
|
新增</el-button>
|
||||||
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''" v-hasPerm="['algorithm:delete']"
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''" v-hasPerm="['algorithm:del']"
|
||||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -293,7 +293,7 @@ function changeStatus(row: any) {
|
|||||||
<img src="@/assets/table/edit.png" alt="" title="修改"
|
<img src="@/assets/table/edit.png" alt="" title="修改"
|
||||||
@click="editClick(scope.row)" style="cursor: pointer; " v-hasPerm="['algorithm:update']">
|
@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; " v-hasPerm="['algorithm:delete']">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['algorithm:del']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -656,7 +656,7 @@ function revokeExpression(){
|
|||||||
<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" v-hasPerm="['modelTrainTask:add']">新建训练任务</el-button>
|
<el-button type="primary" @click="addClick" v-hasPerm="['modelTrain:add']">新建训练任务</el-button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -695,13 +695,13 @@ function revokeExpression(){
|
|||||||
@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; " v-hasPerm="['modelTrainTask:release']">
|
@click="releaseClick(scope.row)" style="cursor: pointer; " v-hasPerm="['modelTrain:publish']">
|
||||||
<img v-else src="@/assets/table/release_disabled.png" alt="" title="发布模型" v-hasPerm="['modelTrainTask:release']">
|
<img v-else src="@/assets/table/release_disabled.png" alt="" title="发布模型" v-hasPerm="['modelTrain:publish']">
|
||||||
|
|
||||||
|
|
||||||
<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; " v-hasPerm="['modelTrainTask:delete']">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['modelTrain:del']">
|
||||||
<img v-else src="@/assets/table/del_disabled.png" alt="" title="删除" v-hasPerm="['modelTrainTask:delete']">
|
<img v-else src="@/assets/table/del_disabled.png" alt="" title="删除" v-hasPerm="['modelTrain:del']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -315,7 +315,7 @@ onMounted(() => {
|
|||||||
<el-button type="primary" style="margin: 0 10px;" v-hasPerm="['criticalData:import']">导入</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" v-hasPerm="['criticalData:delete']">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick" v-hasPerm="['criticalData:del']">删除</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
|
||||||
@ -341,7 +341,7 @@ onMounted(() => {
|
|||||||
<img src="@/assets/table/edit.png" alt="" title="修改"
|
<img src="@/assets/table/edit.png" alt="" title="修改"
|
||||||
@click="editClick(scope.row)" style="cursor: pointer; " v-hasPerm="['criticalData:update']">
|
@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; " v-hasPerm="['criticalData:delete']">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['criticalData:del']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -384,7 +384,7 @@ const handleInput = (val: string) => {
|
|||||||
: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' : ''" v-hasPerm="['device:delete']"
|
<el-button :type="multipleSelection.length > 0 ? 'primary' : ''" v-hasPerm="['device:del']"
|
||||||
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -458,7 +458,7 @@ const handleInput = (val: string) => {
|
|||||||
<img src="@/assets/table/edit.png" alt="" title="修改" v-hasPerm="['device:update']"
|
<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; " v-hasPerm="['device:delete']">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['device:del']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -328,7 +328,7 @@ onMounted(() => {
|
|||||||
<el-button type="primary" style="margin: 0 10px;" v-hasPerm="['material:import']">导入</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" v-hasPerm="['material:delete']">删除</el-button>
|
:disabled="multipleSelection.length <= 0" @click="delClick" v-hasPerm="['material:del']">删除</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
|
||||||
@ -351,7 +351,7 @@ onMounted(() => {
|
|||||||
<img src="@/assets/table/edit.png" alt="" title="修改" v-hasPerm="['material:update']"
|
<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; " v-hasPerm="['material:delete']">
|
@click="delAloneClick(scope.row)" style="cursor: pointer; " v-hasPerm="['material:del']">
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user