{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\resIns\\dsmInsPosition.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\resIns\\dsmInsPosition.vue","mtime":1684458239465},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport FormDialog from './components/dsmlnsForm-dialog.vue'\r\nimport commonDialog from './components/commonForm-dialog.vue'\r\nimport dsmInsPosition from '@/api/resIns/dsmInsPosition.js'\r\nimport req from '@/request.js'\r\nimport { TableMixin } from '@/mixins/tableMixin'\r\nexport default {\r\n name: 'disPlacement',\r\n components: {\r\n commonDialog,\r\n FormDialog\r\n },\r\n mixins: [TableMixin],\r\n data () {\r\n return {\r\n loading: false,\r\n multipleSelection: [], // 复选框\r\n stcds: [],\r\n gradeCodes: [],\r\n queryParam: {\r\n pageBean: {\r\n pageSize: 20,\r\n page: 1\r\n },\r\n params: {\r\n structure: null, //巡检结构名称\r\n position: null, //巡检对象名称\r\n description: null //巡检对象要求描述,\r\n }\r\n },\r\n sortList: {},\r\n total: 0,\r\n title: '',\r\n showFormDia: false,\r\n commonShow: false, //常用配置弹框\r\n tableData: [],\r\n pId: ''\r\n }\r\n },\r\n created () {\r\n this.getDateList()\r\n this.getList()\r\n this.getSysDict()\r\n },\r\n methods: {\r\n getList () {\r\n dsmInsPosition.getgqList({}, res => {\r\n this.stcds = res.value\r\n this.getDateList()\r\n })\r\n },\r\n //保存排序\r\n savePropertyf () {\r\n dsmInsPosition.saveProperty(this.sortList, res => {\r\n\r\n this.getDateList()\r\n })\r\n },\r\n changeCode (val) {\r\n if (val) {\r\n this.queryParam.params.gradeCode = val\r\n } else {\r\n this.queryParam.params.gradeCode = ''\r\n }\r\n },\r\n getDateList () {\r\n this.loading = true\r\n this.tableData = []\r\n dsmInsPosition.ListGet(this.queryParam, res => {\r\n console.log(res.value.rows);\r\n res.value.rows.sort((a, b) => {\r\n return a.sn - b.sn\r\n })\r\n this.total = res.value.total\r\n this.tableData = res.value.rows\r\n this.loading = false\r\n })\r\n },\r\n insort (val) {\r\n let id = val.id\r\n let value = val.sn\r\n this.sortList[id] = value\r\n console.log(this.sortList);\r\n\r\n },\r\n openFormDiao () {\r\n this.title = '新增'\r\n this.showFormDia = true\r\n },\r\n openCommonFormDiao () {\r\n this.title = '新增'\r\n this.showFormDia = true\r\n },\r\n closeFormDiao () {\r\n this.showFormDia = false\r\n this.getDateList()\r\n },\r\n closeCommonFormDiao () {\r\n this.commonShow = false\r\n // this.getDateList()\r\n },\r\n handleSizeChange (val) {\r\n this.queryParam.pageBean.pageSize = val\r\n this.getDateList()\r\n },\r\n handleCurrentChange (val) {\r\n this.queryParam.pageBean.page = val\r\n this.getDateList()\r\n },\r\n handleUpdate (row) {\r\n this.title = '修改'\r\n this.pId = row.id\r\n this.showFormDia = true\r\n },\r\n handleSelectionChange (val) {\r\n this.multipleSelection = val.map(item => {\r\n return item.id\r\n })\r\n },\r\n // // 指定一个key标识这一行的数据\r\n getRowKey (row) {\r\n return row.id\r\n },\r\n // // 批量删除\r\n deleteSelect () {\r\n this.$confirm('确定删除选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n })\r\n .then(() => {\r\n dsmInsPosition\r\n .remove(this.multipleSelection, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000\r\n })\r\n this.$refs.multipleSelection.clearSelection()\r\n this.queryParam.pageBean.page = 1\r\n this.getDateList()\r\n }\r\n })\r\n .catch(res => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80\r\n })\r\n this.getDateList()\r\n })\r\n })\r\n .catch(() => { })\r\n },\r\n /** 删除按钮操作 */\r\n handleDelete (row) {\r\n this.$confirm('确定删除选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n })\r\n .then(() => {\r\n dsmInsPosition\r\n .remove(row.id, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000\r\n // offset: 80\r\n })\r\n this.queryParam.pageBean.page = 1\r\n this.getDateList()\r\n }\r\n })\r\n .catch(res => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80\r\n })\r\n this.getDateList()\r\n })\r\n })\r\n .catch(() => { })\r\n },\r\n //常用语配置\r\n handleClick (val) {\r\n this.commonShow = true\r\n this.pId = val.id\r\n },\r\n // // 点击查询\r\n onClickSearch () {\r\n this.queryParam.pageBean.page = 1\r\n this.getDateList()\r\n },\r\n // 重置\r\n resetQuery () {\r\n this.queryParam.params = {}\r\n this.onClickSearch()\r\n },\r\n //获取字典数据\r\n getSysDict () {\r\n let portal = window.context.portal\r\n return new Promise((resolve, reject) => {\r\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(\r\n response => { },\r\n error => {\r\n reject(error)\r\n }\r\n )\r\n })\r\n }\r\n }\r\n}\r\n",null]}