Commit a5717a0d by xinla

素材中心-列表与详情中修改素材功能组件提取公用

1 parent 621a64b3
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
}, },
}, },
created() { created() {
this.$emit('update:data', this.data) this.$emit('update:data', this.data) // 赋默认值
getList().then((res) => { getList().then((res) => {
this.stageList = res.data this.stageList = res.data
}) })
......
...@@ -924,8 +924,7 @@ export default { ...@@ -924,8 +924,7 @@ export default {
} }
if (isBack) { if (isBack) {
this.$refs.page.getList(1) this.$refs.page?.getList(1)
// this.beforeCloseDialog()
} }
}) })
.catch(() => { .catch(() => {
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
<el-button text @click="$refs.page.detail(scope.row)" v-hasPermi="['wechat:material:detail']"> <el-button text @click="$refs.page.detail(scope.row)" v-hasPermi="['wechat:material:detail']">
详情|统计 详情|统计
</el-button> </el-button>
<el-button text @click="$refs.page.edit(scope.row, 12)">编辑</el-button> <el-button text @click="$refs.page.edit(scope.row)">编辑</el-button>
<el-button text @click="$refs.page.remove(scope.row.id)">删除</el-button> <el-button text @click="$refs.page.remove(scope.row.id)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!