btp信息

This commit is contained in:
lai_kd
2019-09-07 15:19:04 +08:00
parent 10f19d0722
commit d30f9dd1b4
@@ -13,7 +13,8 @@
</el-col>
<el-col :span="12">
<el-form-item label="名称" prop="name">
<el-input :readonly="readonly" v-model="dataForm.name" placeholder="名称" style="width:170px"></el-input>
<el-input :readonly="readonly" v-bind:disabled="dataForm.id!=0" v-model="dataForm.name" placeholder="名称"
style="width:170px"></el-input>
</el-form-item>
</el-col>
</el-row>
@@ -181,14 +182,11 @@
methods: {
init(id) {
this.dataForm.id = id || 0
console.log("id-------===" + id);
if (id == null || id == undefined) {
this.addorupdflag = true;
} else {
this.addorupdflag = false;
}
console.log(this.addorupdflag);
console.log("******************");
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
@@ -208,13 +206,7 @@
// 表单提交
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
console.log(valid + "---valid");
if (valid) {
console.log(!this.addorupdflag);
console.log(this.addorupdflag);
console.log("*******------**************")
console.log(`/buipubbpc1/pubbtpinf/${this.addorupdflag ? 'add' : 'update'}.do`)
console.log("*******------**************")
this.$http({
url: this.$http.adornUrl(`/buipubbpc1/pubbtpinf/${this.addorupdflag ? 'add' : 'update'}.do`),
method: 'post',