Merge branch 'dev' into build
This commit is contained in:
		| @@ -17,8 +17,17 @@ Vue.use(vcUI); | ||||
| Vue.config.productionTip = false; | ||||
| Object.keys(utils).map((e) => (Vue.prototype[e] = utils[e])); | ||||
| Vue.prototype.$request = axios | ||||
| new Vue({ | ||||
| const app = new Vue({ | ||||
|   router, | ||||
|   store, | ||||
|   render: (h) => h(App) | ||||
| }).$mount('#app'); | ||||
|   render: h => h(App) | ||||
| }); | ||||
| let theme = null | ||||
| store.dispatch('getSystem').then(({colorScheme}) => { | ||||
|   theme = JSON.parse(colorScheme || null) | ||||
|   Vue.prototype.$theme = theme?.web || "blue" | ||||
|   return import(`dvcp-ui/lib/styles/theme.${theme?.web}.scss`).catch(() => 0) | ||||
| }).finally(() => { | ||||
|   !theme ? app.$mount('#app') : import(`dvcp-ui/lib/styles/common.scss`).finally(() => app.$mount('#app')) | ||||
| }) | ||||
|  | ||||
|   | ||||
| @@ -162,6 +162,10 @@ | ||||
|         <el-form-item label="备案跳转链接"> | ||||
|           <el-input v-model="sysInfo.recordURL" placeholder="请输入..." clearable/> | ||||
|         </el-form-item> | ||||
|         <el-form-item label="框架版本"> | ||||
|           <!--edition :版本,标准版:standard、上架版:saas--> | ||||
|           <el-input v-model="sysInfo.edition" placeholder="请输入..." clearable/> | ||||
|         </el-form-item> | ||||
|       </el-form> | ||||
|     </ai-dialog> | ||||
|   </section> | ||||
|   | ||||
| @@ -49,7 +49,7 @@ export default { | ||||
|     permissions: Function | ||||
|   }, | ||||
|   computed: { | ||||
|     ...mapState(['user']), | ||||
|     ...mapState(['user', 'sys']), | ||||
|     rules() { | ||||
|       return { | ||||
|         labelName: [{required: true, message: "请输入标签"}], | ||||
| @@ -57,7 +57,12 @@ export default { | ||||
|     }, | ||||
|     dialogTitle() { | ||||
|       return `${this.form.id ? "编辑" : "添加"}标签` | ||||
|     } | ||||
|     }, | ||||
|     colConfigs: v => [{type: "selection"}, | ||||
|       {label: "标签信息", prop: "labelName"}, | ||||
|       {label: "创建时间", prop: "createTime", align: '120px'}, | ||||
|       {label: "创建人", prop: "createUserName", align: 'center', openType: v.sys.info?.edition == "saas" ? "userName" : null}, | ||||
|       {slot: "options"}] | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
| @@ -66,13 +71,6 @@ export default { | ||||
|       tableData: [], | ||||
|       search: {name: "", ids: ""}, | ||||
|       form: {}, | ||||
|       colConfigs: [ | ||||
|         {type: "selection"}, | ||||
|         {label: "标签信息", prop: "labelName"}, | ||||
|         {label: "创建时间", prop: "createTime", align: '120px'}, | ||||
|         {label: "创建人", prop: "createUserName", align: 'center'}, | ||||
|         {slot: "options"} | ||||
|       ] | ||||
|     } | ||||
|   }, | ||||
|   methods: { | ||||
|   | ||||
| @@ -632,7 +632,8 @@ export default { | ||||
|             examines: this.form.examines.length ? this.form.examines.map(v => { | ||||
|               return { | ||||
|                 ...v, | ||||
|                 examineUserId: v.id | ||||
|                 examineUserId: v.id, | ||||
|                 examineUserName: v.name | ||||
|               } | ||||
|             }) : [] | ||||
|           }).then(res => { | ||||
|   | ||||
| @@ -33,7 +33,7 @@ | ||||
|               <div class="user-wrapper"> | ||||
|                 <div class="user" v-for="(item, index) in info.examines" :key="index"> | ||||
|                   <img src="https://cdn.cunwuyun.cn/dvcp/announce/user.png" /> | ||||
|                   <span>{{ item.name }}</span> | ||||
|                   <span>{{ item.examineUserName }}</span> | ||||
|                 </div> | ||||
|               </div> | ||||
|             </ai-info-item> | ||||
| @@ -294,11 +294,11 @@ | ||||
|         content: '', | ||||
|         currIndex: 0, | ||||
|         colConfigs3: [ | ||||
|           { prop: 'groupOwnerName', label: '群主', openType: 'userName' }, | ||||
|           { prop: 'groupOwnerName', label: '群主' }, | ||||
|           { prop: 'groupNames', label: '群名称' } | ||||
|         ], | ||||
|         colConfigs1: [ | ||||
|           { slot: 'user', label: '成员', openType: 'userName' }, | ||||
|           { slot: 'user', label: '成员' }, | ||||
|           { prop: 'groupCount', label: '预计送达居民群', align: 'center' } | ||||
|         ], | ||||
|         colConfigs2: [ | ||||
|   | ||||
| @@ -135,6 +135,19 @@ export default { | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     var controlPhone = (rule, value, callback) => { | ||||
|       if (!value) { | ||||
|         callback() | ||||
|       } else { | ||||
|         const reg = /^[0-9]{3,11}$/ | ||||
|         if (reg.test(value)) { | ||||
|           callback() | ||||
|         } else { | ||||
|           return callback(new Error('请输入正确的电话号码')) | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     let IdNumberPass = (rule, value, callback) => { | ||||
|       if (value) { | ||||
|         if (this.idCardNoUtil.checkIdCardNo(value)) { | ||||
| @@ -253,7 +266,7 @@ export default { | ||||
|           type: 'input', | ||||
|           grid: 1, | ||||
|           formDbName: 'controlPhone', | ||||
|           rules: { validator: regPhone, trigger: 'blur' } | ||||
|           rules: { validator: controlPhone, trigger: 'blur' } | ||||
|         }, | ||||
|         { | ||||
|           label: '有无犯罪史', | ||||
|   | ||||
| @@ -135,6 +135,19 @@ export default { | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     var controlPhone = (rule, value, callback) => { | ||||
|       if (!value) { | ||||
|         callback() | ||||
|       } else { | ||||
|         const reg = /^[0-9]{3,11}$/ | ||||
|         if (reg.test(value)) { | ||||
|           callback() | ||||
|         } else { | ||||
|           return callback(new Error('请输入正确的电话号码')) | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     let IdNumberPass = (rule, value, callback) => { | ||||
|       if (value) { | ||||
|         if (this.idCardNoUtil.checkIdCardNo(value)) { | ||||
| @@ -239,7 +252,7 @@ export default { | ||||
|           type: 'input', | ||||
|           grid: 1, | ||||
|           formDbName: 'helpPhone', | ||||
|           rules: { validator: regPhone, trigger: 'blur' } | ||||
|           rules: { validator: controlPhone, trigger: 'blur' } | ||||
|         }, | ||||
|         { | ||||
|           label: '目前危险等级', | ||||
|   | ||||
| @@ -65,8 +65,8 @@ | ||||
|           { prop: 'name', label: '姓名' }, | ||||
|           { prop: 'idNumber', align: 'center', label: '身份证号' }, | ||||
|           { prop: 'gender', align: 'center', label: '性别' }, | ||||
|           { prop: 'birthday', align: 'center', label: '出生日期' },  | ||||
|           { prop: 'age', align: 'center', label: '年龄', },  | ||||
|           { prop: 'birthday', align: 'center', label: '出生日期' }, | ||||
|           { prop: 'age', align: 'center', label: '年龄', }, | ||||
|           { prop: 'phone', align: 'center', label: '联系方式' } | ||||
|         ], | ||||
|         tableData: [], | ||||
| @@ -103,6 +103,7 @@ | ||||
|               let info = this.idCardNoUtil.getIdCardInfo(v.idNumber) | ||||
|               v.birthday = info.birthday | ||||
|               v.age = this.$calcAge(v.idNumber) | ||||
|               v.gender = info.gender | ||||
|  | ||||
|               return v | ||||
|             }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user