|  | @@ -55,6 +55,14 @@
 | 
	
		
			
				|  |  |          </el-button>
 | 
	
		
			
				|  |  |          <el-button type="text" icon="el-icon-edit" size="small" @click.stop="rowDel(scope.row, scope.index)">删除
 | 
	
		
			
				|  |  |          </el-button>
 | 
	
		
			
				|  |  | +          <el-button v-if="scope.row.status == 1" type="text" icon="el-icon-turn-off" style="color: #85e967" size="small"
 | 
	
		
			
				|  |  | +                     @click.stop="statusfun(scope.row.id,0)">
 | 
	
		
			
				|  |  | +              启用
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  | +          <el-button v-if="scope.row.status == 0" type="text" icon="el-icon-turn-off" style="color: #e83c3a" size="small"
 | 
	
		
			
				|  |  | +                     @click.stop="statusfun(scope.row.id,1)">
 | 
	
		
			
				|  |  | +              停用
 | 
	
		
			
				|  |  | +          </el-button>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        </template>
 | 
	
		
			
				|  |  |      </avue-crud>
 | 
	
	
		
			
				|  | @@ -90,7 +98,7 @@
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |        <span slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  |          <el-button @click="dialogVisible = false; extendedDisabled = false">取 消</el-button>
 | 
	
		
			
				|  |  | -        <el-button type="primary" @click="dialogVisible = false; extendedDisabled = false">确 定</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="primary" @click="extendedDatafun">确 定</el-button>
 | 
	
		
			
				|  |  |        </span>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -436,6 +444,26 @@ export default {
 | 
	
		
			
				|  |  |      this.option = await this.getColumnData(this.getColumnName(291), this.optionBack);
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +      // 禁用启用按钮
 | 
	
		
			
				|  |  | +      statusfun(id,status){
 | 
	
		
			
				|  |  | +          this.$confirm("确定将选择数据更改状态?", {
 | 
	
		
			
				|  |  | +              confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +              cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +              type: "warning"
 | 
	
		
			
				|  |  | +          }).then(()=>{
 | 
	
		
			
				|  |  | +              bcntrtypesDetail(id).then(res=>{
 | 
	
		
			
				|  |  | +                  let obj = res.data.data;
 | 
	
		
			
				|  |  | +                  obj.status = status
 | 
	
		
			
				|  |  | +                  bcntrtypesSubmit(obj).then(()=>{
 | 
	
		
			
				|  |  | +                      this.onLoad(this.page);
 | 
	
		
			
				|  |  | +                      this.$message({
 | 
	
		
			
				|  |  | +                          type: "success",
 | 
	
		
			
				|  |  | +                          message: "操作成功!"
 | 
	
		
			
				|  |  | +                      });
 | 
	
		
			
				|  |  | +                  })
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      // 导出
 | 
	
		
			
				|  |  |      handleExport() {
 | 
	
		
			
				|  |  |        var condition = ''
 | 
	
	
		
			
				|  | @@ -497,9 +525,9 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 扩展数据添加
 | 
	
		
			
				|  |  |      extendedDataAdd() {
 | 
	
		
			
				|  |  | -      this.form.extendedDataArr.map(item => {
 | 
	
		
			
				|  |  | -        item.edit = false
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | +      // this.form.extendedDataArr.map(item => {
 | 
	
		
			
				|  |  | +      //   item.edit = false
 | 
	
		
			
				|  |  | +      // })
 | 
	
		
			
				|  |  |        this.form.extendedDataArr.push({
 | 
	
		
			
				|  |  |          edit: true
 | 
	
		
			
				|  |  |        })
 | 
	
	
		
			
				|  | @@ -513,6 +541,31 @@ export default {
 | 
	
		
			
				|  |  |      extendedDataDelete(index, row) {
 | 
	
		
			
				|  |  |        this.form.extendedDataArr.splice(index, 1)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +      // 扩展数据的确认
 | 
	
		
			
				|  |  | +      extendedDatafun(){
 | 
	
		
			
				|  |  | +          for(let item of this.form.extendedDataArr) {
 | 
	
		
			
				|  |  | +              if (!item.name) {
 | 
	
		
			
				|  |  | +                  this.$message({
 | 
	
		
			
				|  |  | +                      type: "warning",
 | 
	
		
			
				|  |  | +                      message: "请填写名称!"
 | 
	
		
			
				|  |  | +                  });
 | 
	
		
			
				|  |  | +                  return
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +              if (!item.value) {
 | 
	
		
			
				|  |  | +                  this.$message({
 | 
	
		
			
				|  |  | +                      type: "warning",
 | 
	
		
			
				|  |  | +                      message: "请填写键值!"
 | 
	
		
			
				|  |  | +                  });
 | 
	
		
			
				|  |  | +                  return;
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          this.dialogVisible = false;
 | 
	
		
			
				|  |  | +          this.extendedDisabled = false
 | 
	
		
			
				|  |  | +          this.form.extendedDataArr.map(item => {
 | 
	
		
			
				|  |  | +              item.edit = false
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      // 新增
 | 
	
		
			
				|  |  |      addbtnfun() {
 |