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