Commit 9cef9ac6 by guolu

fix: 兼容scope写法,变成slot-scope

parent ef17f38a
......@@ -14,6 +14,7 @@
"echarts": "^3.6.2",
"element-ui": "^1.3.7",
"vue": "^2.3.3",
"vue-hot-reload-api": "^2.3.4",
"vue-router": "^2.3.1"
},
"devDependencies": {
......
......@@ -17,7 +17,7 @@
<el-table-column prop="FunctionName" label="可查看模块" show-overflow-tooltip align="left">
</el-table-column>
<el-table-column label="操作" width="150" show-overflow-tooltip>
<template scope="scope">
<template slot-scope="scope">
<el-button size="small" @click="ShowEditWindow(scope.$index)" :disabled="disableButton(scope.$index)" v-if="UpdateRoleShow">编辑</el-button>
<el-button size="small" type="danger" @click="deleteRole(scope.$index)" :disabled="disableButton(scope.$index)" v-if="DeleteRoleShow">删除</el-button>
</template>
......
......@@ -36,7 +36,7 @@
<el-table-column prop="Name" label="姓名" show-overflow-tooltip>
</el-table-column>
<el-table-column label="操作" show-overflow-tooltip width="320">
<template scope="scope">
<template slot-scope="scope">
<el-button size="small" v-on:click="OpenRePower(scope.$index)" :disabled="disableButton(scope.$index)">查看权限</el-button>
<el-button size="small" v-on:click="OpenRePassword(scope.$index)" :disabled="disableButton(scope.$index)" v-if="ResetPwdShow">重置密码</el-button>
<el-button size="small" @click="getUserDetail(scope.$index)" :disabled="disableButton(scope.$index)" v-if="UpdateUserShow">修改</el-button>
......
......@@ -19,7 +19,7 @@
<el-table-column prop="EnableName" label="是否启用" show-overflow-tooltip align="left" width="150">
</el-table-column>
<el-table-column label="操作" width="200" show-overflow-tooltip>
<template scope="scope">
<template slot-scope="scope">
<el-button size="small" @click="ShowBatLibraryEditWindow(scope.$index)" v-if="UpdateBatLibraryRight">编辑</el-button>
<!-- <el-button size="small" type="danger" @click="deleteRole(scope.$index)">删除</el-button> -->
<el-button size="small" type="danger" @click="enableCustomBat(scope.$index)" v-if="scope.row.Enabled && EnableBatLibraryRight" >禁用</el-button>
......@@ -44,23 +44,23 @@
<el-table :data="batParam">
<el-table-column label="参数名称" width="150">
<template scope="scope">
<template slot-scope="scope">
<el-input v-model="scope.row.ParamName"></el-input>
</template>
</el-table-column>
<el-table-column label="参数内容" width="200">
<template scope="scope">
<template slot-scope="scope">
<el-input v-model="scope.row.ParamContent"></el-input>
</template>
</el-table-column>
<el-table-column property="Remark" label="参数说明" width="400">
<template scope="scope">
<template slot-scope="scope">
<el-input v-model="scope.row.Remark"></el-input>
</template>
</el-table-column>
<el-table-column label="操作">
<template scope="scope">
<template>
<el-button type="primary" @click="AddParam()">添加</el-button>
</template>
</el-table-column>
......@@ -68,24 +68,24 @@
<br/>
<el-table :data="batParams">
<el-table-column label="参数名称" width="150">
<template scope="scope">
<template slot-scope="scope">
<el-input v-model="scope.row.ParamName"></el-input>
</template>
</el-table-column>
<el-table-column label="参数内容" width="200">
<template scope="scope">
<template slot-scope="scope">
<el-input v-model="scope.row.ParamContent"></el-input>
</template>
</el-table-column>
<el-table-column property="Remark" label="参数说明" width="400">
<template scope="scope">
<template slot-scope="scope">
<el-input v-model="scope.row.Remark"></el-input>
</template>
</el-table-column>
<el-table-column :context="_self" label="操作">
<template scope="scope">
<template slot-scope="scope">
<i class="el-icon-circle-cross" @click="delParam(scope.row)" title="删除"></i>
</template>
......
......@@ -19,12 +19,12 @@
<el-table-column prop="EnableName" label="是否启用" show-overflow-tooltip align="left" width="100">
</el-table-column>
<el-table-column label="下载脚本" show-overflow-tooltip align="left" width="100">
<template scope="scope">
<template slot-scope="scope">
<el-button size="small" @click="downLoad(scope.$index)">下载脚本</el-button>
</template>
</el-table-column>
<el-table-column label="操作" width="200" show-overflow-tooltip>
<template scope="scope">
<template slot-scope="scope">
<el-button size="small" @click="getCustomBatDetail(scope.$index)" v-if="UpdateCustomBatRight">编辑</el-button>
<el-button size="small" type="danger" @click="enableCustomBat(scope.$index)" v-if="scope.row.Enabled=='True' && EnableCustomBatRight">禁用</el-button>
<el-button size="small" type="success" @click="enableCustomBat(scope.$index)" v-if="scope.row.Enabled!='True' && EnableCustomBatRight">启用</el-button>
......@@ -54,13 +54,13 @@
<el-table-column label="脚本说明" width="200" prop="Remark">
</el-table-column>
<el-table-column label="脚本参数" width="400">
<template scope="scope">
<template slot-scope="scope">
<el-table :data="scope.row.Params">
<el-table-column label="参数名称" width="150" prop="ParamName">
</el-table-column>
<el-table-column label="参数值" width="200">
<template scope="scope">
<template slot-scope="scope">
<el-input v-model="scope.row.ParamValue"></el-input>
</template>
</el-table-column>
......@@ -68,7 +68,7 @@
</template>
</el-table-column>
<el-table-column :context="_self" label="操作">
<template scope="scope">
<template slot-scope="scope">
<i class="el-icon-circle-cross" @click="deleteSelectedBat(scope.$index)" title="删除"></i>
<i class="el-icon-arrow-down" @click="down(scope.$index)"></i>
<i class="el-icon-arrow-up" @click="up(scope.$index)"></i>
......@@ -98,7 +98,7 @@
</el-table-column>
<el-table-column label="参数说明" width="400">
<template scope="scope">
<template slot-scope="scope">
<el-table :data="scope.row.Params">
<el-table-column label="参数名称" width="150" prop="ParamName">
</el-table-column>
......
......@@ -83,7 +83,7 @@
<el-table-column prop="address" label="地区">
</el-table-column>
<el-table-column prop="operation" label="操作">
<template scope="scope">
<template slot-scope="scope">
<el-button type="primary">查看更新详情</el-button>
</template>
</el-table-column>
......@@ -124,7 +124,7 @@
<el-table-column prop="address" label="地区">
</el-table-column>
<el-table-column prop="operation" label="操作">
<template scope="scope">
<template>
<el-button type="primary">查看更新详情</el-button>
</template>
</el-table-column>
......@@ -165,7 +165,7 @@
<el-table-column prop="address" label="地区">
</el-table-column>
<el-table-column prop="operation" label="操作">
<template scope="scope">
<template>
<el-button type="primary">查看更新详情</el-button>
</template>
</el-table-column>
......@@ -206,7 +206,7 @@
<el-table-column prop="address" label="地区">
</el-table-column>
<el-table-column prop="operation" label="操作">
<template scope="scope">
<template>
<el-button type="primary">查看更新详情</el-button>
</template>
</el-table-column>
......
......@@ -59,7 +59,7 @@
<!--<el-table-column prop="HardwareNum" label="硬件序列号" width="120">
</el-table-column>-->
<el-table-column label="操作" min-width="140" show-overflow-tooltip>
<template scope="scope">
<template slot-scope="scope">
<el-button @click="LookDetailMess(scope.$index)" type="primary" size="small">
<i class="el-icon-menu"> 查看详情</i>
</el-button>
......
......@@ -71,7 +71,7 @@
<el-table-column prop="KeyMapping" label="键位" width="100">
</el-table-column>
<el-table-column label="操作" min-width="120" show-overflow-tooltip>
<template scope="scope">
<template slot-scope="scope">
<el-button @click="LookDetail(scope.$index)" type="primary" size="small">
<i class="el-icon-menu "> 查看详情</i>
</el-button>
......
......@@ -16,14 +16,14 @@
<el-table-column prop="ExecutionStatus" label="执行状态" width="120">
</el-table-column>
<el-table-column prop="ProDetail" label="查看任务详情" width="120" v-if="viewTaskShow">
<template scope="scope">
<template slot-scope="scope">
<el-button type="primary" @click="OpenProDetail(scope.$index)" size="small">
查看任务详情
</el-button>
</template>
</el-table-column>
<el-table-column label="操作" min-width="120" show-overflow-tooltip>
<template scope="scope">
<template slot-scope="scope">
<el-button type="primary" size="small" :disabled="getStartOrStopButtonEnable(scope.$index)" @click="OpenOrPauseTask(scope.$index)" v-if="openTaskShow">
<img style="width:10px" :src="getStartOrStopButtonSrc(scope.$index)" alt="">
</el-button>
......
......@@ -120,7 +120,7 @@
<el-table-column prop="address" label="地区">
</el-table-column>
<el-table-column prop="operation" label="操作">
<template scope="scope">
<template slot-scope="scope">
<el-button @click="OpenShopDetail(scope.$index)" type="primary">查看</el-button>
</template>
</el-table-column>
......
......@@ -77,7 +77,7 @@
</el-table-column>
<el-table-column prop="type" label="终端类型 " show-overflow-tooltip> </el-table-column>
<el-table-column label="操作" width="70">
<template scope="scope">
<template slot-scope="scope">
<el-button @click.native.prevent="deleteRow(scope.$index, selectStoreListView)" type="text" size="small">
移除
</el-button>
......
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