|
@@ -33,13 +33,33 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<!--文本内容 formItem.describe-->
|
|
<!--文本内容 formItem.describe-->
|
|
|
- <el-input
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-if="['varchar', 'content', 'text'].indexOf(formItem.frontType) > -1"
|
|
|
|
|
+ v-model="dataForm[formItem.name]"
|
|
|
|
|
+ :type="formItem.itemType == 'password' ? 'password' : 'text'"
|
|
|
|
|
+ :placeholder="`请输入${formItem.alias}`"
|
|
|
|
|
+ :disabled="isView"
|
|
|
|
|
+ >
|
|
|
|
|
+ <!-- 后缀插槽:放置眼睛图标 -->
|
|
|
|
|
+ <template #suffix v-if="formItem.name == 'password'">
|
|
|
|
|
+ <el-icon
|
|
|
|
|
+ class="cursor-pointer"
|
|
|
|
|
+ @click="togglePassword(formItem)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <View v-if="showPassword" />
|
|
|
|
|
+ <Hide v-else />
|
|
|
|
|
+ </el-icon>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <el-input
|
|
|
v-if="['varchar', 'content', 'text'].indexOf(formItem.frontType) > -1"
|
|
v-if="['varchar', 'content', 'text'].indexOf(formItem.frontType) > -1"
|
|
|
v-model="dataForm[formItem.name]"
|
|
v-model="dataForm[formItem.name]"
|
|
|
:type="formItem.name == 'password' ? 'password' : 'text'"
|
|
:type="formItem.name == 'password' ? 'password' : 'text'"
|
|
|
:placeholder="`请输入${formItem.alias}`"
|
|
:placeholder="`请输入${formItem.alias}`"
|
|
|
:disabled="isView"
|
|
:disabled="isView"
|
|
|
- />
|
|
|
|
|
|
|
+ /> -->
|
|
|
<!--日期时间 formItem.describe-->
|
|
<!--日期时间 formItem.describe-->
|
|
|
<span v-else-if="['date_time'].indexOf(formItem.frontType) > -1">
|
|
<span v-else-if="['date_time'].indexOf(formItem.frontType) > -1">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -482,7 +502,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
modelFieldList: [],
|
|
modelFieldList: [],
|
|
|
itemLists: {},
|
|
itemLists: {},
|
|
|
-
|
|
|
|
|
|
|
+ showPassword: false,
|
|
|
map: {},
|
|
map: {},
|
|
|
currMapItem: {},
|
|
currMapItem: {},
|
|
|
isMapShow: true,
|
|
isMapShow: true,
|
|
@@ -533,7 +553,8 @@ export default {
|
|
|
} else if (["select", "multiple_select"].indexOf(obj.frontType) > -1) {
|
|
} else if (["select", "multiple_select"].indexOf(obj.frontType) > -1) {
|
|
|
this.getCheckItems(obj, 2);
|
|
this.getCheckItems(obj, 2);
|
|
|
}
|
|
}
|
|
|
- // console.log("==========" + obj);
|
|
|
|
|
|
|
+ console.log("==========" + obj);
|
|
|
|
|
+ obj.itemType = obj.name;
|
|
|
this.modelFieldList.push(obj);
|
|
this.modelFieldList.push(obj);
|
|
|
}
|
|
}
|
|
|
// 有序
|
|
// 有序
|
|
@@ -657,6 +678,14 @@ export default {
|
|
|
await navigator.clipboard.writeText(JSON.stringify(that.geoJsons));
|
|
await navigator.clipboard.writeText(JSON.stringify(that.geoJsons));
|
|
|
this.$message({ message: "复制成功", type: "success" });
|
|
this.$message({ message: "复制成功", type: "success" });
|
|
|
},
|
|
},
|
|
|
|
|
+ togglePassword(formItem) {
|
|
|
|
|
+ if(this.showPassword){
|
|
|
|
|
+ formItem.itemType = "password";
|
|
|
|
|
+ }else{
|
|
|
|
|
+ formItem.itemType = "text";
|
|
|
|
|
+ }
|
|
|
|
|
+ this.showPassword = !this.showPassword;
|
|
|
|
|
+ },
|
|
|
changeValue(json) {
|
|
changeValue(json) {
|
|
|
let that = this;
|
|
let that = this;
|
|
|
let Icon = L.divIcon({
|
|
let Icon = L.divIcon({
|
|
@@ -1352,7 +1381,7 @@ export default {
|
|
|
that.column.modelId == systemConfig.modelIds[1]
|
|
that.column.modelId == systemConfig.modelIds[1]
|
|
|
) {
|
|
) {
|
|
|
//指定 一张图登录栏目 申请账号时使用判断
|
|
//指定 一张图登录栏目 申请账号时使用判断
|
|
|
- message = "申请成功!请等待三个工作日后,管理员审核通过后,您才能登录系统。";
|
|
|
|
|
|
|
+ message = "申请成功!请等待三个工作日内,管理员审核通过后,您才能登录系统。";
|
|
|
}
|
|
}
|
|
|
that.$message({ message: message, type: "success" });
|
|
that.$message({ message: message, type: "success" });
|
|
|
} else {
|
|
} else {
|