|
@@ -251,6 +251,37 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 添加或修改管道对话框 -->
|
|
|
+ <el-dialog :close-on-click-modal="false" title="批量修改" :visible.sync="openBatch" width="500px" append-to-body>
|
|
|
+ <el-form ref="form" :model="form" label-width="80px">
|
|
|
+ <el-form-item>
|
|
|
+ <span>已选择 {{ ids.length }} 条数据</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="确认人1" prop="confirmer1">
|
|
|
+ <el-input v-model="form.confirmer1" placeholder="请输入确认人1" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="确认人2" prop="confirmer2">
|
|
|
+ <el-input v-model="form.confirmer2" placeholder="请输入确认人2" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="时间确认" prop="confirmationDate">
|
|
|
+ <el-date-picker clearable size="small" style="width: 200px"
|
|
|
+ v-model="form.confirmationDate"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="备注" prop="remarks">
|
|
|
+ <el-input v-model="form.remarks" placeholder="请输入备注" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitFormBatch">确 定</el-button>
|
|
|
+ <el-button @click="cancelBatch">取 消</el-button>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<!-- 用户导入对话框 -->
|
|
|
<el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
|
<el-upload
|
|
@@ -285,7 +316,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listPipe,syncPipe, getPipe, delPipe, addPipe, updatePipe, exportPipe, importTemplate} from "@/api/pssr/pipe";
|
|
|
+import { listPipe,syncPipe, getPipe, delPipe, addPipe, updatePipe, exportPipe, importTemplate,updatePipeBatch} from "@/api/pssr/pipe";
|
|
|
import { treeselect } from "@/api/system/dept";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -330,6 +361,7 @@ export default {
|
|
|
clientHeight:300,
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
+ openBatch: false,
|
|
|
// 用户导入参数
|
|
|
upload: {
|
|
|
// 是否显示弹出层(用户导入)
|
|
@@ -460,8 +492,26 @@ export default {
|
|
|
this.title = "添加管道";
|
|
|
},
|
|
|
handleBatch(){
|
|
|
-
|
|
|
-
|
|
|
+ this.reset();
|
|
|
+ this.openBatch = true
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancelBatch() {
|
|
|
+ this.openBatch = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitFormBatch() {
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ this.form.ids = this.ids
|
|
|
+ updatePipeBatch(this.form).then(response => {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
//同步特种设备数据
|
|
|
handleSync(){
|