no message
							parent
							
								
									4c6688f182
								
							
						
					
					
						commit
						3287509594
					
				| 
						 | 
				
			
			@ -86,7 +86,7 @@
 | 
			
		|||
          </el-form-item>
 | 
			
		||||
 | 
			
		||||
          <el-form-item label="代码" prop="code">
 | 
			
		||||
            <el-input v-model="form.code" style="width: 370px;"/>
 | 
			
		||||
            <el-input v-model="form.code" @input="syncNameWithCode" style="width: 370px;"/>
 | 
			
		||||
          </el-form-item>
 | 
			
		||||
          <el-form-item label="名称">
 | 
			
		||||
            <el-input v-model="form.name" style="width: 370px;"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -355,6 +355,9 @@ export default {
 | 
			
		|||
    [CRUD.HOOK.beforeRefresh]() {
 | 
			
		||||
      return true
 | 
			
		||||
    },
 | 
			
		||||
    syncNameWithCode() {
 | 
			
		||||
      this.form.name = this.form.code;
 | 
			
		||||
    },
 | 
			
		||||
    // 改变状态
 | 
			
		||||
    changeEnabled(data, val) {
 | 
			
		||||
      this.$confirm('此操作将 "' + this.dict.label.base_staus[val] + ', 是否继续?', '提示', {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -91,7 +91,7 @@
 | 
			
		|||
      >
 | 
			
		||||
        <el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
 | 
			
		||||
          <el-form-item label="代码" prop="code">
 | 
			
		||||
            <el-input v-model="form.code" style="width: 370px;"/>
 | 
			
		||||
            <el-input v-model="form.code" @input="syncNameWithCode" style="width: 370px;"/>
 | 
			
		||||
          </el-form-item>
 | 
			
		||||
          <el-form-item label="名称" prop="name">
 | 
			
		||||
            <el-input v-model="form.name" style="width: 370px;"/>
 | 
			
		||||
| 
						 | 
				
			
			@ -188,7 +188,7 @@
 | 
			
		|||
        </el-table-column>
 | 
			
		||||
        <el-table-column :show-overflow-tooltip="true" prop="point" label="点位">
 | 
			
		||||
          <template slot-scope="scope">
 | 
			
		||||
            <span v-if="scope.row.point !=null">{{ scope.row.point.name }}</span>
 | 
			
		||||
            <span v-if="scope.row.point !=null">{{ scope.row.point.code }}</span>
 | 
			
		||||
          </template>
 | 
			
		||||
        </el-table-column>
 | 
			
		||||
        <el-table-column label="操作" align="center">
 | 
			
		||||
| 
						 | 
				
			
			@ -320,6 +320,9 @@ export default {
 | 
			
		|||
    [CRUD.HOOK.beforeRefresh]() {
 | 
			
		||||
      return true
 | 
			
		||||
    },
 | 
			
		||||
    syncNameWithCode() {
 | 
			
		||||
      this.form.name = this.form.code;
 | 
			
		||||
    },
 | 
			
		||||
    // 改变状态
 | 
			
		||||
    changeEnabled(data, val) {
 | 
			
		||||
      this.$confirm('此操作将 "' + this.dict.label.base_staus[val] + '" ' + data.code + ', 是否继续?', '提示', {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue