master
xy 3 years ago
parent 5eafcdcbba
commit d5ef591186

@ -28,7 +28,7 @@
</template>
<script>
import { realTableShow, realTableIndex, save, show, relationDestroy } from "@/api/system/customForm";
import { realTableShow, realTableIndex, save, show, relationDestroy, update } from "@/api/system/customForm";
import {listparameter} from "@/api/system/dictionary";
export default {
@ -165,6 +165,7 @@ export default {
customFn: (row) => {
return (
<el-select size="mini"
disabled={!!row.parameter_id}
value={row.link_relation}
on={{
['change']:e => {
@ -198,10 +199,10 @@ export default {
}}
on={{
['click']:e => {
console.log(row)
this.copyTable.relation = [row]
this.copyTable.relation = this.list
save(this.copyTable).then(res => {
this.getDetail()
update({ id: this.copyTable.id })
})
}
}}> </el-button>
@ -227,6 +228,7 @@ export default {
if(row.id){
relationDestroy({ id: row.id }).then(res => {
this.getDetail()
update({ id: this.copyTable.id })
})
} else {
this.list.splice(scope.$index, 1)

Loading…
Cancel
Save