修改判断实验状态加载慢问题与开启实验台启动禁用效果

dev_2022-05-11
e 3 years ago
parent 42efa7a48e
commit 69db917e5d
  1. 2
      src/pages/assessment/list/index.vue
  2. 18
      src/pages/project/list/index.vue

@ -90,7 +90,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="实验状态" align="center"> <el-table-column label="实验状态" align="center">
<template slot-scope="scope" v-if="scope.row.show"> <template slot-scope="scope">
<span> <span>
{{ status[scope.row.status] }} {{ status[scope.row.status] }}
</span> </span>

@ -90,15 +90,15 @@
<el-button v-if="scope.row.founder != 0" type="text" @click="edit(scope.row,'1',queryData.founder)">编辑</el-button> <el-button v-if="scope.row.founder != 0" type="text" @click="edit(scope.row,'1',queryData.founder)">编辑</el-button>
<el-button v-if="scope.row.founder != 0" type="text" @click="handleDelete(scope.row.projectId)">删除</el-button> <el-button v-if="scope.row.founder != 0" type="text" @click="handleDelete(scope.row.projectId)">删除</el-button>
<el-button v-if="auth('复制')" type="text" @click="copyData(scope.row.projectId)">复制</el-button> <el-button v-if="auth('复制')" type="text" @click="copyData(scope.row.projectId)">复制</el-button>
<!-- <el-switch--> <el-switch
<!-- v-if="auth('禁用')"--> v-if="auth('禁用')"
<!-- v-model="scope.row.isOpen"--> v-model="scope.row.isOpen"
<!-- :active-text="scope.row.isOpen ? '关闭' : '启用'"--> :active-text="scope.row.isOpen ? '关闭' : '启用'"
<!-- :active-value="0"--> :active-value="0"
<!-- :inactive-value="1"--> :inactive-value="1"
<!-- style="margin: 0 10px 0 10px"--> style="margin: 0 10px 0 10px"
<!-- @change="switchOff(scope.row)"--> @change="switchOff(scope.row)"
<!-- ></el-switch>--> ></el-switch>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save