| | |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | disabled |
| | | type="textarea" |
| | | style=" max-width: 420px" |
| | | |
| | | autosize |
| | | /> |
| | | </el-form-item> |
| | |
| | | type="textarea" |
| | | resize="none" |
| | | style="height: 100%; overflow: auto" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuesuffix')" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuesuffix')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | v-model="ruleForm.checks" |
| | | multiple |
| | | style="width:100%;" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueexamine')" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valueexamine')" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | |
| | | queryDirTree().then((res) => { |
| | | // console.log(res); |
| | | if (res.code == 200) { |
| | | |
| | | this.oriData = res.result; |
| | | this.newData = res.result; |
| | | this.dirList = this.treeData(res.result); |
| | |
| | | if (currentId != 0) { |
| | | const tempChildrenNodex1 = pchildNodes[currentId - 1]; |
| | | const tempChildrenNodex2 = pchildNodes[currentId]; |
| | | tempChildrenNodex2.orderNum = |
| | | pchildNodes[currentId - 1].data.orderNum; |
| | | tempChildrenNodex1.orderNum = pchildNodes[currentId].data.orderNum; |
| | | // tempChildrenNodex2.orderNum = |
| | | // pchildNodes[currentId - 1].data.orderNum; |
| | | // tempChildrenNodex1.orderNum = pchildNodes[currentId].data.orderNum; |
| | | var arr = []; |
| | | this.oriData.filter((res) => { |
| | | if (res.id == tempChildrenNodex2.data.id) { |
| | | res.orderNum = tempChildrenNodex2.orderNum; |
| | | // res.orderNum = tempChildrenNodex2.orderNum; |
| | | arr.push(res); |
| | | } else if (res.id == tempChildrenNodex1.data.id) { |
| | | res.orderNum = tempChildrenNodex1.orderNum; |
| | | // res.orderNum = tempChildrenNodex1.orderNum; |
| | | arr.push(res); |
| | | } |
| | | }); |
| | | const orderNum = arr[1].orderNum |
| | | arr[1].orderNum = arr[0].orderNum |
| | | arr[0].orderNum = orderNum |
| | | this.newData = arr; |
| | | this.sendChange(); |
| | | } else { |
| | |
| | | if (currentId < pchildNodes.length - 1) { |
| | | const tempChildrenNodex1 = pchildNodes[currentId + 1]; |
| | | const tempChildrenNodex2 = pchildNodes[currentId]; |
| | | tempChildrenNodex2.orderNum = |
| | | pchildNodes[currentId + 1].data.orderNum; |
| | | tempChildrenNodex1.orderNum = pchildNodes[currentId].data.orderNum; |
| | | // tempChildrenNodex2.orderNum = |
| | | // pchildNodes[currentId + 1].data.orderNum; |
| | | // tempChildrenNodex1.orderNum = pchildNodes[currentId].data.orderNum; |
| | | var arr = []; |
| | | this.oriData.filter((res) => { |
| | | if (res.id == tempChildrenNodex2.data.id) { |
| | | res.orderNum = tempChildrenNodex2.orderNum; |
| | | // res.orderNum = tempChildrenNodex2.orderNum; |
| | | arr.push(res); |
| | | } else if (res.id == tempChildrenNodex1.data.id) { |
| | | res.orderNum = tempChildrenNodex1.orderNum; |
| | | // res.orderNum = tempChildrenNodex1.orderNum; |
| | | arr.push(res); |
| | | } |
| | | }); |
| | | const orderNum = arr[1].orderNum |
| | | arr[1].orderNum = arr[0].orderNum |
| | | arr[0].orderNum = orderNum |
| | | this.newData = arr; |
| | | this.sendChange(); |
| | | } else { |
| | |
| | | if (valid) { |
| | | this.fullscreenLoading = true; |
| | | var val = this.ruleForm; |
| | | val.checks = this.ruleForm.checks.toString() |
| | | if (this.ruleForm.checks) { |
| | | val.checks = this.ruleForm.checks.toString() |
| | | } else { |
| | | val.checks = '' |
| | | } |
| | | |
| | | |
| | | insertDir(val) |
| | | .then((res) => { |
| | | setTimeout(() => { |
| | |
| | | this.getDirTree(); |
| | | return; |
| | | } else { |
| | | this.$message.error("修改失败,请重试!"); |
| | | this.$message.error("移动失败,请重试!"); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.$message.error("修改失败,请重试!"); |
| | | this.$message.error("移动失败,请重试!"); |
| | | }); |
| | | }, |
| | | |