标签管理
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
<script>
|
||||
import addFormData from '@/components/addForm/index'
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'docLibraryAddForm',
|
||||
@@ -38,12 +39,40 @@
|
||||
drawerWidth: 1000,
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
url: {}
|
||||
isDisplayType:false,
|
||||
dataList:[]
|
||||
}
|
||||
},
|
||||
props:{
|
||||
flag: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
//接口
|
||||
url: {
|
||||
type: Object,
|
||||
default: {}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.formData()
|
||||
},
|
||||
methods: {
|
||||
formData(){
|
||||
let params = {
|
||||
flag: this.flag
|
||||
}
|
||||
getAction(this.url.formList, params).then((res) => {
|
||||
if(res.success){
|
||||
|
||||
}
|
||||
console.log('res',res)
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
|
||||
console.log('2222')
|
||||
},
|
||||
add() {
|
||||
this.visible = true
|
||||
@@ -53,6 +82,13 @@
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$refs.addFormDataRef.sumber()
|
||||
// postAction(this.url.datarule,params).then(res=>{
|
||||
// if(res.success){
|
||||
// this.$message.success(res.message)
|
||||
// }else{
|
||||
// this.$message.error(res.message)
|
||||
// }
|
||||
// })
|
||||
console.log('11111')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user