|
|
|
|
@ -25,6 +25,11 @@
|
|
|
|
|
:row-key="(row) => row._index"
|
|
|
|
|
:table-item="table"
|
|
|
|
|
:auths="[]"
|
|
|
|
|
:row-style="({ row }) => {
|
|
|
|
|
return {
|
|
|
|
|
'height': '44px'
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
>
|
|
|
|
|
</xy-table>
|
|
|
|
|
|
|
|
|
|
@ -50,7 +55,7 @@
|
|
|
|
|
<el-form-item label="内容" required prop="content">
|
|
|
|
|
<el-input
|
|
|
|
|
type="textarea"
|
|
|
|
|
:autosize="{ minRows: 30 }"
|
|
|
|
|
:autosize="{ minRows: 15 }"
|
|
|
|
|
v-model="form.content"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
@ -86,7 +91,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-drawer>
|
|
|
|
|
|
|
|
|
|
<detail ref="show" @edit="editShow"></detail>
|
|
|
|
|
<detail ref="show"
|
|
|
|
|
@edit="editShow"
|
|
|
|
|
@destroyed="() => {
|
|
|
|
|
getCategories()
|
|
|
|
|
getStatics()
|
|
|
|
|
}"></detail>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -98,7 +108,7 @@ export default {
|
|
|
|
|
components: {
|
|
|
|
|
detail
|
|
|
|
|
},
|
|
|
|
|
inject: ['myInfo', 'statics'],
|
|
|
|
|
inject: ['myInfo', 'statics', 'getStatics'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isShowDrawer: false,
|
|
|
|
|
@ -156,11 +166,11 @@ export default {
|
|
|
|
|
label: "填报要求",
|
|
|
|
|
width: 240,
|
|
|
|
|
customFn: row => {
|
|
|
|
|
return(<div>
|
|
|
|
|
return row._is_end ? (<div>
|
|
|
|
|
{
|
|
|
|
|
row.rules.map(item => (<div>{item.start_at} ~ {item.end_at}不少于{item.quantity}条</div>))
|
|
|
|
|
}
|
|
|
|
|
</div>)
|
|
|
|
|
</div>) : ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -274,13 +284,18 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
this.$integrateData(this.form, res)
|
|
|
|
|
this.form.id = id
|
|
|
|
|
this.fileList = res?.files?.map(i => ({
|
|
|
|
|
name: i.original_name,
|
|
|
|
|
url: i.url,
|
|
|
|
|
response: i
|
|
|
|
|
})) || []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async editShow (id) {
|
|
|
|
|
this.type = 'edit'
|
|
|
|
|
await this.getDetail(id)
|
|
|
|
|
let rule = this.pickRule.find(i => i.id === this.form.category_rule_id)
|
|
|
|
|
this.form._week = `${rule.start_at} ~ ${rule.end_at}`
|
|
|
|
|
this.form._week = `${rule?.start_at || ''} ~ ${rule?.end_at || ''}`
|
|
|
|
|
|
|
|
|
|
this.isShowDrawer = true
|
|
|
|
|
},
|
|
|
|
|
@ -362,6 +377,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.isShowDrawer = false;
|
|
|
|
|
this.getCategories()
|
|
|
|
|
this.getStatics()
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
save(this.form).then((res) => {
|
|
|
|
|
|