|
|
@@ -5,16 +5,17 @@
|
|
|
icon="el-icon-edit"
|
|
|
circle
|
|
|
@click="handleEdit"></el-button>
|
|
|
- <el-button size="mini"
|
|
|
- type="danger"
|
|
|
- icon="el-icon-delete"
|
|
|
- circle
|
|
|
- @click="handleDelete()"></el-button>
|
|
|
<el-button size="mini"
|
|
|
type="info"
|
|
|
icon="el-icon-notebook-2"
|
|
|
circle
|
|
|
@click="handleDetail()"></el-button>
|
|
|
+ <el-button size="mini"
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ circle
|
|
|
+ @click="handleDelete()"></el-button>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -32,6 +33,12 @@ export default Vue.extend({
|
|
|
let id = this.params.data['Id']
|
|
|
this.params.context.page.handleEdit(id)
|
|
|
},
|
|
|
+ handleDetail () {
|
|
|
+ let Id = parseInt(this.params.data['Id'])
|
|
|
+ let name = this.params.data['FullName']
|
|
|
+ let ItemCode = this.params.data['Code']
|
|
|
+ this.$router.push({ path: '/sysadmin/itemdetail', query: { Id: Id, name: name, ItemCode: ItemCode } })
|
|
|
+ },
|
|
|
handleDelete () {
|
|
|
let id = this.params.data['Id']
|
|
|
let _this = this
|
|
|
@@ -42,12 +49,6 @@ export default Vue.extend({
|
|
|
}).then(() => {
|
|
|
this.params.context.page.handleDelete(id)
|
|
|
}).catch(() => { })
|
|
|
- },
|
|
|
- handleDetail () {
|
|
|
- let Id = parseInt(this.params.data['Id'])
|
|
|
- let name = this.params.data['FullName']
|
|
|
- let ItemCode = this.params.data['Code']
|
|
|
- this.$router.push({ path: '/sysadmin/itemdetail', query: { Id: Id, name: name, ItemCode: ItemCode } })
|
|
|
}
|
|
|
}
|
|
|
})
|