Commit d3aa7b99 by 无尘

fix: 修改编辑分类

parent a3e1ae65
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.31d1da65735e8f3e8655b9b292ab17b4.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.56b80794f6520f1f0670.js></script><script type=text/javascript src=./static/js/vendor.928b68e48614c700460c.js></script><script type=text/javascript src=./static/js/app.4829cd62b645b96be9c9.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.0d835206e479e6a3cf695732950e10fd.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.a121b589d73339f9ce83.js></script><script type=text/javascript src=./static/js/vendor.928b68e48614c700460c.js></script><script type=text/javascript src=./static/js/app.afe325d5e3956a2ad6c5.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(c,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var c={},f={81:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"d3d4eb3714fc6b86ca6d",1:"0ebe3ead93207dc78a78",2:"6c502a930cfc2e54a0d0",3:"10aacdeb93493baf861f",4:"8cd20f68174aaab2441d",5:"bf058fa04f7b2b11b1bc",6:"2c8526a3245ec6b1e3bd",7:"8f462a353a2ce9c0c116",8:"e5372980f04518fa84ec",9:"860dbe8cf83334f9e3c0",10:"28e14270d70d6a29f157",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"02c1f318efb8ad51c2f2",14:"78e9fc71ce79bee5e570",15:"b9ac3428fbf05e58374e",16:"c4ebe5ae46670e5c0754",17:"fa12cc3bf2181d16ef8c",18:"d56ca44284feb601117a",19:"6f5045aa6067b477873d",20:"75e0997b94e5d6294ec8",21:"6bd871faff9520219f01",22:"43ab9b5bfdc74ce6b20e",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"b549610764e2236c48ce",27:"acda88d3c2aa77c9f51c",28:"0635cfc88ef2b2920961",29:"0d3db47f464a37be4a3e",30:"c6439b279653a45ce256",31:"8baa6bca929d1c9a38f6",32:"ec0bbd85e6d55909453d",33:"a93521846789130a144e",34:"d7271b9c0396e2e0b343",35:"32cae9a3f9ba6b187945",36:"d31850464ea8bdf6593f",37:"31c143858551cadfe3a9",38:"7da020455236ec9cc0e6",39:"8d8a3b88d85b3220e296",40:"f4fd9d68a9e906649040",41:"9fcb9feb2cab7a8a2cbe",42:"47c4c30ceefa4af03de5",43:"2689bc2d619a26183b90",44:"deb9f07fde1e218414cf",45:"feeb9dd78b7b12f700d2",46:"a2f306cec3cdc3c685d3",47:"ad1d3e7f3e13e438bcbf",48:"ef7f29a451f2754469b0",49:"f6871122a1fa7e18f158",50:"07c4baa205f7e23b698d",51:"7fc0ff7b08a3b083ca59",52:"1d2a5ba0923414f73e06",53:"8802335b18fef4b4450b",54:"97a5f9645e47c9a491fd",55:"5af32707cdbeae957afc",56:"98caf4e5ee697f98808f",57:"a12e3dac3c8f19bf20ab",58:"4eca8a1ed0c691766a4e",59:"d90b9f9627f3c3832c23",60:"aeab9555497ec6593f72",61:"2f37d96bc91f0a637cad",62:"59294e07de6b496244cf",63:"6077852270b0c59eff8a",64:"071bad1248843a633c76",65:"a36bf94fdaed1ee1ee50",66:"3ba7e89277d851279c4d",67:"54211f408298416c6536",68:"510e6b0aa6ffadff566b",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"646f1b9348d1bb8cfbf7",75:"6b82dfb7f160db815f54",76:"5d50222646fc31640f30",77:"9f7ea81c191a5e1bbaa2",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(c,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var c={},f={81:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"d3d4eb3714fc6b86ca6d",1:"0ebe3ead93207dc78a78",2:"6c502a930cfc2e54a0d0",3:"4b6916fa0363005c44de",4:"8cd20f68174aaab2441d",5:"bf058fa04f7b2b11b1bc",6:"2c8526a3245ec6b1e3bd",7:"8f462a353a2ce9c0c116",8:"e5372980f04518fa84ec",9:"860dbe8cf83334f9e3c0",10:"28e14270d70d6a29f157",11:"6f34ed1ff774c3811be5",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"2db4e13b049c8acc9488",15:"b9ac3428fbf05e58374e",16:"c4ebe5ae46670e5c0754",17:"fa12cc3bf2181d16ef8c",18:"d56ca44284feb601117a",19:"6f5045aa6067b477873d",20:"75e0997b94e5d6294ec8",21:"6bd871faff9520219f01",22:"43ab9b5bfdc74ce6b20e",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"b549610764e2236c48ce",27:"acda88d3c2aa77c9f51c",28:"0635cfc88ef2b2920961",29:"0d3db47f464a37be4a3e",30:"c6439b279653a45ce256",31:"8baa6bca929d1c9a38f6",32:"ec0bbd85e6d55909453d",33:"a93521846789130a144e",34:"d7271b9c0396e2e0b343",35:"32cae9a3f9ba6b187945",36:"d31850464ea8bdf6593f",37:"31c143858551cadfe3a9",38:"7da020455236ec9cc0e6",39:"8d8a3b88d85b3220e296",40:"f4fd9d68a9e906649040",41:"9fcb9feb2cab7a8a2cbe",42:"47c4c30ceefa4af03de5",43:"2689bc2d619a26183b90",44:"deb9f07fde1e218414cf",45:"feeb9dd78b7b12f700d2",46:"a2f306cec3cdc3c685d3",47:"ad1d3e7f3e13e438bcbf",48:"ef7f29a451f2754469b0",49:"f6871122a1fa7e18f158",50:"07c4baa205f7e23b698d",51:"7fc0ff7b08a3b083ca59",52:"1d2a5ba0923414f73e06",53:"8802335b18fef4b4450b",54:"97a5f9645e47c9a491fd",55:"5af32707cdbeae957afc",56:"98caf4e5ee697f98808f",57:"a12e3dac3c8f19bf20ab",58:"4eca8a1ed0c691766a4e",59:"d90b9f9627f3c3832c23",60:"aeab9555497ec6593f72",61:"2f37d96bc91f0a637cad",62:"59294e07de6b496244cf",63:"6077852270b0c59eff8a",64:"071bad1248843a633c76",65:"a36bf94fdaed1ee1ee50",66:"3ba7e89277d851279c4d",67:"54211f408298416c6536",68:"510e6b0aa6ffadff566b",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"646f1b9348d1bb8cfbf7",75:"6b82dfb7f160db815f54",76:"5d50222646fc31640f30",77:"9f7ea81c191a5e1bbaa2",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -18,7 +18,7 @@
</div>
<el-form :model="formData" label-width="94px" :rules="rules" ref="classifyForm">
<el-form-item label="分类名称:" prop="classifyName">
<limitInput :inputWidth="440" :inputValue.sync="formData.classifyName" :holder="'请输入分类名称'" :getByType="'word'" :maxLength="8"> </limitInput>
<limitInputBlur :inputWidth="440" :inputValue.sync="formData.classifyName" :holder="'请输入分类名称'" :getByType="'word'" :maxLength="8"> </limitInputBlur>
</el-form-item>
</el-form>
</div>
......@@ -30,7 +30,7 @@
</div>
</template>
<script>
import limitInput from '@/components/limit-input.vue';
import limitInputBlur from '@/components/limit-input-blur.vue';
export default {
name: 'create-classify',
props: {
......@@ -52,7 +52,7 @@ export default {
}
},
components: {
limitInput
limitInputBlur
},
data() {
return {
......
<!--
限制输入框组件
<limitInput
:inputWidth="500"
:limitClass="'limit-color'"
:disflag='!childItem.fieldEdited'
:inputValue.sync="ruleForm.addressDetail"
:holder="'请输入详细地址'"
:getByType="'word'"
:maxLength="40">
</limitInput>
-->
<template>
<div :class="['input-line-cell', limitClass]" :style="{ width: inputWidth + 'px' }">
<el-input :style="{ width: inputWidth + 'px' }" v-model="itemValue" :disabled="disflag" :placeholder="holder" @focus="inputFocus()" @blur="value => toInput(value)"> </el-input>
<span class="tip"
><span class="len_span">{{ inputNum }}</span
>/{{ limitLength }}</span
>
</div>
</template>
<script>
import strLength from '@/common/js/strlen';
export default {
name: 'limitinput',
props: {
// 传入 input value
inputValue: {
type: [String, Number],
default() {
return '';
}
},
// 限制长度
maxLength: {
type: Number,
default: 10
},
// input 长度
inputWidth: {
type: Number,
default: 500
},
// 字或字符判断类型
getByType: {
type: String,
default: 'word' // word: 字, char: 字符
},
holder: {
type: String,
default: '请输入'
},
disflag: {
type: Boolean,
default: false
},
limitClass: {
type: String,
default: ''
}
},
data() {
return {
inputNum: 0,
limitLength: 10,
itemValue: ''
};
},
methods: {
/* eslint-disable */
inputFocus(num) {},
// 输入
toInput: function(value) {
const that = this;
let temp = '';
if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
temp = strLength.getCharVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getByteLen(that.itemValue);
}
that.$emit('update:inputValue', that.itemValue);
},
},
watch: {
maxLength: function(newData, oldData) {
const that = this;
that.limitLength = newData;
},
inputValue: function(newData, oldData) {
let that = this;
that.itemValue = newData || '';
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
that.inputNum = strLength.getByteLen(that.itemValue);
}
}
},
/* 接收数据 */
mounted() {
let that = this;
that.limitLength = that.maxLength;
that.itemValue = that.inputValue || '';
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.inputValue);
} else {
that.inputNum = strLength.getByteLen(that.inputValue);
}
}
};
</script>
<style lang="less" scoped>
.input-line-cell {
position: relative;
display: inline-block;
&.limit-color {
.tip {
color: rgba(255, 255, 255, 0.7);
}
}
}
.w-340 {
width: 340px;
/deep/ .el-input__inner {
font-size: 14px;
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
}
.el-input {
/deep/ .el-input__inner {
font-size: 14px;
color: #606266;
background-color: rgba(255, 255, 255, 0.1);
}
&.is-disabled {
opacity: 0.5;
}
.is-disabled {
/deep/ .el-input__inner {
font-size: 14px;
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
}
}
.tip {
position: absolute;
top: 2px;
right: 10px;
display: inline-block;
line-height: 32px;
text-align: right;
font-size: 12px;
color: #c0c4cc;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment