{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\accessRule\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Normal\\BasicDataManagement\\accessRule\\index.vue","mtime":1720730442274},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_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//\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\nimport pagination from '@/components/pagination'\nimport {TableMixin} from '@/mixins/tableMixin'\nimport supplierManger from '@/api/supplierManger.js'\nimport req from '@/request.js'\nimport utils from '@/utils.js'\nconst portal = window.context.portal\nexport default {\n name: 'DemandEntry',\n components: {\n pagination\n },\n mixins: [TableMixin],\n data() {\n return {\n currentPage: 1,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n querys:[]\n },\n searchForm: {}, // 顶部搜索对\n currentDataDel: [], // 删除时排查是否有在审核的数据\n rules: {\n code: {\n required: true,\n message: '请输入路线编号',\n trigger: 'blur'\n },\n name: {\n required: true,\n message: '请选择路线名称',\n trigger: 'blur'\n }\n }\n }\n },\n mounted() {},\n created() {\n if (this.$route.params.pageBean) {\n this.params = this.$route.params.pageBean\n this.pageResult = this.$route.params.pageBean.pageBean\n }\n this.loadData(this.params)\n },\n methods: {\n getDictName(code, value) {\n return utils.getDictName(code, value)\n },\n //获取数据\n loadData() {\n this.tableLoading = true\n this.$http.post('${portal}/admissionConfig/v1/queryByPage',this.params).then(res=>{\n this.tableLoading = false\n const data = (res && res.data) || {}\n this.tableData = data.rows || []\n this.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n }\n })\n },\n //添加\n handleAdd() {\n this.$router.push({\n name: 'addRule',\n })\n },\n // 编辑\n handleEdit(rows) {\n this.$refs.form.clearValidate()\n this.$router.push({\n name: 'addRule',\n query: {editRows: rows}\n })\n },\n // 删除\n handleDelete() {\n let selection = this.$refs.multipleSelection.selection\n if (selection.length === 0) {\n this.$alert('请选择要删除的数据!', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n type: 'warning'\n })\n } else {\n let ids = []\n selection.forEach(item => {\n let str = item.id\n ids.push(str)\n })\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(() => {\n this.tableLoading = true\n this.$http.remove('${portal}/purchasingApplicationRules/v1/?ids='+ids).then(res=>{\n console.log(res,'resss');\n this.tableLoading = false\n if (res.data.state) {\n this.$message.success('删除成功!')\n this.handleSearch()\n }\n })\n })\n }\n },\n //重置\n clearSearchForm() {\n this.searchForm = {}\n this.handleSearch()\n },\n // 顶部搜索\n handleSearch() {\n let obj = this.searchForm\n let querys = []\n for (let i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: i == 'name' || i == 'code' ? 'LIKE' : 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n })\n }\n }\n\n this.params.querys = querys\n this.loadData(this.params)\n },\n handleCurrentChange(page) {\n this.params.pageBean = {...this.params.pageBean, page}\n this.loadData(this.params)\n },\n handleSizeChange(pageSize) {\n this.params.pageBean = {...this.params.pageBean, pageSize}\n this.loadData(this.params)\n }\n },\n computed: {\n SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n }\n }\n }\n}\n",null]}