更新自贡
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
<!--
|
||||
* @Author: zwq
|
||||
* @Date: 2024-04-15 16:52:38
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-04-17 17:01:26
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<!-- 列表 -->
|
||||
@@ -48,13 +55,12 @@ import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
|
||||
|
||||
const tableProps = [
|
||||
{
|
||||
prop: 'name',
|
||||
prop: 'label',
|
||||
label: '成本名称',
|
||||
},
|
||||
{
|
||||
prop: 'type',
|
||||
label: '自动计算方式',
|
||||
width: 220,
|
||||
subcomponent: typeRule,
|
||||
},
|
||||
{
|
||||
@@ -69,11 +75,10 @@ export default {
|
||||
return {
|
||||
urlOptions: {
|
||||
getDataListURL: getRawOthercostRulePage,
|
||||
deleteURL: deleteCostMaterialSet,
|
||||
},
|
||||
tableProps,
|
||||
tableBtn: [
|
||||
this.$auth.hasPermi(`extend:cost-material-set:update`)
|
||||
this.$auth.hasPermi(`monitoring:cost-othercost-rule:update`)
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
@@ -89,6 +94,16 @@ export default {
|
||||
created() {
|
||||
},
|
||||
methods: {
|
||||
//tableBtn点击
|
||||
handleClick(val) {
|
||||
if (val.type === "edit") {
|
||||
this.addOrUpdateVisible = true;
|
||||
this.addOrEditTitle = "编辑";
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addOrUpdate.init(val.data);
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user