YF-yuan 3 jaren geleden
bovenliggende
commit
e1e412fda3
2 gewijzigde bestanden met toevoegingen van 32 en 0 verwijderingen
  1. +18
    -0
      src/api/chain/assessmentContent.js
  2. +14
    -0
      src/views/chain/assessmentContent.vue

+ 18
- 0
src/api/chain/assessmentContent.js Bestand weergeven

@@ -0,0 +1,18 @@
import axios from "@/config/axios"
export default{
getList(params){
return axios.get('/chainindustry/index',{params})
},
add(params){
return axios.post('/chainindustry/add',params)
},
edit(params){
return axios.put('/chainindustry/edit',params)
},
getDetail(id){
return axios.get('/chainindustry/info/'+id)
},
delete(id){
return axios.delete('/chainindustry/delete/'+id)
},
}

+ 14
- 0
src/views/chain/assessmentContent.vue Bestand weergeven

@@ -180,6 +180,7 @@ import search from "./search";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import Treeselect from "@riophae/vue-treeselect"; // 下拉树
import { mapGetters } from "vuex";
import api from "@/api/chain/assessmentContent"
export default {
components: {
search,
@@ -202,7 +203,20 @@ export default {
dialogTitle: "",
};
},
created(){
this.getList();
},
methods: {
getList(){
this.loading=true;
api.getList(Object.assign({},this.searchParams)).then(res=>{
this.dataList=res.data.data;
}).catch(e=>{
this.dataList=[];
}).finally(()=>{
this.loading=false;
})
},
edit(index, ind) {
this.showEdit = true;
let title = "新增考核内容";

Laden…
Annuleren
Opslaan