Commit f39d4179 by lixiaomin

修改机器详情

parent c453398a
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-input placeholder="请输入机器编码" v-model="queryParams.code" clearable @keyup.enter.native="handleQuery"></el-input> <el-input placeholder="请输入机器编码" v-model="queryParams.code" clearable @keyup.enter.native="handleQuery"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" v-hasPermi="['coupon:category:query']">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" v-hasPermi="['machine:machineDetails:query']">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -46,12 +46,12 @@ ...@@ -46,12 +46,12 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-show="scope.row.state == 4 || scope.row.state == 5" size="mini" type="text" @click="handleClick(scope.row,6)">下线</el-button> <el-button v-hasPermi="['machine:machineDetails:offline']" v-show="scope.row.state == 4 || scope.row.state == 5" size="mini" type="text" @click="handleClick(scope.row,6)">下线</el-button>
<el-button v-show="scope.row.state == 6 || scope.row.state == 7" size="mini" type="text" @click="handleClick(scope.row,8)">返厂</el-button> <el-button v-hasPermi="['machine:machineDetails:return']" v-show="scope.row.state == 6 || scope.row.state == 7" size="mini" type="text" @click="handleClick(scope.row,8)">返厂</el-button>
<el-button v-show="scope.row.state == 6" size="mini" type="text" @click="handleClick(scope.row,7)">运维</el-button> <el-button v-hasPermi="['machine:machineDetails:operations']" v-show="scope.row.state == 6" size="mini" type="text" @click="handleClick(scope.row,7)">运维</el-button>
<el-button v-show="scope.row.state == 6 || scope.row.state == 7" size="mini" type="text" @click="handleClick(scope.row,4)">上线</el-button> <el-button v-hasPermi="['machine:machineDetails:online']" v-show="scope.row.state == 6 || scope.row.state == 7" size="mini" type="text" @click="handleClick(scope.row,4)">上线</el-button>
<el-button v-show="scope.row.state == 2" size="mini" type="text" @click="handleBinding()">店铺绑定</el-button> <el-button v-hasPermi="['machine:machineDetails:bindShop']" v-show="scope.row.state == 2" size="mini" type="text" @click="handleBinding()">店铺绑定</el-button>
<el-button v-show="scope.row.state == 8" size="mini" type="text" @click="handleClick(scope.row,1)">重置</el-button> <el-button v-hasPermi="['machine:machineDetails:reset']" v-show="scope.row.state == 8" size="mini" type="text" @click="handleClick(scope.row,1)">重置</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment